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_dataview.h"
11
12 #include <wx/dataview.h>
13
14 #include <wx/window.h>
15 #include <wx/gdicmn.h>
16 #include <wx/gdicmn.h>
17 #include <wx/validate.h>
18 #include <wx/window.h>
19 #include <wx/event.h>
20 #include <wx/dataview.h>
21 #include <wx/dataview.h>
22 #include <wx/dataview.h>
23 #include <wx/gdicmn.h>
24 #include <wx/dataobj.h>
25 #include <wx/bitmap.h>
26 #include <wx/dc.h>
27 #include <wx/event.h>
28 #include <wx/event.h>
29 #include <wx/setup.h>
30 #include <wxPython/wxpy_api.h>
31 #include <wx/event.h>
32 #include <wx/cursor.h>
33 #include <wx/caret.h>
34 #include <wx/layout.h>
35 #include <wx/sizer.h>
36 #include <wx/dnd.h>
37 #include <wx/access.h>
38 #include <wx/accel.h>
39 #include <wx/menu.h>
40 #include <wx/tooltip.h>
41 #include <wx/event.h>
42 #include <wx/event.h>
43 #include <wx/event.h>
44 #include <wx/palette.h>
45 #include <wx/colour.h>
46 #include <wx/font.h>
47 #include <wx/region.h>
48
49 #include <wx/eventfilter.h>
50 #include <wx/object.h>
51 #include <wx/object.h>
52 #include <wx/object.h>
_wxDataViewCtrl_GetSelections(const wxDataViewCtrl * self)53 wxDataViewItemArray* _wxDataViewCtrl_GetSelections(const wxDataViewCtrl* self)
54 {
55 wxDataViewItemArray* selections = new wxDataViewItemArray;
56 self->GetSelections(*selections);
57 return selections;
58 }
_wxDataViewCtrl_HitTest(const wxDataViewCtrl * self,const wxPoint * point)59 PyObject* _wxDataViewCtrl_HitTest(const wxDataViewCtrl* self, const wxPoint* point)
60 {
61 wxDataViewItem* item = new wxDataViewItem();;
62 wxDataViewColumn* col = NULL;
63
64 self->HitTest(*point, *item, col);
65
66 wxPyThreadBlocker blocker;
67 PyObject* value = PyTuple_New(2);
68 PyObject* item_obj =
69 wxPyConstructObject((void*)item, wxT("wxDataViewItem"), 1); // owned
70 PyObject* col_obj;
71 if (col) {
72 col_obj = wxPyConstructObject((void*)col, wxT("wxDataViewColumn"), 0); // not owned
73 } else {
74 col_obj = Py_None;
75 Py_INCREF(Py_None);
76 }
77 PyTuple_SET_ITEM(value, 0, item_obj);
78 PyTuple_SET_ITEM(value, 1, col_obj);
79 // PyTuple steals a reference, so we don't need to decref the items here
80 return value;
81 }
82
83
84 class sipwxDataViewCtrl : public ::wxDataViewCtrl
85 {
86 public:
87 sipwxDataViewCtrl();
88 sipwxDataViewCtrl( ::wxWindow*, ::wxWindowID,const ::wxPoint&,const ::wxSize&,long,const ::wxValidator&,const ::wxString&);
89 virtual ~sipwxDataViewCtrl();
90
91 /*
92 * There is a public method for every protected method visible from
93 * this class.
94 */
95 void sipProtect_SendDestroyEvent();
96 bool sipProtectVirt_ProcessEvent(bool, ::wxEvent&);
97 void sipProtectVirt_DoEnable(bool,bool);
98 void sipProtectVirt_DoGetPosition(bool,int*,int*) const;
99 void sipProtectVirt_DoGetSize(bool,int*,int*) const;
100 void sipProtectVirt_DoGetClientSize(bool,int*,int*) const;
101 ::wxSize sipProtectVirt_DoGetBestSize(bool) const;
102 ::wxSize sipProtectVirt_DoGetBestClientSize(bool) const;
103 void sipProtectVirt_DoSetSize(bool,int,int,int,int,int);
104 void sipProtectVirt_DoSetClientSize(bool,int,int);
105 void sipProtectVirt_DoSetSizeHints(bool,int,int,int,int,int,int);
106 ::wxSize sipProtectVirt_DoGetBorderSize(bool) const;
107 void sipProtectVirt_DoMoveWindow(bool,int,int,int,int);
108 void sipProtectVirt_DoSetWindowVariant(bool, ::wxWindowVariant);
109 ::wxBorder sipProtectVirt_GetDefaultBorder(bool) const;
110 ::wxBorder sipProtectVirt_GetDefaultBorderForControl(bool) const;
111 void sipProtectVirt_DoFreeze(bool);
112 void sipProtectVirt_DoThaw(bool);
113 bool sipProtectVirt_HasTransparentBackground(bool);
114 bool sipProtectVirt_TryBefore(bool, ::wxEvent&);
115 bool sipProtectVirt_TryAfter(bool, ::wxEvent&);
116
117 /*
118 * There is a protected method for every virtual method visible from
119 * this class.
120 */
121 protected:
122 ::wxSize DoGetBestClientSize() const SIP_OVERRIDE;
123 ::wxSize DoGetBestSize() const SIP_OVERRIDE;
124 void DoThaw() SIP_OVERRIDE;
125 void DoFreeze() SIP_OVERRIDE;
126 ::wxBorder GetDefaultBorderForControl() const SIP_OVERRIDE;
127 ::wxBorder GetDefaultBorder() const SIP_OVERRIDE;
128 void DoSetWindowVariant( ::wxWindowVariant) SIP_OVERRIDE;
129 void DoMoveWindow(int,int,int,int) SIP_OVERRIDE;
130 ::wxSize DoGetBorderSize() const SIP_OVERRIDE;
131 void DoSetSizeHints(int,int,int,int,int,int) SIP_OVERRIDE;
132 void DoSetClientSize(int,int) SIP_OVERRIDE;
133 void DoSetSize(int,int,int,int,int) SIP_OVERRIDE;
134 void DoGetClientSize(int*,int*) const SIP_OVERRIDE;
135 void DoGetSize(int*,int*) const SIP_OVERRIDE;
136 void DoGetPosition(int*,int*) const SIP_OVERRIDE;
137 void DoEnable(bool) SIP_OVERRIDE;
138 ::wxWindow* GetMainWindowOfCompositeControl() SIP_OVERRIDE;
139 void OnInternalIdle() SIP_OVERRIDE;
140 void InitDialog() SIP_OVERRIDE;
141 void InheritAttributes() SIP_OVERRIDE;
142 bool Destroy() SIP_OVERRIDE;
143 bool Validate() SIP_OVERRIDE;
144 bool TransferDataToWindow() SIP_OVERRIDE;
145 bool TransferDataFromWindow() SIP_OVERRIDE;
146 void SetValidator(const ::wxValidator&) SIP_OVERRIDE;
147 ::wxValidator* GetValidator() SIP_OVERRIDE;
148 bool ShouldInheritColours() const SIP_OVERRIDE;
149 bool HasTransparentBackground() SIP_OVERRIDE;
150 ::wxPoint GetClientAreaOrigin() const SIP_OVERRIDE;
151 bool InformFirstDirection(int,int,int) SIP_OVERRIDE;
152 void SetCanFocus(bool) SIP_OVERRIDE;
153 bool AcceptsFocusRecursively() const SIP_OVERRIDE;
154 bool AcceptsFocusFromKeyboard() const SIP_OVERRIDE;
155 bool AcceptsFocus() const SIP_OVERRIDE;
156 bool TryAfter( ::wxEvent&) SIP_OVERRIDE;
157 bool TryBefore( ::wxEvent&) SIP_OVERRIDE;
158 bool ProcessEvent( ::wxEvent&) SIP_OVERRIDE;
159 void AddChild( ::wxWindowBase*) SIP_OVERRIDE;
160 void RemoveChild( ::wxWindowBase*) SIP_OVERRIDE;
161
162 public:
163 sipSimpleWrapper *sipPySelf;
164
165 private:
166 sipwxDataViewCtrl(const sipwxDataViewCtrl &);
167 sipwxDataViewCtrl &operator = (const sipwxDataViewCtrl &);
168
169 char sipPyMethods[39];
170 };
171
sipwxDataViewCtrl()172 sipwxDataViewCtrl::sipwxDataViewCtrl(): ::wxDataViewCtrl(), sipPySelf(SIP_NULLPTR)
173 {
174 memset(sipPyMethods, 0, sizeof (sipPyMethods));
175 }
176
sipwxDataViewCtrl(::wxWindow * parent,::wxWindowID id,const::wxPoint & pos,const::wxSize & size,long style,const::wxValidator & validator,const::wxString & name)177 sipwxDataViewCtrl::sipwxDataViewCtrl( ::wxWindow*parent, ::wxWindowID id,const ::wxPoint& pos,const ::wxSize& size,long style,const ::wxValidator& validator,const ::wxString& name): ::wxDataViewCtrl(parent,id,pos,size,style,validator,name), sipPySelf(SIP_NULLPTR)
178 {
179 memset(sipPyMethods, 0, sizeof (sipPyMethods));
180 }
181
~sipwxDataViewCtrl()182 sipwxDataViewCtrl::~sipwxDataViewCtrl()
183 {
184 sipInstanceDestroyedEx(&sipPySelf);
185 }
186
DoGetBestClientSize() const187 ::wxSize sipwxDataViewCtrl::DoGetBestClientSize() const
188 {
189 sip_gilstate_t sipGILState;
190 PyObject *sipMeth;
191
192 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestClientSize);
193
194 if (!sipMeth)
195 return ::wxDataViewCtrl::DoGetBestClientSize();
196
197 extern ::wxSize sipVH__dataview_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
198
199 return sipVH__dataview_31(sipGILState, 0, sipPySelf, sipMeth);
200 }
201
DoGetBestSize() const202 ::wxSize sipwxDataViewCtrl::DoGetBestSize() const
203 {
204 sip_gilstate_t sipGILState;
205 PyObject *sipMeth;
206
207 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestSize);
208
209 if (!sipMeth)
210 return ::wxDataViewCtrl::DoGetBestSize();
211
212 extern ::wxSize sipVH__dataview_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
213
214 return sipVH__dataview_31(sipGILState, 0, sipPySelf, sipMeth);
215 }
216
DoThaw()217 void sipwxDataViewCtrl::DoThaw()
218 {
219 sip_gilstate_t sipGILState;
220 PyObject *sipMeth;
221
222 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_DoThaw);
223
224 if (!sipMeth)
225 {
226 ::wxDataViewCtrl::DoThaw();
227 return;
228 }
229
230 extern void sipVH__dataview_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
231
232 sipVH__dataview_5(sipGILState, 0, sipPySelf, sipMeth);
233 }
234
DoFreeze()235 void sipwxDataViewCtrl::DoFreeze()
236 {
237 sip_gilstate_t sipGILState;
238 PyObject *sipMeth;
239
240 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,SIP_NULLPTR,sipName_DoFreeze);
241
242 if (!sipMeth)
243 {
244 ::wxDataViewCtrl::DoFreeze();
245 return;
246 }
247
248 extern void sipVH__dataview_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
249
250 sipVH__dataview_5(sipGILState, 0, sipPySelf, sipMeth);
251 }
252
GetDefaultBorderForControl() const253 ::wxBorder sipwxDataViewCtrl::GetDefaultBorderForControl() const
254 {
255 sip_gilstate_t sipGILState;
256 PyObject *sipMeth;
257
258 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorderForControl);
259
260 if (!sipMeth)
261 return ::wxDataViewCtrl::GetDefaultBorderForControl();
262
263 extern ::wxBorder sipVH__dataview_56(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
264
265 return sipVH__dataview_56(sipGILState, 0, sipPySelf, sipMeth);
266 }
267
GetDefaultBorder() const268 ::wxBorder sipwxDataViewCtrl::GetDefaultBorder() const
269 {
270 sip_gilstate_t sipGILState;
271 PyObject *sipMeth;
272
273 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorder);
274
275 if (!sipMeth)
276 return ::wxDataViewCtrl::GetDefaultBorder();
277
278 extern ::wxBorder sipVH__dataview_56(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
279
280 return sipVH__dataview_56(sipGILState, 0, sipPySelf, sipMeth);
281 }
282
DoSetWindowVariant(::wxWindowVariant variant)283 void sipwxDataViewCtrl::DoSetWindowVariant( ::wxWindowVariant variant)
284 {
285 sip_gilstate_t sipGILState;
286 PyObject *sipMeth;
287
288 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,SIP_NULLPTR,sipName_DoSetWindowVariant);
289
290 if (!sipMeth)
291 {
292 ::wxDataViewCtrl::DoSetWindowVariant(variant);
293 return;
294 }
295
296 extern void sipVH__dataview_55(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowVariant);
297
298 sipVH__dataview_55(sipGILState, 0, sipPySelf, sipMeth, variant);
299 }
300
DoMoveWindow(int x,int y,int width,int height)301 void sipwxDataViewCtrl::DoMoveWindow(int x,int y,int width,int height)
302 {
303 sip_gilstate_t sipGILState;
304 PyObject *sipMeth;
305
306 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,SIP_NULLPTR,sipName_DoMoveWindow);
307
308 if (!sipMeth)
309 {
310 ::wxDataViewCtrl::DoMoveWindow(x,y,width,height);
311 return;
312 }
313
314 extern void sipVH__dataview_54(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int);
315
316 sipVH__dataview_54(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height);
317 }
318
DoGetBorderSize() const319 ::wxSize sipwxDataViewCtrl::DoGetBorderSize() const
320 {
321 sip_gilstate_t sipGILState;
322 PyObject *sipMeth;
323
324 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,SIP_NULLPTR,sipName_DoGetBorderSize);
325
326 if (!sipMeth)
327 return ::wxDataViewCtrl::DoGetBorderSize();
328
329 extern ::wxSize sipVH__dataview_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
330
331 return sipVH__dataview_31(sipGILState, 0, sipPySelf, sipMeth);
332 }
333
DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH)334 void sipwxDataViewCtrl::DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH)
335 {
336 sip_gilstate_t sipGILState;
337 PyObject *sipMeth;
338
339 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,SIP_NULLPTR,sipName_DoSetSizeHints);
340
341 if (!sipMeth)
342 {
343 ::wxDataViewCtrl::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH);
344 return;
345 }
346
347 extern void sipVH__dataview_53(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int,int);
348
349 sipVH__dataview_53(sipGILState, 0, sipPySelf, sipMeth, minW, minH, maxW, maxH, incW, incH);
350 }
351
DoSetClientSize(int width,int height)352 void sipwxDataViewCtrl::DoSetClientSize(int width,int height)
353 {
354 sip_gilstate_t sipGILState;
355 PyObject *sipMeth;
356
357 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,SIP_NULLPTR,sipName_DoSetClientSize);
358
359 if (!sipMeth)
360 {
361 ::wxDataViewCtrl::DoSetClientSize(width,height);
362 return;
363 }
364
365 extern void sipVH__dataview_52(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
366
367 sipVH__dataview_52(sipGILState, 0, sipPySelf, sipMeth, width, height);
368 }
369
DoSetSize(int x,int y,int width,int height,int sizeFlags)370 void sipwxDataViewCtrl::DoSetSize(int x,int y,int width,int height,int sizeFlags)
371 {
372 sip_gilstate_t sipGILState;
373 PyObject *sipMeth;
374
375 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,SIP_NULLPTR,sipName_DoSetSize);
376
377 if (!sipMeth)
378 {
379 ::wxDataViewCtrl::DoSetSize(x,y,width,height,sizeFlags);
380 return;
381 }
382
383 extern void sipVH__dataview_51(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int);
384
385 sipVH__dataview_51(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height, sizeFlags);
386 }
387
DoGetClientSize(int * width,int * height) const388 void sipwxDataViewCtrl::DoGetClientSize(int*width,int*height) const
389 {
390 sip_gilstate_t sipGILState;
391 PyObject *sipMeth;
392
393 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,SIP_NULLPTR,sipName_DoGetClientSize);
394
395 if (!sipMeth)
396 {
397 ::wxDataViewCtrl::DoGetClientSize(width,height);
398 return;
399 }
400
401 extern void sipVH__dataview_50(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
402
403 sipVH__dataview_50(sipGILState, 0, sipPySelf, sipMeth, width, height);
404 }
405
DoGetSize(int * width,int * height) const406 void sipwxDataViewCtrl::DoGetSize(int*width,int*height) const
407 {
408 sip_gilstate_t sipGILState;
409 PyObject *sipMeth;
410
411 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,SIP_NULLPTR,sipName_DoGetSize);
412
413 if (!sipMeth)
414 {
415 ::wxDataViewCtrl::DoGetSize(width,height);
416 return;
417 }
418
419 extern void sipVH__dataview_50(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
420
421 sipVH__dataview_50(sipGILState, 0, sipPySelf, sipMeth, width, height);
422 }
423
DoGetPosition(int * x,int * y) const424 void sipwxDataViewCtrl::DoGetPosition(int*x,int*y) const
425 {
426 sip_gilstate_t sipGILState;
427 PyObject *sipMeth;
428
429 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,SIP_NULLPTR,sipName_DoGetPosition);
430
431 if (!sipMeth)
432 {
433 ::wxDataViewCtrl::DoGetPosition(x,y);
434 return;
435 }
436
437 extern void sipVH__dataview_50(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
438
439 sipVH__dataview_50(sipGILState, 0, sipPySelf, sipMeth, x, y);
440 }
441
DoEnable(bool enable)442 void sipwxDataViewCtrl::DoEnable(bool enable)
443 {
444 sip_gilstate_t sipGILState;
445 PyObject *sipMeth;
446
447 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,SIP_NULLPTR,sipName_DoEnable);
448
449 if (!sipMeth)
450 {
451 ::wxDataViewCtrl::DoEnable(enable);
452 return;
453 }
454
455 extern void sipVH__dataview_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);
456
457 sipVH__dataview_36(sipGILState, 0, sipPySelf, sipMeth, enable);
458 }
459
GetMainWindowOfCompositeControl()460 ::wxWindow* sipwxDataViewCtrl::GetMainWindowOfCompositeControl()
461 {
462 sip_gilstate_t sipGILState;
463 PyObject *sipMeth;
464
465 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,SIP_NULLPTR,sipName_GetMainWindowOfCompositeControl);
466
467 if (!sipMeth)
468 return ::wxDataViewCtrl::GetMainWindowOfCompositeControl();
469
470 extern ::wxWindow* sipVH__dataview_49(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
471
472 return sipVH__dataview_49(sipGILState, 0, sipPySelf, sipMeth);
473 }
474
OnInternalIdle()475 void sipwxDataViewCtrl::OnInternalIdle()
476 {
477 sip_gilstate_t sipGILState;
478 PyObject *sipMeth;
479
480 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,SIP_NULLPTR,sipName_OnInternalIdle);
481
482 if (!sipMeth)
483 {
484 ::wxDataViewCtrl::OnInternalIdle();
485 return;
486 }
487
488 extern void sipVH__dataview_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
489
490 sipVH__dataview_5(sipGILState, 0, sipPySelf, sipMeth);
491 }
492
InitDialog()493 void sipwxDataViewCtrl::InitDialog()
494 {
495 sip_gilstate_t sipGILState;
496 PyObject *sipMeth;
497
498 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,SIP_NULLPTR,sipName_InitDialog);
499
500 if (!sipMeth)
501 {
502 ::wxDataViewCtrl::InitDialog();
503 return;
504 }
505
506 extern void sipVH__dataview_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
507
508 sipVH__dataview_5(sipGILState, 0, sipPySelf, sipMeth);
509 }
510
InheritAttributes()511 void sipwxDataViewCtrl::InheritAttributes()
512 {
513 sip_gilstate_t sipGILState;
514 PyObject *sipMeth;
515
516 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,SIP_NULLPTR,sipName_InheritAttributes);
517
518 if (!sipMeth)
519 {
520 ::wxDataViewCtrl::InheritAttributes();
521 return;
522 }
523
524 extern void sipVH__dataview_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
525
526 sipVH__dataview_5(sipGILState, 0, sipPySelf, sipMeth);
527 }
528
Destroy()529 bool sipwxDataViewCtrl::Destroy()
530 {
531 sip_gilstate_t sipGILState;
532 PyObject *sipMeth;
533
534 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,SIP_NULLPTR,sipName_Destroy);
535
536 if (!sipMeth)
537 return ::wxDataViewCtrl::Destroy();
538
539 extern bool sipVH__dataview_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
540
541 return sipVH__dataview_0(sipGILState, 0, sipPySelf, sipMeth);
542 }
543
Validate()544 bool sipwxDataViewCtrl::Validate()
545 {
546 sip_gilstate_t sipGILState;
547 PyObject *sipMeth;
548
549 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,SIP_NULLPTR,sipName_Validate);
550
551 if (!sipMeth)
552 return ::wxDataViewCtrl::Validate();
553
554 extern bool sipVH__dataview_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
555
556 return sipVH__dataview_0(sipGILState, 0, sipPySelf, sipMeth);
557 }
558
TransferDataToWindow()559 bool sipwxDataViewCtrl::TransferDataToWindow()
560 {
561 sip_gilstate_t sipGILState;
562 PyObject *sipMeth;
563
564 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,SIP_NULLPTR,sipName_TransferDataToWindow);
565
566 if (!sipMeth)
567 return ::wxDataViewCtrl::TransferDataToWindow();
568
569 extern bool sipVH__dataview_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
570
571 return sipVH__dataview_0(sipGILState, 0, sipPySelf, sipMeth);
572 }
573
TransferDataFromWindow()574 bool sipwxDataViewCtrl::TransferDataFromWindow()
575 {
576 sip_gilstate_t sipGILState;
577 PyObject *sipMeth;
578
579 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,SIP_NULLPTR,sipName_TransferDataFromWindow);
580
581 if (!sipMeth)
582 return ::wxDataViewCtrl::TransferDataFromWindow();
583
584 extern bool sipVH__dataview_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
585
586 return sipVH__dataview_0(sipGILState, 0, sipPySelf, sipMeth);
587 }
588
SetValidator(const::wxValidator & validator)589 void sipwxDataViewCtrl::SetValidator(const ::wxValidator& validator)
590 {
591 sip_gilstate_t sipGILState;
592 PyObject *sipMeth;
593
594 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,SIP_NULLPTR,sipName_SetValidator);
595
596 if (!sipMeth)
597 {
598 ::wxDataViewCtrl::SetValidator(validator);
599 return;
600 }
601
602 extern void sipVH__dataview_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::wxValidator&);
603
604 sipVH__dataview_48(sipGILState, 0, sipPySelf, sipMeth, validator);
605 }
606
GetValidator()607 ::wxValidator* sipwxDataViewCtrl::GetValidator()
608 {
609 sip_gilstate_t sipGILState;
610 PyObject *sipMeth;
611
612 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,SIP_NULLPTR,sipName_GetValidator);
613
614 if (!sipMeth)
615 return ::wxDataViewCtrl::GetValidator();
616
617 extern ::wxValidator* sipVH__dataview_47(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
618
619 return sipVH__dataview_47(sipGILState, 0, sipPySelf, sipMeth);
620 }
621
ShouldInheritColours() const622 bool sipwxDataViewCtrl::ShouldInheritColours() const
623 {
624 sip_gilstate_t sipGILState;
625 PyObject *sipMeth;
626
627 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,SIP_NULLPTR,sipName_ShouldInheritColours);
628
629 if (!sipMeth)
630 return ::wxDataViewCtrl::ShouldInheritColours();
631
632 extern bool sipVH__dataview_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
633
634 return sipVH__dataview_0(sipGILState, 0, sipPySelf, sipMeth);
635 }
636
HasTransparentBackground()637 bool sipwxDataViewCtrl::HasTransparentBackground()
638 {
639 sip_gilstate_t sipGILState;
640 PyObject *sipMeth;
641
642 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,SIP_NULLPTR,sipName_HasTransparentBackground);
643
644 if (!sipMeth)
645 return ::wxDataViewCtrl::HasTransparentBackground();
646
647 extern bool sipVH__dataview_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
648
649 return sipVH__dataview_0(sipGILState, 0, sipPySelf, sipMeth);
650 }
651
GetClientAreaOrigin() const652 ::wxPoint sipwxDataViewCtrl::GetClientAreaOrigin() const
653 {
654 sip_gilstate_t sipGILState;
655 PyObject *sipMeth;
656
657 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[28]),sipPySelf,SIP_NULLPTR,sipName_GetClientAreaOrigin);
658
659 if (!sipMeth)
660 return ::wxDataViewCtrl::GetClientAreaOrigin();
661
662 extern ::wxPoint sipVH__dataview_46(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
663
664 return sipVH__dataview_46(sipGILState, 0, sipPySelf, sipMeth);
665 }
666
InformFirstDirection(int direction,int size,int availableOtherDir)667 bool sipwxDataViewCtrl::InformFirstDirection(int direction,int size,int availableOtherDir)
668 {
669 sip_gilstate_t sipGILState;
670 PyObject *sipMeth;
671
672 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,SIP_NULLPTR,sipName_InformFirstDirection);
673
674 if (!sipMeth)
675 return ::wxDataViewCtrl::InformFirstDirection(direction,size,availableOtherDir);
676
677 extern bool sipVH__dataview_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int);
678
679 return sipVH__dataview_45(sipGILState, 0, sipPySelf, sipMeth, direction, size, availableOtherDir);
680 }
681
SetCanFocus(bool canFocus)682 void sipwxDataViewCtrl::SetCanFocus(bool canFocus)
683 {
684 sip_gilstate_t sipGILState;
685 PyObject *sipMeth;
686
687 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,SIP_NULLPTR,sipName_SetCanFocus);
688
689 if (!sipMeth)
690 {
691 ::wxDataViewCtrl::SetCanFocus(canFocus);
692 return;
693 }
694
695 extern void sipVH__dataview_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);
696
697 sipVH__dataview_36(sipGILState, 0, sipPySelf, sipMeth, canFocus);
698 }
699
AcceptsFocusRecursively() const700 bool sipwxDataViewCtrl::AcceptsFocusRecursively() const
701 {
702 sip_gilstate_t sipGILState;
703 PyObject *sipMeth;
704
705 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[31]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusRecursively);
706
707 if (!sipMeth)
708 return ::wxDataViewCtrl::AcceptsFocusRecursively();
709
710 extern bool sipVH__dataview_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
711
712 return sipVH__dataview_0(sipGILState, 0, sipPySelf, sipMeth);
713 }
714
AcceptsFocusFromKeyboard() const715 bool sipwxDataViewCtrl::AcceptsFocusFromKeyboard() const
716 {
717 sip_gilstate_t sipGILState;
718 PyObject *sipMeth;
719
720 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[32]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusFromKeyboard);
721
722 if (!sipMeth)
723 return ::wxDataViewCtrl::AcceptsFocusFromKeyboard();
724
725 extern bool sipVH__dataview_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
726
727 return sipVH__dataview_0(sipGILState, 0, sipPySelf, sipMeth);
728 }
729
AcceptsFocus() const730 bool sipwxDataViewCtrl::AcceptsFocus() const
731 {
732 sip_gilstate_t sipGILState;
733 PyObject *sipMeth;
734
735 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[33]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocus);
736
737 if (!sipMeth)
738 return ::wxDataViewCtrl::AcceptsFocus();
739
740 extern bool sipVH__dataview_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
741
742 return sipVH__dataview_0(sipGILState, 0, sipPySelf, sipMeth);
743 }
744
TryAfter(::wxEvent & event)745 bool sipwxDataViewCtrl::TryAfter( ::wxEvent& event)
746 {
747 sip_gilstate_t sipGILState;
748 PyObject *sipMeth;
749
750 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,SIP_NULLPTR,sipName_TryAfter);
751
752 if (!sipMeth)
753 return ::wxDataViewCtrl::TryAfter(event);
754
755 extern bool sipVH__dataview_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
756
757 return sipVH__dataview_44(sipGILState, 0, sipPySelf, sipMeth, event);
758 }
759
TryBefore(::wxEvent & event)760 bool sipwxDataViewCtrl::TryBefore( ::wxEvent& event)
761 {
762 sip_gilstate_t sipGILState;
763 PyObject *sipMeth;
764
765 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,SIP_NULLPTR,sipName_TryBefore);
766
767 if (!sipMeth)
768 return ::wxDataViewCtrl::TryBefore(event);
769
770 extern bool sipVH__dataview_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
771
772 return sipVH__dataview_44(sipGILState, 0, sipPySelf, sipMeth, event);
773 }
774
ProcessEvent(::wxEvent & event)775 bool sipwxDataViewCtrl::ProcessEvent( ::wxEvent& event)
776 {
777 sip_gilstate_t sipGILState;
778 PyObject *sipMeth;
779
780 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,SIP_NULLPTR,sipName_ProcessEvent);
781
782 if (!sipMeth)
783 return ::wxDataViewCtrl::ProcessEvent(event);
784
785 extern bool sipVH__dataview_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
786
787 return sipVH__dataview_44(sipGILState, 0, sipPySelf, sipMeth, event);
788 }
789
AddChild(::wxWindowBase * child)790 void sipwxDataViewCtrl::AddChild( ::wxWindowBase*child)
791 {
792 sip_gilstate_t sipGILState;
793 PyObject *sipMeth;
794
795 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,SIP_NULLPTR,sipName_AddChild);
796
797 if (!sipMeth)
798 {
799 ::wxDataViewCtrl::AddChild(child);
800 return;
801 }
802
803 extern void sipVH__dataview_43(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowBase*);
804
805 sipVH__dataview_43(sipGILState, 0, sipPySelf, sipMeth, child);
806 }
807
RemoveChild(::wxWindowBase * child)808 void sipwxDataViewCtrl::RemoveChild( ::wxWindowBase*child)
809 {
810 sip_gilstate_t sipGILState;
811 PyObject *sipMeth;
812
813 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,SIP_NULLPTR,sipName_RemoveChild);
814
815 if (!sipMeth)
816 {
817 ::wxDataViewCtrl::RemoveChild(child);
818 return;
819 }
820
821 extern void sipVH__dataview_43(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowBase*);
822
823 sipVH__dataview_43(sipGILState, 0, sipPySelf, sipMeth, child);
824 }
825
sipProtect_SendDestroyEvent()826 void sipwxDataViewCtrl::sipProtect_SendDestroyEvent()
827 {
828 ::wxWindow::SendDestroyEvent();
829 }
830
sipProtectVirt_ProcessEvent(bool sipSelfWasArg,::wxEvent & event)831 bool sipwxDataViewCtrl::sipProtectVirt_ProcessEvent(bool sipSelfWasArg, ::wxEvent& event)
832 {
833 return (sipSelfWasArg ? ::wxDataViewCtrl::ProcessEvent(event) : ProcessEvent(event));
834 }
835
sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)836 void sipwxDataViewCtrl::sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)
837 {
838 (sipSelfWasArg ? ::wxDataViewCtrl::DoEnable(enable) : DoEnable(enable));
839 }
840
sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int * x,int * y) const841 void sipwxDataViewCtrl::sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int*x,int*y) const
842 {
843 (sipSelfWasArg ? ::wxDataViewCtrl::DoGetPosition(x,y) : DoGetPosition(x,y));
844 }
845
sipProtectVirt_DoGetSize(bool sipSelfWasArg,int * width,int * height) const846 void sipwxDataViewCtrl::sipProtectVirt_DoGetSize(bool sipSelfWasArg,int*width,int*height) const
847 {
848 (sipSelfWasArg ? ::wxDataViewCtrl::DoGetSize(width,height) : DoGetSize(width,height));
849 }
850
sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int * width,int * height) const851 void sipwxDataViewCtrl::sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int*width,int*height) const
852 {
853 (sipSelfWasArg ? ::wxDataViewCtrl::DoGetClientSize(width,height) : DoGetClientSize(width,height));
854 }
855
sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const856 ::wxSize sipwxDataViewCtrl::sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const
857 {
858 return (sipSelfWasArg ? ::wxDataViewCtrl::DoGetBestSize() : DoGetBestSize());
859 }
860
sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const861 ::wxSize sipwxDataViewCtrl::sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const
862 {
863 return (sipSelfWasArg ? ::wxDataViewCtrl::DoGetBestClientSize() : DoGetBestClientSize());
864 }
865
sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)866 void sipwxDataViewCtrl::sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)
867 {
868 (sipSelfWasArg ? ::wxDataViewCtrl::DoSetSize(x,y,width,height,sizeFlags) : DoSetSize(x,y,width,height,sizeFlags));
869 }
870
sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)871 void sipwxDataViewCtrl::sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)
872 {
873 (sipSelfWasArg ? ::wxDataViewCtrl::DoSetClientSize(width,height) : DoSetClientSize(width,height));
874 }
875
sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)876 void sipwxDataViewCtrl::sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)
877 {
878 (sipSelfWasArg ? ::wxDataViewCtrl::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH) : DoSetSizeHints(minW,minH,maxW,maxH,incW,incH));
879 }
880
sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const881 ::wxSize sipwxDataViewCtrl::sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const
882 {
883 return (sipSelfWasArg ? ::wxDataViewCtrl::DoGetBorderSize() : DoGetBorderSize());
884 }
885
sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)886 void sipwxDataViewCtrl::sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)
887 {
888 (sipSelfWasArg ? ::wxDataViewCtrl::DoMoveWindow(x,y,width,height) : DoMoveWindow(x,y,width,height));
889 }
890
sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg,::wxWindowVariant variant)891 void sipwxDataViewCtrl::sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg, ::wxWindowVariant variant)
892 {
893 (sipSelfWasArg ? ::wxDataViewCtrl::DoSetWindowVariant(variant) : DoSetWindowVariant(variant));
894 }
895
sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const896 ::wxBorder sipwxDataViewCtrl::sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const
897 {
898 return (sipSelfWasArg ? ::wxDataViewCtrl::GetDefaultBorder() : GetDefaultBorder());
899 }
900
sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const901 ::wxBorder sipwxDataViewCtrl::sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const
902 {
903 return (sipSelfWasArg ? ::wxDataViewCtrl::GetDefaultBorderForControl() : GetDefaultBorderForControl());
904 }
905
sipProtectVirt_DoFreeze(bool sipSelfWasArg)906 void sipwxDataViewCtrl::sipProtectVirt_DoFreeze(bool sipSelfWasArg)
907 {
908 (sipSelfWasArg ? ::wxDataViewCtrl::DoFreeze() : DoFreeze());
909 }
910
sipProtectVirt_DoThaw(bool sipSelfWasArg)911 void sipwxDataViewCtrl::sipProtectVirt_DoThaw(bool sipSelfWasArg)
912 {
913 (sipSelfWasArg ? ::wxDataViewCtrl::DoThaw() : DoThaw());
914 }
915
sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)916 bool sipwxDataViewCtrl::sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)
917 {
918 return (sipSelfWasArg ? ::wxDataViewCtrl::HasTransparentBackground() : HasTransparentBackground());
919 }
920
sipProtectVirt_TryBefore(bool sipSelfWasArg,::wxEvent & event)921 bool sipwxDataViewCtrl::sipProtectVirt_TryBefore(bool sipSelfWasArg, ::wxEvent& event)
922 {
923 return (sipSelfWasArg ? ::wxDataViewCtrl::TryBefore(event) : TryBefore(event));
924 }
925
sipProtectVirt_TryAfter(bool sipSelfWasArg,::wxEvent & event)926 bool sipwxDataViewCtrl::sipProtectVirt_TryAfter(bool sipSelfWasArg, ::wxEvent& event)
927 {
928 return (sipSelfWasArg ? ::wxDataViewCtrl::TryAfter(event) : TryAfter(event));
929 }
930
931
932 PyDoc_STRVAR(doc_wxDataViewCtrl_SendDestroyEvent, "SendDestroyEvent()\n"
933 "\n"
934 "Generate wxWindowDestroyEvent for this window.");
935
936 extern "C" {static PyObject *meth_wxDataViewCtrl_SendDestroyEvent(PyObject *, PyObject *);}
meth_wxDataViewCtrl_SendDestroyEvent(PyObject * sipSelf,PyObject * sipArgs)937 static PyObject *meth_wxDataViewCtrl_SendDestroyEvent(PyObject *sipSelf, PyObject *sipArgs)
938 {
939 PyObject *sipParseErr = SIP_NULLPTR;
940
941 {
942 sipwxDataViewCtrl *sipCpp;
943
944 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
945 {
946 PyErr_Clear();
947
948 Py_BEGIN_ALLOW_THREADS
949 sipCpp->sipProtect_SendDestroyEvent();
950 Py_END_ALLOW_THREADS
951
952 if (PyErr_Occurred())
953 return 0;
954
955 Py_INCREF(Py_None);
956 return Py_None;
957 }
958 }
959
960 /* Raise an exception if the arguments couldn't be parsed. */
961 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_SendDestroyEvent, SIP_NULLPTR);
962
963 return SIP_NULLPTR;
964 }
965
966
967 PyDoc_STRVAR(doc_wxDataViewCtrl_AppendBitmapColumn, "AppendBitmapColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=-1, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
968 "AppendBitmapColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=-1, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
969 "\n"
970 "Appends a column for rendering a bitmap.\n"
971 "");
972
973 extern "C" {static PyObject *meth_wxDataViewCtrl_AppendBitmapColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_AppendBitmapColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)974 static PyObject *meth_wxDataViewCtrl_AppendBitmapColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
975 {
976 PyObject *sipParseErr = SIP_NULLPTR;
977
978 {
979 const ::wxString* label;
980 int labelState = 0;
981 uint model_column;
982 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
983 int width = -1;
984 ::wxAlignment align = wxALIGN_CENTER;
985 int flags = wxDATAVIEW_COL_RESIZABLE;
986 ::wxDataViewCtrl *sipCpp;
987
988 static const char *sipKwdList[] = {
989 sipName_label,
990 sipName_model_column,
991 sipName_mode,
992 sipName_width,
993 sipName_align,
994 sipName_flags,
995 };
996
997 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxString,&label, &labelState, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
998 {
999 ::wxDataViewColumn*sipRes;
1000
1001 PyErr_Clear();
1002
1003 Py_BEGIN_ALLOW_THREADS
1004 sipRes = sipCpp->AppendBitmapColumn(*label,model_column,mode,width,align,flags);
1005 Py_END_ALLOW_THREADS
1006 sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1007
1008 if (PyErr_Occurred())
1009 return 0;
1010
1011 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1012 }
1013 }
1014
1015 {
1016 const ::wxBitmap* label;
1017 uint model_column;
1018 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1019 int width = -1;
1020 ::wxAlignment align = wxALIGN_CENTER;
1021 int flags = wxDATAVIEW_COL_RESIZABLE;
1022 ::wxDataViewCtrl *sipCpp;
1023
1024 static const char *sipKwdList[] = {
1025 sipName_label,
1026 sipName_model_column,
1027 sipName_mode,
1028 sipName_width,
1029 sipName_align,
1030 sipName_flags,
1031 };
1032
1033 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxBitmap, &label, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1034 {
1035 ::wxDataViewColumn*sipRes;
1036
1037 PyErr_Clear();
1038
1039 Py_BEGIN_ALLOW_THREADS
1040 sipRes = sipCpp->AppendBitmapColumn(*label,model_column,mode,width,align,flags);
1041 Py_END_ALLOW_THREADS
1042
1043 if (PyErr_Occurred())
1044 return 0;
1045
1046 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1047 }
1048 }
1049
1050 /* Raise an exception if the arguments couldn't be parsed. */
1051 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_AppendBitmapColumn, SIP_NULLPTR);
1052
1053 return SIP_NULLPTR;
1054 }
1055
1056
1057 PyDoc_STRVAR(doc_wxDataViewCtrl_PrependBitmapColumn, "PrependBitmapColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=-1, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1058 "PrependBitmapColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=-1, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1059 "\n"
1060 "Prepends a column for rendering a bitmap.\n"
1061 "");
1062
1063 extern "C" {static PyObject *meth_wxDataViewCtrl_PrependBitmapColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_PrependBitmapColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1064 static PyObject *meth_wxDataViewCtrl_PrependBitmapColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1065 {
1066 PyObject *sipParseErr = SIP_NULLPTR;
1067
1068 {
1069 const ::wxString* label;
1070 int labelState = 0;
1071 uint model_column;
1072 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1073 int width = -1;
1074 ::wxAlignment align = wxALIGN_CENTER;
1075 int flags = wxDATAVIEW_COL_RESIZABLE;
1076 ::wxDataViewCtrl *sipCpp;
1077
1078 static const char *sipKwdList[] = {
1079 sipName_label,
1080 sipName_model_column,
1081 sipName_mode,
1082 sipName_width,
1083 sipName_align,
1084 sipName_flags,
1085 };
1086
1087 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxString,&label, &labelState, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1088 {
1089 ::wxDataViewColumn*sipRes;
1090
1091 PyErr_Clear();
1092
1093 Py_BEGIN_ALLOW_THREADS
1094 sipRes = sipCpp->PrependBitmapColumn(*label,model_column,mode,width,align,flags);
1095 Py_END_ALLOW_THREADS
1096 sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1097
1098 if (PyErr_Occurred())
1099 return 0;
1100
1101 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1102 }
1103 }
1104
1105 {
1106 const ::wxBitmap* label;
1107 uint model_column;
1108 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1109 int width = -1;
1110 ::wxAlignment align = wxALIGN_CENTER;
1111 int flags = wxDATAVIEW_COL_RESIZABLE;
1112 ::wxDataViewCtrl *sipCpp;
1113
1114 static const char *sipKwdList[] = {
1115 sipName_label,
1116 sipName_model_column,
1117 sipName_mode,
1118 sipName_width,
1119 sipName_align,
1120 sipName_flags,
1121 };
1122
1123 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxBitmap, &label, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1124 {
1125 ::wxDataViewColumn*sipRes;
1126
1127 PyErr_Clear();
1128
1129 Py_BEGIN_ALLOW_THREADS
1130 sipRes = sipCpp->PrependBitmapColumn(*label,model_column,mode,width,align,flags);
1131 Py_END_ALLOW_THREADS
1132
1133 if (PyErr_Occurred())
1134 return 0;
1135
1136 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1137 }
1138 }
1139
1140 /* Raise an exception if the arguments couldn't be parsed. */
1141 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_PrependBitmapColumn, SIP_NULLPTR);
1142
1143 return SIP_NULLPTR;
1144 }
1145
1146
1147 PyDoc_STRVAR(doc_wxDataViewCtrl_AppendDateColumn, "AppendDateColumn(label, model_column, mode=DATAVIEW_CELL_ACTIVATABLE, width=-1, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1148 "AppendDateColumn(label, model_column, mode=DATAVIEW_CELL_ACTIVATABLE, width=-1, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1149 "\n"
1150 "Appends a column for rendering a date.\n"
1151 "");
1152
1153 extern "C" {static PyObject *meth_wxDataViewCtrl_AppendDateColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_AppendDateColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1154 static PyObject *meth_wxDataViewCtrl_AppendDateColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1155 {
1156 PyObject *sipParseErr = SIP_NULLPTR;
1157
1158 {
1159 const ::wxString* label;
1160 int labelState = 0;
1161 uint model_column;
1162 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_ACTIVATABLE;
1163 int width = -1;
1164 ::wxAlignment align = wxALIGN_NOT;
1165 int flags = wxDATAVIEW_COL_RESIZABLE;
1166 ::wxDataViewCtrl *sipCpp;
1167
1168 static const char *sipKwdList[] = {
1169 sipName_label,
1170 sipName_model_column,
1171 sipName_mode,
1172 sipName_width,
1173 sipName_align,
1174 sipName_flags,
1175 };
1176
1177 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxString,&label, &labelState, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1178 {
1179 ::wxDataViewColumn*sipRes;
1180
1181 PyErr_Clear();
1182
1183 Py_BEGIN_ALLOW_THREADS
1184 sipRes = sipCpp->AppendDateColumn(*label,model_column,mode,width,align,flags);
1185 Py_END_ALLOW_THREADS
1186 sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1187
1188 if (PyErr_Occurred())
1189 return 0;
1190
1191 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1192 }
1193 }
1194
1195 {
1196 const ::wxBitmap* label;
1197 uint model_column;
1198 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_ACTIVATABLE;
1199 int width = -1;
1200 ::wxAlignment align = wxALIGN_NOT;
1201 int flags = wxDATAVIEW_COL_RESIZABLE;
1202 ::wxDataViewCtrl *sipCpp;
1203
1204 static const char *sipKwdList[] = {
1205 sipName_label,
1206 sipName_model_column,
1207 sipName_mode,
1208 sipName_width,
1209 sipName_align,
1210 sipName_flags,
1211 };
1212
1213 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxBitmap, &label, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1214 {
1215 ::wxDataViewColumn*sipRes;
1216
1217 PyErr_Clear();
1218
1219 Py_BEGIN_ALLOW_THREADS
1220 sipRes = sipCpp->AppendDateColumn(*label,model_column,mode,width,align,flags);
1221 Py_END_ALLOW_THREADS
1222
1223 if (PyErr_Occurred())
1224 return 0;
1225
1226 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1227 }
1228 }
1229
1230 /* Raise an exception if the arguments couldn't be parsed. */
1231 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_AppendDateColumn, SIP_NULLPTR);
1232
1233 return SIP_NULLPTR;
1234 }
1235
1236
1237 PyDoc_STRVAR(doc_wxDataViewCtrl_PrependDateColumn, "PrependDateColumn(label, model_column, mode=DATAVIEW_CELL_ACTIVATABLE, width=-1, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1238 "PrependDateColumn(label, model_column, mode=DATAVIEW_CELL_ACTIVATABLE, width=-1, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1239 "\n"
1240 "Prepends a column for rendering a date.\n"
1241 "");
1242
1243 extern "C" {static PyObject *meth_wxDataViewCtrl_PrependDateColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_PrependDateColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1244 static PyObject *meth_wxDataViewCtrl_PrependDateColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1245 {
1246 PyObject *sipParseErr = SIP_NULLPTR;
1247
1248 {
1249 const ::wxString* label;
1250 int labelState = 0;
1251 uint model_column;
1252 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_ACTIVATABLE;
1253 int width = -1;
1254 ::wxAlignment align = wxALIGN_NOT;
1255 int flags = wxDATAVIEW_COL_RESIZABLE;
1256 ::wxDataViewCtrl *sipCpp;
1257
1258 static const char *sipKwdList[] = {
1259 sipName_label,
1260 sipName_model_column,
1261 sipName_mode,
1262 sipName_width,
1263 sipName_align,
1264 sipName_flags,
1265 };
1266
1267 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxString,&label, &labelState, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1268 {
1269 ::wxDataViewColumn*sipRes;
1270
1271 PyErr_Clear();
1272
1273 Py_BEGIN_ALLOW_THREADS
1274 sipRes = sipCpp->PrependDateColumn(*label,model_column,mode,width,align,flags);
1275 Py_END_ALLOW_THREADS
1276 sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1277
1278 if (PyErr_Occurred())
1279 return 0;
1280
1281 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1282 }
1283 }
1284
1285 {
1286 const ::wxBitmap* label;
1287 uint model_column;
1288 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_ACTIVATABLE;
1289 int width = -1;
1290 ::wxAlignment align = wxALIGN_NOT;
1291 int flags = wxDATAVIEW_COL_RESIZABLE;
1292 ::wxDataViewCtrl *sipCpp;
1293
1294 static const char *sipKwdList[] = {
1295 sipName_label,
1296 sipName_model_column,
1297 sipName_mode,
1298 sipName_width,
1299 sipName_align,
1300 sipName_flags,
1301 };
1302
1303 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxBitmap, &label, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1304 {
1305 ::wxDataViewColumn*sipRes;
1306
1307 PyErr_Clear();
1308
1309 Py_BEGIN_ALLOW_THREADS
1310 sipRes = sipCpp->PrependDateColumn(*label,model_column,mode,width,align,flags);
1311 Py_END_ALLOW_THREADS
1312
1313 if (PyErr_Occurred())
1314 return 0;
1315
1316 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1317 }
1318 }
1319
1320 /* Raise an exception if the arguments couldn't be parsed. */
1321 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_PrependDateColumn, SIP_NULLPTR);
1322
1323 return SIP_NULLPTR;
1324 }
1325
1326
1327 PyDoc_STRVAR(doc_wxDataViewCtrl_AppendIconTextColumn, "AppendIconTextColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=-1, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1328 "AppendIconTextColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=-1, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1329 "\n"
1330 "Appends a column for rendering text with an icon.\n"
1331 "");
1332
1333 extern "C" {static PyObject *meth_wxDataViewCtrl_AppendIconTextColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_AppendIconTextColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1334 static PyObject *meth_wxDataViewCtrl_AppendIconTextColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1335 {
1336 PyObject *sipParseErr = SIP_NULLPTR;
1337
1338 {
1339 const ::wxString* label;
1340 int labelState = 0;
1341 uint model_column;
1342 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1343 int width = -1;
1344 ::wxAlignment align = wxALIGN_NOT;
1345 int flags = wxDATAVIEW_COL_RESIZABLE;
1346 ::wxDataViewCtrl *sipCpp;
1347
1348 static const char *sipKwdList[] = {
1349 sipName_label,
1350 sipName_model_column,
1351 sipName_mode,
1352 sipName_width,
1353 sipName_align,
1354 sipName_flags,
1355 };
1356
1357 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxString,&label, &labelState, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1358 {
1359 ::wxDataViewColumn*sipRes;
1360
1361 PyErr_Clear();
1362
1363 Py_BEGIN_ALLOW_THREADS
1364 sipRes = sipCpp->AppendIconTextColumn(*label,model_column,mode,width,align,flags);
1365 Py_END_ALLOW_THREADS
1366 sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1367
1368 if (PyErr_Occurred())
1369 return 0;
1370
1371 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1372 }
1373 }
1374
1375 {
1376 const ::wxBitmap* label;
1377 uint model_column;
1378 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1379 int width = -1;
1380 ::wxAlignment align = wxALIGN_NOT;
1381 int flags = wxDATAVIEW_COL_RESIZABLE;
1382 ::wxDataViewCtrl *sipCpp;
1383
1384 static const char *sipKwdList[] = {
1385 sipName_label,
1386 sipName_model_column,
1387 sipName_mode,
1388 sipName_width,
1389 sipName_align,
1390 sipName_flags,
1391 };
1392
1393 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxBitmap, &label, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1394 {
1395 ::wxDataViewColumn*sipRes;
1396
1397 PyErr_Clear();
1398
1399 Py_BEGIN_ALLOW_THREADS
1400 sipRes = sipCpp->AppendIconTextColumn(*label,model_column,mode,width,align,flags);
1401 Py_END_ALLOW_THREADS
1402
1403 if (PyErr_Occurred())
1404 return 0;
1405
1406 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1407 }
1408 }
1409
1410 /* Raise an exception if the arguments couldn't be parsed. */
1411 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_AppendIconTextColumn, SIP_NULLPTR);
1412
1413 return SIP_NULLPTR;
1414 }
1415
1416
1417 PyDoc_STRVAR(doc_wxDataViewCtrl_PrependIconTextColumn, "PrependIconTextColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=-1, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1418 "PrependIconTextColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=-1, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1419 "\n"
1420 "Prepends a column for rendering text with an icon.\n"
1421 "");
1422
1423 extern "C" {static PyObject *meth_wxDataViewCtrl_PrependIconTextColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_PrependIconTextColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1424 static PyObject *meth_wxDataViewCtrl_PrependIconTextColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1425 {
1426 PyObject *sipParseErr = SIP_NULLPTR;
1427
1428 {
1429 const ::wxString* label;
1430 int labelState = 0;
1431 uint model_column;
1432 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1433 int width = -1;
1434 ::wxAlignment align = wxALIGN_NOT;
1435 int flags = wxDATAVIEW_COL_RESIZABLE;
1436 ::wxDataViewCtrl *sipCpp;
1437
1438 static const char *sipKwdList[] = {
1439 sipName_label,
1440 sipName_model_column,
1441 sipName_mode,
1442 sipName_width,
1443 sipName_align,
1444 sipName_flags,
1445 };
1446
1447 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxString,&label, &labelState, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1448 {
1449 ::wxDataViewColumn*sipRes;
1450
1451 PyErr_Clear();
1452
1453 Py_BEGIN_ALLOW_THREADS
1454 sipRes = sipCpp->PrependIconTextColumn(*label,model_column,mode,width,align,flags);
1455 Py_END_ALLOW_THREADS
1456 sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1457
1458 if (PyErr_Occurred())
1459 return 0;
1460
1461 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1462 }
1463 }
1464
1465 {
1466 const ::wxBitmap* label;
1467 uint model_column;
1468 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1469 int width = -1;
1470 ::wxAlignment align = wxALIGN_NOT;
1471 int flags = wxDATAVIEW_COL_RESIZABLE;
1472 ::wxDataViewCtrl *sipCpp;
1473
1474 static const char *sipKwdList[] = {
1475 sipName_label,
1476 sipName_model_column,
1477 sipName_mode,
1478 sipName_width,
1479 sipName_align,
1480 sipName_flags,
1481 };
1482
1483 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxBitmap, &label, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1484 {
1485 ::wxDataViewColumn*sipRes;
1486
1487 PyErr_Clear();
1488
1489 Py_BEGIN_ALLOW_THREADS
1490 sipRes = sipCpp->PrependIconTextColumn(*label,model_column,mode,width,align,flags);
1491 Py_END_ALLOW_THREADS
1492
1493 if (PyErr_Occurred())
1494 return 0;
1495
1496 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1497 }
1498 }
1499
1500 /* Raise an exception if the arguments couldn't be parsed. */
1501 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_PrependIconTextColumn, SIP_NULLPTR);
1502
1503 return SIP_NULLPTR;
1504 }
1505
1506
1507 PyDoc_STRVAR(doc_wxDataViewCtrl_AppendProgressColumn, "AppendProgressColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=80, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1508 "AppendProgressColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=80, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1509 "\n"
1510 "Appends a column for rendering a progress indicator.\n"
1511 "");
1512
1513 extern "C" {static PyObject *meth_wxDataViewCtrl_AppendProgressColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_AppendProgressColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1514 static PyObject *meth_wxDataViewCtrl_AppendProgressColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1515 {
1516 PyObject *sipParseErr = SIP_NULLPTR;
1517
1518 {
1519 const ::wxString* label;
1520 int labelState = 0;
1521 uint model_column;
1522 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1523 int width = 80;
1524 ::wxAlignment align = wxALIGN_CENTER;
1525 int flags = wxDATAVIEW_COL_RESIZABLE;
1526 ::wxDataViewCtrl *sipCpp;
1527
1528 static const char *sipKwdList[] = {
1529 sipName_label,
1530 sipName_model_column,
1531 sipName_mode,
1532 sipName_width,
1533 sipName_align,
1534 sipName_flags,
1535 };
1536
1537 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxString,&label, &labelState, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1538 {
1539 ::wxDataViewColumn*sipRes;
1540
1541 PyErr_Clear();
1542
1543 Py_BEGIN_ALLOW_THREADS
1544 sipRes = sipCpp->AppendProgressColumn(*label,model_column,mode,width,align,flags);
1545 Py_END_ALLOW_THREADS
1546 sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1547
1548 if (PyErr_Occurred())
1549 return 0;
1550
1551 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1552 }
1553 }
1554
1555 {
1556 const ::wxBitmap* label;
1557 uint model_column;
1558 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1559 int width = 80;
1560 ::wxAlignment align = wxALIGN_CENTER;
1561 int flags = wxDATAVIEW_COL_RESIZABLE;
1562 ::wxDataViewCtrl *sipCpp;
1563
1564 static const char *sipKwdList[] = {
1565 sipName_label,
1566 sipName_model_column,
1567 sipName_mode,
1568 sipName_width,
1569 sipName_align,
1570 sipName_flags,
1571 };
1572
1573 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxBitmap, &label, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1574 {
1575 ::wxDataViewColumn*sipRes;
1576
1577 PyErr_Clear();
1578
1579 Py_BEGIN_ALLOW_THREADS
1580 sipRes = sipCpp->AppendProgressColumn(*label,model_column,mode,width,align,flags);
1581 Py_END_ALLOW_THREADS
1582
1583 if (PyErr_Occurred())
1584 return 0;
1585
1586 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1587 }
1588 }
1589
1590 /* Raise an exception if the arguments couldn't be parsed. */
1591 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_AppendProgressColumn, SIP_NULLPTR);
1592
1593 return SIP_NULLPTR;
1594 }
1595
1596
1597 PyDoc_STRVAR(doc_wxDataViewCtrl_PrependProgressColumn, "PrependProgressColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=80, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1598 "PrependProgressColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=80, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1599 "\n"
1600 "Prepends a column for rendering a progress indicator.\n"
1601 "");
1602
1603 extern "C" {static PyObject *meth_wxDataViewCtrl_PrependProgressColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_PrependProgressColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1604 static PyObject *meth_wxDataViewCtrl_PrependProgressColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1605 {
1606 PyObject *sipParseErr = SIP_NULLPTR;
1607
1608 {
1609 const ::wxString* label;
1610 int labelState = 0;
1611 uint model_column;
1612 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1613 int width = 80;
1614 ::wxAlignment align = wxALIGN_CENTER;
1615 int flags = wxDATAVIEW_COL_RESIZABLE;
1616 ::wxDataViewCtrl *sipCpp;
1617
1618 static const char *sipKwdList[] = {
1619 sipName_label,
1620 sipName_model_column,
1621 sipName_mode,
1622 sipName_width,
1623 sipName_align,
1624 sipName_flags,
1625 };
1626
1627 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxString,&label, &labelState, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1628 {
1629 ::wxDataViewColumn*sipRes;
1630
1631 PyErr_Clear();
1632
1633 Py_BEGIN_ALLOW_THREADS
1634 sipRes = sipCpp->PrependProgressColumn(*label,model_column,mode,width,align,flags);
1635 Py_END_ALLOW_THREADS
1636 sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1637
1638 if (PyErr_Occurred())
1639 return 0;
1640
1641 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1642 }
1643 }
1644
1645 {
1646 const ::wxBitmap* label;
1647 uint model_column;
1648 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1649 int width = 80;
1650 ::wxAlignment align = wxALIGN_CENTER;
1651 int flags = wxDATAVIEW_COL_RESIZABLE;
1652 ::wxDataViewCtrl *sipCpp;
1653
1654 static const char *sipKwdList[] = {
1655 sipName_label,
1656 sipName_model_column,
1657 sipName_mode,
1658 sipName_width,
1659 sipName_align,
1660 sipName_flags,
1661 };
1662
1663 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxBitmap, &label, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1664 {
1665 ::wxDataViewColumn*sipRes;
1666
1667 PyErr_Clear();
1668
1669 Py_BEGIN_ALLOW_THREADS
1670 sipRes = sipCpp->PrependProgressColumn(*label,model_column,mode,width,align,flags);
1671 Py_END_ALLOW_THREADS
1672
1673 if (PyErr_Occurred())
1674 return 0;
1675
1676 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1677 }
1678 }
1679
1680 /* Raise an exception if the arguments couldn't be parsed. */
1681 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_PrependProgressColumn, SIP_NULLPTR);
1682
1683 return SIP_NULLPTR;
1684 }
1685
1686
1687 PyDoc_STRVAR(doc_wxDataViewCtrl_AppendTextColumn, "AppendTextColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=-1, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1688 "AppendTextColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=-1, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1689 "\n"
1690 "Appends a column for rendering text.\n"
1691 "");
1692
1693 extern "C" {static PyObject *meth_wxDataViewCtrl_AppendTextColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_AppendTextColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1694 static PyObject *meth_wxDataViewCtrl_AppendTextColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1695 {
1696 PyObject *sipParseErr = SIP_NULLPTR;
1697
1698 {
1699 const ::wxString* label;
1700 int labelState = 0;
1701 uint model_column;
1702 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1703 int width = -1;
1704 ::wxAlignment align = wxALIGN_NOT;
1705 int flags = wxDATAVIEW_COL_RESIZABLE;
1706 ::wxDataViewCtrl *sipCpp;
1707
1708 static const char *sipKwdList[] = {
1709 sipName_label,
1710 sipName_model_column,
1711 sipName_mode,
1712 sipName_width,
1713 sipName_align,
1714 sipName_flags,
1715 };
1716
1717 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxString,&label, &labelState, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1718 {
1719 ::wxDataViewColumn*sipRes;
1720
1721 PyErr_Clear();
1722
1723 Py_BEGIN_ALLOW_THREADS
1724 sipRes = sipCpp->AppendTextColumn(*label,model_column,mode,width,align,flags);
1725 Py_END_ALLOW_THREADS
1726 sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1727
1728 if (PyErr_Occurred())
1729 return 0;
1730
1731 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1732 }
1733 }
1734
1735 {
1736 const ::wxBitmap* label;
1737 uint model_column;
1738 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1739 int width = -1;
1740 ::wxAlignment align = wxALIGN_NOT;
1741 int flags = wxDATAVIEW_COL_RESIZABLE;
1742 ::wxDataViewCtrl *sipCpp;
1743
1744 static const char *sipKwdList[] = {
1745 sipName_label,
1746 sipName_model_column,
1747 sipName_mode,
1748 sipName_width,
1749 sipName_align,
1750 sipName_flags,
1751 };
1752
1753 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxBitmap, &label, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1754 {
1755 ::wxDataViewColumn*sipRes;
1756
1757 PyErr_Clear();
1758
1759 Py_BEGIN_ALLOW_THREADS
1760 sipRes = sipCpp->AppendTextColumn(*label,model_column,mode,width,align,flags);
1761 Py_END_ALLOW_THREADS
1762
1763 if (PyErr_Occurred())
1764 return 0;
1765
1766 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1767 }
1768 }
1769
1770 /* Raise an exception if the arguments couldn't be parsed. */
1771 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_AppendTextColumn, SIP_NULLPTR);
1772
1773 return SIP_NULLPTR;
1774 }
1775
1776
1777 PyDoc_STRVAR(doc_wxDataViewCtrl_PrependTextColumn, "PrependTextColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=-1, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1778 "PrependTextColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=-1, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1779 "\n"
1780 "Prepends a column for rendering text.\n"
1781 "");
1782
1783 extern "C" {static PyObject *meth_wxDataViewCtrl_PrependTextColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_PrependTextColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1784 static PyObject *meth_wxDataViewCtrl_PrependTextColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1785 {
1786 PyObject *sipParseErr = SIP_NULLPTR;
1787
1788 {
1789 const ::wxString* label;
1790 int labelState = 0;
1791 uint model_column;
1792 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1793 int width = -1;
1794 ::wxAlignment align = wxALIGN_NOT;
1795 int flags = wxDATAVIEW_COL_RESIZABLE;
1796 ::wxDataViewCtrl *sipCpp;
1797
1798 static const char *sipKwdList[] = {
1799 sipName_label,
1800 sipName_model_column,
1801 sipName_mode,
1802 sipName_width,
1803 sipName_align,
1804 sipName_flags,
1805 };
1806
1807 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxString,&label, &labelState, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1808 {
1809 ::wxDataViewColumn*sipRes;
1810
1811 PyErr_Clear();
1812
1813 Py_BEGIN_ALLOW_THREADS
1814 sipRes = sipCpp->PrependTextColumn(*label,model_column,mode,width,align,flags);
1815 Py_END_ALLOW_THREADS
1816 sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1817
1818 if (PyErr_Occurred())
1819 return 0;
1820
1821 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1822 }
1823 }
1824
1825 {
1826 const ::wxBitmap* label;
1827 uint model_column;
1828 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1829 int width = -1;
1830 ::wxAlignment align = wxALIGN_NOT;
1831 int flags = wxDATAVIEW_COL_RESIZABLE;
1832 ::wxDataViewCtrl *sipCpp;
1833
1834 static const char *sipKwdList[] = {
1835 sipName_label,
1836 sipName_model_column,
1837 sipName_mode,
1838 sipName_width,
1839 sipName_align,
1840 sipName_flags,
1841 };
1842
1843 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxBitmap, &label, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1844 {
1845 ::wxDataViewColumn*sipRes;
1846
1847 PyErr_Clear();
1848
1849 Py_BEGIN_ALLOW_THREADS
1850 sipRes = sipCpp->PrependTextColumn(*label,model_column,mode,width,align,flags);
1851 Py_END_ALLOW_THREADS
1852
1853 if (PyErr_Occurred())
1854 return 0;
1855
1856 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1857 }
1858 }
1859
1860 /* Raise an exception if the arguments couldn't be parsed. */
1861 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_PrependTextColumn, SIP_NULLPTR);
1862
1863 return SIP_NULLPTR;
1864 }
1865
1866
1867 PyDoc_STRVAR(doc_wxDataViewCtrl_AppendToggleColumn, "AppendToggleColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=30, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1868 "AppendToggleColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=30, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1869 "\n"
1870 "Appends a column for rendering a toggle.\n"
1871 "");
1872
1873 extern "C" {static PyObject *meth_wxDataViewCtrl_AppendToggleColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_AppendToggleColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1874 static PyObject *meth_wxDataViewCtrl_AppendToggleColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1875 {
1876 PyObject *sipParseErr = SIP_NULLPTR;
1877
1878 {
1879 const ::wxString* label;
1880 int labelState = 0;
1881 uint model_column;
1882 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1883 int width = 30;
1884 ::wxAlignment align = wxALIGN_CENTER;
1885 int flags = wxDATAVIEW_COL_RESIZABLE;
1886 ::wxDataViewCtrl *sipCpp;
1887
1888 static const char *sipKwdList[] = {
1889 sipName_label,
1890 sipName_model_column,
1891 sipName_mode,
1892 sipName_width,
1893 sipName_align,
1894 sipName_flags,
1895 };
1896
1897 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxString,&label, &labelState, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1898 {
1899 ::wxDataViewColumn*sipRes;
1900
1901 PyErr_Clear();
1902
1903 Py_BEGIN_ALLOW_THREADS
1904 sipRes = sipCpp->AppendToggleColumn(*label,model_column,mode,width,align,flags);
1905 Py_END_ALLOW_THREADS
1906 sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1907
1908 if (PyErr_Occurred())
1909 return 0;
1910
1911 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1912 }
1913 }
1914
1915 {
1916 const ::wxBitmap* label;
1917 uint model_column;
1918 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1919 int width = 30;
1920 ::wxAlignment align = wxALIGN_CENTER;
1921 int flags = wxDATAVIEW_COL_RESIZABLE;
1922 ::wxDataViewCtrl *sipCpp;
1923
1924 static const char *sipKwdList[] = {
1925 sipName_label,
1926 sipName_model_column,
1927 sipName_mode,
1928 sipName_width,
1929 sipName_align,
1930 sipName_flags,
1931 };
1932
1933 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxBitmap, &label, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1934 {
1935 ::wxDataViewColumn*sipRes;
1936
1937 PyErr_Clear();
1938
1939 Py_BEGIN_ALLOW_THREADS
1940 sipRes = sipCpp->AppendToggleColumn(*label,model_column,mode,width,align,flags);
1941 Py_END_ALLOW_THREADS
1942
1943 if (PyErr_Occurred())
1944 return 0;
1945
1946 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
1947 }
1948 }
1949
1950 /* Raise an exception if the arguments couldn't be parsed. */
1951 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_AppendToggleColumn, SIP_NULLPTR);
1952
1953 return SIP_NULLPTR;
1954 }
1955
1956
1957 PyDoc_STRVAR(doc_wxDataViewCtrl_PrependToggleColumn, "PrependToggleColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=30, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1958 "PrependToggleColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=30, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn\n"
1959 "\n"
1960 "Prepends a column for rendering a toggle.\n"
1961 "");
1962
1963 extern "C" {static PyObject *meth_wxDataViewCtrl_PrependToggleColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_PrependToggleColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1964 static PyObject *meth_wxDataViewCtrl_PrependToggleColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1965 {
1966 PyObject *sipParseErr = SIP_NULLPTR;
1967
1968 {
1969 const ::wxString* label;
1970 int labelState = 0;
1971 uint model_column;
1972 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
1973 int width = 30;
1974 ::wxAlignment align = wxALIGN_CENTER;
1975 int flags = wxDATAVIEW_COL_RESIZABLE;
1976 ::wxDataViewCtrl *sipCpp;
1977
1978 static const char *sipKwdList[] = {
1979 sipName_label,
1980 sipName_model_column,
1981 sipName_mode,
1982 sipName_width,
1983 sipName_align,
1984 sipName_flags,
1985 };
1986
1987 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxString,&label, &labelState, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
1988 {
1989 ::wxDataViewColumn*sipRes;
1990
1991 PyErr_Clear();
1992
1993 Py_BEGIN_ALLOW_THREADS
1994 sipRes = sipCpp->PrependToggleColumn(*label,model_column,mode,width,align,flags);
1995 Py_END_ALLOW_THREADS
1996 sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1997
1998 if (PyErr_Occurred())
1999 return 0;
2000
2001 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
2002 }
2003 }
2004
2005 {
2006 const ::wxBitmap* label;
2007 uint model_column;
2008 ::wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT;
2009 int width = 30;
2010 ::wxAlignment align = wxALIGN_CENTER;
2011 int flags = wxDATAVIEW_COL_RESIZABLE;
2012 ::wxDataViewCtrl *sipCpp;
2013
2014 static const char *sipKwdList[] = {
2015 sipName_label,
2016 sipName_model_column,
2017 sipName_mode,
2018 sipName_width,
2019 sipName_align,
2020 sipName_flags,
2021 };
2022
2023 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9u|EiEi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxBitmap, &label, &model_column, sipType_wxDataViewCellMode, &mode, &width, sipType_wxAlignment, &align, &flags))
2024 {
2025 ::wxDataViewColumn*sipRes;
2026
2027 PyErr_Clear();
2028
2029 Py_BEGIN_ALLOW_THREADS
2030 sipRes = sipCpp->PrependToggleColumn(*label,model_column,mode,width,align,flags);
2031 Py_END_ALLOW_THREADS
2032
2033 if (PyErr_Occurred())
2034 return 0;
2035
2036 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
2037 }
2038 }
2039
2040 /* Raise an exception if the arguments couldn't be parsed. */
2041 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_PrependToggleColumn, SIP_NULLPTR);
2042
2043 return SIP_NULLPTR;
2044 }
2045
2046
2047 PyDoc_STRVAR(doc_wxDataViewCtrl_Create, "Create(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, validator=wx.DefaultValidator, name=DataViewCtrlNameStr) -> bool\n"
2048 "\n"
2049 "Create the control.");
2050
2051 extern "C" {static PyObject *meth_wxDataViewCtrl_Create(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_Create(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2052 static PyObject *meth_wxDataViewCtrl_Create(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2053 {
2054 PyObject *sipParseErr = SIP_NULLPTR;
2055
2056 {
2057 ::wxWindow* parent;
2058 ::wxWindowID id = wxID_ANY;
2059 const ::wxPoint& posdef = wxDefaultPosition;
2060 const ::wxPoint* pos = &posdef;
2061 int posState = 0;
2062 const ::wxSize& sizedef = wxDefaultSize;
2063 const ::wxSize* size = &sizedef;
2064 int sizeState = 0;
2065 long style = 0;
2066 const ::wxValidator& validatordef = wxDefaultValidator;
2067 const ::wxValidator* validator = &validatordef;
2068 const ::wxString& namedef = wxDataViewCtrlNameStr;
2069 const ::wxString* name = &namedef;
2070 int nameState = 0;
2071 sipWrapper *sipOwner = SIP_NULLPTR;
2072 ::wxDataViewCtrl *sipCpp;
2073
2074 static const char *sipKwdList[] = {
2075 sipName_parent,
2076 sipName_id,
2077 sipName_pos,
2078 sipName_size,
2079 sipName_style,
2080 sipName_validator,
2081 sipName_name,
2082 };
2083
2084 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJH|iJ1J1lJ9J1", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxWindow, &parent, &sipOwner, &id, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style, sipType_wxValidator, &validator, sipType_wxString,&name, &nameState))
2085 {
2086 bool sipRes;
2087
2088 PyErr_Clear();
2089
2090 Py_BEGIN_ALLOW_THREADS
2091 sipRes = sipCpp->Create(parent,id,*pos,*size,style,*validator,*name);
2092 Py_END_ALLOW_THREADS
2093
2094 if (sipOwner)
2095 sipTransferTo(sipSelf, (PyObject *)sipOwner);
2096 else
2097 sipTransferBack(sipSelf);
2098 sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState);
2099 sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState);
2100 sipReleaseType(const_cast< ::wxString *>(name),sipType_wxString,nameState);
2101
2102 if (PyErr_Occurred())
2103 return 0;
2104
2105 return PyBool_FromLong(sipRes);
2106 }
2107 }
2108
2109 /* Raise an exception if the arguments couldn't be parsed. */
2110 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_Create, SIP_NULLPTR);
2111
2112 return SIP_NULLPTR;
2113 }
2114
2115
2116 PyDoc_STRVAR(doc_wxDataViewCtrl_AppendColumn, "AppendColumn(col) -> bool\n"
2117 "\n"
2118 "Appends a wxDataViewColumn to the control.");
2119
2120 extern "C" {static PyObject *meth_wxDataViewCtrl_AppendColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_AppendColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2121 static PyObject *meth_wxDataViewCtrl_AppendColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2122 {
2123 PyObject *sipParseErr = SIP_NULLPTR;
2124
2125 {
2126 ::wxDataViewColumn* col;
2127 ::wxDataViewCtrl *sipCpp;
2128
2129 static const char *sipKwdList[] = {
2130 sipName_col,
2131 };
2132
2133 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ:", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewColumn, &col))
2134 {
2135 bool sipRes;
2136
2137 PyErr_Clear();
2138
2139 Py_BEGIN_ALLOW_THREADS
2140 sipRes = sipCpp->AppendColumn(col);
2141 Py_END_ALLOW_THREADS
2142
2143 if (PyErr_Occurred())
2144 return 0;
2145
2146 return PyBool_FromLong(sipRes);
2147 }
2148 }
2149
2150 /* Raise an exception if the arguments couldn't be parsed. */
2151 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_AppendColumn, SIP_NULLPTR);
2152
2153 return SIP_NULLPTR;
2154 }
2155
2156
2157 PyDoc_STRVAR(doc_wxDataViewCtrl_PrependColumn, "PrependColumn(col) -> bool\n"
2158 "\n"
2159 "Prepends a wxDataViewColumn to the control.");
2160
2161 extern "C" {static PyObject *meth_wxDataViewCtrl_PrependColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_PrependColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2162 static PyObject *meth_wxDataViewCtrl_PrependColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2163 {
2164 PyObject *sipParseErr = SIP_NULLPTR;
2165
2166 {
2167 ::wxDataViewColumn* col;
2168 ::wxDataViewCtrl *sipCpp;
2169
2170 static const char *sipKwdList[] = {
2171 sipName_col,
2172 };
2173
2174 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ:", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewColumn, &col))
2175 {
2176 bool sipRes;
2177
2178 PyErr_Clear();
2179
2180 Py_BEGIN_ALLOW_THREADS
2181 sipRes = sipCpp->PrependColumn(col);
2182 Py_END_ALLOW_THREADS
2183
2184 if (PyErr_Occurred())
2185 return 0;
2186
2187 return PyBool_FromLong(sipRes);
2188 }
2189 }
2190
2191 /* Raise an exception if the arguments couldn't be parsed. */
2192 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_PrependColumn, SIP_NULLPTR);
2193
2194 return SIP_NULLPTR;
2195 }
2196
2197
2198 PyDoc_STRVAR(doc_wxDataViewCtrl_InsertColumn, "InsertColumn(pos, col) -> bool\n"
2199 "\n"
2200 "Inserts a wxDataViewColumn to the control.");
2201
2202 extern "C" {static PyObject *meth_wxDataViewCtrl_InsertColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_InsertColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2203 static PyObject *meth_wxDataViewCtrl_InsertColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2204 {
2205 PyObject *sipParseErr = SIP_NULLPTR;
2206
2207 {
2208 uint pos;
2209 ::wxDataViewColumn* col;
2210 ::wxDataViewCtrl *sipCpp;
2211
2212 static const char *sipKwdList[] = {
2213 sipName_pos,
2214 sipName_col,
2215 };
2216
2217 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BuJ:", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, &pos, sipType_wxDataViewColumn, &col))
2218 {
2219 bool sipRes;
2220
2221 PyErr_Clear();
2222
2223 Py_BEGIN_ALLOW_THREADS
2224 sipRes = sipCpp->InsertColumn(pos,col);
2225 Py_END_ALLOW_THREADS
2226
2227 if (PyErr_Occurred())
2228 return 0;
2229
2230 return PyBool_FromLong(sipRes);
2231 }
2232 }
2233
2234 /* Raise an exception if the arguments couldn't be parsed. */
2235 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_InsertColumn, SIP_NULLPTR);
2236
2237 return SIP_NULLPTR;
2238 }
2239
2240
2241 PyDoc_STRVAR(doc_wxDataViewCtrl__AssociateModel, "_AssociateModel(model) -> bool\n"
2242 "\n"
2243 "Associates a wxDataViewModel with the control.");
2244
2245 extern "C" {static PyObject *meth_wxDataViewCtrl__AssociateModel(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl__AssociateModel(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2246 static PyObject *meth_wxDataViewCtrl__AssociateModel(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2247 {
2248 PyObject *sipParseErr = SIP_NULLPTR;
2249
2250 {
2251 ::wxDataViewModel* model;
2252 ::wxDataViewCtrl *sipCpp;
2253
2254 static const char *sipKwdList[] = {
2255 sipName_model,
2256 };
2257
2258 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ:", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewModel, &model))
2259 {
2260 bool sipRes;
2261
2262 PyErr_Clear();
2263
2264 Py_BEGIN_ALLOW_THREADS
2265 sipRes = sipCpp->AssociateModel(model);
2266 Py_END_ALLOW_THREADS
2267
2268 if (PyErr_Occurred())
2269 return 0;
2270
2271 return PyBool_FromLong(sipRes);
2272 }
2273 }
2274
2275 /* Raise an exception if the arguments couldn't be parsed. */
2276 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName__AssociateModel, SIP_NULLPTR);
2277
2278 return SIP_NULLPTR;
2279 }
2280
2281
2282 PyDoc_STRVAR(doc_wxDataViewCtrl_ClearColumns, "ClearColumns() -> bool\n"
2283 "\n"
2284 "Removes all columns.");
2285
2286 extern "C" {static PyObject *meth_wxDataViewCtrl_ClearColumns(PyObject *, PyObject *);}
meth_wxDataViewCtrl_ClearColumns(PyObject * sipSelf,PyObject * sipArgs)2287 static PyObject *meth_wxDataViewCtrl_ClearColumns(PyObject *sipSelf, PyObject *sipArgs)
2288 {
2289 PyObject *sipParseErr = SIP_NULLPTR;
2290
2291 {
2292 ::wxDataViewCtrl *sipCpp;
2293
2294 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
2295 {
2296 bool sipRes;
2297
2298 PyErr_Clear();
2299
2300 Py_BEGIN_ALLOW_THREADS
2301 sipRes = sipCpp->ClearColumns();
2302 Py_END_ALLOW_THREADS
2303
2304 if (PyErr_Occurred())
2305 return 0;
2306
2307 return PyBool_FromLong(sipRes);
2308 }
2309 }
2310
2311 /* Raise an exception if the arguments couldn't be parsed. */
2312 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_ClearColumns, SIP_NULLPTR);
2313
2314 return SIP_NULLPTR;
2315 }
2316
2317
2318 PyDoc_STRVAR(doc_wxDataViewCtrl_Collapse, "Collapse(item)\n"
2319 "\n"
2320 "Collapses the item.");
2321
2322 extern "C" {static PyObject *meth_wxDataViewCtrl_Collapse(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_Collapse(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2323 static PyObject *meth_wxDataViewCtrl_Collapse(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2324 {
2325 PyObject *sipParseErr = SIP_NULLPTR;
2326
2327 {
2328 const ::wxDataViewItem* item;
2329 ::wxDataViewCtrl *sipCpp;
2330
2331 static const char *sipKwdList[] = {
2332 sipName_item,
2333 };
2334
2335 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewItem, &item))
2336 {
2337 PyErr_Clear();
2338
2339 Py_BEGIN_ALLOW_THREADS
2340 sipCpp->Collapse(*item);
2341 Py_END_ALLOW_THREADS
2342
2343 if (PyErr_Occurred())
2344 return 0;
2345
2346 Py_INCREF(Py_None);
2347 return Py_None;
2348 }
2349 }
2350
2351 /* Raise an exception if the arguments couldn't be parsed. */
2352 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_Collapse, SIP_NULLPTR);
2353
2354 return SIP_NULLPTR;
2355 }
2356
2357
2358 PyDoc_STRVAR(doc_wxDataViewCtrl_DeleteColumn, "DeleteColumn(column) -> bool\n"
2359 "\n"
2360 "Deletes given column.");
2361
2362 extern "C" {static PyObject *meth_wxDataViewCtrl_DeleteColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_DeleteColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2363 static PyObject *meth_wxDataViewCtrl_DeleteColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2364 {
2365 PyObject *sipParseErr = SIP_NULLPTR;
2366
2367 {
2368 ::wxDataViewColumn* column;
2369 ::wxDataViewCtrl *sipCpp;
2370
2371 static const char *sipKwdList[] = {
2372 sipName_column,
2373 };
2374
2375 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewColumn, &column))
2376 {
2377 bool sipRes;
2378
2379 PyErr_Clear();
2380
2381 Py_BEGIN_ALLOW_THREADS
2382 sipRes = sipCpp->DeleteColumn(column);
2383 Py_END_ALLOW_THREADS
2384
2385 if (PyErr_Occurred())
2386 return 0;
2387
2388 return PyBool_FromLong(sipRes);
2389 }
2390 }
2391
2392 /* Raise an exception if the arguments couldn't be parsed. */
2393 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_DeleteColumn, SIP_NULLPTR);
2394
2395 return SIP_NULLPTR;
2396 }
2397
2398
2399 PyDoc_STRVAR(doc_wxDataViewCtrl_EditItem, "EditItem(item, column)\n"
2400 "\n"
2401 "Programmatically starts editing given cell of item.");
2402
2403 extern "C" {static PyObject *meth_wxDataViewCtrl_EditItem(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_EditItem(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2404 static PyObject *meth_wxDataViewCtrl_EditItem(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2405 {
2406 PyObject *sipParseErr = SIP_NULLPTR;
2407
2408 {
2409 const ::wxDataViewItem* item;
2410 const ::wxDataViewColumn* column;
2411 ::wxDataViewCtrl *sipCpp;
2412
2413 static const char *sipKwdList[] = {
2414 sipName_item,
2415 sipName_column,
2416 };
2417
2418 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9J8", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewItem, &item, sipType_wxDataViewColumn, &column))
2419 {
2420 PyErr_Clear();
2421
2422 Py_BEGIN_ALLOW_THREADS
2423 sipCpp->EditItem(*item,column);
2424 Py_END_ALLOW_THREADS
2425
2426 if (PyErr_Occurred())
2427 return 0;
2428
2429 Py_INCREF(Py_None);
2430 return Py_None;
2431 }
2432 }
2433
2434 /* Raise an exception if the arguments couldn't be parsed. */
2435 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_EditItem, SIP_NULLPTR);
2436
2437 return SIP_NULLPTR;
2438 }
2439
2440
2441 PyDoc_STRVAR(doc_wxDataViewCtrl_EnableDragSource, "EnableDragSource(format) -> bool\n"
2442 "\n"
2443 "Enable drag operations using the given format.");
2444
2445 extern "C" {static PyObject *meth_wxDataViewCtrl_EnableDragSource(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_EnableDragSource(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2446 static PyObject *meth_wxDataViewCtrl_EnableDragSource(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2447 {
2448 PyObject *sipParseErr = SIP_NULLPTR;
2449
2450 {
2451 const ::wxDataFormat* format;
2452 ::wxDataViewCtrl *sipCpp;
2453
2454 static const char *sipKwdList[] = {
2455 sipName_format,
2456 };
2457
2458 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataFormat, &format))
2459 {
2460 bool sipRes;
2461
2462 PyErr_Clear();
2463
2464 Py_BEGIN_ALLOW_THREADS
2465 sipRes = sipCpp->EnableDragSource(*format);
2466 Py_END_ALLOW_THREADS
2467
2468 if (PyErr_Occurred())
2469 return 0;
2470
2471 return PyBool_FromLong(sipRes);
2472 }
2473 }
2474
2475 /* Raise an exception if the arguments couldn't be parsed. */
2476 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_EnableDragSource, SIP_NULLPTR);
2477
2478 return SIP_NULLPTR;
2479 }
2480
2481
2482 PyDoc_STRVAR(doc_wxDataViewCtrl_EnableDropTarget, "EnableDropTarget(format) -> bool\n"
2483 "\n"
2484 "Enable drop operations using the given format.");
2485
2486 extern "C" {static PyObject *meth_wxDataViewCtrl_EnableDropTarget(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_EnableDropTarget(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2487 static PyObject *meth_wxDataViewCtrl_EnableDropTarget(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2488 {
2489 PyObject *sipParseErr = SIP_NULLPTR;
2490
2491 {
2492 const ::wxDataFormat* format;
2493 ::wxDataViewCtrl *sipCpp;
2494
2495 static const char *sipKwdList[] = {
2496 sipName_format,
2497 };
2498
2499 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataFormat, &format))
2500 {
2501 bool sipRes;
2502
2503 PyErr_Clear();
2504
2505 Py_BEGIN_ALLOW_THREADS
2506 sipRes = sipCpp->EnableDropTarget(*format);
2507 Py_END_ALLOW_THREADS
2508
2509 if (PyErr_Occurred())
2510 return 0;
2511
2512 return PyBool_FromLong(sipRes);
2513 }
2514 }
2515
2516 /* Raise an exception if the arguments couldn't be parsed. */
2517 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_EnableDropTarget, SIP_NULLPTR);
2518
2519 return SIP_NULLPTR;
2520 }
2521
2522
2523 PyDoc_STRVAR(doc_wxDataViewCtrl_EnsureVisible, "EnsureVisible(item, column=None)\n"
2524 "\n"
2525 "Call this to ensure that the given item is visible.");
2526
2527 extern "C" {static PyObject *meth_wxDataViewCtrl_EnsureVisible(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_EnsureVisible(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2528 static PyObject *meth_wxDataViewCtrl_EnsureVisible(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2529 {
2530 PyObject *sipParseErr = SIP_NULLPTR;
2531
2532 {
2533 const ::wxDataViewItem* item;
2534 const ::wxDataViewColumn* column = 0;
2535 ::wxDataViewCtrl *sipCpp;
2536
2537 static const char *sipKwdList[] = {
2538 sipName_item,
2539 sipName_column,
2540 };
2541
2542 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9|J8", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewItem, &item, sipType_wxDataViewColumn, &column))
2543 {
2544 PyErr_Clear();
2545
2546 Py_BEGIN_ALLOW_THREADS
2547 sipCpp->EnsureVisible(*item,column);
2548 Py_END_ALLOW_THREADS
2549
2550 if (PyErr_Occurred())
2551 return 0;
2552
2553 Py_INCREF(Py_None);
2554 return Py_None;
2555 }
2556 }
2557
2558 /* Raise an exception if the arguments couldn't be parsed. */
2559 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_EnsureVisible, SIP_NULLPTR);
2560
2561 return SIP_NULLPTR;
2562 }
2563
2564
2565 PyDoc_STRVAR(doc_wxDataViewCtrl_Expand, "Expand(item)\n"
2566 "\n"
2567 "Expands the item.");
2568
2569 extern "C" {static PyObject *meth_wxDataViewCtrl_Expand(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_Expand(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2570 static PyObject *meth_wxDataViewCtrl_Expand(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2571 {
2572 PyObject *sipParseErr = SIP_NULLPTR;
2573
2574 {
2575 const ::wxDataViewItem* item;
2576 ::wxDataViewCtrl *sipCpp;
2577
2578 static const char *sipKwdList[] = {
2579 sipName_item,
2580 };
2581
2582 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewItem, &item))
2583 {
2584 PyErr_Clear();
2585
2586 Py_BEGIN_ALLOW_THREADS
2587 sipCpp->Expand(*item);
2588 Py_END_ALLOW_THREADS
2589
2590 if (PyErr_Occurred())
2591 return 0;
2592
2593 Py_INCREF(Py_None);
2594 return Py_None;
2595 }
2596 }
2597
2598 /* Raise an exception if the arguments couldn't be parsed. */
2599 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_Expand, SIP_NULLPTR);
2600
2601 return SIP_NULLPTR;
2602 }
2603
2604
2605 PyDoc_STRVAR(doc_wxDataViewCtrl_ExpandAncestors, "ExpandAncestors(item)\n"
2606 "\n"
2607 "Expands all ancestors of the item.");
2608
2609 extern "C" {static PyObject *meth_wxDataViewCtrl_ExpandAncestors(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_ExpandAncestors(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2610 static PyObject *meth_wxDataViewCtrl_ExpandAncestors(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2611 {
2612 PyObject *sipParseErr = SIP_NULLPTR;
2613
2614 {
2615 const ::wxDataViewItem* item;
2616 ::wxDataViewCtrl *sipCpp;
2617
2618 static const char *sipKwdList[] = {
2619 sipName_item,
2620 };
2621
2622 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewItem, &item))
2623 {
2624 PyErr_Clear();
2625
2626 Py_BEGIN_ALLOW_THREADS
2627 sipCpp->ExpandAncestors(*item);
2628 Py_END_ALLOW_THREADS
2629
2630 if (PyErr_Occurred())
2631 return 0;
2632
2633 Py_INCREF(Py_None);
2634 return Py_None;
2635 }
2636 }
2637
2638 /* Raise an exception if the arguments couldn't be parsed. */
2639 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_ExpandAncestors, SIP_NULLPTR);
2640
2641 return SIP_NULLPTR;
2642 }
2643
2644
2645 PyDoc_STRVAR(doc_wxDataViewCtrl_GetColumn, "GetColumn(pos) -> DataViewColumn\n"
2646 "\n"
2647 "Returns pointer to the column.");
2648
2649 extern "C" {static PyObject *meth_wxDataViewCtrl_GetColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2650 static PyObject *meth_wxDataViewCtrl_GetColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2651 {
2652 PyObject *sipParseErr = SIP_NULLPTR;
2653
2654 {
2655 uint pos;
2656 const ::wxDataViewCtrl *sipCpp;
2657
2658 static const char *sipKwdList[] = {
2659 sipName_pos,
2660 };
2661
2662 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bu", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, &pos))
2663 {
2664 ::wxDataViewColumn*sipRes;
2665
2666 PyErr_Clear();
2667
2668 Py_BEGIN_ALLOW_THREADS
2669 sipRes = sipCpp->GetColumn(pos);
2670 Py_END_ALLOW_THREADS
2671
2672 if (PyErr_Occurred())
2673 return 0;
2674
2675 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
2676 }
2677 }
2678
2679 /* Raise an exception if the arguments couldn't be parsed. */
2680 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetColumn, SIP_NULLPTR);
2681
2682 return SIP_NULLPTR;
2683 }
2684
2685
2686 PyDoc_STRVAR(doc_wxDataViewCtrl_GetColumnCount, "GetColumnCount() -> unsignedint\n"
2687 "\n"
2688 "Returns the number of columns.");
2689
2690 extern "C" {static PyObject *meth_wxDataViewCtrl_GetColumnCount(PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetColumnCount(PyObject * sipSelf,PyObject * sipArgs)2691 static PyObject *meth_wxDataViewCtrl_GetColumnCount(PyObject *sipSelf, PyObject *sipArgs)
2692 {
2693 PyObject *sipParseErr = SIP_NULLPTR;
2694
2695 {
2696 const ::wxDataViewCtrl *sipCpp;
2697
2698 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
2699 {
2700 uint sipRes;
2701
2702 PyErr_Clear();
2703
2704 Py_BEGIN_ALLOW_THREADS
2705 sipRes = sipCpp->GetColumnCount();
2706 Py_END_ALLOW_THREADS
2707
2708 if (PyErr_Occurred())
2709 return 0;
2710
2711 return PyLong_FromUnsignedLong(sipRes);
2712 }
2713 }
2714
2715 /* Raise an exception if the arguments couldn't be parsed. */
2716 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetColumnCount, SIP_NULLPTR);
2717
2718 return SIP_NULLPTR;
2719 }
2720
2721
2722 PyDoc_STRVAR(doc_wxDataViewCtrl_GetColumnPosition, "GetColumnPosition(column) -> int\n"
2723 "\n"
2724 "Returns the position of the column or -1 if not found in the control.");
2725
2726 extern "C" {static PyObject *meth_wxDataViewCtrl_GetColumnPosition(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetColumnPosition(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2727 static PyObject *meth_wxDataViewCtrl_GetColumnPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2728 {
2729 PyObject *sipParseErr = SIP_NULLPTR;
2730
2731 {
2732 const ::wxDataViewColumn* column;
2733 const ::wxDataViewCtrl *sipCpp;
2734
2735 static const char *sipKwdList[] = {
2736 sipName_column,
2737 };
2738
2739 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewColumn, &column))
2740 {
2741 int sipRes;
2742
2743 PyErr_Clear();
2744
2745 Py_BEGIN_ALLOW_THREADS
2746 sipRes = sipCpp->GetColumnPosition(column);
2747 Py_END_ALLOW_THREADS
2748
2749 if (PyErr_Occurred())
2750 return 0;
2751
2752 return SIPLong_FromLong(sipRes);
2753 }
2754 }
2755
2756 /* Raise an exception if the arguments couldn't be parsed. */
2757 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetColumnPosition, SIP_NULLPTR);
2758
2759 return SIP_NULLPTR;
2760 }
2761
2762
2763 PyDoc_STRVAR(doc_wxDataViewCtrl_GetExpanderColumn, "GetExpanderColumn() -> DataViewColumn\n"
2764 "\n"
2765 "Returns column containing the expanders.");
2766
2767 extern "C" {static PyObject *meth_wxDataViewCtrl_GetExpanderColumn(PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetExpanderColumn(PyObject * sipSelf,PyObject * sipArgs)2768 static PyObject *meth_wxDataViewCtrl_GetExpanderColumn(PyObject *sipSelf, PyObject *sipArgs)
2769 {
2770 PyObject *sipParseErr = SIP_NULLPTR;
2771
2772 {
2773 const ::wxDataViewCtrl *sipCpp;
2774
2775 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
2776 {
2777 ::wxDataViewColumn*sipRes;
2778
2779 PyErr_Clear();
2780
2781 Py_BEGIN_ALLOW_THREADS
2782 sipRes = sipCpp->GetExpanderColumn();
2783 Py_END_ALLOW_THREADS
2784
2785 if (PyErr_Occurred())
2786 return 0;
2787
2788 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
2789 }
2790 }
2791
2792 /* Raise an exception if the arguments couldn't be parsed. */
2793 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetExpanderColumn, SIP_NULLPTR);
2794
2795 return SIP_NULLPTR;
2796 }
2797
2798
2799 PyDoc_STRVAR(doc_wxDataViewCtrl_GetCurrentItem, "GetCurrentItem() -> DataViewItem\n"
2800 "\n"
2801 "Returns the currently focused item.");
2802
2803 extern "C" {static PyObject *meth_wxDataViewCtrl_GetCurrentItem(PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetCurrentItem(PyObject * sipSelf,PyObject * sipArgs)2804 static PyObject *meth_wxDataViewCtrl_GetCurrentItem(PyObject *sipSelf, PyObject *sipArgs)
2805 {
2806 PyObject *sipParseErr = SIP_NULLPTR;
2807
2808 {
2809 const ::wxDataViewCtrl *sipCpp;
2810
2811 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
2812 {
2813 ::wxDataViewItem*sipRes;
2814
2815 PyErr_Clear();
2816
2817 Py_BEGIN_ALLOW_THREADS
2818 sipRes = new ::wxDataViewItem(sipCpp->GetCurrentItem());
2819 Py_END_ALLOW_THREADS
2820
2821 if (PyErr_Occurred())
2822 return 0;
2823
2824 return sipConvertFromNewType(sipRes,sipType_wxDataViewItem,SIP_NULLPTR);
2825 }
2826 }
2827
2828 /* Raise an exception if the arguments couldn't be parsed. */
2829 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetCurrentItem, SIP_NULLPTR);
2830
2831 return SIP_NULLPTR;
2832 }
2833
2834
2835 PyDoc_STRVAR(doc_wxDataViewCtrl_GetCurrentColumn, "GetCurrentColumn() -> DataViewColumn\n"
2836 "\n"
2837 "Returns the column that currently has focus.");
2838
2839 extern "C" {static PyObject *meth_wxDataViewCtrl_GetCurrentColumn(PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetCurrentColumn(PyObject * sipSelf,PyObject * sipArgs)2840 static PyObject *meth_wxDataViewCtrl_GetCurrentColumn(PyObject *sipSelf, PyObject *sipArgs)
2841 {
2842 PyObject *sipParseErr = SIP_NULLPTR;
2843
2844 {
2845 const ::wxDataViewCtrl *sipCpp;
2846
2847 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
2848 {
2849 ::wxDataViewColumn*sipRes;
2850
2851 PyErr_Clear();
2852
2853 Py_BEGIN_ALLOW_THREADS
2854 sipRes = sipCpp->GetCurrentColumn();
2855 Py_END_ALLOW_THREADS
2856
2857 if (PyErr_Occurred())
2858 return 0;
2859
2860 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
2861 }
2862 }
2863
2864 /* Raise an exception if the arguments couldn't be parsed. */
2865 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetCurrentColumn, SIP_NULLPTR);
2866
2867 return SIP_NULLPTR;
2868 }
2869
2870
2871 PyDoc_STRVAR(doc_wxDataViewCtrl_GetIndent, "GetIndent() -> int\n"
2872 "\n"
2873 "Returns indentation.");
2874
2875 extern "C" {static PyObject *meth_wxDataViewCtrl_GetIndent(PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetIndent(PyObject * sipSelf,PyObject * sipArgs)2876 static PyObject *meth_wxDataViewCtrl_GetIndent(PyObject *sipSelf, PyObject *sipArgs)
2877 {
2878 PyObject *sipParseErr = SIP_NULLPTR;
2879
2880 {
2881 const ::wxDataViewCtrl *sipCpp;
2882
2883 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
2884 {
2885 int sipRes;
2886
2887 PyErr_Clear();
2888
2889 Py_BEGIN_ALLOW_THREADS
2890 sipRes = sipCpp->GetIndent();
2891 Py_END_ALLOW_THREADS
2892
2893 if (PyErr_Occurred())
2894 return 0;
2895
2896 return SIPLong_FromLong(sipRes);
2897 }
2898 }
2899
2900 /* Raise an exception if the arguments couldn't be parsed. */
2901 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetIndent, SIP_NULLPTR);
2902
2903 return SIP_NULLPTR;
2904 }
2905
2906
2907 PyDoc_STRVAR(doc_wxDataViewCtrl_GetItemRect, "GetItemRect(item, col=None) -> wx.Rect\n"
2908 "\n"
2909 "Returns item rectangle.");
2910
2911 extern "C" {static PyObject *meth_wxDataViewCtrl_GetItemRect(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetItemRect(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2912 static PyObject *meth_wxDataViewCtrl_GetItemRect(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2913 {
2914 PyObject *sipParseErr = SIP_NULLPTR;
2915
2916 {
2917 const ::wxDataViewItem* item;
2918 const ::wxDataViewColumn* col = 0;
2919 const ::wxDataViewCtrl *sipCpp;
2920
2921 static const char *sipKwdList[] = {
2922 sipName_item,
2923 sipName_col,
2924 };
2925
2926 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9|J8", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewItem, &item, sipType_wxDataViewColumn, &col))
2927 {
2928 ::wxRect*sipRes;
2929
2930 PyErr_Clear();
2931
2932 Py_BEGIN_ALLOW_THREADS
2933 sipRes = new ::wxRect(sipCpp->GetItemRect(*item,col));
2934 Py_END_ALLOW_THREADS
2935
2936 if (PyErr_Occurred())
2937 return 0;
2938
2939 return sipConvertFromNewType(sipRes,sipType_wxRect,SIP_NULLPTR);
2940 }
2941 }
2942
2943 /* Raise an exception if the arguments couldn't be parsed. */
2944 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetItemRect, SIP_NULLPTR);
2945
2946 return SIP_NULLPTR;
2947 }
2948
2949
2950 PyDoc_STRVAR(doc_wxDataViewCtrl_GetModel, "GetModel() -> DataViewModel\n"
2951 "\n"
2952 "Returns pointer to the data model associated with the control (if\n"
2953 "any).");
2954
2955 extern "C" {static PyObject *meth_wxDataViewCtrl_GetModel(PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetModel(PyObject * sipSelf,PyObject * sipArgs)2956 static PyObject *meth_wxDataViewCtrl_GetModel(PyObject *sipSelf, PyObject *sipArgs)
2957 {
2958 PyObject *sipParseErr = SIP_NULLPTR;
2959
2960 {
2961 ::wxDataViewCtrl *sipCpp;
2962
2963 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
2964 {
2965 ::wxDataViewModel*sipRes;
2966
2967 PyErr_Clear();
2968
2969 Py_BEGIN_ALLOW_THREADS
2970 sipRes = sipCpp->GetModel();
2971 Py_END_ALLOW_THREADS
2972
2973 if (PyErr_Occurred())
2974 return 0;
2975
2976 return sipConvertFromType(sipRes,sipType_wxDataViewModel,SIP_NULLPTR);
2977 }
2978 }
2979
2980 /* Raise an exception if the arguments couldn't be parsed. */
2981 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetModel, SIP_NULLPTR);
2982
2983 return SIP_NULLPTR;
2984 }
2985
2986
2987 PyDoc_STRVAR(doc_wxDataViewCtrl_GetSelectedItemsCount, "GetSelectedItemsCount() -> int\n"
2988 "\n"
2989 "Returns the number of currently selected items.");
2990
2991 extern "C" {static PyObject *meth_wxDataViewCtrl_GetSelectedItemsCount(PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetSelectedItemsCount(PyObject * sipSelf,PyObject * sipArgs)2992 static PyObject *meth_wxDataViewCtrl_GetSelectedItemsCount(PyObject *sipSelf, PyObject *sipArgs)
2993 {
2994 PyObject *sipParseErr = SIP_NULLPTR;
2995
2996 {
2997 const ::wxDataViewCtrl *sipCpp;
2998
2999 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
3000 {
3001 int sipRes;
3002
3003 PyErr_Clear();
3004
3005 Py_BEGIN_ALLOW_THREADS
3006 sipRes = sipCpp->GetSelectedItemsCount();
3007 Py_END_ALLOW_THREADS
3008
3009 if (PyErr_Occurred())
3010 return 0;
3011
3012 return SIPLong_FromLong(sipRes);
3013 }
3014 }
3015
3016 /* Raise an exception if the arguments couldn't be parsed. */
3017 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetSelectedItemsCount, SIP_NULLPTR);
3018
3019 return SIP_NULLPTR;
3020 }
3021
3022
3023 PyDoc_STRVAR(doc_wxDataViewCtrl_GetSelection, "GetSelection() -> DataViewItem\n"
3024 "\n"
3025 "Returns first selected item or an invalid item if none is selected.");
3026
3027 extern "C" {static PyObject *meth_wxDataViewCtrl_GetSelection(PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetSelection(PyObject * sipSelf,PyObject * sipArgs)3028 static PyObject *meth_wxDataViewCtrl_GetSelection(PyObject *sipSelf, PyObject *sipArgs)
3029 {
3030 PyObject *sipParseErr = SIP_NULLPTR;
3031
3032 {
3033 const ::wxDataViewCtrl *sipCpp;
3034
3035 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
3036 {
3037 ::wxDataViewItem*sipRes;
3038
3039 PyErr_Clear();
3040
3041 Py_BEGIN_ALLOW_THREADS
3042 sipRes = new ::wxDataViewItem(sipCpp->GetSelection());
3043 Py_END_ALLOW_THREADS
3044
3045 if (PyErr_Occurred())
3046 return 0;
3047
3048 return sipConvertFromNewType(sipRes,sipType_wxDataViewItem,SIP_NULLPTR);
3049 }
3050 }
3051
3052 /* Raise an exception if the arguments couldn't be parsed. */
3053 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetSelection, SIP_NULLPTR);
3054
3055 return SIP_NULLPTR;
3056 }
3057
3058
3059 PyDoc_STRVAR(doc_wxDataViewCtrl_GetSelections, "GetSelections() -> DataViewItemArray\n"
3060 "\n"
3061 "Returns a list of the currently selected items.");
3062
3063 extern "C" {static PyObject *meth_wxDataViewCtrl_GetSelections(PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetSelections(PyObject * sipSelf,PyObject * sipArgs)3064 static PyObject *meth_wxDataViewCtrl_GetSelections(PyObject *sipSelf, PyObject *sipArgs)
3065 {
3066 PyObject *sipParseErr = SIP_NULLPTR;
3067
3068 {
3069 const ::wxDataViewCtrl *sipCpp;
3070
3071 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
3072 {
3073 ::wxDataViewItemArray*sipRes = 0;
3074 int sipIsErr = 0;
3075
3076 PyErr_Clear();
3077 Py_BEGIN_ALLOW_THREADS
3078 sipRes = _wxDataViewCtrl_GetSelections(sipCpp);
3079 Py_END_ALLOW_THREADS
3080 if (PyErr_Occurred()) sipIsErr = 1;
3081
3082 if (sipIsErr)
3083 return 0;
3084
3085 return sipConvertFromNewType(sipRes,sipType_wxDataViewItemArray,SIP_NULLPTR);
3086 }
3087 }
3088
3089 /* Raise an exception if the arguments couldn't be parsed. */
3090 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetSelections, SIP_NULLPTR);
3091
3092 return SIP_NULLPTR;
3093 }
3094
3095
3096 PyDoc_STRVAR(doc_wxDataViewCtrl_GetSortingColumn, "GetSortingColumn() -> DataViewColumn\n"
3097 "\n"
3098 "Returns the wxDataViewColumn currently responsible for sorting or NULL\n"
3099 "if none has been selected.");
3100
3101 extern "C" {static PyObject *meth_wxDataViewCtrl_GetSortingColumn(PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetSortingColumn(PyObject * sipSelf,PyObject * sipArgs)3102 static PyObject *meth_wxDataViewCtrl_GetSortingColumn(PyObject *sipSelf, PyObject *sipArgs)
3103 {
3104 PyObject *sipParseErr = SIP_NULLPTR;
3105
3106 {
3107 const ::wxDataViewCtrl *sipCpp;
3108
3109 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
3110 {
3111 ::wxDataViewColumn*sipRes;
3112
3113 PyErr_Clear();
3114
3115 Py_BEGIN_ALLOW_THREADS
3116 sipRes = sipCpp->GetSortingColumn();
3117 Py_END_ALLOW_THREADS
3118
3119 if (PyErr_Occurred())
3120 return 0;
3121
3122 return sipConvertFromType(sipRes,sipType_wxDataViewColumn,SIP_NULLPTR);
3123 }
3124 }
3125
3126 /* Raise an exception if the arguments couldn't be parsed. */
3127 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetSortingColumn, SIP_NULLPTR);
3128
3129 return SIP_NULLPTR;
3130 }
3131
3132
3133 PyDoc_STRVAR(doc_wxDataViewCtrl_HasSelection, "HasSelection() -> bool\n"
3134 "\n"
3135 "Returns true if any items are currently selected.");
3136
3137 extern "C" {static PyObject *meth_wxDataViewCtrl_HasSelection(PyObject *, PyObject *);}
meth_wxDataViewCtrl_HasSelection(PyObject * sipSelf,PyObject * sipArgs)3138 static PyObject *meth_wxDataViewCtrl_HasSelection(PyObject *sipSelf, PyObject *sipArgs)
3139 {
3140 PyObject *sipParseErr = SIP_NULLPTR;
3141
3142 {
3143 const ::wxDataViewCtrl *sipCpp;
3144
3145 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
3146 {
3147 bool sipRes;
3148
3149 PyErr_Clear();
3150
3151 Py_BEGIN_ALLOW_THREADS
3152 sipRes = sipCpp->HasSelection();
3153 Py_END_ALLOW_THREADS
3154
3155 if (PyErr_Occurred())
3156 return 0;
3157
3158 return PyBool_FromLong(sipRes);
3159 }
3160 }
3161
3162 /* Raise an exception if the arguments couldn't be parsed. */
3163 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_HasSelection, SIP_NULLPTR);
3164
3165 return SIP_NULLPTR;
3166 }
3167
3168
3169 PyDoc_STRVAR(doc_wxDataViewCtrl_HitTest, "HitTest(point) -> PyObject\n"
3170 "\n"
3171 "HitTest(point) -> (item, col)\n"
3172 "\n"
3173 "Returns the item and column located at point, as a 2 element tuple.");
3174
3175 extern "C" {static PyObject *meth_wxDataViewCtrl_HitTest(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_HitTest(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3176 static PyObject *meth_wxDataViewCtrl_HitTest(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3177 {
3178 PyObject *sipParseErr = SIP_NULLPTR;
3179
3180 {
3181 const ::wxPoint* point;
3182 int pointState = 0;
3183 const ::wxDataViewCtrl *sipCpp;
3184
3185 static const char *sipKwdList[] = {
3186 sipName_point,
3187 };
3188
3189 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxPoint, &point, &pointState))
3190 {
3191 PyObject * sipRes = SIP_NULLPTR;
3192 int sipIsErr = 0;
3193
3194 PyErr_Clear();
3195 Py_BEGIN_ALLOW_THREADS
3196 sipRes = _wxDataViewCtrl_HitTest(sipCpp, point);
3197 Py_END_ALLOW_THREADS
3198 if (PyErr_Occurred()) sipIsErr = 1;
3199 sipReleaseType(const_cast< ::wxPoint *>(point),sipType_wxPoint,pointState);
3200
3201 if (sipIsErr)
3202 return 0;
3203
3204 return sipRes;
3205 }
3206 }
3207
3208 /* Raise an exception if the arguments couldn't be parsed. */
3209 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_HitTest, SIP_NULLPTR);
3210
3211 return SIP_NULLPTR;
3212 }
3213
3214
3215 PyDoc_STRVAR(doc_wxDataViewCtrl_IsExpanded, "IsExpanded(item) -> bool\n"
3216 "\n"
3217 "Return true if the item is expanded.");
3218
3219 extern "C" {static PyObject *meth_wxDataViewCtrl_IsExpanded(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_IsExpanded(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3220 static PyObject *meth_wxDataViewCtrl_IsExpanded(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3221 {
3222 PyObject *sipParseErr = SIP_NULLPTR;
3223
3224 {
3225 const ::wxDataViewItem* item;
3226 const ::wxDataViewCtrl *sipCpp;
3227
3228 static const char *sipKwdList[] = {
3229 sipName_item,
3230 };
3231
3232 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewItem, &item))
3233 {
3234 bool sipRes;
3235
3236 PyErr_Clear();
3237
3238 Py_BEGIN_ALLOW_THREADS
3239 sipRes = sipCpp->IsExpanded(*item);
3240 Py_END_ALLOW_THREADS
3241
3242 if (PyErr_Occurred())
3243 return 0;
3244
3245 return PyBool_FromLong(sipRes);
3246 }
3247 }
3248
3249 /* Raise an exception if the arguments couldn't be parsed. */
3250 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_IsExpanded, SIP_NULLPTR);
3251
3252 return SIP_NULLPTR;
3253 }
3254
3255
3256 PyDoc_STRVAR(doc_wxDataViewCtrl_IsSelected, "IsSelected(item) -> bool\n"
3257 "\n"
3258 "Return true if the item is selected.");
3259
3260 extern "C" {static PyObject *meth_wxDataViewCtrl_IsSelected(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_IsSelected(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3261 static PyObject *meth_wxDataViewCtrl_IsSelected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3262 {
3263 PyObject *sipParseErr = SIP_NULLPTR;
3264
3265 {
3266 const ::wxDataViewItem* item;
3267 const ::wxDataViewCtrl *sipCpp;
3268
3269 static const char *sipKwdList[] = {
3270 sipName_item,
3271 };
3272
3273 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewItem, &item))
3274 {
3275 bool sipRes;
3276
3277 PyErr_Clear();
3278
3279 Py_BEGIN_ALLOW_THREADS
3280 sipRes = sipCpp->IsSelected(*item);
3281 Py_END_ALLOW_THREADS
3282
3283 if (PyErr_Occurred())
3284 return 0;
3285
3286 return PyBool_FromLong(sipRes);
3287 }
3288 }
3289
3290 /* Raise an exception if the arguments couldn't be parsed. */
3291 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_IsSelected, SIP_NULLPTR);
3292
3293 return SIP_NULLPTR;
3294 }
3295
3296
3297 PyDoc_STRVAR(doc_wxDataViewCtrl_Select, "Select(item)\n"
3298 "\n"
3299 "Select the given item.");
3300
3301 extern "C" {static PyObject *meth_wxDataViewCtrl_Select(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_Select(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3302 static PyObject *meth_wxDataViewCtrl_Select(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3303 {
3304 PyObject *sipParseErr = SIP_NULLPTR;
3305
3306 {
3307 const ::wxDataViewItem* item;
3308 ::wxDataViewCtrl *sipCpp;
3309
3310 static const char *sipKwdList[] = {
3311 sipName_item,
3312 };
3313
3314 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewItem, &item))
3315 {
3316 PyErr_Clear();
3317
3318 Py_BEGIN_ALLOW_THREADS
3319 sipCpp->Select(*item);
3320 Py_END_ALLOW_THREADS
3321
3322 if (PyErr_Occurred())
3323 return 0;
3324
3325 Py_INCREF(Py_None);
3326 return Py_None;
3327 }
3328 }
3329
3330 /* Raise an exception if the arguments couldn't be parsed. */
3331 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_Select, SIP_NULLPTR);
3332
3333 return SIP_NULLPTR;
3334 }
3335
3336
3337 PyDoc_STRVAR(doc_wxDataViewCtrl_SelectAll, "SelectAll()\n"
3338 "\n"
3339 "Select all items.");
3340
3341 extern "C" {static PyObject *meth_wxDataViewCtrl_SelectAll(PyObject *, PyObject *);}
meth_wxDataViewCtrl_SelectAll(PyObject * sipSelf,PyObject * sipArgs)3342 static PyObject *meth_wxDataViewCtrl_SelectAll(PyObject *sipSelf, PyObject *sipArgs)
3343 {
3344 PyObject *sipParseErr = SIP_NULLPTR;
3345
3346 {
3347 ::wxDataViewCtrl *sipCpp;
3348
3349 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
3350 {
3351 PyErr_Clear();
3352
3353 Py_BEGIN_ALLOW_THREADS
3354 sipCpp->SelectAll();
3355 Py_END_ALLOW_THREADS
3356
3357 if (PyErr_Occurred())
3358 return 0;
3359
3360 Py_INCREF(Py_None);
3361 return Py_None;
3362 }
3363 }
3364
3365 /* Raise an exception if the arguments couldn't be parsed. */
3366 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_SelectAll, SIP_NULLPTR);
3367
3368 return SIP_NULLPTR;
3369 }
3370
3371
3372 PyDoc_STRVAR(doc_wxDataViewCtrl_SetExpanderColumn, "SetExpanderColumn(col)\n"
3373 "\n"
3374 "Set which column shall contain the tree-like expanders.");
3375
3376 extern "C" {static PyObject *meth_wxDataViewCtrl_SetExpanderColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_SetExpanderColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3377 static PyObject *meth_wxDataViewCtrl_SetExpanderColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3378 {
3379 PyObject *sipParseErr = SIP_NULLPTR;
3380
3381 {
3382 ::wxDataViewColumn* col;
3383 ::wxDataViewCtrl *sipCpp;
3384
3385 static const char *sipKwdList[] = {
3386 sipName_col,
3387 };
3388
3389 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewColumn, &col))
3390 {
3391 PyErr_Clear();
3392
3393 Py_BEGIN_ALLOW_THREADS
3394 sipCpp->SetExpanderColumn(col);
3395 Py_END_ALLOW_THREADS
3396
3397 if (PyErr_Occurred())
3398 return 0;
3399
3400 Py_INCREF(Py_None);
3401 return Py_None;
3402 }
3403 }
3404
3405 /* Raise an exception if the arguments couldn't be parsed. */
3406 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_SetExpanderColumn, SIP_NULLPTR);
3407
3408 return SIP_NULLPTR;
3409 }
3410
3411
3412 PyDoc_STRVAR(doc_wxDataViewCtrl_SetCurrentItem, "SetCurrentItem(item)\n"
3413 "\n"
3414 "Changes the currently focused item.");
3415
3416 extern "C" {static PyObject *meth_wxDataViewCtrl_SetCurrentItem(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_SetCurrentItem(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3417 static PyObject *meth_wxDataViewCtrl_SetCurrentItem(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3418 {
3419 PyObject *sipParseErr = SIP_NULLPTR;
3420
3421 {
3422 const ::wxDataViewItem* item;
3423 ::wxDataViewCtrl *sipCpp;
3424
3425 static const char *sipKwdList[] = {
3426 sipName_item,
3427 };
3428
3429 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewItem, &item))
3430 {
3431 PyErr_Clear();
3432
3433 Py_BEGIN_ALLOW_THREADS
3434 sipCpp->SetCurrentItem(*item);
3435 Py_END_ALLOW_THREADS
3436
3437 if (PyErr_Occurred())
3438 return 0;
3439
3440 Py_INCREF(Py_None);
3441 return Py_None;
3442 }
3443 }
3444
3445 /* Raise an exception if the arguments couldn't be parsed. */
3446 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_SetCurrentItem, SIP_NULLPTR);
3447
3448 return SIP_NULLPTR;
3449 }
3450
3451
3452 PyDoc_STRVAR(doc_wxDataViewCtrl_SetIndent, "SetIndent(indent)\n"
3453 "\n"
3454 "Sets the indentation.");
3455
3456 extern "C" {static PyObject *meth_wxDataViewCtrl_SetIndent(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_SetIndent(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3457 static PyObject *meth_wxDataViewCtrl_SetIndent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3458 {
3459 PyObject *sipParseErr = SIP_NULLPTR;
3460
3461 {
3462 int indent;
3463 ::wxDataViewCtrl *sipCpp;
3464
3465 static const char *sipKwdList[] = {
3466 sipName_indent,
3467 };
3468
3469 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, &indent))
3470 {
3471 PyErr_Clear();
3472
3473 Py_BEGIN_ALLOW_THREADS
3474 sipCpp->SetIndent(indent);
3475 Py_END_ALLOW_THREADS
3476
3477 if (PyErr_Occurred())
3478 return 0;
3479
3480 Py_INCREF(Py_None);
3481 return Py_None;
3482 }
3483 }
3484
3485 /* Raise an exception if the arguments couldn't be parsed. */
3486 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_SetIndent, SIP_NULLPTR);
3487
3488 return SIP_NULLPTR;
3489 }
3490
3491
3492 PyDoc_STRVAR(doc_wxDataViewCtrl_SetSelections, "SetSelections(sel)\n"
3493 "\n"
3494 "Sets the selection to the array of wxDataViewItems.");
3495
3496 extern "C" {static PyObject *meth_wxDataViewCtrl_SetSelections(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_SetSelections(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3497 static PyObject *meth_wxDataViewCtrl_SetSelections(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3498 {
3499 PyObject *sipParseErr = SIP_NULLPTR;
3500
3501 {
3502 const ::wxDataViewItemArray* sel;
3503 ::wxDataViewCtrl *sipCpp;
3504
3505 static const char *sipKwdList[] = {
3506 sipName_sel,
3507 };
3508
3509 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewItemArray, &sel))
3510 {
3511 PyErr_Clear();
3512
3513 Py_BEGIN_ALLOW_THREADS
3514 sipCpp->SetSelections(*sel);
3515 Py_END_ALLOW_THREADS
3516
3517 if (PyErr_Occurred())
3518 return 0;
3519
3520 Py_INCREF(Py_None);
3521 return Py_None;
3522 }
3523 }
3524
3525 /* Raise an exception if the arguments couldn't be parsed. */
3526 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_SetSelections, SIP_NULLPTR);
3527
3528 return SIP_NULLPTR;
3529 }
3530
3531
3532 PyDoc_STRVAR(doc_wxDataViewCtrl_Unselect, "Unselect(item)\n"
3533 "\n"
3534 "Unselect the given item.");
3535
3536 extern "C" {static PyObject *meth_wxDataViewCtrl_Unselect(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_Unselect(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3537 static PyObject *meth_wxDataViewCtrl_Unselect(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3538 {
3539 PyObject *sipParseErr = SIP_NULLPTR;
3540
3541 {
3542 const ::wxDataViewItem* item;
3543 ::wxDataViewCtrl *sipCpp;
3544
3545 static const char *sipKwdList[] = {
3546 sipName_item,
3547 };
3548
3549 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxDataViewItem, &item))
3550 {
3551 PyErr_Clear();
3552
3553 Py_BEGIN_ALLOW_THREADS
3554 sipCpp->Unselect(*item);
3555 Py_END_ALLOW_THREADS
3556
3557 if (PyErr_Occurred())
3558 return 0;
3559
3560 Py_INCREF(Py_None);
3561 return Py_None;
3562 }
3563 }
3564
3565 /* Raise an exception if the arguments couldn't be parsed. */
3566 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_Unselect, SIP_NULLPTR);
3567
3568 return SIP_NULLPTR;
3569 }
3570
3571
3572 PyDoc_STRVAR(doc_wxDataViewCtrl_UnselectAll, "UnselectAll()\n"
3573 "\n"
3574 "Unselect all item.");
3575
3576 extern "C" {static PyObject *meth_wxDataViewCtrl_UnselectAll(PyObject *, PyObject *);}
meth_wxDataViewCtrl_UnselectAll(PyObject * sipSelf,PyObject * sipArgs)3577 static PyObject *meth_wxDataViewCtrl_UnselectAll(PyObject *sipSelf, PyObject *sipArgs)
3578 {
3579 PyObject *sipParseErr = SIP_NULLPTR;
3580
3581 {
3582 ::wxDataViewCtrl *sipCpp;
3583
3584 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
3585 {
3586 PyErr_Clear();
3587
3588 Py_BEGIN_ALLOW_THREADS
3589 sipCpp->UnselectAll();
3590 Py_END_ALLOW_THREADS
3591
3592 if (PyErr_Occurred())
3593 return 0;
3594
3595 Py_INCREF(Py_None);
3596 return Py_None;
3597 }
3598 }
3599
3600 /* Raise an exception if the arguments couldn't be parsed. */
3601 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_UnselectAll, SIP_NULLPTR);
3602
3603 return SIP_NULLPTR;
3604 }
3605
3606
3607 PyDoc_STRVAR(doc_wxDataViewCtrl_SetRowHeight, "SetRowHeight(rowHeight) -> bool\n"
3608 "\n"
3609 "Sets the row height.");
3610
3611 extern "C" {static PyObject *meth_wxDataViewCtrl_SetRowHeight(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_SetRowHeight(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3612 static PyObject *meth_wxDataViewCtrl_SetRowHeight(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3613 {
3614 PyObject *sipParseErr = SIP_NULLPTR;
3615
3616 {
3617 int rowHeight;
3618 ::wxDataViewCtrl *sipCpp;
3619
3620 static const char *sipKwdList[] = {
3621 sipName_rowHeight,
3622 };
3623
3624 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, &rowHeight))
3625 {
3626 bool sipRes;
3627
3628 PyErr_Clear();
3629
3630 Py_BEGIN_ALLOW_THREADS
3631 sipRes = sipCpp->SetRowHeight(rowHeight);
3632 Py_END_ALLOW_THREADS
3633
3634 if (PyErr_Occurred())
3635 return 0;
3636
3637 return PyBool_FromLong(sipRes);
3638 }
3639 }
3640
3641 /* Raise an exception if the arguments couldn't be parsed. */
3642 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_SetRowHeight, SIP_NULLPTR);
3643
3644 return SIP_NULLPTR;
3645 }
3646
3647
3648 PyDoc_STRVAR(doc_wxDataViewCtrl_GetClientAreaOrigin, "GetClientAreaOrigin(self) -> Point");
3649
3650 extern "C" {static PyObject *meth_wxDataViewCtrl_GetClientAreaOrigin(PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetClientAreaOrigin(PyObject * sipSelf,PyObject * sipArgs)3651 static PyObject *meth_wxDataViewCtrl_GetClientAreaOrigin(PyObject *sipSelf, PyObject *sipArgs)
3652 {
3653 PyObject *sipParseErr = SIP_NULLPTR;
3654 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3655
3656 {
3657 const ::wxDataViewCtrl *sipCpp;
3658
3659 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
3660 {
3661 ::wxPoint*sipRes;
3662
3663 PyErr_Clear();
3664
3665 Py_BEGIN_ALLOW_THREADS
3666 sipRes = new ::wxPoint((sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::GetClientAreaOrigin() : sipCpp->GetClientAreaOrigin()));
3667 Py_END_ALLOW_THREADS
3668
3669 if (PyErr_Occurred())
3670 return 0;
3671
3672 return sipConvertFromNewType(sipRes,sipType_wxPoint,SIP_NULLPTR);
3673 }
3674 }
3675
3676 /* Raise an exception if the arguments couldn't be parsed. */
3677 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetClientAreaOrigin, doc_wxDataViewCtrl_GetClientAreaOrigin);
3678
3679 return SIP_NULLPTR;
3680 }
3681
3682
3683 PyDoc_STRVAR(doc_wxDataViewCtrl_Validate, "Validate(self) -> bool");
3684
3685 extern "C" {static PyObject *meth_wxDataViewCtrl_Validate(PyObject *, PyObject *);}
meth_wxDataViewCtrl_Validate(PyObject * sipSelf,PyObject * sipArgs)3686 static PyObject *meth_wxDataViewCtrl_Validate(PyObject *sipSelf, PyObject *sipArgs)
3687 {
3688 PyObject *sipParseErr = SIP_NULLPTR;
3689 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3690
3691 {
3692 ::wxDataViewCtrl *sipCpp;
3693
3694 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
3695 {
3696 bool sipRes;
3697
3698 PyErr_Clear();
3699
3700 Py_BEGIN_ALLOW_THREADS
3701 sipRes = (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::Validate() : sipCpp->Validate());
3702 Py_END_ALLOW_THREADS
3703
3704 if (PyErr_Occurred())
3705 return 0;
3706
3707 return PyBool_FromLong(sipRes);
3708 }
3709 }
3710
3711 /* Raise an exception if the arguments couldn't be parsed. */
3712 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_Validate, doc_wxDataViewCtrl_Validate);
3713
3714 return SIP_NULLPTR;
3715 }
3716
3717
3718 PyDoc_STRVAR(doc_wxDataViewCtrl_TransferDataToWindow, "TransferDataToWindow(self) -> bool");
3719
3720 extern "C" {static PyObject *meth_wxDataViewCtrl_TransferDataToWindow(PyObject *, PyObject *);}
meth_wxDataViewCtrl_TransferDataToWindow(PyObject * sipSelf,PyObject * sipArgs)3721 static PyObject *meth_wxDataViewCtrl_TransferDataToWindow(PyObject *sipSelf, PyObject *sipArgs)
3722 {
3723 PyObject *sipParseErr = SIP_NULLPTR;
3724 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3725
3726 {
3727 ::wxDataViewCtrl *sipCpp;
3728
3729 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
3730 {
3731 bool sipRes;
3732
3733 PyErr_Clear();
3734
3735 Py_BEGIN_ALLOW_THREADS
3736 sipRes = (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::TransferDataToWindow() : sipCpp->TransferDataToWindow());
3737 Py_END_ALLOW_THREADS
3738
3739 if (PyErr_Occurred())
3740 return 0;
3741
3742 return PyBool_FromLong(sipRes);
3743 }
3744 }
3745
3746 /* Raise an exception if the arguments couldn't be parsed. */
3747 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_TransferDataToWindow, doc_wxDataViewCtrl_TransferDataToWindow);
3748
3749 return SIP_NULLPTR;
3750 }
3751
3752
3753 PyDoc_STRVAR(doc_wxDataViewCtrl_TransferDataFromWindow, "TransferDataFromWindow(self) -> bool");
3754
3755 extern "C" {static PyObject *meth_wxDataViewCtrl_TransferDataFromWindow(PyObject *, PyObject *);}
meth_wxDataViewCtrl_TransferDataFromWindow(PyObject * sipSelf,PyObject * sipArgs)3756 static PyObject *meth_wxDataViewCtrl_TransferDataFromWindow(PyObject *sipSelf, PyObject *sipArgs)
3757 {
3758 PyObject *sipParseErr = SIP_NULLPTR;
3759 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3760
3761 {
3762 ::wxDataViewCtrl *sipCpp;
3763
3764 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
3765 {
3766 bool sipRes;
3767
3768 PyErr_Clear();
3769
3770 Py_BEGIN_ALLOW_THREADS
3771 sipRes = (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::TransferDataFromWindow() : sipCpp->TransferDataFromWindow());
3772 Py_END_ALLOW_THREADS
3773
3774 if (PyErr_Occurred())
3775 return 0;
3776
3777 return PyBool_FromLong(sipRes);
3778 }
3779 }
3780
3781 /* Raise an exception if the arguments couldn't be parsed. */
3782 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_TransferDataFromWindow, doc_wxDataViewCtrl_TransferDataFromWindow);
3783
3784 return SIP_NULLPTR;
3785 }
3786
3787
3788 PyDoc_STRVAR(doc_wxDataViewCtrl_InitDialog, "InitDialog(self)");
3789
3790 extern "C" {static PyObject *meth_wxDataViewCtrl_InitDialog(PyObject *, PyObject *);}
meth_wxDataViewCtrl_InitDialog(PyObject * sipSelf,PyObject * sipArgs)3791 static PyObject *meth_wxDataViewCtrl_InitDialog(PyObject *sipSelf, PyObject *sipArgs)
3792 {
3793 PyObject *sipParseErr = SIP_NULLPTR;
3794 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3795
3796 {
3797 ::wxDataViewCtrl *sipCpp;
3798
3799 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
3800 {
3801 PyErr_Clear();
3802
3803 Py_BEGIN_ALLOW_THREADS
3804 (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::InitDialog() : sipCpp->InitDialog());
3805 Py_END_ALLOW_THREADS
3806
3807 if (PyErr_Occurred())
3808 return 0;
3809
3810 Py_INCREF(Py_None);
3811 return Py_None;
3812 }
3813 }
3814
3815 /* Raise an exception if the arguments couldn't be parsed. */
3816 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_InitDialog, doc_wxDataViewCtrl_InitDialog);
3817
3818 return SIP_NULLPTR;
3819 }
3820
3821
3822 PyDoc_STRVAR(doc_wxDataViewCtrl_AcceptsFocus, "AcceptsFocus(self) -> bool");
3823
3824 extern "C" {static PyObject *meth_wxDataViewCtrl_AcceptsFocus(PyObject *, PyObject *);}
meth_wxDataViewCtrl_AcceptsFocus(PyObject * sipSelf,PyObject * sipArgs)3825 static PyObject *meth_wxDataViewCtrl_AcceptsFocus(PyObject *sipSelf, PyObject *sipArgs)
3826 {
3827 PyObject *sipParseErr = SIP_NULLPTR;
3828 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3829
3830 {
3831 const ::wxDataViewCtrl *sipCpp;
3832
3833 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
3834 {
3835 bool sipRes;
3836
3837 PyErr_Clear();
3838
3839 Py_BEGIN_ALLOW_THREADS
3840 sipRes = (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::AcceptsFocus() : sipCpp->AcceptsFocus());
3841 Py_END_ALLOW_THREADS
3842
3843 if (PyErr_Occurred())
3844 return 0;
3845
3846 return PyBool_FromLong(sipRes);
3847 }
3848 }
3849
3850 /* Raise an exception if the arguments couldn't be parsed. */
3851 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_AcceptsFocus, doc_wxDataViewCtrl_AcceptsFocus);
3852
3853 return SIP_NULLPTR;
3854 }
3855
3856
3857 PyDoc_STRVAR(doc_wxDataViewCtrl_AcceptsFocusRecursively, "AcceptsFocusRecursively(self) -> bool");
3858
3859 extern "C" {static PyObject *meth_wxDataViewCtrl_AcceptsFocusRecursively(PyObject *, PyObject *);}
meth_wxDataViewCtrl_AcceptsFocusRecursively(PyObject * sipSelf,PyObject * sipArgs)3860 static PyObject *meth_wxDataViewCtrl_AcceptsFocusRecursively(PyObject *sipSelf, PyObject *sipArgs)
3861 {
3862 PyObject *sipParseErr = SIP_NULLPTR;
3863 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3864
3865 {
3866 const ::wxDataViewCtrl *sipCpp;
3867
3868 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
3869 {
3870 bool sipRes;
3871
3872 PyErr_Clear();
3873
3874 Py_BEGIN_ALLOW_THREADS
3875 sipRes = (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::AcceptsFocusRecursively() : sipCpp->AcceptsFocusRecursively());
3876 Py_END_ALLOW_THREADS
3877
3878 if (PyErr_Occurred())
3879 return 0;
3880
3881 return PyBool_FromLong(sipRes);
3882 }
3883 }
3884
3885 /* Raise an exception if the arguments couldn't be parsed. */
3886 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_AcceptsFocusRecursively, doc_wxDataViewCtrl_AcceptsFocusRecursively);
3887
3888 return SIP_NULLPTR;
3889 }
3890
3891
3892 PyDoc_STRVAR(doc_wxDataViewCtrl_AcceptsFocusFromKeyboard, "AcceptsFocusFromKeyboard(self) -> bool");
3893
3894 extern "C" {static PyObject *meth_wxDataViewCtrl_AcceptsFocusFromKeyboard(PyObject *, PyObject *);}
meth_wxDataViewCtrl_AcceptsFocusFromKeyboard(PyObject * sipSelf,PyObject * sipArgs)3895 static PyObject *meth_wxDataViewCtrl_AcceptsFocusFromKeyboard(PyObject *sipSelf, PyObject *sipArgs)
3896 {
3897 PyObject *sipParseErr = SIP_NULLPTR;
3898 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3899
3900 {
3901 const ::wxDataViewCtrl *sipCpp;
3902
3903 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
3904 {
3905 bool sipRes;
3906
3907 PyErr_Clear();
3908
3909 Py_BEGIN_ALLOW_THREADS
3910 sipRes = (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::AcceptsFocusFromKeyboard() : sipCpp->AcceptsFocusFromKeyboard());
3911 Py_END_ALLOW_THREADS
3912
3913 if (PyErr_Occurred())
3914 return 0;
3915
3916 return PyBool_FromLong(sipRes);
3917 }
3918 }
3919
3920 /* Raise an exception if the arguments couldn't be parsed. */
3921 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_AcceptsFocusFromKeyboard, doc_wxDataViewCtrl_AcceptsFocusFromKeyboard);
3922
3923 return SIP_NULLPTR;
3924 }
3925
3926
3927 PyDoc_STRVAR(doc_wxDataViewCtrl_AddChild, "AddChild(self, child: WindowBase)");
3928
3929 extern "C" {static PyObject *meth_wxDataViewCtrl_AddChild(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_AddChild(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3930 static PyObject *meth_wxDataViewCtrl_AddChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3931 {
3932 PyObject *sipParseErr = SIP_NULLPTR;
3933 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3934
3935 {
3936 ::wxWindowBase* child;
3937 ::wxDataViewCtrl *sipCpp;
3938
3939 static const char *sipKwdList[] = {
3940 sipName_child,
3941 };
3942
3943 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxWindowBase, &child))
3944 {
3945 PyErr_Clear();
3946
3947 Py_BEGIN_ALLOW_THREADS
3948 (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::AddChild(child) : sipCpp->AddChild(child));
3949 Py_END_ALLOW_THREADS
3950
3951 if (PyErr_Occurred())
3952 return 0;
3953
3954 Py_INCREF(Py_None);
3955 return Py_None;
3956 }
3957 }
3958
3959 /* Raise an exception if the arguments couldn't be parsed. */
3960 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_AddChild, doc_wxDataViewCtrl_AddChild);
3961
3962 return SIP_NULLPTR;
3963 }
3964
3965
3966 PyDoc_STRVAR(doc_wxDataViewCtrl_RemoveChild, "RemoveChild(self, child: WindowBase)");
3967
3968 extern "C" {static PyObject *meth_wxDataViewCtrl_RemoveChild(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_RemoveChild(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3969 static PyObject *meth_wxDataViewCtrl_RemoveChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3970 {
3971 PyObject *sipParseErr = SIP_NULLPTR;
3972 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3973
3974 {
3975 ::wxWindowBase* child;
3976 ::wxDataViewCtrl *sipCpp;
3977
3978 static const char *sipKwdList[] = {
3979 sipName_child,
3980 };
3981
3982 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxWindowBase, &child))
3983 {
3984 PyErr_Clear();
3985
3986 Py_BEGIN_ALLOW_THREADS
3987 (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::RemoveChild(child) : sipCpp->RemoveChild(child));
3988 Py_END_ALLOW_THREADS
3989
3990 if (PyErr_Occurred())
3991 return 0;
3992
3993 Py_INCREF(Py_None);
3994 return Py_None;
3995 }
3996 }
3997
3998 /* Raise an exception if the arguments couldn't be parsed. */
3999 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_RemoveChild, doc_wxDataViewCtrl_RemoveChild);
4000
4001 return SIP_NULLPTR;
4002 }
4003
4004
4005 PyDoc_STRVAR(doc_wxDataViewCtrl_InheritAttributes, "InheritAttributes(self)");
4006
4007 extern "C" {static PyObject *meth_wxDataViewCtrl_InheritAttributes(PyObject *, PyObject *);}
meth_wxDataViewCtrl_InheritAttributes(PyObject * sipSelf,PyObject * sipArgs)4008 static PyObject *meth_wxDataViewCtrl_InheritAttributes(PyObject *sipSelf, PyObject *sipArgs)
4009 {
4010 PyObject *sipParseErr = SIP_NULLPTR;
4011 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4012
4013 {
4014 ::wxDataViewCtrl *sipCpp;
4015
4016 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4017 {
4018 PyErr_Clear();
4019
4020 Py_BEGIN_ALLOW_THREADS
4021 (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::InheritAttributes() : sipCpp->InheritAttributes());
4022 Py_END_ALLOW_THREADS
4023
4024 if (PyErr_Occurred())
4025 return 0;
4026
4027 Py_INCREF(Py_None);
4028 return Py_None;
4029 }
4030 }
4031
4032 /* Raise an exception if the arguments couldn't be parsed. */
4033 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_InheritAttributes, doc_wxDataViewCtrl_InheritAttributes);
4034
4035 return SIP_NULLPTR;
4036 }
4037
4038
4039 PyDoc_STRVAR(doc_wxDataViewCtrl_ShouldInheritColours, "ShouldInheritColours(self) -> bool");
4040
4041 extern "C" {static PyObject *meth_wxDataViewCtrl_ShouldInheritColours(PyObject *, PyObject *);}
meth_wxDataViewCtrl_ShouldInheritColours(PyObject * sipSelf,PyObject * sipArgs)4042 static PyObject *meth_wxDataViewCtrl_ShouldInheritColours(PyObject *sipSelf, PyObject *sipArgs)
4043 {
4044 PyObject *sipParseErr = SIP_NULLPTR;
4045 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4046
4047 {
4048 const ::wxDataViewCtrl *sipCpp;
4049
4050 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4051 {
4052 bool sipRes;
4053
4054 PyErr_Clear();
4055
4056 Py_BEGIN_ALLOW_THREADS
4057 sipRes = (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::ShouldInheritColours() : sipCpp->ShouldInheritColours());
4058 Py_END_ALLOW_THREADS
4059
4060 if (PyErr_Occurred())
4061 return 0;
4062
4063 return PyBool_FromLong(sipRes);
4064 }
4065 }
4066
4067 /* Raise an exception if the arguments couldn't be parsed. */
4068 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_ShouldInheritColours, doc_wxDataViewCtrl_ShouldInheritColours);
4069
4070 return SIP_NULLPTR;
4071 }
4072
4073
4074 PyDoc_STRVAR(doc_wxDataViewCtrl_OnInternalIdle, "OnInternalIdle(self)");
4075
4076 extern "C" {static PyObject *meth_wxDataViewCtrl_OnInternalIdle(PyObject *, PyObject *);}
meth_wxDataViewCtrl_OnInternalIdle(PyObject * sipSelf,PyObject * sipArgs)4077 static PyObject *meth_wxDataViewCtrl_OnInternalIdle(PyObject *sipSelf, PyObject *sipArgs)
4078 {
4079 PyObject *sipParseErr = SIP_NULLPTR;
4080 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4081
4082 {
4083 ::wxDataViewCtrl *sipCpp;
4084
4085 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4086 {
4087 PyErr_Clear();
4088
4089 Py_BEGIN_ALLOW_THREADS
4090 (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::OnInternalIdle() : sipCpp->OnInternalIdle());
4091 Py_END_ALLOW_THREADS
4092
4093 if (PyErr_Occurred())
4094 return 0;
4095
4096 Py_INCREF(Py_None);
4097 return Py_None;
4098 }
4099 }
4100
4101 /* Raise an exception if the arguments couldn't be parsed. */
4102 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_OnInternalIdle, doc_wxDataViewCtrl_OnInternalIdle);
4103
4104 return SIP_NULLPTR;
4105 }
4106
4107
4108 PyDoc_STRVAR(doc_wxDataViewCtrl_GetMainWindowOfCompositeControl, "GetMainWindowOfCompositeControl(self) -> Window");
4109
4110 extern "C" {static PyObject *meth_wxDataViewCtrl_GetMainWindowOfCompositeControl(PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetMainWindowOfCompositeControl(PyObject * sipSelf,PyObject * sipArgs)4111 static PyObject *meth_wxDataViewCtrl_GetMainWindowOfCompositeControl(PyObject *sipSelf, PyObject *sipArgs)
4112 {
4113 PyObject *sipParseErr = SIP_NULLPTR;
4114 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4115
4116 {
4117 ::wxDataViewCtrl *sipCpp;
4118
4119 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4120 {
4121 ::wxWindow*sipRes;
4122
4123 PyErr_Clear();
4124
4125 Py_BEGIN_ALLOW_THREADS
4126 sipRes = (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::GetMainWindowOfCompositeControl() : sipCpp->GetMainWindowOfCompositeControl());
4127 Py_END_ALLOW_THREADS
4128
4129 if (PyErr_Occurred())
4130 return 0;
4131
4132 return sipConvertFromType(sipRes,sipType_wxWindow,SIP_NULLPTR);
4133 }
4134 }
4135
4136 /* Raise an exception if the arguments couldn't be parsed. */
4137 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetMainWindowOfCompositeControl, doc_wxDataViewCtrl_GetMainWindowOfCompositeControl);
4138
4139 return SIP_NULLPTR;
4140 }
4141
4142
4143 PyDoc_STRVAR(doc_wxDataViewCtrl_InformFirstDirection, "InformFirstDirection(self, direction: int, size: int, availableOtherDir: int) -> bool");
4144
4145 extern "C" {static PyObject *meth_wxDataViewCtrl_InformFirstDirection(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_InformFirstDirection(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4146 static PyObject *meth_wxDataViewCtrl_InformFirstDirection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4147 {
4148 PyObject *sipParseErr = SIP_NULLPTR;
4149 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4150
4151 {
4152 int direction;
4153 int size;
4154 int availableOtherDir;
4155 ::wxDataViewCtrl *sipCpp;
4156
4157 static const char *sipKwdList[] = {
4158 sipName_direction,
4159 sipName_size,
4160 sipName_availableOtherDir,
4161 };
4162
4163 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biii", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, &direction, &size, &availableOtherDir))
4164 {
4165 bool sipRes;
4166
4167 PyErr_Clear();
4168
4169 Py_BEGIN_ALLOW_THREADS
4170 sipRes = (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::InformFirstDirection(direction,size,availableOtherDir) : sipCpp->InformFirstDirection(direction,size,availableOtherDir));
4171 Py_END_ALLOW_THREADS
4172
4173 if (PyErr_Occurred())
4174 return 0;
4175
4176 return PyBool_FromLong(sipRes);
4177 }
4178 }
4179
4180 /* Raise an exception if the arguments couldn't be parsed. */
4181 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_InformFirstDirection, doc_wxDataViewCtrl_InformFirstDirection);
4182
4183 return SIP_NULLPTR;
4184 }
4185
4186
4187 PyDoc_STRVAR(doc_wxDataViewCtrl_SetCanFocus, "SetCanFocus(self, canFocus: bool)");
4188
4189 extern "C" {static PyObject *meth_wxDataViewCtrl_SetCanFocus(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_SetCanFocus(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4190 static PyObject *meth_wxDataViewCtrl_SetCanFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4191 {
4192 PyObject *sipParseErr = SIP_NULLPTR;
4193 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4194
4195 {
4196 bool canFocus;
4197 ::wxDataViewCtrl *sipCpp;
4198
4199 static const char *sipKwdList[] = {
4200 sipName_canFocus,
4201 };
4202
4203 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, &canFocus))
4204 {
4205 PyErr_Clear();
4206
4207 Py_BEGIN_ALLOW_THREADS
4208 (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::SetCanFocus(canFocus) : sipCpp->SetCanFocus(canFocus));
4209 Py_END_ALLOW_THREADS
4210
4211 if (PyErr_Occurred())
4212 return 0;
4213
4214 Py_INCREF(Py_None);
4215 return Py_None;
4216 }
4217 }
4218
4219 /* Raise an exception if the arguments couldn't be parsed. */
4220 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_SetCanFocus, doc_wxDataViewCtrl_SetCanFocus);
4221
4222 return SIP_NULLPTR;
4223 }
4224
4225
4226 PyDoc_STRVAR(doc_wxDataViewCtrl_Destroy, "Destroy(self) -> bool");
4227
4228 extern "C" {static PyObject *meth_wxDataViewCtrl_Destroy(PyObject *, PyObject *);}
meth_wxDataViewCtrl_Destroy(PyObject * sipSelf,PyObject * sipArgs)4229 static PyObject *meth_wxDataViewCtrl_Destroy(PyObject *sipSelf, PyObject *sipArgs)
4230 {
4231 PyObject *sipParseErr = SIP_NULLPTR;
4232 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4233
4234 {
4235 ::wxDataViewCtrl *sipCpp;
4236
4237 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4238 {
4239 bool sipRes;
4240
4241 PyErr_Clear();
4242
4243 Py_BEGIN_ALLOW_THREADS
4244 sipRes = (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::Destroy() : sipCpp->Destroy());
4245 Py_END_ALLOW_THREADS
4246
4247 if (PyErr_Occurred())
4248 return 0;
4249
4250 return PyBool_FromLong(sipRes);
4251 }
4252 }
4253
4254 /* Raise an exception if the arguments couldn't be parsed. */
4255 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_Destroy, doc_wxDataViewCtrl_Destroy);
4256
4257 return SIP_NULLPTR;
4258 }
4259
4260
4261 PyDoc_STRVAR(doc_wxDataViewCtrl_SetValidator, "SetValidator(self, validator: Validator)");
4262
4263 extern "C" {static PyObject *meth_wxDataViewCtrl_SetValidator(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_SetValidator(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4264 static PyObject *meth_wxDataViewCtrl_SetValidator(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4265 {
4266 PyObject *sipParseErr = SIP_NULLPTR;
4267 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4268
4269 {
4270 const ::wxValidator* validator;
4271 ::wxDataViewCtrl *sipCpp;
4272
4273 static const char *sipKwdList[] = {
4274 sipName_validator,
4275 };
4276
4277 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxValidator, &validator))
4278 {
4279 PyErr_Clear();
4280
4281 Py_BEGIN_ALLOW_THREADS
4282 (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::SetValidator(*validator) : sipCpp->SetValidator(*validator));
4283 Py_END_ALLOW_THREADS
4284
4285 if (PyErr_Occurred())
4286 return 0;
4287
4288 Py_INCREF(Py_None);
4289 return Py_None;
4290 }
4291 }
4292
4293 /* Raise an exception if the arguments couldn't be parsed. */
4294 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_SetValidator, doc_wxDataViewCtrl_SetValidator);
4295
4296 return SIP_NULLPTR;
4297 }
4298
4299
4300 PyDoc_STRVAR(doc_wxDataViewCtrl_GetValidator, "GetValidator(self) -> Validator");
4301
4302 extern "C" {static PyObject *meth_wxDataViewCtrl_GetValidator(PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetValidator(PyObject * sipSelf,PyObject * sipArgs)4303 static PyObject *meth_wxDataViewCtrl_GetValidator(PyObject *sipSelf, PyObject *sipArgs)
4304 {
4305 PyObject *sipParseErr = SIP_NULLPTR;
4306 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4307
4308 {
4309 ::wxDataViewCtrl *sipCpp;
4310
4311 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4312 {
4313 ::wxValidator*sipRes;
4314
4315 PyErr_Clear();
4316
4317 Py_BEGIN_ALLOW_THREADS
4318 sipRes = (sipSelfWasArg ? sipCpp-> ::wxDataViewCtrl::GetValidator() : sipCpp->GetValidator());
4319 Py_END_ALLOW_THREADS
4320
4321 if (PyErr_Occurred())
4322 return 0;
4323
4324 return sipConvertFromType(sipRes,sipType_wxValidator,SIP_NULLPTR);
4325 }
4326 }
4327
4328 /* Raise an exception if the arguments couldn't be parsed. */
4329 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetValidator, doc_wxDataViewCtrl_GetValidator);
4330
4331 return SIP_NULLPTR;
4332 }
4333
4334
4335 PyDoc_STRVAR(doc_wxDataViewCtrl_ProcessEvent, "ProcessEvent(self, event: Event) -> bool");
4336
4337 extern "C" {static PyObject *meth_wxDataViewCtrl_ProcessEvent(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_ProcessEvent(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4338 static PyObject *meth_wxDataViewCtrl_ProcessEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4339 {
4340 PyObject *sipParseErr = SIP_NULLPTR;
4341 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4342
4343 {
4344 ::wxEvent* event;
4345 sipwxDataViewCtrl *sipCpp;
4346
4347 static const char *sipKwdList[] = {
4348 sipName_event,
4349 };
4350
4351 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxEvent, &event))
4352 {
4353 bool sipRes;
4354
4355 PyErr_Clear();
4356
4357 Py_BEGIN_ALLOW_THREADS
4358 sipRes = sipCpp->sipProtectVirt_ProcessEvent(sipSelfWasArg,*event);
4359 Py_END_ALLOW_THREADS
4360
4361 if (PyErr_Occurred())
4362 return 0;
4363
4364 return PyBool_FromLong(sipRes);
4365 }
4366 }
4367
4368 /* Raise an exception if the arguments couldn't be parsed. */
4369 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_ProcessEvent, doc_wxDataViewCtrl_ProcessEvent);
4370
4371 return SIP_NULLPTR;
4372 }
4373
4374
4375 PyDoc_STRVAR(doc_wxDataViewCtrl_DoEnable, "DoEnable(self, enable: bool)");
4376
4377 extern "C" {static PyObject *meth_wxDataViewCtrl_DoEnable(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_DoEnable(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4378 static PyObject *meth_wxDataViewCtrl_DoEnable(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4379 {
4380 PyObject *sipParseErr = SIP_NULLPTR;
4381 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4382
4383 {
4384 bool enable;
4385 sipwxDataViewCtrl *sipCpp;
4386
4387 static const char *sipKwdList[] = {
4388 sipName_enable,
4389 };
4390
4391 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, &enable))
4392 {
4393 PyErr_Clear();
4394
4395 Py_BEGIN_ALLOW_THREADS
4396 sipCpp->sipProtectVirt_DoEnable(sipSelfWasArg,enable);
4397 Py_END_ALLOW_THREADS
4398
4399 if (PyErr_Occurred())
4400 return 0;
4401
4402 Py_INCREF(Py_None);
4403 return Py_None;
4404 }
4405 }
4406
4407 /* Raise an exception if the arguments couldn't be parsed. */
4408 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_DoEnable, doc_wxDataViewCtrl_DoEnable);
4409
4410 return SIP_NULLPTR;
4411 }
4412
4413
4414 PyDoc_STRVAR(doc_wxDataViewCtrl_DoGetPosition, "DoGetPosition(self) -> Tuple[int, int]");
4415
4416 extern "C" {static PyObject *meth_wxDataViewCtrl_DoGetPosition(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_DoGetPosition(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4417 static PyObject *meth_wxDataViewCtrl_DoGetPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4418 {
4419 PyObject *sipParseErr = SIP_NULLPTR;
4420 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4421
4422 {
4423 int x;
4424 int y;
4425 const sipwxDataViewCtrl *sipCpp;
4426
4427 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4428 {
4429 PyErr_Clear();
4430
4431 Py_BEGIN_ALLOW_THREADS
4432 sipCpp->sipProtectVirt_DoGetPosition(sipSelfWasArg,&x,&y);
4433 Py_END_ALLOW_THREADS
4434
4435 if (PyErr_Occurred())
4436 return 0;
4437
4438 return sipBuildResult(0,"(ii)",x,y);
4439 }
4440 }
4441
4442 /* Raise an exception if the arguments couldn't be parsed. */
4443 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_DoGetPosition, doc_wxDataViewCtrl_DoGetPosition);
4444
4445 return SIP_NULLPTR;
4446 }
4447
4448
4449 PyDoc_STRVAR(doc_wxDataViewCtrl_DoGetSize, "DoGetSize(self) -> Tuple[int, int]");
4450
4451 extern "C" {static PyObject *meth_wxDataViewCtrl_DoGetSize(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_DoGetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4452 static PyObject *meth_wxDataViewCtrl_DoGetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4453 {
4454 PyObject *sipParseErr = SIP_NULLPTR;
4455 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4456
4457 {
4458 int width;
4459 int height;
4460 const sipwxDataViewCtrl *sipCpp;
4461
4462 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4463 {
4464 PyErr_Clear();
4465
4466 Py_BEGIN_ALLOW_THREADS
4467 sipCpp->sipProtectVirt_DoGetSize(sipSelfWasArg,&width,&height);
4468 Py_END_ALLOW_THREADS
4469
4470 if (PyErr_Occurred())
4471 return 0;
4472
4473 return sipBuildResult(0,"(ii)",width,height);
4474 }
4475 }
4476
4477 /* Raise an exception if the arguments couldn't be parsed. */
4478 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_DoGetSize, doc_wxDataViewCtrl_DoGetSize);
4479
4480 return SIP_NULLPTR;
4481 }
4482
4483
4484 PyDoc_STRVAR(doc_wxDataViewCtrl_DoGetClientSize, "DoGetClientSize(self) -> Tuple[int, int]");
4485
4486 extern "C" {static PyObject *meth_wxDataViewCtrl_DoGetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_DoGetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4487 static PyObject *meth_wxDataViewCtrl_DoGetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4488 {
4489 PyObject *sipParseErr = SIP_NULLPTR;
4490 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4491
4492 {
4493 int width;
4494 int height;
4495 const sipwxDataViewCtrl *sipCpp;
4496
4497 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4498 {
4499 PyErr_Clear();
4500
4501 Py_BEGIN_ALLOW_THREADS
4502 sipCpp->sipProtectVirt_DoGetClientSize(sipSelfWasArg,&width,&height);
4503 Py_END_ALLOW_THREADS
4504
4505 if (PyErr_Occurred())
4506 return 0;
4507
4508 return sipBuildResult(0,"(ii)",width,height);
4509 }
4510 }
4511
4512 /* Raise an exception if the arguments couldn't be parsed. */
4513 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_DoGetClientSize, doc_wxDataViewCtrl_DoGetClientSize);
4514
4515 return SIP_NULLPTR;
4516 }
4517
4518
4519 PyDoc_STRVAR(doc_wxDataViewCtrl_DoGetBestSize, "DoGetBestSize(self) -> Size");
4520
4521 extern "C" {static PyObject *meth_wxDataViewCtrl_DoGetBestSize(PyObject *, PyObject *);}
meth_wxDataViewCtrl_DoGetBestSize(PyObject * sipSelf,PyObject * sipArgs)4522 static PyObject *meth_wxDataViewCtrl_DoGetBestSize(PyObject *sipSelf, PyObject *sipArgs)
4523 {
4524 PyObject *sipParseErr = SIP_NULLPTR;
4525 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4526
4527 {
4528 const sipwxDataViewCtrl *sipCpp;
4529
4530 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4531 {
4532 ::wxSize*sipRes;
4533
4534 PyErr_Clear();
4535
4536 Py_BEGIN_ALLOW_THREADS
4537 sipRes = new ::wxSize(sipCpp->sipProtectVirt_DoGetBestSize(sipSelfWasArg));
4538 Py_END_ALLOW_THREADS
4539
4540 if (PyErr_Occurred())
4541 return 0;
4542
4543 return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
4544 }
4545 }
4546
4547 /* Raise an exception if the arguments couldn't be parsed. */
4548 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_DoGetBestSize, doc_wxDataViewCtrl_DoGetBestSize);
4549
4550 return SIP_NULLPTR;
4551 }
4552
4553
4554 PyDoc_STRVAR(doc_wxDataViewCtrl_DoGetBestClientSize, "DoGetBestClientSize(self) -> Size");
4555
4556 extern "C" {static PyObject *meth_wxDataViewCtrl_DoGetBestClientSize(PyObject *, PyObject *);}
meth_wxDataViewCtrl_DoGetBestClientSize(PyObject * sipSelf,PyObject * sipArgs)4557 static PyObject *meth_wxDataViewCtrl_DoGetBestClientSize(PyObject *sipSelf, PyObject *sipArgs)
4558 {
4559 PyObject *sipParseErr = SIP_NULLPTR;
4560 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4561
4562 {
4563 const sipwxDataViewCtrl *sipCpp;
4564
4565 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4566 {
4567 ::wxSize*sipRes;
4568
4569 PyErr_Clear();
4570
4571 Py_BEGIN_ALLOW_THREADS
4572 sipRes = new ::wxSize(sipCpp->sipProtectVirt_DoGetBestClientSize(sipSelfWasArg));
4573 Py_END_ALLOW_THREADS
4574
4575 if (PyErr_Occurred())
4576 return 0;
4577
4578 return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
4579 }
4580 }
4581
4582 /* Raise an exception if the arguments couldn't be parsed. */
4583 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_DoGetBestClientSize, doc_wxDataViewCtrl_DoGetBestClientSize);
4584
4585 return SIP_NULLPTR;
4586 }
4587
4588
4589 PyDoc_STRVAR(doc_wxDataViewCtrl_DoSetSize, "DoSetSize(self, x: int, y: int, width: int, height: int, sizeFlags: int)");
4590
4591 extern "C" {static PyObject *meth_wxDataViewCtrl_DoSetSize(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_DoSetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4592 static PyObject *meth_wxDataViewCtrl_DoSetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4593 {
4594 PyObject *sipParseErr = SIP_NULLPTR;
4595 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4596
4597 {
4598 int x;
4599 int y;
4600 int width;
4601 int height;
4602 int sizeFlags;
4603 sipwxDataViewCtrl *sipCpp;
4604
4605 static const char *sipKwdList[] = {
4606 sipName_x,
4607 sipName_y,
4608 sipName_width,
4609 sipName_height,
4610 sipName_sizeFlags,
4611 };
4612
4613 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiii", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, &x, &y, &width, &height, &sizeFlags))
4614 {
4615 PyErr_Clear();
4616
4617 Py_BEGIN_ALLOW_THREADS
4618 sipCpp->sipProtectVirt_DoSetSize(sipSelfWasArg,x,y,width,height,sizeFlags);
4619 Py_END_ALLOW_THREADS
4620
4621 if (PyErr_Occurred())
4622 return 0;
4623
4624 Py_INCREF(Py_None);
4625 return Py_None;
4626 }
4627 }
4628
4629 /* Raise an exception if the arguments couldn't be parsed. */
4630 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_DoSetSize, doc_wxDataViewCtrl_DoSetSize);
4631
4632 return SIP_NULLPTR;
4633 }
4634
4635
4636 PyDoc_STRVAR(doc_wxDataViewCtrl_DoSetClientSize, "DoSetClientSize(self, width: int, height: int)");
4637
4638 extern "C" {static PyObject *meth_wxDataViewCtrl_DoSetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_DoSetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4639 static PyObject *meth_wxDataViewCtrl_DoSetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4640 {
4641 PyObject *sipParseErr = SIP_NULLPTR;
4642 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4643
4644 {
4645 int width;
4646 int height;
4647 sipwxDataViewCtrl *sipCpp;
4648
4649 static const char *sipKwdList[] = {
4650 sipName_width,
4651 sipName_height,
4652 };
4653
4654 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, &width, &height))
4655 {
4656 PyErr_Clear();
4657
4658 Py_BEGIN_ALLOW_THREADS
4659 sipCpp->sipProtectVirt_DoSetClientSize(sipSelfWasArg,width,height);
4660 Py_END_ALLOW_THREADS
4661
4662 if (PyErr_Occurred())
4663 return 0;
4664
4665 Py_INCREF(Py_None);
4666 return Py_None;
4667 }
4668 }
4669
4670 /* Raise an exception if the arguments couldn't be parsed. */
4671 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_DoSetClientSize, doc_wxDataViewCtrl_DoSetClientSize);
4672
4673 return SIP_NULLPTR;
4674 }
4675
4676
4677 PyDoc_STRVAR(doc_wxDataViewCtrl_DoSetSizeHints, "DoSetSizeHints(self, minW: int, minH: int, maxW: int, maxH: int, incW: int, incH: int)");
4678
4679 extern "C" {static PyObject *meth_wxDataViewCtrl_DoSetSizeHints(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_DoSetSizeHints(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4680 static PyObject *meth_wxDataViewCtrl_DoSetSizeHints(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4681 {
4682 PyObject *sipParseErr = SIP_NULLPTR;
4683 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4684
4685 {
4686 int minW;
4687 int minH;
4688 int maxW;
4689 int maxH;
4690 int incW;
4691 int incH;
4692 sipwxDataViewCtrl *sipCpp;
4693
4694 static const char *sipKwdList[] = {
4695 sipName_minW,
4696 sipName_minH,
4697 sipName_maxW,
4698 sipName_maxH,
4699 sipName_incW,
4700 sipName_incH,
4701 };
4702
4703 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiiii", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, &minW, &minH, &maxW, &maxH, &incW, &incH))
4704 {
4705 PyErr_Clear();
4706
4707 Py_BEGIN_ALLOW_THREADS
4708 sipCpp->sipProtectVirt_DoSetSizeHints(sipSelfWasArg,minW,minH,maxW,maxH,incW,incH);
4709 Py_END_ALLOW_THREADS
4710
4711 if (PyErr_Occurred())
4712 return 0;
4713
4714 Py_INCREF(Py_None);
4715 return Py_None;
4716 }
4717 }
4718
4719 /* Raise an exception if the arguments couldn't be parsed. */
4720 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_DoSetSizeHints, doc_wxDataViewCtrl_DoSetSizeHints);
4721
4722 return SIP_NULLPTR;
4723 }
4724
4725
4726 PyDoc_STRVAR(doc_wxDataViewCtrl_DoGetBorderSize, "DoGetBorderSize(self) -> Size");
4727
4728 extern "C" {static PyObject *meth_wxDataViewCtrl_DoGetBorderSize(PyObject *, PyObject *);}
meth_wxDataViewCtrl_DoGetBorderSize(PyObject * sipSelf,PyObject * sipArgs)4729 static PyObject *meth_wxDataViewCtrl_DoGetBorderSize(PyObject *sipSelf, PyObject *sipArgs)
4730 {
4731 PyObject *sipParseErr = SIP_NULLPTR;
4732 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4733
4734 {
4735 const sipwxDataViewCtrl *sipCpp;
4736
4737 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4738 {
4739 ::wxSize*sipRes;
4740
4741 PyErr_Clear();
4742
4743 Py_BEGIN_ALLOW_THREADS
4744 sipRes = new ::wxSize(sipCpp->sipProtectVirt_DoGetBorderSize(sipSelfWasArg));
4745 Py_END_ALLOW_THREADS
4746
4747 if (PyErr_Occurred())
4748 return 0;
4749
4750 return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
4751 }
4752 }
4753
4754 /* Raise an exception if the arguments couldn't be parsed. */
4755 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_DoGetBorderSize, doc_wxDataViewCtrl_DoGetBorderSize);
4756
4757 return SIP_NULLPTR;
4758 }
4759
4760
4761 PyDoc_STRVAR(doc_wxDataViewCtrl_DoMoveWindow, "DoMoveWindow(self, x: int, y: int, width: int, height: int)");
4762
4763 extern "C" {static PyObject *meth_wxDataViewCtrl_DoMoveWindow(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_DoMoveWindow(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4764 static PyObject *meth_wxDataViewCtrl_DoMoveWindow(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4765 {
4766 PyObject *sipParseErr = SIP_NULLPTR;
4767 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4768
4769 {
4770 int x;
4771 int y;
4772 int width;
4773 int height;
4774 sipwxDataViewCtrl *sipCpp;
4775
4776 static const char *sipKwdList[] = {
4777 sipName_x,
4778 sipName_y,
4779 sipName_width,
4780 sipName_height,
4781 };
4782
4783 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiii", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, &x, &y, &width, &height))
4784 {
4785 PyErr_Clear();
4786
4787 Py_BEGIN_ALLOW_THREADS
4788 sipCpp->sipProtectVirt_DoMoveWindow(sipSelfWasArg,x,y,width,height);
4789 Py_END_ALLOW_THREADS
4790
4791 if (PyErr_Occurred())
4792 return 0;
4793
4794 Py_INCREF(Py_None);
4795 return Py_None;
4796 }
4797 }
4798
4799 /* Raise an exception if the arguments couldn't be parsed. */
4800 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_DoMoveWindow, doc_wxDataViewCtrl_DoMoveWindow);
4801
4802 return SIP_NULLPTR;
4803 }
4804
4805
4806 PyDoc_STRVAR(doc_wxDataViewCtrl_DoSetWindowVariant, "DoSetWindowVariant(self, variant: WindowVariant)");
4807
4808 extern "C" {static PyObject *meth_wxDataViewCtrl_DoSetWindowVariant(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_DoSetWindowVariant(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4809 static PyObject *meth_wxDataViewCtrl_DoSetWindowVariant(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4810 {
4811 PyObject *sipParseErr = SIP_NULLPTR;
4812 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4813
4814 {
4815 ::wxWindowVariant variant;
4816 sipwxDataViewCtrl *sipCpp;
4817
4818 static const char *sipKwdList[] = {
4819 sipName_variant,
4820 };
4821
4822 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxWindowVariant, &variant))
4823 {
4824 PyErr_Clear();
4825
4826 Py_BEGIN_ALLOW_THREADS
4827 sipCpp->sipProtectVirt_DoSetWindowVariant(sipSelfWasArg,variant);
4828 Py_END_ALLOW_THREADS
4829
4830 if (PyErr_Occurred())
4831 return 0;
4832
4833 Py_INCREF(Py_None);
4834 return Py_None;
4835 }
4836 }
4837
4838 /* Raise an exception if the arguments couldn't be parsed. */
4839 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_DoSetWindowVariant, doc_wxDataViewCtrl_DoSetWindowVariant);
4840
4841 return SIP_NULLPTR;
4842 }
4843
4844
4845 PyDoc_STRVAR(doc_wxDataViewCtrl_GetDefaultBorder, "GetDefaultBorder(self) -> Border");
4846
4847 extern "C" {static PyObject *meth_wxDataViewCtrl_GetDefaultBorder(PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetDefaultBorder(PyObject * sipSelf,PyObject * sipArgs)4848 static PyObject *meth_wxDataViewCtrl_GetDefaultBorder(PyObject *sipSelf, PyObject *sipArgs)
4849 {
4850 PyObject *sipParseErr = SIP_NULLPTR;
4851 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4852
4853 {
4854 const sipwxDataViewCtrl *sipCpp;
4855
4856 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4857 {
4858 ::wxBorder sipRes;
4859
4860 PyErr_Clear();
4861
4862 Py_BEGIN_ALLOW_THREADS
4863 sipRes = sipCpp->sipProtectVirt_GetDefaultBorder(sipSelfWasArg);
4864 Py_END_ALLOW_THREADS
4865
4866 if (PyErr_Occurred())
4867 return 0;
4868
4869 return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
4870 }
4871 }
4872
4873 /* Raise an exception if the arguments couldn't be parsed. */
4874 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetDefaultBorder, doc_wxDataViewCtrl_GetDefaultBorder);
4875
4876 return SIP_NULLPTR;
4877 }
4878
4879
4880 PyDoc_STRVAR(doc_wxDataViewCtrl_GetDefaultBorderForControl, "GetDefaultBorderForControl(self) -> Border");
4881
4882 extern "C" {static PyObject *meth_wxDataViewCtrl_GetDefaultBorderForControl(PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetDefaultBorderForControl(PyObject * sipSelf,PyObject * sipArgs)4883 static PyObject *meth_wxDataViewCtrl_GetDefaultBorderForControl(PyObject *sipSelf, PyObject *sipArgs)
4884 {
4885 PyObject *sipParseErr = SIP_NULLPTR;
4886 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4887
4888 {
4889 const sipwxDataViewCtrl *sipCpp;
4890
4891 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4892 {
4893 ::wxBorder sipRes;
4894
4895 PyErr_Clear();
4896
4897 Py_BEGIN_ALLOW_THREADS
4898 sipRes = sipCpp->sipProtectVirt_GetDefaultBorderForControl(sipSelfWasArg);
4899 Py_END_ALLOW_THREADS
4900
4901 if (PyErr_Occurred())
4902 return 0;
4903
4904 return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
4905 }
4906 }
4907
4908 /* Raise an exception if the arguments couldn't be parsed. */
4909 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetDefaultBorderForControl, doc_wxDataViewCtrl_GetDefaultBorderForControl);
4910
4911 return SIP_NULLPTR;
4912 }
4913
4914
4915 PyDoc_STRVAR(doc_wxDataViewCtrl_DoFreeze, "DoFreeze(self)");
4916
4917 extern "C" {static PyObject *meth_wxDataViewCtrl_DoFreeze(PyObject *, PyObject *);}
meth_wxDataViewCtrl_DoFreeze(PyObject * sipSelf,PyObject * sipArgs)4918 static PyObject *meth_wxDataViewCtrl_DoFreeze(PyObject *sipSelf, PyObject *sipArgs)
4919 {
4920 PyObject *sipParseErr = SIP_NULLPTR;
4921 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4922
4923 {
4924 sipwxDataViewCtrl *sipCpp;
4925
4926 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4927 {
4928 PyErr_Clear();
4929
4930 Py_BEGIN_ALLOW_THREADS
4931 sipCpp->sipProtectVirt_DoFreeze(sipSelfWasArg);
4932 Py_END_ALLOW_THREADS
4933
4934 if (PyErr_Occurred())
4935 return 0;
4936
4937 Py_INCREF(Py_None);
4938 return Py_None;
4939 }
4940 }
4941
4942 /* Raise an exception if the arguments couldn't be parsed. */
4943 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_DoFreeze, doc_wxDataViewCtrl_DoFreeze);
4944
4945 return SIP_NULLPTR;
4946 }
4947
4948
4949 PyDoc_STRVAR(doc_wxDataViewCtrl_DoThaw, "DoThaw(self)");
4950
4951 extern "C" {static PyObject *meth_wxDataViewCtrl_DoThaw(PyObject *, PyObject *);}
meth_wxDataViewCtrl_DoThaw(PyObject * sipSelf,PyObject * sipArgs)4952 static PyObject *meth_wxDataViewCtrl_DoThaw(PyObject *sipSelf, PyObject *sipArgs)
4953 {
4954 PyObject *sipParseErr = SIP_NULLPTR;
4955 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4956
4957 {
4958 sipwxDataViewCtrl *sipCpp;
4959
4960 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4961 {
4962 PyErr_Clear();
4963
4964 Py_BEGIN_ALLOW_THREADS
4965 sipCpp->sipProtectVirt_DoThaw(sipSelfWasArg);
4966 Py_END_ALLOW_THREADS
4967
4968 if (PyErr_Occurred())
4969 return 0;
4970
4971 Py_INCREF(Py_None);
4972 return Py_None;
4973 }
4974 }
4975
4976 /* Raise an exception if the arguments couldn't be parsed. */
4977 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_DoThaw, doc_wxDataViewCtrl_DoThaw);
4978
4979 return SIP_NULLPTR;
4980 }
4981
4982
4983 PyDoc_STRVAR(doc_wxDataViewCtrl_HasTransparentBackground, "HasTransparentBackground(self) -> bool");
4984
4985 extern "C" {static PyObject *meth_wxDataViewCtrl_HasTransparentBackground(PyObject *, PyObject *);}
meth_wxDataViewCtrl_HasTransparentBackground(PyObject * sipSelf,PyObject * sipArgs)4986 static PyObject *meth_wxDataViewCtrl_HasTransparentBackground(PyObject *sipSelf, PyObject *sipArgs)
4987 {
4988 PyObject *sipParseErr = SIP_NULLPTR;
4989 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4990
4991 {
4992 sipwxDataViewCtrl *sipCpp;
4993
4994 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewCtrl, &sipCpp))
4995 {
4996 bool sipRes;
4997
4998 PyErr_Clear();
4999
5000 Py_BEGIN_ALLOW_THREADS
5001 sipRes = sipCpp->sipProtectVirt_HasTransparentBackground(sipSelfWasArg);
5002 Py_END_ALLOW_THREADS
5003
5004 if (PyErr_Occurred())
5005 return 0;
5006
5007 return PyBool_FromLong(sipRes);
5008 }
5009 }
5010
5011 /* Raise an exception if the arguments couldn't be parsed. */
5012 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_HasTransparentBackground, doc_wxDataViewCtrl_HasTransparentBackground);
5013
5014 return SIP_NULLPTR;
5015 }
5016
5017
5018 PyDoc_STRVAR(doc_wxDataViewCtrl_TryBefore, "TryBefore(self, event: Event) -> bool");
5019
5020 extern "C" {static PyObject *meth_wxDataViewCtrl_TryBefore(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_TryBefore(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)5021 static PyObject *meth_wxDataViewCtrl_TryBefore(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
5022 {
5023 PyObject *sipParseErr = SIP_NULLPTR;
5024 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5025
5026 {
5027 ::wxEvent* event;
5028 sipwxDataViewCtrl *sipCpp;
5029
5030 static const char *sipKwdList[] = {
5031 sipName_event,
5032 };
5033
5034 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxEvent, &event))
5035 {
5036 bool sipRes;
5037
5038 PyErr_Clear();
5039
5040 Py_BEGIN_ALLOW_THREADS
5041 sipRes = sipCpp->sipProtectVirt_TryBefore(sipSelfWasArg,*event);
5042 Py_END_ALLOW_THREADS
5043
5044 if (PyErr_Occurred())
5045 return 0;
5046
5047 return PyBool_FromLong(sipRes);
5048 }
5049 }
5050
5051 /* Raise an exception if the arguments couldn't be parsed. */
5052 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_TryBefore, doc_wxDataViewCtrl_TryBefore);
5053
5054 return SIP_NULLPTR;
5055 }
5056
5057
5058 PyDoc_STRVAR(doc_wxDataViewCtrl_TryAfter, "TryAfter(self, event: Event) -> bool");
5059
5060 extern "C" {static PyObject *meth_wxDataViewCtrl_TryAfter(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_TryAfter(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)5061 static PyObject *meth_wxDataViewCtrl_TryAfter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
5062 {
5063 PyObject *sipParseErr = SIP_NULLPTR;
5064 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5065
5066 {
5067 ::wxEvent* event;
5068 sipwxDataViewCtrl *sipCpp;
5069
5070 static const char *sipKwdList[] = {
5071 sipName_event,
5072 };
5073
5074 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxDataViewCtrl, &sipCpp, sipType_wxEvent, &event))
5075 {
5076 bool sipRes;
5077
5078 PyErr_Clear();
5079
5080 Py_BEGIN_ALLOW_THREADS
5081 sipRes = sipCpp->sipProtectVirt_TryAfter(sipSelfWasArg,*event);
5082 Py_END_ALLOW_THREADS
5083
5084 if (PyErr_Occurred())
5085 return 0;
5086
5087 return PyBool_FromLong(sipRes);
5088 }
5089 }
5090
5091 /* Raise an exception if the arguments couldn't be parsed. */
5092 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_TryAfter, doc_wxDataViewCtrl_TryAfter);
5093
5094 return SIP_NULLPTR;
5095 }
5096
5097
5098 PyDoc_STRVAR(doc_wxDataViewCtrl_GetClassDefaultAttributes, "GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes");
5099
5100 extern "C" {static PyObject *meth_wxDataViewCtrl_GetClassDefaultAttributes(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewCtrl_GetClassDefaultAttributes(PyObject *,PyObject * sipArgs,PyObject * sipKwds)5101 static PyObject *meth_wxDataViewCtrl_GetClassDefaultAttributes(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
5102 {
5103 PyObject *sipParseErr = SIP_NULLPTR;
5104
5105 {
5106 ::wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL;
5107
5108 static const char *sipKwdList[] = {
5109 sipName_variant,
5110 };
5111
5112 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "|E", sipType_wxWindowVariant, &variant))
5113 {
5114 ::wxVisualAttributes*sipRes;
5115
5116 if (!wxPyCheckForApp()) return NULL;
5117
5118 PyErr_Clear();
5119
5120 Py_BEGIN_ALLOW_THREADS
5121 sipRes = new ::wxVisualAttributes( ::wxDataViewCtrl::GetClassDefaultAttributes(variant));
5122 Py_END_ALLOW_THREADS
5123
5124 if (PyErr_Occurred())
5125 return 0;
5126
5127 return sipConvertFromNewType(sipRes,sipType_wxVisualAttributes,SIP_NULLPTR);
5128 }
5129 }
5130
5131 /* Raise an exception if the arguments couldn't be parsed. */
5132 sipNoMethod(sipParseErr, sipName_DataViewCtrl, sipName_GetClassDefaultAttributes, SIP_NULLPTR);
5133
5134 return SIP_NULLPTR;
5135 }
5136
5137
5138 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
5139 extern "C" {static void *cast_wxDataViewCtrl(void *, const sipTypeDef *);}
cast_wxDataViewCtrl(void * sipCppV,const sipTypeDef * targetType)5140 static void *cast_wxDataViewCtrl(void *sipCppV, const sipTypeDef *targetType)
5141 {
5142 ::wxDataViewCtrl *sipCpp = reinterpret_cast< ::wxDataViewCtrl *>(sipCppV);
5143
5144 if (targetType == sipType_wxControl)
5145 return static_cast< ::wxControl *>(sipCpp);
5146
5147 if (targetType == sipType_wxWindow)
5148 return static_cast< ::wxWindow *>(sipCpp);
5149
5150 if (targetType == sipType_wxWindowBase)
5151 return static_cast< ::wxWindowBase *>(sipCpp);
5152
5153 if (targetType == sipType_wxEvtHandler)
5154 return static_cast< ::wxEvtHandler *>(sipCpp);
5155
5156 if (targetType == sipType_wxObject)
5157 return static_cast< ::wxObject *>(sipCpp);
5158
5159 if (targetType == sipType_wxTrackable)
5160 return static_cast< ::wxTrackable *>(sipCpp);
5161
5162 return sipCppV;
5163 }
5164
5165
5166 /* Call the instance's destructor. */
5167 extern "C" {static void release_wxDataViewCtrl(void *, int);}
release_wxDataViewCtrl(void * sipCppV,int sipState)5168 static void release_wxDataViewCtrl(void *sipCppV, int sipState)
5169 {
5170 Py_BEGIN_ALLOW_THREADS
5171
5172 if (sipState & SIP_DERIVED_CLASS)
5173 delete reinterpret_cast<sipwxDataViewCtrl *>(sipCppV);
5174 else
5175 delete reinterpret_cast< ::wxDataViewCtrl *>(sipCppV);
5176
5177 Py_END_ALLOW_THREADS
5178 }
5179
5180
5181 extern "C" {static void dealloc_wxDataViewCtrl(sipSimpleWrapper *);}
dealloc_wxDataViewCtrl(sipSimpleWrapper * sipSelf)5182 static void dealloc_wxDataViewCtrl(sipSimpleWrapper *sipSelf)
5183 {
5184 if (sipIsDerivedClass(sipSelf))
5185 reinterpret_cast<sipwxDataViewCtrl *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
5186
5187 if (sipIsOwnedByPython(sipSelf))
5188 {
5189 release_wxDataViewCtrl(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
5190 }
5191 }
5192
5193
5194 extern "C" {static void *init_type_wxDataViewCtrl(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxDataViewCtrl(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject ** sipOwner,PyObject ** sipParseErr)5195 static void *init_type_wxDataViewCtrl(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
5196 {
5197 sipwxDataViewCtrl *sipCpp = SIP_NULLPTR;
5198
5199 {
5200 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
5201 {
5202
5203 if (!wxPyCheckForApp()) return NULL;
5204
5205 PyErr_Clear();
5206
5207 Py_BEGIN_ALLOW_THREADS
5208 sipCpp = new sipwxDataViewCtrl();
5209 Py_END_ALLOW_THREADS
5210
5211 if (PyErr_Occurred())
5212 {
5213 delete sipCpp;
5214 return SIP_NULLPTR;
5215 }
5216
5217 sipCpp->sipPySelf = sipSelf;
5218
5219 return sipCpp;
5220 }
5221 }
5222
5223 {
5224 ::wxWindow* parent;
5225 ::wxWindowID id = wxID_ANY;
5226 const ::wxPoint& posdef = wxDefaultPosition;
5227 const ::wxPoint* pos = &posdef;
5228 int posState = 0;
5229 const ::wxSize& sizedef = wxDefaultSize;
5230 const ::wxSize* size = &sizedef;
5231 int sizeState = 0;
5232 long style = 0;
5233 const ::wxValidator& validatordef = wxDefaultValidator;
5234 const ::wxValidator* validator = &validatordef;
5235 const ::wxString& namedef = wxDataViewCtrlNameStr;
5236 const ::wxString* name = &namedef;
5237 int nameState = 0;
5238
5239 static const char *sipKwdList[] = {
5240 sipName_parent,
5241 sipName_id,
5242 sipName_pos,
5243 sipName_size,
5244 sipName_style,
5245 sipName_validator,
5246 sipName_name,
5247 };
5248
5249 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "JH|iJ1J1lJ9J1", sipType_wxWindow, &parent, sipOwner, &id, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style, sipType_wxValidator, &validator, sipType_wxString,&name, &nameState))
5250 {
5251
5252 if (!wxPyCheckForApp()) return NULL;
5253
5254 PyErr_Clear();
5255
5256 Py_BEGIN_ALLOW_THREADS
5257 sipCpp = new sipwxDataViewCtrl(parent,id,*pos,*size,style,*validator,*name);
5258 Py_END_ALLOW_THREADS
5259 sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState);
5260 sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState);
5261 sipReleaseType(const_cast< ::wxString *>(name),sipType_wxString,nameState);
5262
5263 if (PyErr_Occurred())
5264 {
5265 delete sipCpp;
5266 return SIP_NULLPTR;
5267 }
5268
5269 sipCpp->sipPySelf = sipSelf;
5270
5271 return sipCpp;
5272 }
5273 }
5274
5275 return SIP_NULLPTR;
5276 }
5277
5278
5279 /* Define this type's super-types. */
5280 static sipEncodedTypeDef supers_wxDataViewCtrl[] = {{9, 0, 1}};
5281
5282
5283 static PyMethodDef methods_wxDataViewCtrl[] = {
5284 {SIP_MLNAME_CAST(sipName_AcceptsFocus), meth_wxDataViewCtrl_AcceptsFocus, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_AcceptsFocus)},
5285 {SIP_MLNAME_CAST(sipName_AcceptsFocusFromKeyboard), meth_wxDataViewCtrl_AcceptsFocusFromKeyboard, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_AcceptsFocusFromKeyboard)},
5286 {SIP_MLNAME_CAST(sipName_AcceptsFocusRecursively), meth_wxDataViewCtrl_AcceptsFocusRecursively, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_AcceptsFocusRecursively)},
5287 {SIP_MLNAME_CAST(sipName_AddChild), SIP_MLMETH_CAST(meth_wxDataViewCtrl_AddChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_AddChild)},
5288 {SIP_MLNAME_CAST(sipName_AppendBitmapColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_AppendBitmapColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_AppendBitmapColumn)},
5289 {SIP_MLNAME_CAST(sipName_AppendColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_AppendColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_AppendColumn)},
5290 {SIP_MLNAME_CAST(sipName_AppendDateColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_AppendDateColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_AppendDateColumn)},
5291 {SIP_MLNAME_CAST(sipName_AppendIconTextColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_AppendIconTextColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_AppendIconTextColumn)},
5292 {SIP_MLNAME_CAST(sipName_AppendProgressColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_AppendProgressColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_AppendProgressColumn)},
5293 {SIP_MLNAME_CAST(sipName_AppendTextColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_AppendTextColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_AppendTextColumn)},
5294 {SIP_MLNAME_CAST(sipName_AppendToggleColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_AppendToggleColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_AppendToggleColumn)},
5295 {SIP_MLNAME_CAST(sipName_ClearColumns), meth_wxDataViewCtrl_ClearColumns, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_ClearColumns)},
5296 {SIP_MLNAME_CAST(sipName_Collapse), SIP_MLMETH_CAST(meth_wxDataViewCtrl_Collapse), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_Collapse)},
5297 {SIP_MLNAME_CAST(sipName_Create), SIP_MLMETH_CAST(meth_wxDataViewCtrl_Create), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_Create)},
5298 {SIP_MLNAME_CAST(sipName_DeleteColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_DeleteColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_DeleteColumn)},
5299 {SIP_MLNAME_CAST(sipName_Destroy), meth_wxDataViewCtrl_Destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_Destroy)},
5300 {SIP_MLNAME_CAST(sipName_DoEnable), SIP_MLMETH_CAST(meth_wxDataViewCtrl_DoEnable), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_DoEnable)},
5301 {SIP_MLNAME_CAST(sipName_DoFreeze), meth_wxDataViewCtrl_DoFreeze, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_DoFreeze)},
5302 {SIP_MLNAME_CAST(sipName_DoGetBestClientSize), meth_wxDataViewCtrl_DoGetBestClientSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_DoGetBestClientSize)},
5303 {SIP_MLNAME_CAST(sipName_DoGetBestSize), meth_wxDataViewCtrl_DoGetBestSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_DoGetBestSize)},
5304 {SIP_MLNAME_CAST(sipName_DoGetBorderSize), meth_wxDataViewCtrl_DoGetBorderSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_DoGetBorderSize)},
5305 {SIP_MLNAME_CAST(sipName_DoGetClientSize), SIP_MLMETH_CAST(meth_wxDataViewCtrl_DoGetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_DoGetClientSize)},
5306 {SIP_MLNAME_CAST(sipName_DoGetPosition), SIP_MLMETH_CAST(meth_wxDataViewCtrl_DoGetPosition), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_DoGetPosition)},
5307 {SIP_MLNAME_CAST(sipName_DoGetSize), SIP_MLMETH_CAST(meth_wxDataViewCtrl_DoGetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_DoGetSize)},
5308 {SIP_MLNAME_CAST(sipName_DoMoveWindow), SIP_MLMETH_CAST(meth_wxDataViewCtrl_DoMoveWindow), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_DoMoveWindow)},
5309 {SIP_MLNAME_CAST(sipName_DoSetClientSize), SIP_MLMETH_CAST(meth_wxDataViewCtrl_DoSetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_DoSetClientSize)},
5310 {SIP_MLNAME_CAST(sipName_DoSetSize), SIP_MLMETH_CAST(meth_wxDataViewCtrl_DoSetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_DoSetSize)},
5311 {SIP_MLNAME_CAST(sipName_DoSetSizeHints), SIP_MLMETH_CAST(meth_wxDataViewCtrl_DoSetSizeHints), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_DoSetSizeHints)},
5312 {SIP_MLNAME_CAST(sipName_DoSetWindowVariant), SIP_MLMETH_CAST(meth_wxDataViewCtrl_DoSetWindowVariant), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_DoSetWindowVariant)},
5313 {SIP_MLNAME_CAST(sipName_DoThaw), meth_wxDataViewCtrl_DoThaw, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_DoThaw)},
5314 {SIP_MLNAME_CAST(sipName_EditItem), SIP_MLMETH_CAST(meth_wxDataViewCtrl_EditItem), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_EditItem)},
5315 {SIP_MLNAME_CAST(sipName_EnableDragSource), SIP_MLMETH_CAST(meth_wxDataViewCtrl_EnableDragSource), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_EnableDragSource)},
5316 {SIP_MLNAME_CAST(sipName_EnableDropTarget), SIP_MLMETH_CAST(meth_wxDataViewCtrl_EnableDropTarget), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_EnableDropTarget)},
5317 {SIP_MLNAME_CAST(sipName_EnsureVisible), SIP_MLMETH_CAST(meth_wxDataViewCtrl_EnsureVisible), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_EnsureVisible)},
5318 {SIP_MLNAME_CAST(sipName_Expand), SIP_MLMETH_CAST(meth_wxDataViewCtrl_Expand), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_Expand)},
5319 {SIP_MLNAME_CAST(sipName_ExpandAncestors), SIP_MLMETH_CAST(meth_wxDataViewCtrl_ExpandAncestors), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_ExpandAncestors)},
5320 {SIP_MLNAME_CAST(sipName_GetClassDefaultAttributes), SIP_MLMETH_CAST(meth_wxDataViewCtrl_GetClassDefaultAttributes), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetClassDefaultAttributes)},
5321 {SIP_MLNAME_CAST(sipName_GetClientAreaOrigin), meth_wxDataViewCtrl_GetClientAreaOrigin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetClientAreaOrigin)},
5322 {SIP_MLNAME_CAST(sipName_GetColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_GetColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetColumn)},
5323 {SIP_MLNAME_CAST(sipName_GetColumnCount), meth_wxDataViewCtrl_GetColumnCount, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetColumnCount)},
5324 {SIP_MLNAME_CAST(sipName_GetColumnPosition), SIP_MLMETH_CAST(meth_wxDataViewCtrl_GetColumnPosition), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetColumnPosition)},
5325 {SIP_MLNAME_CAST(sipName_GetCurrentColumn), meth_wxDataViewCtrl_GetCurrentColumn, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetCurrentColumn)},
5326 {SIP_MLNAME_CAST(sipName_GetCurrentItem), meth_wxDataViewCtrl_GetCurrentItem, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetCurrentItem)},
5327 {SIP_MLNAME_CAST(sipName_GetDefaultBorder), meth_wxDataViewCtrl_GetDefaultBorder, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetDefaultBorder)},
5328 {SIP_MLNAME_CAST(sipName_GetDefaultBorderForControl), meth_wxDataViewCtrl_GetDefaultBorderForControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetDefaultBorderForControl)},
5329 {SIP_MLNAME_CAST(sipName_GetExpanderColumn), meth_wxDataViewCtrl_GetExpanderColumn, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetExpanderColumn)},
5330 {SIP_MLNAME_CAST(sipName_GetIndent), meth_wxDataViewCtrl_GetIndent, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetIndent)},
5331 {SIP_MLNAME_CAST(sipName_GetItemRect), SIP_MLMETH_CAST(meth_wxDataViewCtrl_GetItemRect), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetItemRect)},
5332 {SIP_MLNAME_CAST(sipName_GetMainWindowOfCompositeControl), meth_wxDataViewCtrl_GetMainWindowOfCompositeControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetMainWindowOfCompositeControl)},
5333 {SIP_MLNAME_CAST(sipName_GetModel), meth_wxDataViewCtrl_GetModel, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetModel)},
5334 {SIP_MLNAME_CAST(sipName_GetSelectedItemsCount), meth_wxDataViewCtrl_GetSelectedItemsCount, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetSelectedItemsCount)},
5335 {SIP_MLNAME_CAST(sipName_GetSelection), meth_wxDataViewCtrl_GetSelection, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetSelection)},
5336 {SIP_MLNAME_CAST(sipName_GetSelections), meth_wxDataViewCtrl_GetSelections, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetSelections)},
5337 {SIP_MLNAME_CAST(sipName_GetSortingColumn), meth_wxDataViewCtrl_GetSortingColumn, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetSortingColumn)},
5338 {SIP_MLNAME_CAST(sipName_GetValidator), meth_wxDataViewCtrl_GetValidator, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_GetValidator)},
5339 {SIP_MLNAME_CAST(sipName_HasSelection), meth_wxDataViewCtrl_HasSelection, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_HasSelection)},
5340 {SIP_MLNAME_CAST(sipName_HasTransparentBackground), meth_wxDataViewCtrl_HasTransparentBackground, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_HasTransparentBackground)},
5341 {SIP_MLNAME_CAST(sipName_HitTest), SIP_MLMETH_CAST(meth_wxDataViewCtrl_HitTest), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_HitTest)},
5342 {SIP_MLNAME_CAST(sipName_InformFirstDirection), SIP_MLMETH_CAST(meth_wxDataViewCtrl_InformFirstDirection), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_InformFirstDirection)},
5343 {SIP_MLNAME_CAST(sipName_InheritAttributes), meth_wxDataViewCtrl_InheritAttributes, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_InheritAttributes)},
5344 {SIP_MLNAME_CAST(sipName_InitDialog), meth_wxDataViewCtrl_InitDialog, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_InitDialog)},
5345 {SIP_MLNAME_CAST(sipName_InsertColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_InsertColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_InsertColumn)},
5346 {SIP_MLNAME_CAST(sipName_IsExpanded), SIP_MLMETH_CAST(meth_wxDataViewCtrl_IsExpanded), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_IsExpanded)},
5347 {SIP_MLNAME_CAST(sipName_IsSelected), SIP_MLMETH_CAST(meth_wxDataViewCtrl_IsSelected), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_IsSelected)},
5348 {SIP_MLNAME_CAST(sipName_OnInternalIdle), meth_wxDataViewCtrl_OnInternalIdle, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_OnInternalIdle)},
5349 {SIP_MLNAME_CAST(sipName_PrependBitmapColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_PrependBitmapColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_PrependBitmapColumn)},
5350 {SIP_MLNAME_CAST(sipName_PrependColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_PrependColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_PrependColumn)},
5351 {SIP_MLNAME_CAST(sipName_PrependDateColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_PrependDateColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_PrependDateColumn)},
5352 {SIP_MLNAME_CAST(sipName_PrependIconTextColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_PrependIconTextColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_PrependIconTextColumn)},
5353 {SIP_MLNAME_CAST(sipName_PrependProgressColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_PrependProgressColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_PrependProgressColumn)},
5354 {SIP_MLNAME_CAST(sipName_PrependTextColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_PrependTextColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_PrependTextColumn)},
5355 {SIP_MLNAME_CAST(sipName_PrependToggleColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_PrependToggleColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_PrependToggleColumn)},
5356 {SIP_MLNAME_CAST(sipName_ProcessEvent), SIP_MLMETH_CAST(meth_wxDataViewCtrl_ProcessEvent), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_ProcessEvent)},
5357 {SIP_MLNAME_CAST(sipName_RemoveChild), SIP_MLMETH_CAST(meth_wxDataViewCtrl_RemoveChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_RemoveChild)},
5358 {SIP_MLNAME_CAST(sipName_Select), SIP_MLMETH_CAST(meth_wxDataViewCtrl_Select), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_Select)},
5359 {SIP_MLNAME_CAST(sipName_SelectAll), meth_wxDataViewCtrl_SelectAll, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_SelectAll)},
5360 {SIP_MLNAME_CAST(sipName_SendDestroyEvent), meth_wxDataViewCtrl_SendDestroyEvent, METH_VARARGS, SIP_NULLPTR},
5361 {SIP_MLNAME_CAST(sipName_SetCanFocus), SIP_MLMETH_CAST(meth_wxDataViewCtrl_SetCanFocus), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_SetCanFocus)},
5362 {SIP_MLNAME_CAST(sipName_SetCurrentItem), SIP_MLMETH_CAST(meth_wxDataViewCtrl_SetCurrentItem), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_SetCurrentItem)},
5363 {SIP_MLNAME_CAST(sipName_SetExpanderColumn), SIP_MLMETH_CAST(meth_wxDataViewCtrl_SetExpanderColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_SetExpanderColumn)},
5364 {SIP_MLNAME_CAST(sipName_SetIndent), SIP_MLMETH_CAST(meth_wxDataViewCtrl_SetIndent), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_SetIndent)},
5365 {SIP_MLNAME_CAST(sipName_SetRowHeight), SIP_MLMETH_CAST(meth_wxDataViewCtrl_SetRowHeight), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_SetRowHeight)},
5366 {SIP_MLNAME_CAST(sipName_SetSelections), SIP_MLMETH_CAST(meth_wxDataViewCtrl_SetSelections), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_SetSelections)},
5367 {SIP_MLNAME_CAST(sipName_SetValidator), SIP_MLMETH_CAST(meth_wxDataViewCtrl_SetValidator), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_SetValidator)},
5368 {SIP_MLNAME_CAST(sipName_ShouldInheritColours), meth_wxDataViewCtrl_ShouldInheritColours, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_ShouldInheritColours)},
5369 {SIP_MLNAME_CAST(sipName_TransferDataFromWindow), meth_wxDataViewCtrl_TransferDataFromWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_TransferDataFromWindow)},
5370 {SIP_MLNAME_CAST(sipName_TransferDataToWindow), meth_wxDataViewCtrl_TransferDataToWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_TransferDataToWindow)},
5371 {SIP_MLNAME_CAST(sipName_TryAfter), SIP_MLMETH_CAST(meth_wxDataViewCtrl_TryAfter), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_TryAfter)},
5372 {SIP_MLNAME_CAST(sipName_TryBefore), SIP_MLMETH_CAST(meth_wxDataViewCtrl_TryBefore), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_TryBefore)},
5373 {SIP_MLNAME_CAST(sipName_Unselect), SIP_MLMETH_CAST(meth_wxDataViewCtrl_Unselect), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_Unselect)},
5374 {SIP_MLNAME_CAST(sipName_UnselectAll), meth_wxDataViewCtrl_UnselectAll, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_UnselectAll)},
5375 {SIP_MLNAME_CAST(sipName_Validate), meth_wxDataViewCtrl_Validate, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewCtrl_Validate)},
5376 {SIP_MLNAME_CAST(sipName__AssociateModel), SIP_MLMETH_CAST(meth_wxDataViewCtrl__AssociateModel), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewCtrl__AssociateModel)}
5377 };
5378
5379 sipVariableDef variables_wxDataViewCtrl[] = {
5380 {PropertyVariable, sipName_SortingColumn, &methods_wxDataViewCtrl[53], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
5381 {PropertyVariable, sipName_Selections, &methods_wxDataViewCtrl[52], &methods_wxDataViewCtrl[82], SIP_NULLPTR, SIP_NULLPTR},
5382 {PropertyVariable, sipName_Selection, &methods_wxDataViewCtrl[51], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
5383 {PropertyVariable, sipName_SelectedItemsCount, &methods_wxDataViewCtrl[50], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
5384 {PropertyVariable, sipName_Model, &methods_wxDataViewCtrl[49], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
5385 {PropertyVariable, sipName_Indent, &methods_wxDataViewCtrl[46], &methods_wxDataViewCtrl[80], SIP_NULLPTR, SIP_NULLPTR},
5386 {PropertyVariable, sipName_ExpanderColumn, &methods_wxDataViewCtrl[45], &methods_wxDataViewCtrl[79], SIP_NULLPTR, SIP_NULLPTR},
5387 {PropertyVariable, sipName_CurrentItem, &methods_wxDataViewCtrl[42], &methods_wxDataViewCtrl[78], SIP_NULLPTR, SIP_NULLPTR},
5388 {PropertyVariable, sipName_CurrentColumn, &methods_wxDataViewCtrl[41], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
5389 {PropertyVariable, sipName_ColumnCount, &methods_wxDataViewCtrl[39], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
5390 };
5391
5392 PyDoc_STRVAR(doc_wxDataViewCtrl, "DataViewCtrl()\n"
5393 "DataViewCtrl(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, validator=wx.DefaultValidator, name=DataViewCtrlNameStr)\n"
5394 "\n"
5395 "wxDataViewCtrl is a control to display data either in a tree like\n"
5396 "fashion or in a tabular form or both.");
5397
5398
5399 sipClassTypeDef sipTypeDef__dataview_wxDataViewCtrl = {
5400 {
5401 -1,
5402 SIP_NULLPTR,
5403 SIP_NULLPTR,
5404 SIP_TYPE_SCC|SIP_TYPE_CLASS,
5405 sipNameNr_wxDataViewCtrl,
5406 {SIP_NULLPTR},
5407 SIP_NULLPTR
5408 },
5409 {
5410 sipNameNr_DataViewCtrl,
5411 {0, 0, 1},
5412 93, methods_wxDataViewCtrl,
5413 0, SIP_NULLPTR,
5414 10, variables_wxDataViewCtrl,
5415 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
5416 },
5417 doc_wxDataViewCtrl,
5418 -1,
5419 -1,
5420 supers_wxDataViewCtrl,
5421 SIP_NULLPTR,
5422 init_type_wxDataViewCtrl,
5423 SIP_NULLPTR,
5424 SIP_NULLPTR,
5425 #if PY_MAJOR_VERSION >= 3
5426 SIP_NULLPTR,
5427 SIP_NULLPTR,
5428 #else
5429 SIP_NULLPTR,
5430 SIP_NULLPTR,
5431 SIP_NULLPTR,
5432 SIP_NULLPTR,
5433 #endif
5434 dealloc_wxDataViewCtrl,
5435 SIP_NULLPTR,
5436 SIP_NULLPTR,
5437 SIP_NULLPTR,
5438 release_wxDataViewCtrl,
5439 cast_wxDataViewCtrl,
5440 SIP_NULLPTR,
5441 SIP_NULLPTR,
5442 SIP_NULLPTR,
5443 SIP_NULLPTR,
5444 SIP_NULLPTR,
5445 SIP_NULLPTR
5446 };
5447