]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/clip_dnd.cpp
New SWIG generated sources
[wxWidgets.git] / utils / wxPython / src / msw / clip_dnd.cpp
1 /*
2 * FILE : msw/clip_dnd.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 810)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 #include "Python.h"
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
47 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
48 extern PyObject *SWIG_newvarlink(void);
49 #ifdef __cplusplus
50 }
51 #endif
52 #define SWIG_init initclip_dndc
53
54 #define SWIG_name "clip_dndc"
55
56 #include "helpers.h"
57 #include <wx/dataobj.h>
58 #include <wx/clipbrd.h>
59 #include <wx/dnd.h>
60
61 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
62 PyObject* o2;
63 PyObject* o3;
64 if (!target) {
65 target = o;
66 } else if (target == Py_None) {
67 Py_DECREF(Py_None);
68 target = o;
69 } else {
70 if (!PyList_Check(target)) {
71 o2 = target;
72 target = PyList_New(0);
73 PyList_Append(target, o2);
74 Py_XDECREF(o2);
75 }
76 PyList_Append(target,o);
77 Py_XDECREF(o);
78 }
79 return target;
80 }
81
82 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
83 PyObject* o2;
84 PyObject* o3;
85
86 if (!target) {
87 target = o;
88 } else if (target == Py_None) {
89 Py_DECREF(Py_None);
90 target = o;
91 } else {
92 if (!PyTuple_Check(target)) {
93 o2 = target;
94 target = PyTuple_New(1);
95 PyTuple_SetItem(target, 0, o2);
96 }
97 o3 = PyTuple_New(1);
98 PyTuple_SetItem(o3, 0, o);
99
100 o2 = target;
101 target = PySequence_Concat(o2, o3);
102 Py_DECREF(o2);
103 Py_DECREF(o3);
104 }
105 return target;
106 }
107
108 static char* wxStringErrorMsg = "string type is required for parameter";
109 // An alternate constructor...
110 wxDataFormat* wxCustomDataFormat(const wxString &id) {
111 return new wxDataFormat(id);
112 }
113
114 wxDataFormat wxPyFormatInvalid;
115 // Create a new class for wxPython to use
116 class wxPyDataObjectSimple : public wxDataObjectSimple {
117 public:
118 wxPyDataObjectSimple(const wxDataFormat& format = wxPyFormatInvalid)
119 : wxDataObjectSimple(format) {}
120
121 DEC_PYCALLBACK_SIZET_(GetDataSize);
122 bool GetDataHere(void *buf);
123 bool SetData(size_t len, const void *buf);
124 PYPRIVATE;
125 };
126
127 IMP_PYCALLBACK_SIZET_(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
128
129 bool wxPyDataObjectSimple::GetDataHere(void *buf) {
130 // We need to get the data for this object and write it to buf. I think
131 // the best way to do this for wxPython is to have the Python method
132 // return either a string or None and then act appropriately with the
133 // C++ version.
134
135 bool rval = FALSE;
136 bool doSave = wxPyRestoreThread();
137 if (m_myInst.findCallback("GetDataHere")) {
138 PyObject* ro;
139 ro = m_myInst.callCallbackObj(Py_BuildValue("()"));
140 rval = (ro != Py_None && PyString_Check(ro));
141 if (rval)
142 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
143 }
144 wxPySaveThread(doSave);
145 return rval;
146 }
147
148 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) {
149 // For this one we simply need to make a string from buf and len
150 // and send it to the Python method.
151 bool rval = FALSE;
152 bool doSave = wxPyRestoreThread();
153 if (m_myInst.findCallback("SetData")) {
154 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
155 rval = m_myInst.callCallback(Py_BuildValue("(O)", data));
156 Py_DECREF(data);
157 }
158 wxPySaveThread(doSave);
159 return rval;
160 }
161 // Create a new class for wxPython to use
162 class wxPyTextDataObject : public wxTextDataObject {
163 public:
164 wxPyTextDataObject(const wxString& text = wxEmptyString)
165 : wxTextDataObject(text) {}
166
167 DEC_PYCALLBACK_SIZET_(GetTextLength);
168 DEC_PYCALLBACK_STRING_(GetText);
169 DEC_PYCALLBACK__STRING(SetText);
170 PYPRIVATE;
171 };
172
173 IMP_PYCALLBACK_SIZET_(wxPyTextDataObject, wxTextDataObject, GetTextLength);
174 IMP_PYCALLBACK_STRING_(wxPyTextDataObject, wxTextDataObject, GetText);
175 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
176
177 // Create a new class for wxPython to use
178 class wxPyBitmapDataObject : public wxBitmapDataObject {
179 public:
180 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
181 : wxBitmapDataObject(bitmap) {}
182
183 wxBitmap GetBitmap();
184 void SetBitmap(const wxBitmap& bitmap);
185 PYPRIVATE;
186 };
187
188 wxBitmap wxPyBitmapDataObject::GetBitmap() {
189 wxBitmap* rval = &wxNullBitmap;
190 bool doSave = wxPyRestoreThread();
191 if (m_myInst.findCallback("GetBitmap")) {
192 PyObject* ro;
193 wxBitmap* ptr;
194 ro = m_myInst.callCallbackObj(Py_BuildValue("()"));
195 if (! SWIG_GetPtrObj(ro, (void **)&ptr, "_wxBitmap_p"))
196 rval = ptr;
197 }
198 wxPySaveThread(doSave);
199 return *rval;
200 }
201
202 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
203 bool doSave = wxPyRestoreThread();
204 if (m_myInst.findCallback("SetBitmap")) {
205 m_myInst.callCallback(Py_BuildValue("(O)",
206 wxPyConstructObject((void*)&bitmap, "wxBitmap")));
207 }
208 wxPySaveThread(doSave);
209 }
210
211 // See below in the init function...
212 wxClipboard* wxPyTheClipboard;
213
214 class wxPyDropSource : public wxDropSource {
215 public:
216 #ifdef __WXMSW__
217 wxPyDropSource(wxWindow *win = NULL,
218 const wxCursor &cursorCopy = wxNullCursor,
219 const wxCursor &cursorMove = wxNullCursor,
220 const wxCursor &cursorStop = wxNullCursor)
221 : wxDropSource(win, cursorCopy, cursorMove, cursorStop) {}
222 #else
223 wxPyDropSource(wxWindow *win = NULL,
224 const wxIcon &go = wxNullIcon)
225 : wxDropSource(win, go) {}
226 #endif
227 ~wxPyDropSource() { }
228
229 DEC_PYCALLBACK_BOOL_DR(GiveFeedback);
230 PYPRIVATE;
231 };
232
233 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
234
235
236 class wxPyDropTarget : public wxDropTarget {
237 public:
238 wxPyDropTarget(wxDataObject *dataObject = NULL)
239 : wxDropTarget(dataObject) {}
240
241 // DEC_PYCALLBACK_SIZET_(GetFormatCount);
242 // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat);
243
244 DEC_PYCALLBACK__(OnLeave);
245 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
246 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
247 DEC_PYCALLBACK_DR_2WXCDR_pure(OnData);
248 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
249
250 PYPRIVATE;
251 };
252
253 // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount);
254 // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat);
255
256 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
257 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
258 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
259 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
260 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
261
262
263 class wxPyTextDropTarget : public wxTextDropTarget {
264 public:
265 wxPyTextDropTarget() {}
266
267 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
268
269 DEC_PYCALLBACK__(OnLeave);
270 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
271 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
272 DEC_PYCALLBACK_DR_2WXCDR(OnData);
273 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
274
275 PYPRIVATE;
276 };
277
278 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
279 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
280 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
281 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
282 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
283 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
284
285
286 class wxPyFileDropTarget : public wxFileDropTarget {
287 public:
288 wxPyFileDropTarget() {}
289
290 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
291
292 DEC_PYCALLBACK__(OnLeave);
293 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
294 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
295 DEC_PYCALLBACK_DR_2WXCDR(OnData);
296 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
297
298 PYPRIVATE;
299 };
300
301 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
302 const wxArrayString& filenames) {
303 bool rval = FALSE;
304 bool doSave = wxPyRestoreThread();
305 PyObject* list = PyList_New(0);
306 for (size_t i=0; i<filenames.GetCount(); i++) {
307 PyObject* str = PyString_FromString(filenames[i].c_str());
308 PyList_Append(list, str);
309 }
310 if (m_myInst.findCallback("OnDropFiles"))
311 rval = m_myInst.callCallback(Py_BuildValue("(iiO)",x,y,list));
312 Py_DECREF(list);
313 wxPySaveThread(doSave);
314 return rval;
315 }
316
317
318
319 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
320 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
321 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
322 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
323 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
324
325 #ifdef __cplusplus
326 extern "C" {
327 #endif
328 static PyObject *_wrap_wxCustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
329 PyObject * _resultobj;
330 wxDataFormat * _result;
331 wxString * _arg0;
332 PyObject * _obj0 = 0;
333 char *_kwnames[] = { "id", NULL };
334 char _ptemp[128];
335
336 self = self;
337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCustomDataFormat",_kwnames,&_obj0))
338 return NULL;
339 {
340 if (!PyString_Check(_obj0)) {
341 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
342 return NULL;
343 }
344 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
345 }
346 {
347 wxPy_BEGIN_ALLOW_THREADS;
348 _result = (wxDataFormat *)wxCustomDataFormat(*_arg0);
349
350 wxPy_END_ALLOW_THREADS;
351 } if (_result) {
352 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataFormat_p");
353 _resultobj = Py_BuildValue("s",_ptemp);
354 } else {
355 Py_INCREF(Py_None);
356 _resultobj = Py_None;
357 }
358 {
359 if (_obj0)
360 delete _arg0;
361 }
362 return _resultobj;
363 }
364
365 static int _wrap_wxPyFormatInvalid_set(PyObject *val) {
366
367 PyErr_SetString(PyExc_TypeError,"Variable wxFormatInvalid is read-only.");
368 return 1;
369 }
370
371 static PyObject *_wrap_wxPyFormatInvalid_get() {
372 PyObject * pyobj;
373 char ptemp[128];
374
375 SWIG_MakePtr(ptemp,(char *) &wxPyFormatInvalid,"_wxDataFormat_p");
376 pyobj = PyString_FromString(ptemp);
377 return pyobj;
378 }
379
380 static int _wrap_wxPyTheClipboard_set(PyObject *val) {
381
382 PyErr_SetString(PyExc_TypeError,"Variable wxTheClipboard is read-only.");
383 return 1;
384 }
385
386 static PyObject *_wrap_wxPyTheClipboard_get() {
387 PyObject * pyobj;
388 char ptemp[128];
389
390 SWIG_MakePtr(ptemp, (char *) wxPyTheClipboard,"_wxClipboard_p");
391 pyobj = PyString_FromString(ptemp);
392 return pyobj;
393 }
394
395 static PyObject *_wrap_wxIsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
396 PyObject * _resultobj;
397 bool _result;
398 wxDragResult _arg0;
399 char *_kwnames[] = { "res", NULL };
400
401 self = self;
402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxIsDragResultOk",_kwnames,&_arg0))
403 return NULL;
404 {
405 wxPy_BEGIN_ALLOW_THREADS;
406 _result = (bool )wxIsDragResultOk(_arg0);
407
408 wxPy_END_ALLOW_THREADS;
409 } _resultobj = Py_BuildValue("i",_result);
410 return _resultobj;
411 }
412
413 #define new_wxDataFormat(_swigarg0) (new wxDataFormat(_swigarg0))
414 static PyObject *_wrap_new_wxDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
415 PyObject * _resultobj;
416 wxDataFormat * _result;
417 wxDataFormatId _arg0;
418 char *_kwnames[] = { "type", NULL };
419 char _ptemp[128];
420
421 self = self;
422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxDataFormat",_kwnames,&_arg0))
423 return NULL;
424 {
425 wxPy_BEGIN_ALLOW_THREADS;
426 _result = (wxDataFormat *)new_wxDataFormat(_arg0);
427
428 wxPy_END_ALLOW_THREADS;
429 } if (_result) {
430 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataFormat_p");
431 _resultobj = Py_BuildValue("s",_ptemp);
432 } else {
433 Py_INCREF(Py_None);
434 _resultobj = Py_None;
435 }
436 return _resultobj;
437 }
438
439 #define delete_wxDataFormat(_swigobj) (delete _swigobj)
440 static PyObject *_wrap_delete_wxDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
441 PyObject * _resultobj;
442 wxDataFormat * _arg0;
443 PyObject * _argo0 = 0;
444 char *_kwnames[] = { "self", NULL };
445
446 self = self;
447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDataFormat",_kwnames,&_argo0))
448 return NULL;
449 if (_argo0) {
450 if (_argo0 == Py_None) { _arg0 = NULL; }
451 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) {
452 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDataFormat. Expected _wxDataFormat_p.");
453 return NULL;
454 }
455 }
456 {
457 wxPy_BEGIN_ALLOW_THREADS;
458 delete_wxDataFormat(_arg0);
459
460 wxPy_END_ALLOW_THREADS;
461 } Py_INCREF(Py_None);
462 _resultobj = Py_None;
463 return _resultobj;
464 }
465
466 #define wxDataFormat_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
467 static PyObject *_wrap_wxDataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
468 PyObject * _resultobj;
469 wxDataFormat * _arg0;
470 wxDataFormatId _arg1;
471 PyObject * _argo0 = 0;
472 char *_kwnames[] = { "self","format", NULL };
473
474 self = self;
475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDataFormat_SetType",_kwnames,&_argo0,&_arg1))
476 return NULL;
477 if (_argo0) {
478 if (_argo0 == Py_None) { _arg0 = NULL; }
479 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) {
480 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataFormat_SetType. Expected _wxDataFormat_p.");
481 return NULL;
482 }
483 }
484 {
485 wxPy_BEGIN_ALLOW_THREADS;
486 wxDataFormat_SetType(_arg0,_arg1);
487
488 wxPy_END_ALLOW_THREADS;
489 } Py_INCREF(Py_None);
490 _resultobj = Py_None;
491 return _resultobj;
492 }
493
494 #define wxDataFormat_GetType(_swigobj) (_swigobj->GetType())
495 static PyObject *_wrap_wxDataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
496 PyObject * _resultobj;
497 wxDataFormatId _result;
498 wxDataFormat * _arg0;
499 PyObject * _argo0 = 0;
500 char *_kwnames[] = { "self", NULL };
501
502 self = self;
503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDataFormat_GetType",_kwnames,&_argo0))
504 return NULL;
505 if (_argo0) {
506 if (_argo0 == Py_None) { _arg0 = NULL; }
507 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) {
508 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataFormat_GetType. Expected _wxDataFormat_p.");
509 return NULL;
510 }
511 }
512 {
513 wxPy_BEGIN_ALLOW_THREADS;
514 _result = (wxDataFormatId )wxDataFormat_GetType(_arg0);
515
516 wxPy_END_ALLOW_THREADS;
517 } _resultobj = Py_BuildValue("i",_result);
518 return _resultobj;
519 }
520
521 #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId())
522 static PyObject *_wrap_wxDataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
523 PyObject * _resultobj;
524 wxString * _result;
525 wxDataFormat * _arg0;
526 PyObject * _argo0 = 0;
527 char *_kwnames[] = { "self", NULL };
528
529 self = self;
530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDataFormat_GetId",_kwnames,&_argo0))
531 return NULL;
532 if (_argo0) {
533 if (_argo0 == Py_None) { _arg0 = NULL; }
534 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) {
535 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataFormat_GetId. Expected _wxDataFormat_p.");
536 return NULL;
537 }
538 }
539 {
540 wxPy_BEGIN_ALLOW_THREADS;
541 _result = new wxString (wxDataFormat_GetId(_arg0));
542
543 wxPy_END_ALLOW_THREADS;
544 }{
545 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
546 }
547 {
548 delete _result;
549 }
550 return _resultobj;
551 }
552
553 #define wxDataFormat_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
554 static PyObject *_wrap_wxDataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
555 PyObject * _resultobj;
556 wxDataFormat * _arg0;
557 char * _arg1;
558 PyObject * _argo0 = 0;
559 char *_kwnames[] = { "self","format", NULL };
560
561 self = self;
562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxDataFormat_SetId",_kwnames,&_argo0,&_arg1))
563 return NULL;
564 if (_argo0) {
565 if (_argo0 == Py_None) { _arg0 = NULL; }
566 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) {
567 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataFormat_SetId. Expected _wxDataFormat_p.");
568 return NULL;
569 }
570 }
571 {
572 wxPy_BEGIN_ALLOW_THREADS;
573 wxDataFormat_SetId(_arg0,_arg1);
574
575 wxPy_END_ALLOW_THREADS;
576 } Py_INCREF(Py_None);
577 _resultobj = Py_None;
578 return _resultobj;
579 }
580
581 #define delete_wxDataObject(_swigobj) (delete _swigobj)
582 static PyObject *_wrap_delete_wxDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
583 PyObject * _resultobj;
584 wxDataObject * _arg0;
585 PyObject * _argo0 = 0;
586 char *_kwnames[] = { "self", NULL };
587
588 self = self;
589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDataObject",_kwnames,&_argo0))
590 return NULL;
591 if (_argo0) {
592 if (_argo0 == Py_None) { _arg0 = NULL; }
593 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
594 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDataObject. Expected _wxDataObject_p.");
595 return NULL;
596 }
597 }
598 {
599 wxPy_BEGIN_ALLOW_THREADS;
600 delete_wxDataObject(_arg0);
601
602 wxPy_END_ALLOW_THREADS;
603 } Py_INCREF(Py_None);
604 _resultobj = Py_None;
605 return _resultobj;
606 }
607
608 #define wxDataObject_GetPreferredFormat(_swigobj,_swigarg0) (_swigobj->GetPreferredFormat(_swigarg0))
609 static PyObject *_wrap_wxDataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
610 PyObject * _resultobj;
611 wxDataFormat * _result;
612 wxDataObject * _arg0;
613 wxDataObject::Direction _arg1 = (wxDataObject::Direction ) wxDataObject::Get;
614 PyObject * _argo0 = 0;
615 char *_kwnames[] = { "self","dir", NULL };
616 char _ptemp[128];
617
618 self = self;
619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDataObject_GetPreferredFormat",_kwnames,&_argo0,&_arg1))
620 return NULL;
621 if (_argo0) {
622 if (_argo0 == Py_None) { _arg0 = NULL; }
623 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
624 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_GetPreferredFormat. Expected _wxDataObject_p.");
625 return NULL;
626 }
627 }
628 {
629 wxPy_BEGIN_ALLOW_THREADS;
630 _result = new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0,_arg1));
631
632 wxPy_END_ALLOW_THREADS;
633 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDataFormat_p");
634 _resultobj = Py_BuildValue("s",_ptemp);
635 return _resultobj;
636 }
637
638 #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0))
639 static PyObject *_wrap_wxDataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
640 PyObject * _resultobj;
641 size_t _result;
642 wxDataObject * _arg0;
643 wxDataObject::Direction _arg1 = (wxDataObject::Direction ) wxDataObject::Get;
644 PyObject * _argo0 = 0;
645 char *_kwnames[] = { "self","dir", NULL };
646
647 self = self;
648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDataObject_GetFormatCount",_kwnames,&_argo0,&_arg1))
649 return NULL;
650 if (_argo0) {
651 if (_argo0 == Py_None) { _arg0 = NULL; }
652 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
653 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_GetFormatCount. Expected _wxDataObject_p.");
654 return NULL;
655 }
656 }
657 {
658 wxPy_BEGIN_ALLOW_THREADS;
659 _result = (size_t )wxDataObject_GetFormatCount(_arg0,_arg1);
660
661 wxPy_END_ALLOW_THREADS;
662 } _resultobj = Py_BuildValue("i",_result);
663 return _resultobj;
664 }
665
666 #define wxDataObject_GetAllFormats(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAllFormats(_swigarg0,_swigarg1))
667 static PyObject *_wrap_wxDataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
668 PyObject * _resultobj;
669 wxDataObject * _arg0;
670 wxDataFormat * _arg1;
671 wxDataObject::Direction _arg2 = (wxDataObject::Direction ) wxDataObject::Get;
672 PyObject * _argo0 = 0;
673 PyObject * _argo1 = 0;
674 char *_kwnames[] = { "self","formats","dir", NULL };
675
676 self = self;
677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxDataObject_GetAllFormats",_kwnames,&_argo0,&_argo1,&_arg2))
678 return NULL;
679 if (_argo0) {
680 if (_argo0 == Py_None) { _arg0 = NULL; }
681 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
682 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_GetAllFormats. Expected _wxDataObject_p.");
683 return NULL;
684 }
685 }
686 if (_argo1) {
687 if (_argo1 == Py_None) { _arg1 = NULL; }
688 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) {
689 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObject_GetAllFormats. Expected _wxDataFormat_p.");
690 return NULL;
691 }
692 }
693 {
694 wxPy_BEGIN_ALLOW_THREADS;
695 wxDataObject_GetAllFormats(_arg0,_arg1,_arg2);
696
697 wxPy_END_ALLOW_THREADS;
698 } Py_INCREF(Py_None);
699 _resultobj = Py_None;
700 return _resultobj;
701 }
702
703 #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0))
704 static PyObject *_wrap_wxDataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
705 PyObject * _resultobj;
706 size_t _result;
707 wxDataObject * _arg0;
708 wxDataFormat * _arg1;
709 PyObject * _argo0 = 0;
710 PyObject * _argo1 = 0;
711 char *_kwnames[] = { "self","format", NULL };
712
713 self = self;
714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDataObject_GetDataSize",_kwnames,&_argo0,&_argo1))
715 return NULL;
716 if (_argo0) {
717 if (_argo0 == Py_None) { _arg0 = NULL; }
718 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
719 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_GetDataSize. Expected _wxDataObject_p.");
720 return NULL;
721 }
722 }
723 if (_argo1) {
724 if (_argo1 == Py_None) { _arg1 = NULL; }
725 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) {
726 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObject_GetDataSize. Expected _wxDataFormat_p.");
727 return NULL;
728 }
729 }
730 {
731 wxPy_BEGIN_ALLOW_THREADS;
732 _result = (size_t )wxDataObject_GetDataSize(_arg0,*_arg1);
733
734 wxPy_END_ALLOW_THREADS;
735 } _resultobj = Py_BuildValue("i",_result);
736 return _resultobj;
737 }
738
739 #define wxDataObject_GetDataHere(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDataHere(_swigarg0,_swigarg1))
740 static PyObject *_wrap_wxDataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
741 PyObject * _resultobj;
742 bool _result;
743 wxDataObject * _arg0;
744 wxDataFormat * _arg1;
745 void * _arg2;
746 PyObject * _argo0 = 0;
747 PyObject * _argo1 = 0;
748 PyObject * _argo2 = 0;
749 char *_kwnames[] = { "self","format","buf", NULL };
750
751 self = self;
752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDataObject_GetDataHere",_kwnames,&_argo0,&_argo1,&_argo2))
753 return NULL;
754 if (_argo0) {
755 if (_argo0 == Py_None) { _arg0 = NULL; }
756 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
757 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_GetDataHere. Expected _wxDataObject_p.");
758 return NULL;
759 }
760 }
761 if (_argo1) {
762 if (_argo1 == Py_None) { _arg1 = NULL; }
763 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) {
764 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObject_GetDataHere. Expected _wxDataFormat_p.");
765 return NULL;
766 }
767 }
768 if (_argo2) {
769 if (_argo2 == Py_None) { _arg2 = NULL; }
770 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,(char *) 0 )) {
771 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDataObject_GetDataHere. Expected _void_p.");
772 return NULL;
773 }
774 }
775 {
776 wxPy_BEGIN_ALLOW_THREADS;
777 _result = (bool )wxDataObject_GetDataHere(_arg0,*_arg1,_arg2);
778
779 wxPy_END_ALLOW_THREADS;
780 } _resultobj = Py_BuildValue("i",_result);
781 return _resultobj;
782 }
783
784 #define wxDataObject_SetData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetData(_swigarg0,_swigarg1,_swigarg2))
785 static PyObject *_wrap_wxDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
786 PyObject * _resultobj;
787 bool _result;
788 wxDataObject * _arg0;
789 wxDataFormat * _arg1;
790 size_t _arg2;
791 void * _arg3;
792 PyObject * _argo0 = 0;
793 PyObject * _argo1 = 0;
794 PyObject * _argo3 = 0;
795 char *_kwnames[] = { "self","format","len","buf", NULL };
796
797 self = self;
798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO:wxDataObject_SetData",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3))
799 return NULL;
800 if (_argo0) {
801 if (_argo0 == Py_None) { _arg0 = NULL; }
802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_SetData. Expected _wxDataObject_p.");
804 return NULL;
805 }
806 }
807 if (_argo1) {
808 if (_argo1 == Py_None) { _arg1 = NULL; }
809 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) {
810 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObject_SetData. Expected _wxDataFormat_p.");
811 return NULL;
812 }
813 }
814 if (_argo3) {
815 if (_argo3 == Py_None) { _arg3 = NULL; }
816 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,(char *) 0 )) {
817 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDataObject_SetData. Expected _void_p.");
818 return NULL;
819 }
820 }
821 {
822 wxPy_BEGIN_ALLOW_THREADS;
823 _result = (bool )wxDataObject_SetData(_arg0,*_arg1,_arg2,_arg3);
824
825 wxPy_END_ALLOW_THREADS;
826 } _resultobj = Py_BuildValue("i",_result);
827 return _resultobj;
828 }
829
830 #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0))
831 static PyObject *_wrap_wxDataObject_IsSupportedFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
832 PyObject * _resultobj;
833 bool _result;
834 wxDataObject * _arg0;
835 wxDataFormat * _arg1;
836 PyObject * _argo0 = 0;
837 PyObject * _argo1 = 0;
838 char *_kwnames[] = { "self","format", NULL };
839
840 self = self;
841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDataObject_IsSupportedFormat",_kwnames,&_argo0,&_argo1))
842 return NULL;
843 if (_argo0) {
844 if (_argo0 == Py_None) { _arg0 = NULL; }
845 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
846 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_IsSupportedFormat. Expected _wxDataObject_p.");
847 return NULL;
848 }
849 }
850 if (_argo1) {
851 if (_argo1 == Py_None) { _arg1 = NULL; }
852 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) {
853 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObject_IsSupportedFormat. Expected _wxDataFormat_p.");
854 return NULL;
855 }
856 }
857 {
858 wxPy_BEGIN_ALLOW_THREADS;
859 _result = (bool )wxDataObject_IsSupportedFormat(_arg0,*_arg1);
860
861 wxPy_END_ALLOW_THREADS;
862 } _resultobj = Py_BuildValue("i",_result);
863 return _resultobj;
864 }
865
866 static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr) {
867 wxDataObjectSimple *src;
868 wxDataObject *dest;
869 src = (wxDataObjectSimple *) ptr;
870 dest = (wxDataObject *) src;
871 return (void *) dest;
872 }
873
874 #define new_wxDataObjectSimple(_swigarg0) (new wxDataObjectSimple(_swigarg0))
875 static PyObject *_wrap_new_wxDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
876 PyObject * _resultobj;
877 wxDataObjectSimple * _result;
878 wxDataFormat * _arg0 = (wxDataFormat *) &wxPyFormatInvalid;
879 PyObject * _argo0 = 0;
880 char *_kwnames[] = { "format", NULL };
881 char _ptemp[128];
882
883 self = self;
884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxDataObjectSimple",_kwnames,&_argo0))
885 return NULL;
886 if (_argo0) {
887 if (_argo0 == Py_None) { _arg0 = NULL; }
888 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) {
889 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDataObjectSimple. Expected _wxDataFormat_p.");
890 return NULL;
891 }
892 }
893 {
894 wxPy_BEGIN_ALLOW_THREADS;
895 _result = (wxDataObjectSimple *)new_wxDataObjectSimple(*_arg0);
896
897 wxPy_END_ALLOW_THREADS;
898 } if (_result) {
899 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObjectSimple_p");
900 _resultobj = Py_BuildValue("s",_ptemp);
901 } else {
902 Py_INCREF(Py_None);
903 _resultobj = Py_None;
904 }
905 return _resultobj;
906 }
907
908 #define wxDataObjectSimple_GetFormat(_swigobj) (_swigobj->GetFormat())
909 static PyObject *_wrap_wxDataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
910 PyObject * _resultobj;
911 wxDataFormat * _result;
912 wxDataObjectSimple * _arg0;
913 PyObject * _argo0 = 0;
914 char *_kwnames[] = { "self", NULL };
915 char _ptemp[128];
916
917 self = self;
918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDataObjectSimple_GetFormat",_kwnames,&_argo0))
919 return NULL;
920 if (_argo0) {
921 if (_argo0 == Py_None) { _arg0 = NULL; }
922 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObjectSimple_p")) {
923 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObjectSimple_GetFormat. Expected _wxDataObjectSimple_p.");
924 return NULL;
925 }
926 }
927 {
928 wxPy_BEGIN_ALLOW_THREADS;
929 const wxDataFormat & _result_ref = wxDataObjectSimple_GetFormat(_arg0);
930 _result = (wxDataFormat *) &_result_ref;
931
932 wxPy_END_ALLOW_THREADS;
933 } if (_result) {
934 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataFormat_p");
935 _resultobj = Py_BuildValue("s",_ptemp);
936 } else {
937 Py_INCREF(Py_None);
938 _resultobj = Py_None;
939 }
940 return _resultobj;
941 }
942
943 #define wxDataObjectSimple_SetFormat(_swigobj,_swigarg0) (_swigobj->SetFormat(_swigarg0))
944 static PyObject *_wrap_wxDataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
945 PyObject * _resultobj;
946 wxDataObjectSimple * _arg0;
947 wxDataFormat * _arg1;
948 PyObject * _argo0 = 0;
949 PyObject * _argo1 = 0;
950 char *_kwnames[] = { "self","format", NULL };
951
952 self = self;
953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDataObjectSimple_SetFormat",_kwnames,&_argo0,&_argo1))
954 return NULL;
955 if (_argo0) {
956 if (_argo0 == Py_None) { _arg0 = NULL; }
957 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObjectSimple_p")) {
958 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObjectSimple_SetFormat. Expected _wxDataObjectSimple_p.");
959 return NULL;
960 }
961 }
962 if (_argo1) {
963 if (_argo1 == Py_None) { _arg1 = NULL; }
964 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) {
965 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObjectSimple_SetFormat. Expected _wxDataFormat_p.");
966 return NULL;
967 }
968 }
969 {
970 wxPy_BEGIN_ALLOW_THREADS;
971 wxDataObjectSimple_SetFormat(_arg0,*_arg1);
972
973 wxPy_END_ALLOW_THREADS;
974 } Py_INCREF(Py_None);
975 _resultobj = Py_None;
976 return _resultobj;
977 }
978
979 static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr) {
980 wxPyDataObjectSimple *src;
981 wxDataObjectSimple *dest;
982 src = (wxPyDataObjectSimple *) ptr;
983 dest = (wxDataObjectSimple *) src;
984 return (void *) dest;
985 }
986
987 static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr) {
988 wxPyDataObjectSimple *src;
989 wxDataObject *dest;
990 src = (wxPyDataObjectSimple *) ptr;
991 dest = (wxDataObject *) src;
992 return (void *) dest;
993 }
994
995 #define new_wxPyDataObjectSimple(_swigarg0) (new wxPyDataObjectSimple(_swigarg0))
996 static PyObject *_wrap_new_wxPyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
997 PyObject * _resultobj;
998 wxPyDataObjectSimple * _result;
999 wxDataFormat * _arg0 = (wxDataFormat *) &wxPyFormatInvalid;
1000 PyObject * _argo0 = 0;
1001 char *_kwnames[] = { "format", NULL };
1002 char _ptemp[128];
1003
1004 self = self;
1005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPyDataObjectSimple",_kwnames,&_argo0))
1006 return NULL;
1007 if (_argo0) {
1008 if (_argo0 == Py_None) { _arg0 = NULL; }
1009 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) {
1010 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyDataObjectSimple. Expected _wxDataFormat_p.");
1011 return NULL;
1012 }
1013 }
1014 {
1015 wxPy_BEGIN_ALLOW_THREADS;
1016 _result = (wxPyDataObjectSimple *)new_wxPyDataObjectSimple(*_arg0);
1017
1018 wxPy_END_ALLOW_THREADS;
1019 } if (_result) {
1020 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyDataObjectSimple_p");
1021 _resultobj = Py_BuildValue("s",_ptemp);
1022 } else {
1023 Py_INCREF(Py_None);
1024 _resultobj = Py_None;
1025 }
1026 return _resultobj;
1027 }
1028
1029 #define wxPyDataObjectSimple__setSelf(_swigobj,_swigarg0) (_swigobj->_setSelf(_swigarg0))
1030 static PyObject *_wrap_wxPyDataObjectSimple__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
1031 PyObject * _resultobj;
1032 wxPyDataObjectSimple * _arg0;
1033 PyObject * _arg1;
1034 PyObject * _argo0 = 0;
1035 PyObject * _obj1 = 0;
1036 char *_kwnames[] = { "self","self", NULL };
1037
1038 self = self;
1039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyDataObjectSimple__setSelf",_kwnames,&_argo0,&_obj1))
1040 return NULL;
1041 if (_argo0) {
1042 if (_argo0 == Py_None) { _arg0 = NULL; }
1043 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDataObjectSimple_p")) {
1044 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDataObjectSimple__setSelf. Expected _wxPyDataObjectSimple_p.");
1045 return NULL;
1046 }
1047 }
1048 {
1049 _arg1 = _obj1;
1050 }
1051 {
1052 wxPy_BEGIN_ALLOW_THREADS;
1053 wxPyDataObjectSimple__setSelf(_arg0,_arg1);
1054
1055 wxPy_END_ALLOW_THREADS;
1056 } Py_INCREF(Py_None);
1057 _resultobj = Py_None;
1058 return _resultobj;
1059 }
1060
1061 static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr) {
1062 wxDataObjectComposite *src;
1063 wxDataObject *dest;
1064 src = (wxDataObjectComposite *) ptr;
1065 dest = (wxDataObject *) src;
1066 return (void *) dest;
1067 }
1068
1069 #define new_wxDataObjectComposite() (new wxDataObjectComposite())
1070 static PyObject *_wrap_new_wxDataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
1071 PyObject * _resultobj;
1072 wxDataObjectComposite * _result;
1073 char *_kwnames[] = { NULL };
1074 char _ptemp[128];
1075
1076 self = self;
1077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxDataObjectComposite",_kwnames))
1078 return NULL;
1079 {
1080 wxPy_BEGIN_ALLOW_THREADS;
1081 _result = (wxDataObjectComposite *)new_wxDataObjectComposite();
1082
1083 wxPy_END_ALLOW_THREADS;
1084 } if (_result) {
1085 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObjectComposite_p");
1086 _resultobj = Py_BuildValue("s",_ptemp);
1087 } else {
1088 Py_INCREF(Py_None);
1089 _resultobj = Py_None;
1090 }
1091 return _resultobj;
1092 }
1093
1094 #define wxDataObjectComposite_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
1095 static PyObject *_wrap_wxDataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
1096 PyObject * _resultobj;
1097 wxDataObjectComposite * _arg0;
1098 wxDataObjectSimple * _arg1;
1099 int _arg2 = (int ) FALSE;
1100 PyObject * _argo0 = 0;
1101 PyObject * _argo1 = 0;
1102 char *_kwnames[] = { "self","dataObject","preferred", NULL };
1103
1104 self = self;
1105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxDataObjectComposite_Add",_kwnames,&_argo0,&_argo1,&_arg2))
1106 return NULL;
1107 if (_argo0) {
1108 if (_argo0 == Py_None) { _arg0 = NULL; }
1109 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObjectComposite_p")) {
1110 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObjectComposite_Add. Expected _wxDataObjectComposite_p.");
1111 return NULL;
1112 }
1113 }
1114 if (_argo1) {
1115 if (_argo1 == Py_None) { _arg1 = NULL; }
1116 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObjectSimple_p")) {
1117 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObjectComposite_Add. Expected _wxDataObjectSimple_p.");
1118 return NULL;
1119 }
1120 }
1121 {
1122 wxPy_BEGIN_ALLOW_THREADS;
1123 wxDataObjectComposite_Add(_arg0,_arg1,_arg2);
1124
1125 wxPy_END_ALLOW_THREADS;
1126 } Py_INCREF(Py_None);
1127 _resultobj = Py_None;
1128 return _resultobj;
1129 }
1130
1131 static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr) {
1132 wxTextDataObject *src;
1133 wxDataObjectSimple *dest;
1134 src = (wxTextDataObject *) ptr;
1135 dest = (wxDataObjectSimple *) src;
1136 return (void *) dest;
1137 }
1138
1139 static void *SwigwxTextDataObjectTowxDataObject(void *ptr) {
1140 wxTextDataObject *src;
1141 wxDataObject *dest;
1142 src = (wxTextDataObject *) ptr;
1143 dest = (wxDataObject *) src;
1144 return (void *) dest;
1145 }
1146
1147 #define new_wxTextDataObject(_swigarg0) (new wxTextDataObject(_swigarg0))
1148 static PyObject *_wrap_new_wxTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1149 PyObject * _resultobj;
1150 wxTextDataObject * _result;
1151 wxString * _arg0 = (wxString *) &wxEmptyString;
1152 PyObject * _obj0 = 0;
1153 char *_kwnames[] = { "text", NULL };
1154 char _ptemp[128];
1155
1156 self = self;
1157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTextDataObject",_kwnames,&_obj0))
1158 return NULL;
1159 if (_obj0)
1160 {
1161 if (!PyString_Check(_obj0)) {
1162 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1163 return NULL;
1164 }
1165 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
1166 }
1167 {
1168 wxPy_BEGIN_ALLOW_THREADS;
1169 _result = (wxTextDataObject *)new_wxTextDataObject(*_arg0);
1170
1171 wxPy_END_ALLOW_THREADS;
1172 } if (_result) {
1173 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextDataObject_p");
1174 _resultobj = Py_BuildValue("s",_ptemp);
1175 } else {
1176 Py_INCREF(Py_None);
1177 _resultobj = Py_None;
1178 }
1179 {
1180 if (_obj0)
1181 delete _arg0;
1182 }
1183 return _resultobj;
1184 }
1185
1186 #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength())
1187 static PyObject *_wrap_wxTextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
1188 PyObject * _resultobj;
1189 size_t _result;
1190 wxTextDataObject * _arg0;
1191 PyObject * _argo0 = 0;
1192 char *_kwnames[] = { "self", NULL };
1193
1194 self = self;
1195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextDataObject_GetTextLength",_kwnames,&_argo0))
1196 return NULL;
1197 if (_argo0) {
1198 if (_argo0 == Py_None) { _arg0 = NULL; }
1199 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextDataObject_p")) {
1200 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDataObject_GetTextLength. Expected _wxTextDataObject_p.");
1201 return NULL;
1202 }
1203 }
1204 {
1205 wxPy_BEGIN_ALLOW_THREADS;
1206 _result = (size_t )wxTextDataObject_GetTextLength(_arg0);
1207
1208 wxPy_END_ALLOW_THREADS;
1209 } _resultobj = Py_BuildValue("i",_result);
1210 return _resultobj;
1211 }
1212
1213 #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText())
1214 static PyObject *_wrap_wxTextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
1215 PyObject * _resultobj;
1216 wxString * _result;
1217 wxTextDataObject * _arg0;
1218 PyObject * _argo0 = 0;
1219 char *_kwnames[] = { "self", NULL };
1220
1221 self = self;
1222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextDataObject_GetText",_kwnames,&_argo0))
1223 return NULL;
1224 if (_argo0) {
1225 if (_argo0 == Py_None) { _arg0 = NULL; }
1226 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextDataObject_p")) {
1227 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDataObject_GetText. Expected _wxTextDataObject_p.");
1228 return NULL;
1229 }
1230 }
1231 {
1232 wxPy_BEGIN_ALLOW_THREADS;
1233 _result = new wxString (wxTextDataObject_GetText(_arg0));
1234
1235 wxPy_END_ALLOW_THREADS;
1236 }{
1237 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
1238 }
1239 {
1240 delete _result;
1241 }
1242 return _resultobj;
1243 }
1244
1245 #define wxTextDataObject_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
1246 static PyObject *_wrap_wxTextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
1247 PyObject * _resultobj;
1248 wxTextDataObject * _arg0;
1249 wxString * _arg1;
1250 PyObject * _argo0 = 0;
1251 PyObject * _obj1 = 0;
1252 char *_kwnames[] = { "self","text", NULL };
1253
1254 self = self;
1255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextDataObject_SetText",_kwnames,&_argo0,&_obj1))
1256 return NULL;
1257 if (_argo0) {
1258 if (_argo0 == Py_None) { _arg0 = NULL; }
1259 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextDataObject_p")) {
1260 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDataObject_SetText. Expected _wxTextDataObject_p.");
1261 return NULL;
1262 }
1263 }
1264 {
1265 if (!PyString_Check(_obj1)) {
1266 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1267 return NULL;
1268 }
1269 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1270 }
1271 {
1272 wxPy_BEGIN_ALLOW_THREADS;
1273 wxTextDataObject_SetText(_arg0,*_arg1);
1274
1275 wxPy_END_ALLOW_THREADS;
1276 } Py_INCREF(Py_None);
1277 _resultobj = Py_None;
1278 {
1279 if (_obj1)
1280 delete _arg1;
1281 }
1282 return _resultobj;
1283 }
1284
1285 static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr) {
1286 wxPyTextDataObject *src;
1287 wxTextDataObject *dest;
1288 src = (wxPyTextDataObject *) ptr;
1289 dest = (wxTextDataObject *) src;
1290 return (void *) dest;
1291 }
1292
1293 static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr) {
1294 wxPyTextDataObject *src;
1295 wxDataObjectSimple *dest;
1296 src = (wxPyTextDataObject *) ptr;
1297 dest = (wxDataObjectSimple *) src;
1298 return (void *) dest;
1299 }
1300
1301 static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr) {
1302 wxPyTextDataObject *src;
1303 wxDataObject *dest;
1304 src = (wxPyTextDataObject *) ptr;
1305 dest = (wxDataObject *) src;
1306 return (void *) dest;
1307 }
1308
1309 #define new_wxPyTextDataObject(_swigarg0) (new wxPyTextDataObject(_swigarg0))
1310 static PyObject *_wrap_new_wxPyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1311 PyObject * _resultobj;
1312 wxPyTextDataObject * _result;
1313 wxString * _arg0 = (wxString *) &wxEmptyString;
1314 PyObject * _obj0 = 0;
1315 char *_kwnames[] = { "text", NULL };
1316 char _ptemp[128];
1317
1318 self = self;
1319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPyTextDataObject",_kwnames,&_obj0))
1320 return NULL;
1321 if (_obj0)
1322 {
1323 if (!PyString_Check(_obj0)) {
1324 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1325 return NULL;
1326 }
1327 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
1328 }
1329 {
1330 wxPy_BEGIN_ALLOW_THREADS;
1331 _result = (wxPyTextDataObject *)new_wxPyTextDataObject(*_arg0);
1332
1333 wxPy_END_ALLOW_THREADS;
1334 } if (_result) {
1335 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTextDataObject_p");
1336 _resultobj = Py_BuildValue("s",_ptemp);
1337 } else {
1338 Py_INCREF(Py_None);
1339 _resultobj = Py_None;
1340 }
1341 {
1342 if (_obj0)
1343 delete _arg0;
1344 }
1345 return _resultobj;
1346 }
1347
1348 #define wxPyTextDataObject__setSelf(_swigobj,_swigarg0) (_swigobj->_setSelf(_swigarg0))
1349 static PyObject *_wrap_wxPyTextDataObject__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
1350 PyObject * _resultobj;
1351 wxPyTextDataObject * _arg0;
1352 PyObject * _arg1;
1353 PyObject * _argo0 = 0;
1354 PyObject * _obj1 = 0;
1355 char *_kwnames[] = { "self","self", NULL };
1356
1357 self = self;
1358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyTextDataObject__setSelf",_kwnames,&_argo0,&_obj1))
1359 return NULL;
1360 if (_argo0) {
1361 if (_argo0 == Py_None) { _arg0 = NULL; }
1362 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDataObject_p")) {
1363 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTextDataObject__setSelf. Expected _wxPyTextDataObject_p.");
1364 return NULL;
1365 }
1366 }
1367 {
1368 _arg1 = _obj1;
1369 }
1370 {
1371 wxPy_BEGIN_ALLOW_THREADS;
1372 wxPyTextDataObject__setSelf(_arg0,_arg1);
1373
1374 wxPy_END_ALLOW_THREADS;
1375 } Py_INCREF(Py_None);
1376 _resultobj = Py_None;
1377 return _resultobj;
1378 }
1379
1380 static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr) {
1381 wxBitmapDataObject *src;
1382 wxDataObjectSimple *dest;
1383 src = (wxBitmapDataObject *) ptr;
1384 dest = (wxDataObjectSimple *) src;
1385 return (void *) dest;
1386 }
1387
1388 static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr) {
1389 wxBitmapDataObject *src;
1390 wxDataObject *dest;
1391 src = (wxBitmapDataObject *) ptr;
1392 dest = (wxDataObject *) src;
1393 return (void *) dest;
1394 }
1395
1396 #define new_wxBitmapDataObject(_swigarg0) (new wxBitmapDataObject(_swigarg0))
1397 static PyObject *_wrap_new_wxBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1398 PyObject * _resultobj;
1399 wxBitmapDataObject * _result;
1400 wxBitmap * _arg0 = (wxBitmap *) &wxNullBitmap;
1401 PyObject * _argo0 = 0;
1402 char *_kwnames[] = { "bitmap", NULL };
1403 char _ptemp[128];
1404
1405 self = self;
1406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBitmapDataObject",_kwnames,&_argo0))
1407 return NULL;
1408 if (_argo0) {
1409 if (_argo0 == Py_None) { _arg0 = NULL; }
1410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapDataObject. Expected _wxBitmap_p.");
1412 return NULL;
1413 }
1414 }
1415 {
1416 wxPy_BEGIN_ALLOW_THREADS;
1417 _result = (wxBitmapDataObject *)new_wxBitmapDataObject(*_arg0);
1418
1419 wxPy_END_ALLOW_THREADS;
1420 } if (_result) {
1421 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapDataObject_p");
1422 _resultobj = Py_BuildValue("s",_ptemp);
1423 } else {
1424 Py_INCREF(Py_None);
1425 _resultobj = Py_None;
1426 }
1427 return _resultobj;
1428 }
1429
1430 #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1431 static PyObject *_wrap_wxBitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1432 PyObject * _resultobj;
1433 wxBitmap * _result;
1434 wxBitmapDataObject * _arg0;
1435 PyObject * _argo0 = 0;
1436 char *_kwnames[] = { "self", NULL };
1437 char _ptemp[128];
1438
1439 self = self;
1440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapDataObject_GetBitmap",_kwnames,&_argo0))
1441 return NULL;
1442 if (_argo0) {
1443 if (_argo0 == Py_None) { _arg0 = NULL; }
1444 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapDataObject_p")) {
1445 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapDataObject_GetBitmap. Expected _wxBitmapDataObject_p.");
1446 return NULL;
1447 }
1448 }
1449 {
1450 wxPy_BEGIN_ALLOW_THREADS;
1451 _result = new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0));
1452
1453 wxPy_END_ALLOW_THREADS;
1454 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1455 _resultobj = Py_BuildValue("s",_ptemp);
1456 return _resultobj;
1457 }
1458
1459 #define wxBitmapDataObject_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
1460 static PyObject *_wrap_wxBitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1461 PyObject * _resultobj;
1462 wxBitmapDataObject * _arg0;
1463 wxBitmap * _arg1;
1464 PyObject * _argo0 = 0;
1465 PyObject * _argo1 = 0;
1466 char *_kwnames[] = { "self","bitmap", NULL };
1467
1468 self = self;
1469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapDataObject_SetBitmap",_kwnames,&_argo0,&_argo1))
1470 return NULL;
1471 if (_argo0) {
1472 if (_argo0 == Py_None) { _arg0 = NULL; }
1473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapDataObject_p")) {
1474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapDataObject_SetBitmap. Expected _wxBitmapDataObject_p.");
1475 return NULL;
1476 }
1477 }
1478 if (_argo1) {
1479 if (_argo1 == Py_None) { _arg1 = NULL; }
1480 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1481 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapDataObject_SetBitmap. Expected _wxBitmap_p.");
1482 return NULL;
1483 }
1484 }
1485 {
1486 wxPy_BEGIN_ALLOW_THREADS;
1487 wxBitmapDataObject_SetBitmap(_arg0,*_arg1);
1488
1489 wxPy_END_ALLOW_THREADS;
1490 } Py_INCREF(Py_None);
1491 _resultobj = Py_None;
1492 return _resultobj;
1493 }
1494
1495 static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr) {
1496 wxPyBitmapDataObject *src;
1497 wxBitmapDataObject *dest;
1498 src = (wxPyBitmapDataObject *) ptr;
1499 dest = (wxBitmapDataObject *) src;
1500 return (void *) dest;
1501 }
1502
1503 static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr) {
1504 wxPyBitmapDataObject *src;
1505 wxDataObjectSimple *dest;
1506 src = (wxPyBitmapDataObject *) ptr;
1507 dest = (wxDataObjectSimple *) src;
1508 return (void *) dest;
1509 }
1510
1511 static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr) {
1512 wxPyBitmapDataObject *src;
1513 wxDataObject *dest;
1514 src = (wxPyBitmapDataObject *) ptr;
1515 dest = (wxDataObject *) src;
1516 return (void *) dest;
1517 }
1518
1519 #define new_wxPyBitmapDataObject(_swigarg0) (new wxPyBitmapDataObject(_swigarg0))
1520 static PyObject *_wrap_new_wxPyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1521 PyObject * _resultobj;
1522 wxPyBitmapDataObject * _result;
1523 wxBitmap * _arg0 = (wxBitmap *) &wxNullBitmap;
1524 PyObject * _argo0 = 0;
1525 char *_kwnames[] = { "bitmap", NULL };
1526 char _ptemp[128];
1527
1528 self = self;
1529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPyBitmapDataObject",_kwnames,&_argo0))
1530 return NULL;
1531 if (_argo0) {
1532 if (_argo0 == Py_None) { _arg0 = NULL; }
1533 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1534 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyBitmapDataObject. Expected _wxBitmap_p.");
1535 return NULL;
1536 }
1537 }
1538 {
1539 wxPy_BEGIN_ALLOW_THREADS;
1540 _result = (wxPyBitmapDataObject *)new_wxPyBitmapDataObject(*_arg0);
1541
1542 wxPy_END_ALLOW_THREADS;
1543 } if (_result) {
1544 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyBitmapDataObject_p");
1545 _resultobj = Py_BuildValue("s",_ptemp);
1546 } else {
1547 Py_INCREF(Py_None);
1548 _resultobj = Py_None;
1549 }
1550 return _resultobj;
1551 }
1552
1553 #define wxPyBitmapDataObject__setSelf(_swigobj,_swigarg0) (_swigobj->_setSelf(_swigarg0))
1554 static PyObject *_wrap_wxPyBitmapDataObject__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
1555 PyObject * _resultobj;
1556 wxPyBitmapDataObject * _arg0;
1557 PyObject * _arg1;
1558 PyObject * _argo0 = 0;
1559 PyObject * _obj1 = 0;
1560 char *_kwnames[] = { "self","self", NULL };
1561
1562 self = self;
1563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyBitmapDataObject__setSelf",_kwnames,&_argo0,&_obj1))
1564 return NULL;
1565 if (_argo0) {
1566 if (_argo0 == Py_None) { _arg0 = NULL; }
1567 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyBitmapDataObject_p")) {
1568 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyBitmapDataObject__setSelf. Expected _wxPyBitmapDataObject_p.");
1569 return NULL;
1570 }
1571 }
1572 {
1573 _arg1 = _obj1;
1574 }
1575 {
1576 wxPy_BEGIN_ALLOW_THREADS;
1577 wxPyBitmapDataObject__setSelf(_arg0,_arg1);
1578
1579 wxPy_END_ALLOW_THREADS;
1580 } Py_INCREF(Py_None);
1581 _resultobj = Py_None;
1582 return _resultobj;
1583 }
1584
1585 static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr) {
1586 wxFileDataObject *src;
1587 wxDataObjectSimple *dest;
1588 src = (wxFileDataObject *) ptr;
1589 dest = (wxDataObjectSimple *) src;
1590 return (void *) dest;
1591 }
1592
1593 static void *SwigwxFileDataObjectTowxDataObject(void *ptr) {
1594 wxFileDataObject *src;
1595 wxDataObject *dest;
1596 src = (wxFileDataObject *) ptr;
1597 dest = (wxDataObject *) src;
1598 return (void *) dest;
1599 }
1600
1601 #define new_wxFileDataObject() (new wxFileDataObject())
1602 static PyObject *_wrap_new_wxFileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1603 PyObject * _resultobj;
1604 wxFileDataObject * _result;
1605 char *_kwnames[] = { NULL };
1606 char _ptemp[128];
1607
1608 self = self;
1609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFileDataObject",_kwnames))
1610 return NULL;
1611 {
1612 wxPy_BEGIN_ALLOW_THREADS;
1613 _result = (wxFileDataObject *)new_wxFileDataObject();
1614
1615 wxPy_END_ALLOW_THREADS;
1616 } if (_result) {
1617 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileDataObject_p");
1618 _resultobj = Py_BuildValue("s",_ptemp);
1619 } else {
1620 Py_INCREF(Py_None);
1621 _resultobj = Py_None;
1622 }
1623 return _resultobj;
1624 }
1625
1626 static PyObject * wxFileDataObject_GetFilenames(wxFileDataObject *self) {
1627 const wxArrayString& strings = self->GetFilenames();
1628 PyObject* list = PyList_New(0);
1629 for (size_t x=0; x<strings.GetCount(); x++)
1630 PyList_Append(list, PyString_FromString(strings[x]));
1631 return list;
1632 }
1633 static PyObject *_wrap_wxFileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
1634 PyObject * _resultobj;
1635 PyObject * _result;
1636 wxFileDataObject * _arg0;
1637 PyObject * _argo0 = 0;
1638 char *_kwnames[] = { "self", NULL };
1639
1640 self = self;
1641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDataObject_GetFilenames",_kwnames,&_argo0))
1642 return NULL;
1643 if (_argo0) {
1644 if (_argo0 == Py_None) { _arg0 = NULL; }
1645 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDataObject_p")) {
1646 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDataObject_GetFilenames. Expected _wxFileDataObject_p.");
1647 return NULL;
1648 }
1649 }
1650 {
1651 wxPy_BEGIN_ALLOW_THREADS;
1652 _result = (PyObject *)wxFileDataObject_GetFilenames(_arg0);
1653
1654 wxPy_END_ALLOW_THREADS;
1655 }{
1656 _resultobj = _result;
1657 }
1658 return _resultobj;
1659 }
1660
1661 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr) {
1662 wxCustomDataObject *src;
1663 wxDataObjectSimple *dest;
1664 src = (wxCustomDataObject *) ptr;
1665 dest = (wxDataObjectSimple *) src;
1666 return (void *) dest;
1667 }
1668
1669 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr) {
1670 wxCustomDataObject *src;
1671 wxDataObject *dest;
1672 src = (wxCustomDataObject *) ptr;
1673 dest = (wxDataObject *) src;
1674 return (void *) dest;
1675 }
1676
1677 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1678 static PyObject *_wrap_new_wxCustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1679 PyObject * _resultobj;
1680 wxCustomDataObject * _result;
1681 wxDataFormat * _arg0 = (wxDataFormat *) &wxPyFormatInvalid;
1682 PyObject * _argo0 = 0;
1683 char *_kwnames[] = { "format", NULL };
1684 char _ptemp[128];
1685
1686 self = self;
1687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxCustomDataObject",_kwnames,&_argo0))
1688 return NULL;
1689 if (_argo0) {
1690 if (_argo0 == Py_None) { _arg0 = NULL; }
1691 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) {
1692 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1693 return NULL;
1694 }
1695 }
1696 {
1697 wxPy_BEGIN_ALLOW_THREADS;
1698 _result = (wxCustomDataObject *)new_wxCustomDataObject(*_arg0);
1699
1700 wxPy_END_ALLOW_THREADS;
1701 } if (_result) {
1702 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCustomDataObject_p");
1703 _resultobj = Py_BuildValue("s",_ptemp);
1704 } else {
1705 Py_INCREF(Py_None);
1706 _resultobj = Py_None;
1707 }
1708 return _resultobj;
1709 }
1710
1711 static void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject * data) {
1712 if (PyString_Check(data)) {
1713 self->SetData(PyString_Size(data), PyString_AsString(data));
1714 }
1715 }
1716 static PyObject *_wrap_wxCustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) {
1717 PyObject * _resultobj;
1718 wxCustomDataObject * _arg0;
1719 PyObject * _arg1;
1720 PyObject * _argo0 = 0;
1721 PyObject * _obj1 = 0;
1722 char *_kwnames[] = { "self","data", NULL };
1723
1724 self = self;
1725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCustomDataObject_TakeData",_kwnames,&_argo0,&_obj1))
1726 return NULL;
1727 if (_argo0) {
1728 if (_argo0 == Py_None) { _arg0 = NULL; }
1729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCustomDataObject_p")) {
1730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p.");
1731 return NULL;
1732 }
1733 }
1734 {
1735 _arg1 = _obj1;
1736 }
1737 {
1738 wxPy_BEGIN_ALLOW_THREADS;
1739 wxCustomDataObject_TakeData(_arg0,_arg1);
1740
1741 wxPy_END_ALLOW_THREADS;
1742 } Py_INCREF(Py_None);
1743 _resultobj = Py_None;
1744 return _resultobj;
1745 }
1746
1747 static bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject * data) {
1748 if (PyString_Check(data)) {
1749 return self->SetData(PyString_Size(data), PyString_AsString(data));
1750 }
1751 return FALSE;
1752 }
1753 static PyObject *_wrap_wxCustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
1754 PyObject * _resultobj;
1755 bool _result;
1756 wxCustomDataObject * _arg0;
1757 PyObject * _arg1;
1758 PyObject * _argo0 = 0;
1759 PyObject * _obj1 = 0;
1760 char *_kwnames[] = { "self","data", NULL };
1761
1762 self = self;
1763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCustomDataObject_SetData",_kwnames,&_argo0,&_obj1))
1764 return NULL;
1765 if (_argo0) {
1766 if (_argo0 == Py_None) { _arg0 = NULL; }
1767 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCustomDataObject_p")) {
1768 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1769 return NULL;
1770 }
1771 }
1772 {
1773 _arg1 = _obj1;
1774 }
1775 {
1776 wxPy_BEGIN_ALLOW_THREADS;
1777 _result = (bool )wxCustomDataObject_SetData(_arg0,_arg1);
1778
1779 wxPy_END_ALLOW_THREADS;
1780 } _resultobj = Py_BuildValue("i",_result);
1781 return _resultobj;
1782 }
1783
1784 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1785 static PyObject *_wrap_wxCustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1786 PyObject * _resultobj;
1787 size_t _result;
1788 wxCustomDataObject * _arg0;
1789 PyObject * _argo0 = 0;
1790 char *_kwnames[] = { "self", NULL };
1791
1792 self = self;
1793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCustomDataObject_GetSize",_kwnames,&_argo0))
1794 return NULL;
1795 if (_argo0) {
1796 if (_argo0 == Py_None) { _arg0 = NULL; }
1797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCustomDataObject_p")) {
1798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1799 return NULL;
1800 }
1801 }
1802 {
1803 wxPy_BEGIN_ALLOW_THREADS;
1804 _result = (size_t )wxCustomDataObject_GetSize(_arg0);
1805
1806 wxPy_END_ALLOW_THREADS;
1807 } _resultobj = Py_BuildValue("i",_result);
1808 return _resultobj;
1809 }
1810
1811 static PyObject * wxCustomDataObject_GetData(wxCustomDataObject *self) {
1812 return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1813 }
1814 static PyObject *_wrap_wxCustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
1815 PyObject * _resultobj;
1816 PyObject * _result;
1817 wxCustomDataObject * _arg0;
1818 PyObject * _argo0 = 0;
1819 char *_kwnames[] = { "self", NULL };
1820
1821 self = self;
1822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCustomDataObject_GetData",_kwnames,&_argo0))
1823 return NULL;
1824 if (_argo0) {
1825 if (_argo0 == Py_None) { _arg0 = NULL; }
1826 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCustomDataObject_p")) {
1827 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1828 return NULL;
1829 }
1830 }
1831 {
1832 wxPy_BEGIN_ALLOW_THREADS;
1833 _result = (PyObject *)wxCustomDataObject_GetData(_arg0);
1834
1835 wxPy_END_ALLOW_THREADS;
1836 }{
1837 _resultobj = _result;
1838 }
1839 return _resultobj;
1840 }
1841
1842 #define new_wxClipboard() (new wxClipboard())
1843 static PyObject *_wrap_new_wxClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
1844 PyObject * _resultobj;
1845 wxClipboard * _result;
1846 char *_kwnames[] = { NULL };
1847 char _ptemp[128];
1848
1849 self = self;
1850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxClipboard",_kwnames))
1851 return NULL;
1852 {
1853 wxPy_BEGIN_ALLOW_THREADS;
1854 _result = (wxClipboard *)new_wxClipboard();
1855
1856 wxPy_END_ALLOW_THREADS;
1857 } if (_result) {
1858 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClipboard_p");
1859 _resultobj = Py_BuildValue("s",_ptemp);
1860 } else {
1861 Py_INCREF(Py_None);
1862 _resultobj = Py_None;
1863 }
1864 return _resultobj;
1865 }
1866
1867 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
1868 static PyObject *_wrap_wxClipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
1869 PyObject * _resultobj;
1870 bool _result;
1871 wxClipboard * _arg0;
1872 PyObject * _argo0 = 0;
1873 char *_kwnames[] = { "self", NULL };
1874
1875 self = self;
1876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_Open",_kwnames,&_argo0))
1877 return NULL;
1878 if (_argo0) {
1879 if (_argo0 == Py_None) { _arg0 = NULL; }
1880 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
1881 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
1882 return NULL;
1883 }
1884 }
1885 {
1886 wxPy_BEGIN_ALLOW_THREADS;
1887 _result = (bool )wxClipboard_Open(_arg0);
1888
1889 wxPy_END_ALLOW_THREADS;
1890 } _resultobj = Py_BuildValue("i",_result);
1891 return _resultobj;
1892 }
1893
1894 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
1895 static PyObject *_wrap_wxClipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
1896 PyObject * _resultobj;
1897 wxClipboard * _arg0;
1898 PyObject * _argo0 = 0;
1899 char *_kwnames[] = { "self", NULL };
1900
1901 self = self;
1902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_Close",_kwnames,&_argo0))
1903 return NULL;
1904 if (_argo0) {
1905 if (_argo0 == Py_None) { _arg0 = NULL; }
1906 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
1907 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
1908 return NULL;
1909 }
1910 }
1911 {
1912 wxPy_BEGIN_ALLOW_THREADS;
1913 wxClipboard_Close(_arg0);
1914
1915 wxPy_END_ALLOW_THREADS;
1916 } Py_INCREF(Py_None);
1917 _resultobj = Py_None;
1918 return _resultobj;
1919 }
1920
1921 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
1922 static PyObject *_wrap_wxClipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
1923 PyObject * _resultobj;
1924 bool _result;
1925 wxClipboard * _arg0;
1926 PyObject * _argo0 = 0;
1927 char *_kwnames[] = { "self", NULL };
1928
1929 self = self;
1930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_IsOpened",_kwnames,&_argo0))
1931 return NULL;
1932 if (_argo0) {
1933 if (_argo0 == Py_None) { _arg0 = NULL; }
1934 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
1935 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
1936 return NULL;
1937 }
1938 }
1939 {
1940 wxPy_BEGIN_ALLOW_THREADS;
1941 _result = (bool )wxClipboard_IsOpened(_arg0);
1942
1943 wxPy_END_ALLOW_THREADS;
1944 } _resultobj = Py_BuildValue("i",_result);
1945 return _resultobj;
1946 }
1947
1948 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
1949 static PyObject *_wrap_wxClipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
1950 PyObject * _resultobj;
1951 bool _result;
1952 wxClipboard * _arg0;
1953 wxDataObject * _arg1;
1954 PyObject * _argo0 = 0;
1955 PyObject * _argo1 = 0;
1956 char *_kwnames[] = { "self","data", NULL };
1957
1958 self = self;
1959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxClipboard_AddData",_kwnames,&_argo0,&_argo1))
1960 return NULL;
1961 if (_argo0) {
1962 if (_argo0 == Py_None) { _arg0 = NULL; }
1963 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
1964 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
1965 return NULL;
1966 }
1967 }
1968 if (_argo1) {
1969 if (_argo1 == Py_None) { _arg1 = NULL; }
1970 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObject_p")) {
1971 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
1972 return NULL;
1973 }
1974 }
1975 {
1976 wxPy_BEGIN_ALLOW_THREADS;
1977 _result = (bool )wxClipboard_AddData(_arg0,_arg1);
1978
1979 wxPy_END_ALLOW_THREADS;
1980 } _resultobj = Py_BuildValue("i",_result);
1981 return _resultobj;
1982 }
1983
1984 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
1985 static PyObject *_wrap_wxClipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
1986 PyObject * _resultobj;
1987 bool _result;
1988 wxClipboard * _arg0;
1989 wxDataObject * _arg1;
1990 PyObject * _argo0 = 0;
1991 PyObject * _argo1 = 0;
1992 char *_kwnames[] = { "self","data", NULL };
1993
1994 self = self;
1995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxClipboard_SetData",_kwnames,&_argo0,&_argo1))
1996 return NULL;
1997 if (_argo0) {
1998 if (_argo0 == Py_None) { _arg0 = NULL; }
1999 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
2000 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2001 return NULL;
2002 }
2003 }
2004 if (_argo1) {
2005 if (_argo1 == Py_None) { _arg1 = NULL; }
2006 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObject_p")) {
2007 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2008 return NULL;
2009 }
2010 }
2011 {
2012 wxPy_BEGIN_ALLOW_THREADS;
2013 _result = (bool )wxClipboard_SetData(_arg0,_arg1);
2014
2015 wxPy_END_ALLOW_THREADS;
2016 } _resultobj = Py_BuildValue("i",_result);
2017 return _resultobj;
2018 }
2019
2020 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2021 static PyObject *_wrap_wxClipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
2022 PyObject * _resultobj;
2023 bool _result;
2024 wxClipboard * _arg0;
2025 wxDataFormat * _arg1;
2026 PyObject * _argo0 = 0;
2027 PyObject * _argo1 = 0;
2028 char *_kwnames[] = { "self","format", NULL };
2029
2030 self = self;
2031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxClipboard_IsSupported",_kwnames,&_argo0,&_argo1))
2032 return NULL;
2033 if (_argo0) {
2034 if (_argo0 == Py_None) { _arg0 = NULL; }
2035 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
2036 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2037 return NULL;
2038 }
2039 }
2040 if (_argo1) {
2041 if (_argo1 == Py_None) { _arg1 = NULL; }
2042 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) {
2043 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2044 return NULL;
2045 }
2046 }
2047 {
2048 wxPy_BEGIN_ALLOW_THREADS;
2049 _result = (bool )wxClipboard_IsSupported(_arg0,*_arg1);
2050
2051 wxPy_END_ALLOW_THREADS;
2052 } _resultobj = Py_BuildValue("i",_result);
2053 return _resultobj;
2054 }
2055
2056 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2057 static PyObject *_wrap_wxClipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
2058 PyObject * _resultobj;
2059 bool _result;
2060 wxClipboard * _arg0;
2061 wxDataObject * _arg1;
2062 PyObject * _argo0 = 0;
2063 PyObject * _argo1 = 0;
2064 char *_kwnames[] = { "self","data", NULL };
2065
2066 self = self;
2067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxClipboard_GetData",_kwnames,&_argo0,&_argo1))
2068 return NULL;
2069 if (_argo0) {
2070 if (_argo0 == Py_None) { _arg0 = NULL; }
2071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
2072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2073 return NULL;
2074 }
2075 }
2076 if (_argo1) {
2077 if (_argo1 == Py_None) { _arg1 = NULL; }
2078 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObject_p")) {
2079 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2080 return NULL;
2081 }
2082 }
2083 {
2084 wxPy_BEGIN_ALLOW_THREADS;
2085 _result = (bool )wxClipboard_GetData(_arg0,*_arg1);
2086
2087 wxPy_END_ALLOW_THREADS;
2088 } _resultobj = Py_BuildValue("i",_result);
2089 return _resultobj;
2090 }
2091
2092 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2093 static PyObject *_wrap_wxClipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
2094 PyObject * _resultobj;
2095 wxClipboard * _arg0;
2096 PyObject * _argo0 = 0;
2097 char *_kwnames[] = { "self", NULL };
2098
2099 self = self;
2100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_Clear",_kwnames,&_argo0))
2101 return NULL;
2102 if (_argo0) {
2103 if (_argo0 == Py_None) { _arg0 = NULL; }
2104 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
2105 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2106 return NULL;
2107 }
2108 }
2109 {
2110 wxPy_BEGIN_ALLOW_THREADS;
2111 wxClipboard_Clear(_arg0);
2112
2113 wxPy_END_ALLOW_THREADS;
2114 } Py_INCREF(Py_None);
2115 _resultobj = Py_None;
2116 return _resultobj;
2117 }
2118
2119 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2120 static PyObject *_wrap_wxClipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
2121 PyObject * _resultobj;
2122 bool _result;
2123 wxClipboard * _arg0;
2124 PyObject * _argo0 = 0;
2125 char *_kwnames[] = { "self", NULL };
2126
2127 self = self;
2128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_Flush",_kwnames,&_argo0))
2129 return NULL;
2130 if (_argo0) {
2131 if (_argo0 == Py_None) { _arg0 = NULL; }
2132 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
2133 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2134 return NULL;
2135 }
2136 }
2137 {
2138 wxPy_BEGIN_ALLOW_THREADS;
2139 _result = (bool )wxClipboard_Flush(_arg0);
2140
2141 wxPy_END_ALLOW_THREADS;
2142 } _resultobj = Py_BuildValue("i",_result);
2143 return _resultobj;
2144 }
2145
2146 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2147 static PyObject *_wrap_wxClipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2148 PyObject * _resultobj;
2149 wxClipboard * _arg0;
2150 int _arg1 = (int ) FALSE;
2151 PyObject * _argo0 = 0;
2152 char *_kwnames[] = { "self","primary", NULL };
2153
2154 self = self;
2155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxClipboard_UsePrimarySelection",_kwnames,&_argo0,&_arg1))
2156 return NULL;
2157 if (_argo0) {
2158 if (_argo0 == Py_None) { _arg0 = NULL; }
2159 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
2160 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2161 return NULL;
2162 }
2163 }
2164 {
2165 wxPy_BEGIN_ALLOW_THREADS;
2166 wxClipboard_UsePrimarySelection(_arg0,_arg1);
2167
2168 wxPy_END_ALLOW_THREADS;
2169 } Py_INCREF(Py_None);
2170 _resultobj = Py_None;
2171 return _resultobj;
2172 }
2173
2174 #define new_wxDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPyDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2175 static PyObject *_wrap_new_wxDropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
2176 PyObject * _resultobj;
2177 wxPyDropSource * _result;
2178 wxWindow * _arg0 = (wxWindow *) NULL;
2179 wxCursor * _arg1 = (wxCursor *) &wxNullCursor;
2180 wxCursor * _arg2 = (wxCursor *) &wxNullCursor;
2181 wxCursor * _arg3 = (wxCursor *) &wxNullCursor;
2182 PyObject * _argo0 = 0;
2183 PyObject * _argo1 = 0;
2184 PyObject * _argo2 = 0;
2185 PyObject * _argo3 = 0;
2186 char *_kwnames[] = { "win","cursorCopy","cursorMove","cursorStop", NULL };
2187 char _ptemp[128];
2188
2189 self = self;
2190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOO:new_wxDropSource",_kwnames,&_argo0,&_argo1,&_argo2,&_argo3))
2191 return NULL;
2192 if (_argo0) {
2193 if (_argo0 == Py_None) { _arg0 = NULL; }
2194 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2195 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2196 return NULL;
2197 }
2198 }
2199 if (_argo1) {
2200 if (_argo1 == Py_None) { _arg1 = NULL; }
2201 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
2202 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDropSource. Expected _wxCursor_p.");
2203 return NULL;
2204 }
2205 }
2206 if (_argo2) {
2207 if (_argo2 == Py_None) { _arg2 = NULL; }
2208 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxCursor_p")) {
2209 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxDropSource. Expected _wxCursor_p.");
2210 return NULL;
2211 }
2212 }
2213 if (_argo3) {
2214 if (_argo3 == Py_None) { _arg3 = NULL; }
2215 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxCursor_p")) {
2216 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxDropSource. Expected _wxCursor_p.");
2217 return NULL;
2218 }
2219 }
2220 {
2221 wxPy_BEGIN_ALLOW_THREADS;
2222 _result = (wxPyDropSource *)new_wxDropSource(_arg0,*_arg1,*_arg2,*_arg3);
2223
2224 wxPy_END_ALLOW_THREADS;
2225 } if (_result) {
2226 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyDropSource_p");
2227 _resultobj = Py_BuildValue("s",_ptemp);
2228 } else {
2229 Py_INCREF(Py_None);
2230 _resultobj = Py_None;
2231 }
2232 return _resultobj;
2233 }
2234
2235 #define wxDropSource__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1))
2236 static PyObject *_wrap_wxDropSource__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
2237 PyObject * _resultobj;
2238 wxPyDropSource * _arg0;
2239 PyObject * _arg1;
2240 int _arg2;
2241 PyObject * _argo0 = 0;
2242 PyObject * _obj1 = 0;
2243 char *_kwnames[] = { "self","self","incref", NULL };
2244
2245 self = self;
2246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDropSource__setSelf",_kwnames,&_argo0,&_obj1,&_arg2))
2247 return NULL;
2248 if (_argo0) {
2249 if (_argo0 == Py_None) { _arg0 = NULL; }
2250 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) {
2251 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource__setSelf. Expected _wxPyDropSource_p.");
2252 return NULL;
2253 }
2254 }
2255 {
2256 _arg1 = _obj1;
2257 }
2258 {
2259 wxPy_BEGIN_ALLOW_THREADS;
2260 wxDropSource__setSelf(_arg0,_arg1,_arg2);
2261
2262 wxPy_END_ALLOW_THREADS;
2263 } Py_INCREF(Py_None);
2264 _resultobj = Py_None;
2265 return _resultobj;
2266 }
2267
2268 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2269 static PyObject *_wrap_delete_wxDropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
2270 PyObject * _resultobj;
2271 wxPyDropSource * _arg0;
2272 PyObject * _argo0 = 0;
2273 char *_kwnames[] = { "self", NULL };
2274
2275 self = self;
2276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDropSource",_kwnames,&_argo0))
2277 return NULL;
2278 if (_argo0) {
2279 if (_argo0 == Py_None) { _arg0 = NULL; }
2280 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) {
2281 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2282 return NULL;
2283 }
2284 }
2285 {
2286 wxPy_BEGIN_ALLOW_THREADS;
2287 delete_wxPyDropSource(_arg0);
2288
2289 wxPy_END_ALLOW_THREADS;
2290 } Py_INCREF(Py_None);
2291 _resultobj = Py_None;
2292 return _resultobj;
2293 }
2294
2295 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2296 static PyObject *_wrap_wxDropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
2297 PyObject * _resultobj;
2298 wxPyDropSource * _arg0;
2299 wxDataObject * _arg1;
2300 PyObject * _argo0 = 0;
2301 PyObject * _argo1 = 0;
2302 char *_kwnames[] = { "self","data", NULL };
2303
2304 self = self;
2305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDropSource_SetData",_kwnames,&_argo0,&_argo1))
2306 return NULL;
2307 if (_argo0) {
2308 if (_argo0 == Py_None) { _arg0 = NULL; }
2309 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) {
2310 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2311 return NULL;
2312 }
2313 }
2314 if (_argo1) {
2315 if (_argo1 == Py_None) { _arg1 = NULL; }
2316 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObject_p")) {
2317 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2318 return NULL;
2319 }
2320 }
2321 {
2322 wxPy_BEGIN_ALLOW_THREADS;
2323 wxDropSource_SetData(_arg0,*_arg1);
2324
2325 wxPy_END_ALLOW_THREADS;
2326 } Py_INCREF(Py_None);
2327 _resultobj = Py_None;
2328 return _resultobj;
2329 }
2330
2331 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2332 static PyObject *_wrap_wxDropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
2333 PyObject * _resultobj;
2334 wxDataObject * _result;
2335 wxPyDropSource * _arg0;
2336 PyObject * _argo0 = 0;
2337 char *_kwnames[] = { "self", NULL };
2338 char _ptemp[128];
2339
2340 self = self;
2341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDropSource_GetDataObject",_kwnames,&_argo0))
2342 return NULL;
2343 if (_argo0) {
2344 if (_argo0 == Py_None) { _arg0 = NULL; }
2345 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) {
2346 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2347 return NULL;
2348 }
2349 }
2350 {
2351 wxPy_BEGIN_ALLOW_THREADS;
2352 _result = (wxDataObject *)wxDropSource_GetDataObject(_arg0);
2353
2354 wxPy_END_ALLOW_THREADS;
2355 } if (_result) {
2356 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObject_p");
2357 _resultobj = Py_BuildValue("s",_ptemp);
2358 } else {
2359 Py_INCREF(Py_None);
2360 _resultobj = Py_None;
2361 }
2362 return _resultobj;
2363 }
2364
2365 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2366 static PyObject *_wrap_wxDropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2367 PyObject * _resultobj;
2368 wxPyDropSource * _arg0;
2369 wxDragResult _arg1;
2370 wxCursor * _arg2;
2371 PyObject * _argo0 = 0;
2372 PyObject * _argo2 = 0;
2373 char *_kwnames[] = { "self","res","cursor", NULL };
2374
2375 self = self;
2376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxDropSource_SetCursor",_kwnames,&_argo0,&_arg1,&_argo2))
2377 return NULL;
2378 if (_argo0) {
2379 if (_argo0 == Py_None) { _arg0 = NULL; }
2380 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) {
2381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2382 return NULL;
2383 }
2384 }
2385 if (_argo2) {
2386 if (_argo2 == Py_None) { _arg2 = NULL; }
2387 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxCursor_p")) {
2388 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2389 return NULL;
2390 }
2391 }
2392 {
2393 wxPy_BEGIN_ALLOW_THREADS;
2394 wxDropSource_SetCursor(_arg0,_arg1,*_arg2);
2395
2396 wxPy_END_ALLOW_THREADS;
2397 } Py_INCREF(Py_None);
2398 _resultobj = Py_None;
2399 return _resultobj;
2400 }
2401
2402 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2403 static PyObject *_wrap_wxDropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
2404 PyObject * _resultobj;
2405 wxDragResult _result;
2406 wxPyDropSource * _arg0;
2407 int _arg1 = (int ) FALSE;
2408 PyObject * _argo0 = 0;
2409 char *_kwnames[] = { "self","bAllowMove", NULL };
2410
2411 self = self;
2412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDropSource_DoDragDrop",_kwnames,&_argo0,&_arg1))
2413 return NULL;
2414 if (_argo0) {
2415 if (_argo0 == Py_None) { _arg0 = NULL; }
2416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) {
2417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2418 return NULL;
2419 }
2420 }
2421 {
2422 wxPy_BEGIN_ALLOW_THREADS;
2423 _result = (wxDragResult )wxDropSource_DoDragDrop(_arg0,_arg1);
2424
2425 wxPy_END_ALLOW_THREADS;
2426 } _resultobj = Py_BuildValue("i",_result);
2427 return _resultobj;
2428 }
2429
2430 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2431 static PyObject *_wrap_wxDropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
2432 PyObject * _resultobj;
2433 bool _result;
2434 wxPyDropSource * _arg0;
2435 wxDragResult _arg1;
2436 PyObject * _argo0 = 0;
2437 char *_kwnames[] = { "self","effect", NULL };
2438
2439 self = self;
2440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDropSource_base_GiveFeedback",_kwnames,&_argo0,&_arg1))
2441 return NULL;
2442 if (_argo0) {
2443 if (_argo0 == Py_None) { _arg0 = NULL; }
2444 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) {
2445 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2446 return NULL;
2447 }
2448 }
2449 {
2450 wxPy_BEGIN_ALLOW_THREADS;
2451 _result = (bool )wxDropSource_base_GiveFeedback(_arg0,_arg1);
2452
2453 wxPy_END_ALLOW_THREADS;
2454 } _resultobj = Py_BuildValue("i",_result);
2455 return _resultobj;
2456 }
2457
2458 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr) {
2459 wxPyDropTarget *src;
2460 wxDropTarget *dest;
2461 src = (wxPyDropTarget *) ptr;
2462 dest = (wxDropTarget *) src;
2463 return (void *) dest;
2464 }
2465
2466 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2467 static PyObject *_wrap_new_wxPyDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
2468 PyObject * _resultobj;
2469 wxPyDropTarget * _result;
2470 wxDataObject * _arg0 = (wxDataObject *) NULL;
2471 PyObject * _argo0 = 0;
2472 char *_kwnames[] = { "dataObject", NULL };
2473 char _ptemp[128];
2474
2475 self = self;
2476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPyDropTarget",_kwnames,&_argo0))
2477 return NULL;
2478 if (_argo0) {
2479 if (_argo0 == Py_None) { _arg0 = NULL; }
2480 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
2481 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2482 return NULL;
2483 }
2484 }
2485 {
2486 wxPy_BEGIN_ALLOW_THREADS;
2487 _result = (wxPyDropTarget *)new_wxPyDropTarget(_arg0);
2488
2489 wxPy_END_ALLOW_THREADS;
2490 } if (_result) {
2491 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyDropTarget_p");
2492 _resultobj = Py_BuildValue("s",_ptemp);
2493 } else {
2494 Py_INCREF(Py_None);
2495 _resultobj = Py_None;
2496 }
2497 return _resultobj;
2498 }
2499
2500 #define wxPyDropTarget__setSelf(_swigobj,_swigarg0) (_swigobj->_setSelf(_swigarg0))
2501 static PyObject *_wrap_wxPyDropTarget__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
2502 PyObject * _resultobj;
2503 wxPyDropTarget * _arg0;
2504 PyObject * _arg1;
2505 PyObject * _argo0 = 0;
2506 PyObject * _obj1 = 0;
2507 char *_kwnames[] = { "self","self", NULL };
2508
2509 self = self;
2510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyDropTarget__setSelf",_kwnames,&_argo0,&_obj1))
2511 return NULL;
2512 if (_argo0) {
2513 if (_argo0 == Py_None) { _arg0 = NULL; }
2514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
2515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget__setSelf. Expected _wxPyDropTarget_p.");
2516 return NULL;
2517 }
2518 }
2519 {
2520 _arg1 = _obj1;
2521 }
2522 {
2523 wxPy_BEGIN_ALLOW_THREADS;
2524 wxPyDropTarget__setSelf(_arg0,_arg1);
2525
2526 wxPy_END_ALLOW_THREADS;
2527 } Py_INCREF(Py_None);
2528 _resultobj = Py_None;
2529 return _resultobj;
2530 }
2531
2532 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2533 static PyObject *_wrap_delete_wxPyDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
2534 PyObject * _resultobj;
2535 wxPyDropTarget * _arg0;
2536 PyObject * _argo0 = 0;
2537 char *_kwnames[] = { "self", NULL };
2538
2539 self = self;
2540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyDropTarget",_kwnames,&_argo0))
2541 return NULL;
2542 if (_argo0) {
2543 if (_argo0 == Py_None) { _arg0 = NULL; }
2544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
2545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2546 return NULL;
2547 }
2548 }
2549 {
2550 wxPy_BEGIN_ALLOW_THREADS;
2551 delete_wxPyDropTarget(_arg0);
2552
2553 wxPy_END_ALLOW_THREADS;
2554 } Py_INCREF(Py_None);
2555 _resultobj = Py_None;
2556 return _resultobj;
2557 }
2558
2559 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2560 static PyObject *_wrap_wxPyDropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
2561 PyObject * _resultobj;
2562 wxDataObject * _result;
2563 wxPyDropTarget * _arg0;
2564 PyObject * _argo0 = 0;
2565 char *_kwnames[] = { "self", NULL };
2566 char _ptemp[128];
2567
2568 self = self;
2569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyDropTarget_GetDataObject",_kwnames,&_argo0))
2570 return NULL;
2571 if (_argo0) {
2572 if (_argo0 == Py_None) { _arg0 = NULL; }
2573 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
2574 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2575 return NULL;
2576 }
2577 }
2578 {
2579 wxPy_BEGIN_ALLOW_THREADS;
2580 _result = (wxDataObject *)wxPyDropTarget_GetDataObject(_arg0);
2581
2582 wxPy_END_ALLOW_THREADS;
2583 } if (_result) {
2584 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObject_p");
2585 _resultobj = Py_BuildValue("s",_ptemp);
2586 } else {
2587 Py_INCREF(Py_None);
2588 _resultobj = Py_None;
2589 }
2590 return _resultobj;
2591 }
2592
2593 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2594 static PyObject *_wrap_wxPyDropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
2595 PyObject * _resultobj;
2596 wxPyDropTarget * _arg0;
2597 wxDataObject * _arg1;
2598 PyObject * _argo0 = 0;
2599 PyObject * _argo1 = 0;
2600 char *_kwnames[] = { "self","dataObject", NULL };
2601
2602 self = self;
2603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyDropTarget_SetDataObject",_kwnames,&_argo0,&_argo1))
2604 return NULL;
2605 if (_argo0) {
2606 if (_argo0 == Py_None) { _arg0 = NULL; }
2607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
2608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
2609 return NULL;
2610 }
2611 }
2612 if (_argo1) {
2613 if (_argo1 == Py_None) { _arg1 = NULL; }
2614 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObject_p")) {
2615 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2616 return NULL;
2617 }
2618 }
2619 {
2620 wxPy_BEGIN_ALLOW_THREADS;
2621 wxPyDropTarget_SetDataObject(_arg0,_arg1);
2622
2623 wxPy_END_ALLOW_THREADS;
2624 } Py_INCREF(Py_None);
2625 _resultobj = Py_None;
2626 return _resultobj;
2627 }
2628
2629 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2630 static PyObject *_wrap_wxPyDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
2631 PyObject * _resultobj;
2632 wxDragResult _result;
2633 wxPyDropTarget * _arg0;
2634 wxCoord _arg1;
2635 wxCoord _arg2;
2636 wxDragResult _arg3;
2637 PyObject * _argo0 = 0;
2638 char *_kwnames[] = { "self","x","y","def", NULL };
2639
2640 self = self;
2641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
2642 return NULL;
2643 if (_argo0) {
2644 if (_argo0 == Py_None) { _arg0 = NULL; }
2645 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
2646 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
2647 return NULL;
2648 }
2649 }
2650 {
2651 wxPy_BEGIN_ALLOW_THREADS;
2652 _result = (wxDragResult )wxPyDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3);
2653
2654 wxPy_END_ALLOW_THREADS;
2655 } _resultobj = Py_BuildValue("i",_result);
2656 return _resultobj;
2657 }
2658
2659 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
2660 static PyObject *_wrap_wxPyDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
2661 PyObject * _resultobj;
2662 wxDragResult _result;
2663 wxPyDropTarget * _arg0;
2664 wxCoord _arg1;
2665 wxCoord _arg2;
2666 wxDragResult _arg3;
2667 PyObject * _argo0 = 0;
2668 char *_kwnames[] = { "self","x","y","def", NULL };
2669
2670 self = self;
2671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
2672 return NULL;
2673 if (_argo0) {
2674 if (_argo0 == Py_None) { _arg0 = NULL; }
2675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
2676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
2677 return NULL;
2678 }
2679 }
2680 {
2681 wxPy_BEGIN_ALLOW_THREADS;
2682 _result = (wxDragResult )wxPyDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3);
2683
2684 wxPy_END_ALLOW_THREADS;
2685 } _resultobj = Py_BuildValue("i",_result);
2686 return _resultobj;
2687 }
2688
2689 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
2690 static PyObject *_wrap_wxPyDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
2691 PyObject * _resultobj;
2692 wxPyDropTarget * _arg0;
2693 PyObject * _argo0 = 0;
2694 char *_kwnames[] = { "self", NULL };
2695
2696 self = self;
2697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyDropTarget_base_OnLeave",_kwnames,&_argo0))
2698 return NULL;
2699 if (_argo0) {
2700 if (_argo0 == Py_None) { _arg0 = NULL; }
2701 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
2702 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
2703 return NULL;
2704 }
2705 }
2706 {
2707 wxPy_BEGIN_ALLOW_THREADS;
2708 wxPyDropTarget_base_OnLeave(_arg0);
2709
2710 wxPy_END_ALLOW_THREADS;
2711 } Py_INCREF(Py_None);
2712 _resultobj = Py_None;
2713 return _resultobj;
2714 }
2715
2716 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
2717 static PyObject *_wrap_wxPyDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
2718 PyObject * _resultobj;
2719 bool _result;
2720 wxPyDropTarget * _arg0;
2721 wxCoord _arg1;
2722 wxCoord _arg2;
2723 PyObject * _argo0 = 0;
2724 char *_kwnames[] = { "self","x","y", NULL };
2725
2726 self = self;
2727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyDropTarget_base_OnDrop",_kwnames,&_argo0,&_arg1,&_arg2))
2728 return NULL;
2729 if (_argo0) {
2730 if (_argo0 == Py_None) { _arg0 = NULL; }
2731 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
2732 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
2733 return NULL;
2734 }
2735 }
2736 {
2737 wxPy_BEGIN_ALLOW_THREADS;
2738 _result = (bool )wxPyDropTarget_base_OnDrop(_arg0,_arg1,_arg2);
2739
2740 wxPy_END_ALLOW_THREADS;
2741 } _resultobj = Py_BuildValue("i",_result);
2742 return _resultobj;
2743 }
2744
2745 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
2746 static PyObject *_wrap_wxPyDropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
2747 PyObject * _resultobj;
2748 bool _result;
2749 wxPyDropTarget * _arg0;
2750 PyObject * _argo0 = 0;
2751 char *_kwnames[] = { "self", NULL };
2752
2753 self = self;
2754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyDropTarget_GetData",_kwnames,&_argo0))
2755 return NULL;
2756 if (_argo0) {
2757 if (_argo0 == Py_None) { _arg0 = NULL; }
2758 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
2759 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
2760 return NULL;
2761 }
2762 }
2763 {
2764 wxPy_BEGIN_ALLOW_THREADS;
2765 _result = (bool )wxPyDropTarget_GetData(_arg0);
2766
2767 wxPy_END_ALLOW_THREADS;
2768 } _resultobj = Py_BuildValue("i",_result);
2769 return _resultobj;
2770 }
2771
2772 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr) {
2773 wxPyTextDropTarget *src;
2774 wxPyDropTarget *dest;
2775 src = (wxPyTextDropTarget *) ptr;
2776 dest = (wxPyDropTarget *) src;
2777 return (void *) dest;
2778 }
2779
2780 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr) {
2781 wxPyTextDropTarget *src;
2782 wxDropTarget *dest;
2783 src = (wxPyTextDropTarget *) ptr;
2784 dest = (wxDropTarget *) src;
2785 return (void *) dest;
2786 }
2787
2788 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
2789 static PyObject *_wrap_new_wxTextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
2790 PyObject * _resultobj;
2791 wxPyTextDropTarget * _result;
2792 char *_kwnames[] = { NULL };
2793 char _ptemp[128];
2794
2795 self = self;
2796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTextDropTarget",_kwnames))
2797 return NULL;
2798 {
2799 wxPy_BEGIN_ALLOW_THREADS;
2800 _result = (wxPyTextDropTarget *)new_wxTextDropTarget();
2801
2802 wxPy_END_ALLOW_THREADS;
2803 } if (_result) {
2804 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTextDropTarget_p");
2805 _resultobj = Py_BuildValue("s",_ptemp);
2806 } else {
2807 Py_INCREF(Py_None);
2808 _resultobj = Py_None;
2809 }
2810 return _resultobj;
2811 }
2812
2813 #define wxTextDropTarget__setSelf(_swigobj,_swigarg0) (_swigobj->_setSelf(_swigarg0))
2814 static PyObject *_wrap_wxTextDropTarget__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
2815 PyObject * _resultobj;
2816 wxPyTextDropTarget * _arg0;
2817 PyObject * _arg1;
2818 PyObject * _argo0 = 0;
2819 PyObject * _obj1 = 0;
2820 char *_kwnames[] = { "self","self", NULL };
2821
2822 self = self;
2823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextDropTarget__setSelf",_kwnames,&_argo0,&_obj1))
2824 return NULL;
2825 if (_argo0) {
2826 if (_argo0 == Py_None) { _arg0 = NULL; }
2827 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) {
2828 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget__setSelf. Expected _wxPyTextDropTarget_p.");
2829 return NULL;
2830 }
2831 }
2832 {
2833 _arg1 = _obj1;
2834 }
2835 {
2836 wxPy_BEGIN_ALLOW_THREADS;
2837 wxTextDropTarget__setSelf(_arg0,_arg1);
2838
2839 wxPy_END_ALLOW_THREADS;
2840 } Py_INCREF(Py_None);
2841 _resultobj = Py_None;
2842 return _resultobj;
2843 }
2844
2845 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2846 static PyObject *_wrap_wxTextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
2847 PyObject * _resultobj;
2848 wxDragResult _result;
2849 wxPyTextDropTarget * _arg0;
2850 wxCoord _arg1;
2851 wxCoord _arg2;
2852 wxDragResult _arg3;
2853 PyObject * _argo0 = 0;
2854 char *_kwnames[] = { "self","x","y","def", NULL };
2855
2856 self = self;
2857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
2858 return NULL;
2859 if (_argo0) {
2860 if (_argo0 == Py_None) { _arg0 = NULL; }
2861 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) {
2862 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
2863 return NULL;
2864 }
2865 }
2866 {
2867 wxPy_BEGIN_ALLOW_THREADS;
2868 _result = (wxDragResult )wxTextDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3);
2869
2870 wxPy_END_ALLOW_THREADS;
2871 } _resultobj = Py_BuildValue("i",_result);
2872 return _resultobj;
2873 }
2874
2875 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
2876 static PyObject *_wrap_wxTextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
2877 PyObject * _resultobj;
2878 wxDragResult _result;
2879 wxPyTextDropTarget * _arg0;
2880 wxCoord _arg1;
2881 wxCoord _arg2;
2882 wxDragResult _arg3;
2883 PyObject * _argo0 = 0;
2884 char *_kwnames[] = { "self","x","y","def", NULL };
2885
2886 self = self;
2887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
2888 return NULL;
2889 if (_argo0) {
2890 if (_argo0 == Py_None) { _arg0 = NULL; }
2891 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) {
2892 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
2893 return NULL;
2894 }
2895 }
2896 {
2897 wxPy_BEGIN_ALLOW_THREADS;
2898 _result = (wxDragResult )wxTextDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3);
2899
2900 wxPy_END_ALLOW_THREADS;
2901 } _resultobj = Py_BuildValue("i",_result);
2902 return _resultobj;
2903 }
2904
2905 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
2906 static PyObject *_wrap_wxTextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
2907 PyObject * _resultobj;
2908 wxPyTextDropTarget * _arg0;
2909 PyObject * _argo0 = 0;
2910 char *_kwnames[] = { "self", NULL };
2911
2912 self = self;
2913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextDropTarget_base_OnLeave",_kwnames,&_argo0))
2914 return NULL;
2915 if (_argo0) {
2916 if (_argo0 == Py_None) { _arg0 = NULL; }
2917 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) {
2918 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
2919 return NULL;
2920 }
2921 }
2922 {
2923 wxPy_BEGIN_ALLOW_THREADS;
2924 wxTextDropTarget_base_OnLeave(_arg0);
2925
2926 wxPy_END_ALLOW_THREADS;
2927 } Py_INCREF(Py_None);
2928 _resultobj = Py_None;
2929 return _resultobj;
2930 }
2931
2932 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
2933 static PyObject *_wrap_wxTextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
2934 PyObject * _resultobj;
2935 bool _result;
2936 wxPyTextDropTarget * _arg0;
2937 wxCoord _arg1;
2938 wxCoord _arg2;
2939 PyObject * _argo0 = 0;
2940 char *_kwnames[] = { "self","x","y", NULL };
2941
2942 self = self;
2943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxTextDropTarget_base_OnDrop",_kwnames,&_argo0,&_arg1,&_arg2))
2944 return NULL;
2945 if (_argo0) {
2946 if (_argo0 == Py_None) { _arg0 = NULL; }
2947 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) {
2948 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
2949 return NULL;
2950 }
2951 }
2952 {
2953 wxPy_BEGIN_ALLOW_THREADS;
2954 _result = (bool )wxTextDropTarget_base_OnDrop(_arg0,_arg1,_arg2);
2955
2956 wxPy_END_ALLOW_THREADS;
2957 } _resultobj = Py_BuildValue("i",_result);
2958 return _resultobj;
2959 }
2960
2961 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
2962 static PyObject *_wrap_wxTextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
2963 PyObject * _resultobj;
2964 wxDragResult _result;
2965 wxPyTextDropTarget * _arg0;
2966 wxCoord _arg1;
2967 wxCoord _arg2;
2968 wxDragResult _arg3;
2969 PyObject * _argo0 = 0;
2970 char *_kwnames[] = { "self","x","y","def", NULL };
2971
2972 self = self;
2973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxTextDropTarget_base_OnData",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
2974 return NULL;
2975 if (_argo0) {
2976 if (_argo0 == Py_None) { _arg0 = NULL; }
2977 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) {
2978 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
2979 return NULL;
2980 }
2981 }
2982 {
2983 wxPy_BEGIN_ALLOW_THREADS;
2984 _result = (wxDragResult )wxTextDropTarget_base_OnData(_arg0,_arg1,_arg2,_arg3);
2985
2986 wxPy_END_ALLOW_THREADS;
2987 } _resultobj = Py_BuildValue("i",_result);
2988 return _resultobj;
2989 }
2990
2991 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr) {
2992 wxPyFileDropTarget *src;
2993 wxPyDropTarget *dest;
2994 src = (wxPyFileDropTarget *) ptr;
2995 dest = (wxPyDropTarget *) src;
2996 return (void *) dest;
2997 }
2998
2999 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr) {
3000 wxPyFileDropTarget *src;
3001 wxDropTarget *dest;
3002 src = (wxPyFileDropTarget *) ptr;
3003 dest = (wxDropTarget *) src;
3004 return (void *) dest;
3005 }
3006
3007 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3008 static PyObject *_wrap_new_wxFileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
3009 PyObject * _resultobj;
3010 wxPyFileDropTarget * _result;
3011 char *_kwnames[] = { NULL };
3012 char _ptemp[128];
3013
3014 self = self;
3015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFileDropTarget",_kwnames))
3016 return NULL;
3017 {
3018 wxPy_BEGIN_ALLOW_THREADS;
3019 _result = (wxPyFileDropTarget *)new_wxFileDropTarget();
3020
3021 wxPy_END_ALLOW_THREADS;
3022 } if (_result) {
3023 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFileDropTarget_p");
3024 _resultobj = Py_BuildValue("s",_ptemp);
3025 } else {
3026 Py_INCREF(Py_None);
3027 _resultobj = Py_None;
3028 }
3029 return _resultobj;
3030 }
3031
3032 #define wxFileDropTarget__setSelf(_swigobj,_swigarg0) (_swigobj->_setSelf(_swigarg0))
3033 static PyObject *_wrap_wxFileDropTarget__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
3034 PyObject * _resultobj;
3035 wxPyFileDropTarget * _arg0;
3036 PyObject * _arg1;
3037 PyObject * _argo0 = 0;
3038 PyObject * _obj1 = 0;
3039 char *_kwnames[] = { "self","self", NULL };
3040
3041 self = self;
3042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDropTarget__setSelf",_kwnames,&_argo0,&_obj1))
3043 return NULL;
3044 if (_argo0) {
3045 if (_argo0 == Py_None) { _arg0 = NULL; }
3046 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) {
3047 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget__setSelf. Expected _wxPyFileDropTarget_p.");
3048 return NULL;
3049 }
3050 }
3051 {
3052 _arg1 = _obj1;
3053 }
3054 {
3055 wxPy_BEGIN_ALLOW_THREADS;
3056 wxFileDropTarget__setSelf(_arg0,_arg1);
3057
3058 wxPy_END_ALLOW_THREADS;
3059 } Py_INCREF(Py_None);
3060 _resultobj = Py_None;
3061 return _resultobj;
3062 }
3063
3064 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3065 static PyObject *_wrap_wxFileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
3066 PyObject * _resultobj;
3067 wxDragResult _result;
3068 wxPyFileDropTarget * _arg0;
3069 wxCoord _arg1;
3070 wxCoord _arg2;
3071 wxDragResult _arg3;
3072 PyObject * _argo0 = 0;
3073 char *_kwnames[] = { "self","x","y","def", NULL };
3074
3075 self = self;
3076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3077 return NULL;
3078 if (_argo0) {
3079 if (_argo0 == Py_None) { _arg0 = NULL; }
3080 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) {
3081 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3082 return NULL;
3083 }
3084 }
3085 {
3086 wxPy_BEGIN_ALLOW_THREADS;
3087 _result = (wxDragResult )wxFileDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3);
3088
3089 wxPy_END_ALLOW_THREADS;
3090 } _resultobj = Py_BuildValue("i",_result);
3091 return _resultobj;
3092 }
3093
3094 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3095 static PyObject *_wrap_wxFileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
3096 PyObject * _resultobj;
3097 wxDragResult _result;
3098 wxPyFileDropTarget * _arg0;
3099 wxCoord _arg1;
3100 wxCoord _arg2;
3101 wxDragResult _arg3;
3102 PyObject * _argo0 = 0;
3103 char *_kwnames[] = { "self","x","y","def", NULL };
3104
3105 self = self;
3106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3107 return NULL;
3108 if (_argo0) {
3109 if (_argo0 == Py_None) { _arg0 = NULL; }
3110 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) {
3111 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3112 return NULL;
3113 }
3114 }
3115 {
3116 wxPy_BEGIN_ALLOW_THREADS;
3117 _result = (wxDragResult )wxFileDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3);
3118
3119 wxPy_END_ALLOW_THREADS;
3120 } _resultobj = Py_BuildValue("i",_result);
3121 return _resultobj;
3122 }
3123
3124 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3125 static PyObject *_wrap_wxFileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
3126 PyObject * _resultobj;
3127 wxPyFileDropTarget * _arg0;
3128 PyObject * _argo0 = 0;
3129 char *_kwnames[] = { "self", NULL };
3130
3131 self = self;
3132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDropTarget_base_OnLeave",_kwnames,&_argo0))
3133 return NULL;
3134 if (_argo0) {
3135 if (_argo0 == Py_None) { _arg0 = NULL; }
3136 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) {
3137 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3138 return NULL;
3139 }
3140 }
3141 {
3142 wxPy_BEGIN_ALLOW_THREADS;
3143 wxFileDropTarget_base_OnLeave(_arg0);
3144
3145 wxPy_END_ALLOW_THREADS;
3146 } Py_INCREF(Py_None);
3147 _resultobj = Py_None;
3148 return _resultobj;
3149 }
3150
3151 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3152 static PyObject *_wrap_wxFileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
3153 PyObject * _resultobj;
3154 bool _result;
3155 wxPyFileDropTarget * _arg0;
3156 wxCoord _arg1;
3157 wxCoord _arg2;
3158 PyObject * _argo0 = 0;
3159 char *_kwnames[] = { "self","x","y", NULL };
3160
3161 self = self;
3162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxFileDropTarget_base_OnDrop",_kwnames,&_argo0,&_arg1,&_arg2))
3163 return NULL;
3164 if (_argo0) {
3165 if (_argo0 == Py_None) { _arg0 = NULL; }
3166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) {
3167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3168 return NULL;
3169 }
3170 }
3171 {
3172 wxPy_BEGIN_ALLOW_THREADS;
3173 _result = (bool )wxFileDropTarget_base_OnDrop(_arg0,_arg1,_arg2);
3174
3175 wxPy_END_ALLOW_THREADS;
3176 } _resultobj = Py_BuildValue("i",_result);
3177 return _resultobj;
3178 }
3179
3180 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3181 static PyObject *_wrap_wxFileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
3182 PyObject * _resultobj;
3183 wxDragResult _result;
3184 wxPyFileDropTarget * _arg0;
3185 wxCoord _arg1;
3186 wxCoord _arg2;
3187 wxDragResult _arg3;
3188 PyObject * _argo0 = 0;
3189 char *_kwnames[] = { "self","x","y","def", NULL };
3190
3191 self = self;
3192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxFileDropTarget_base_OnData",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3193 return NULL;
3194 if (_argo0) {
3195 if (_argo0 == Py_None) { _arg0 = NULL; }
3196 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) {
3197 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3198 return NULL;
3199 }
3200 }
3201 {
3202 wxPy_BEGIN_ALLOW_THREADS;
3203 _result = (wxDragResult )wxFileDropTarget_base_OnData(_arg0,_arg1,_arg2,_arg3);
3204
3205 wxPy_END_ALLOW_THREADS;
3206 } _resultobj = Py_BuildValue("i",_result);
3207 return _resultobj;
3208 }
3209
3210 static PyMethodDef clip_dndcMethods[] = {
3211 { "wxFileDropTarget_base_OnData", (PyCFunction) _wrap_wxFileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
3212 { "wxFileDropTarget_base_OnDrop", (PyCFunction) _wrap_wxFileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
3213 { "wxFileDropTarget_base_OnLeave", (PyCFunction) _wrap_wxFileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
3214 { "wxFileDropTarget_base_OnDragOver", (PyCFunction) _wrap_wxFileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
3215 { "wxFileDropTarget_base_OnEnter", (PyCFunction) _wrap_wxFileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
3216 { "wxFileDropTarget__setSelf", (PyCFunction) _wrap_wxFileDropTarget__setSelf, METH_VARARGS | METH_KEYWORDS },
3217 { "new_wxFileDropTarget", (PyCFunction) _wrap_new_wxFileDropTarget, METH_VARARGS | METH_KEYWORDS },
3218 { "wxTextDropTarget_base_OnData", (PyCFunction) _wrap_wxTextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
3219 { "wxTextDropTarget_base_OnDrop", (PyCFunction) _wrap_wxTextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
3220 { "wxTextDropTarget_base_OnLeave", (PyCFunction) _wrap_wxTextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
3221 { "wxTextDropTarget_base_OnDragOver", (PyCFunction) _wrap_wxTextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
3222 { "wxTextDropTarget_base_OnEnter", (PyCFunction) _wrap_wxTextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
3223 { "wxTextDropTarget__setSelf", (PyCFunction) _wrap_wxTextDropTarget__setSelf, METH_VARARGS | METH_KEYWORDS },
3224 { "new_wxTextDropTarget", (PyCFunction) _wrap_new_wxTextDropTarget, METH_VARARGS | METH_KEYWORDS },
3225 { "wxPyDropTarget_GetData", (PyCFunction) _wrap_wxPyDropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
3226 { "wxPyDropTarget_base_OnDrop", (PyCFunction) _wrap_wxPyDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
3227 { "wxPyDropTarget_base_OnLeave", (PyCFunction) _wrap_wxPyDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
3228 { "wxPyDropTarget_base_OnDragOver", (PyCFunction) _wrap_wxPyDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
3229 { "wxPyDropTarget_base_OnEnter", (PyCFunction) _wrap_wxPyDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
3230 { "wxPyDropTarget_SetDataObject", (PyCFunction) _wrap_wxPyDropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
3231 { "wxPyDropTarget_GetDataObject", (PyCFunction) _wrap_wxPyDropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
3232 { "delete_wxPyDropTarget", (PyCFunction) _wrap_delete_wxPyDropTarget, METH_VARARGS | METH_KEYWORDS },
3233 { "wxPyDropTarget__setSelf", (PyCFunction) _wrap_wxPyDropTarget__setSelf, METH_VARARGS | METH_KEYWORDS },
3234 { "new_wxPyDropTarget", (PyCFunction) _wrap_new_wxPyDropTarget, METH_VARARGS | METH_KEYWORDS },
3235 { "wxDropSource_base_GiveFeedback", (PyCFunction) _wrap_wxDropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
3236 { "wxDropSource_DoDragDrop", (PyCFunction) _wrap_wxDropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
3237 { "wxDropSource_SetCursor", (PyCFunction) _wrap_wxDropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
3238 { "wxDropSource_GetDataObject", (PyCFunction) _wrap_wxDropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
3239 { "wxDropSource_SetData", (PyCFunction) _wrap_wxDropSource_SetData, METH_VARARGS | METH_KEYWORDS },
3240 { "delete_wxDropSource", (PyCFunction) _wrap_delete_wxDropSource, METH_VARARGS | METH_KEYWORDS },
3241 { "wxDropSource__setSelf", (PyCFunction) _wrap_wxDropSource__setSelf, METH_VARARGS | METH_KEYWORDS },
3242 { "new_wxDropSource", (PyCFunction) _wrap_new_wxDropSource, METH_VARARGS | METH_KEYWORDS },
3243 { "wxClipboard_UsePrimarySelection", (PyCFunction) _wrap_wxClipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
3244 { "wxClipboard_Flush", (PyCFunction) _wrap_wxClipboard_Flush, METH_VARARGS | METH_KEYWORDS },
3245 { "wxClipboard_Clear", (PyCFunction) _wrap_wxClipboard_Clear, METH_VARARGS | METH_KEYWORDS },
3246 { "wxClipboard_GetData", (PyCFunction) _wrap_wxClipboard_GetData, METH_VARARGS | METH_KEYWORDS },
3247 { "wxClipboard_IsSupported", (PyCFunction) _wrap_wxClipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
3248 { "wxClipboard_SetData", (PyCFunction) _wrap_wxClipboard_SetData, METH_VARARGS | METH_KEYWORDS },
3249 { "wxClipboard_AddData", (PyCFunction) _wrap_wxClipboard_AddData, METH_VARARGS | METH_KEYWORDS },
3250 { "wxClipboard_IsOpened", (PyCFunction) _wrap_wxClipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
3251 { "wxClipboard_Close", (PyCFunction) _wrap_wxClipboard_Close, METH_VARARGS | METH_KEYWORDS },
3252 { "wxClipboard_Open", (PyCFunction) _wrap_wxClipboard_Open, METH_VARARGS | METH_KEYWORDS },
3253 { "new_wxClipboard", (PyCFunction) _wrap_new_wxClipboard, METH_VARARGS | METH_KEYWORDS },
3254 { "wxCustomDataObject_GetData", (PyCFunction) _wrap_wxCustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
3255 { "wxCustomDataObject_GetSize", (PyCFunction) _wrap_wxCustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
3256 { "wxCustomDataObject_SetData", (PyCFunction) _wrap_wxCustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
3257 { "wxCustomDataObject_TakeData", (PyCFunction) _wrap_wxCustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS },
3258 { "new_wxCustomDataObject", (PyCFunction) _wrap_new_wxCustomDataObject, METH_VARARGS | METH_KEYWORDS },
3259 { "wxFileDataObject_GetFilenames", (PyCFunction) _wrap_wxFileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
3260 { "new_wxFileDataObject", (PyCFunction) _wrap_new_wxFileDataObject, METH_VARARGS | METH_KEYWORDS },
3261 { "wxPyBitmapDataObject__setSelf", (PyCFunction) _wrap_wxPyBitmapDataObject__setSelf, METH_VARARGS | METH_KEYWORDS },
3262 { "new_wxPyBitmapDataObject", (PyCFunction) _wrap_new_wxPyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
3263 { "wxBitmapDataObject_SetBitmap", (PyCFunction) _wrap_wxBitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
3264 { "wxBitmapDataObject_GetBitmap", (PyCFunction) _wrap_wxBitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
3265 { "new_wxBitmapDataObject", (PyCFunction) _wrap_new_wxBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
3266 { "wxPyTextDataObject__setSelf", (PyCFunction) _wrap_wxPyTextDataObject__setSelf, METH_VARARGS | METH_KEYWORDS },
3267 { "new_wxPyTextDataObject", (PyCFunction) _wrap_new_wxPyTextDataObject, METH_VARARGS | METH_KEYWORDS },
3268 { "wxTextDataObject_SetText", (PyCFunction) _wrap_wxTextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
3269 { "wxTextDataObject_GetText", (PyCFunction) _wrap_wxTextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
3270 { "wxTextDataObject_GetTextLength", (PyCFunction) _wrap_wxTextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
3271 { "new_wxTextDataObject", (PyCFunction) _wrap_new_wxTextDataObject, METH_VARARGS | METH_KEYWORDS },
3272 { "wxDataObjectComposite_Add", (PyCFunction) _wrap_wxDataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
3273 { "new_wxDataObjectComposite", (PyCFunction) _wrap_new_wxDataObjectComposite, METH_VARARGS | METH_KEYWORDS },
3274 { "wxPyDataObjectSimple__setSelf", (PyCFunction) _wrap_wxPyDataObjectSimple__setSelf, METH_VARARGS | METH_KEYWORDS },
3275 { "new_wxPyDataObjectSimple", (PyCFunction) _wrap_new_wxPyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
3276 { "wxDataObjectSimple_SetFormat", (PyCFunction) _wrap_wxDataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
3277 { "wxDataObjectSimple_GetFormat", (PyCFunction) _wrap_wxDataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
3278 { "new_wxDataObjectSimple", (PyCFunction) _wrap_new_wxDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
3279 { "wxDataObject_IsSupportedFormat", (PyCFunction) _wrap_wxDataObject_IsSupportedFormat, METH_VARARGS | METH_KEYWORDS },
3280 { "wxDataObject_SetData", (PyCFunction) _wrap_wxDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
3281 { "wxDataObject_GetDataHere", (PyCFunction) _wrap_wxDataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
3282 { "wxDataObject_GetDataSize", (PyCFunction) _wrap_wxDataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
3283 { "wxDataObject_GetAllFormats", (PyCFunction) _wrap_wxDataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
3284 { "wxDataObject_GetFormatCount", (PyCFunction) _wrap_wxDataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
3285 { "wxDataObject_GetPreferredFormat", (PyCFunction) _wrap_wxDataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
3286 { "delete_wxDataObject", (PyCFunction) _wrap_delete_wxDataObject, METH_VARARGS | METH_KEYWORDS },
3287 { "wxDataFormat_SetId", (PyCFunction) _wrap_wxDataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
3288 { "wxDataFormat_GetId", (PyCFunction) _wrap_wxDataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
3289 { "wxDataFormat_GetType", (PyCFunction) _wrap_wxDataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
3290 { "wxDataFormat_SetType", (PyCFunction) _wrap_wxDataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
3291 { "delete_wxDataFormat", (PyCFunction) _wrap_delete_wxDataFormat, METH_VARARGS | METH_KEYWORDS },
3292 { "new_wxDataFormat", (PyCFunction) _wrap_new_wxDataFormat, METH_VARARGS | METH_KEYWORDS },
3293 { "wxIsDragResultOk", (PyCFunction) _wrap_wxIsDragResultOk, METH_VARARGS | METH_KEYWORDS },
3294 { "wxCustomDataFormat", (PyCFunction) _wrap_wxCustomDataFormat, METH_VARARGS | METH_KEYWORDS },
3295 { NULL, NULL }
3296 };
3297 #ifdef __cplusplus
3298 }
3299 #endif
3300 /*
3301 * This table is used by the pointer type-checker
3302 */
3303 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
3304 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
3305 { "_signed_long","_long",0},
3306 { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0},
3307 { "_wxBitmapDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject},
3308 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject},
3309 { "_wxBitmapDataObject","_class_wxBitmapDataObject",0},
3310 { "_wxPrintQuality","_wxCoord",0},
3311 { "_wxPrintQuality","_int",0},
3312 { "_wxPrintQuality","_signed_int",0},
3313 { "_wxPrintQuality","_unsigned_int",0},
3314 { "_wxPrintQuality","_wxWindowID",0},
3315 { "_wxPrintQuality","_uint",0},
3316 { "_wxPrintQuality","_EBool",0},
3317 { "_wxPrintQuality","_size_t",0},
3318 { "_class_wxCustomDataObject","_wxCustomDataObject",0},
3319 { "_class_wxRegionIterator","_wxRegionIterator",0},
3320 { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0},
3321 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
3322 { "_wxCursor","_class_wxCursor",0},
3323 { "_wxMask","_class_wxMask",0},
3324 { "_wxPen","_class_wxPen",0},
3325 { "_byte","_unsigned_char",0},
3326 { "_wxDataObject","_class_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject},
3327 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject},
3328 { "_wxDataObject","_class_wxFileDataObject",SwigwxFileDataObjectTowxDataObject},
3329 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject},
3330 { "_wxDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject},
3331 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject},
3332 { "_wxDataObject","_class_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject},
3333 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject},
3334 { "_wxDataObject","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject},
3335 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject},
3336 { "_wxDataObject","_class_wxTextDataObject",SwigwxTextDataObjectTowxDataObject},
3337 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject},
3338 { "_wxDataObject","_class_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject},
3339 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject},
3340 { "_wxDataObject","_class_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject},
3341 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject},
3342 { "_wxDataObject","_class_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject},
3343 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject},
3344 { "_wxDataObject","_class_wxDataObject",0},
3345 { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0},
3346 { "_wxPyDropSource","_class_wxPyDropSource",0},
3347 { "_long","_wxDash",0},
3348 { "_long","_unsigned_long",0},
3349 { "_long","_signed_long",0},
3350 { "_wxImageList","_class_wxImageList",0},
3351 { "_wxDataObjectSimple","_class_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple},
3352 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple},
3353 { "_wxDataObjectSimple","_class_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple},
3354 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple},
3355 { "_wxDataObjectSimple","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple},
3356 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple},
3357 { "_wxDataObjectSimple","_class_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple},
3358 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple},
3359 { "_wxDataObjectSimple","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple},
3360 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple},
3361 { "_wxDataObjectSimple","_class_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple},
3362 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple},
3363 { "_wxDataObjectSimple","_class_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple},
3364 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple},
3365 { "_wxDataObjectSimple","_class_wxDataObjectSimple",0},
3366 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
3367 { "_class_wxClipboard","_wxClipboard",0},
3368 { "_wxDC","_class_wxDC",0},
3369 { "_class_wxBitmapDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject},
3370 { "_class_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject},
3371 { "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
3372 { "_size_t","_wxCoord",0},
3373 { "_size_t","_wxPrintQuality",0},
3374 { "_size_t","_unsigned_int",0},
3375 { "_size_t","_int",0},
3376 { "_size_t","_wxWindowID",0},
3377 { "_size_t","_uint",0},
3378 { "_class_wxRealPoint","_wxRealPoint",0},
3379 { "_wxPrinterDC","_class_wxPrinterDC",0},
3380 { "_class_wxMask","_wxMask",0},
3381 { "_wxTextDataObject","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject},
3382 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject},
3383 { "_wxTextDataObject","_class_wxTextDataObject",0},
3384 { "_wxColour","_class_wxColour",0},
3385 { "_class_wxFileDataObject","_wxFileDataObject",0},
3386 { "_class_wxDataObject","_class_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject},
3387 { "_class_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject},
3388 { "_class_wxDataObject","_class_wxFileDataObject",SwigwxFileDataObjectTowxDataObject},
3389 { "_class_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject},
3390 { "_class_wxDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject},
3391 { "_class_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject},
3392 { "_class_wxDataObject","_class_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject},
3393 { "_class_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject},
3394 { "_class_wxDataObject","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject},
3395 { "_class_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject},
3396 { "_class_wxDataObject","_class_wxTextDataObject",SwigwxTextDataObjectTowxDataObject},
3397 { "_class_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject},
3398 { "_class_wxDataObject","_class_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject},
3399 { "_class_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject},
3400 { "_class_wxDataObject","_class_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject},
3401 { "_class_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject},
3402 { "_class_wxDataObject","_class_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject},
3403 { "_class_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject},
3404 { "_class_wxDataObject","_wxDataObject",0},
3405 { "_wxBrush","_class_wxBrush",0},
3406 { "_wxDataFormat","_class_wxDataFormat",0},
3407 { "_class_wxDataObjectSimple","_class_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple},
3408 { "_class_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple},
3409 { "_class_wxDataObjectSimple","_class_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple},
3410 { "_class_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple},
3411 { "_class_wxDataObjectSimple","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple},
3412 { "_class_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple},
3413 { "_class_wxDataObjectSimple","_class_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple},
3414 { "_class_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple},
3415 { "_class_wxDataObjectSimple","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple},
3416 { "_class_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple},
3417 { "_class_wxDataObjectSimple","_class_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple},
3418 { "_class_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple},
3419 { "_class_wxDataObjectSimple","_class_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple},
3420 { "_class_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple},
3421 { "_class_wxDataObjectSimple","_wxDataObjectSimple",0},
3422 { "_uint","_wxCoord",0},
3423 { "_uint","_wxPrintQuality",0},
3424 { "_uint","_size_t",0},
3425 { "_uint","_unsigned_int",0},
3426 { "_uint","_int",0},
3427 { "_uint","_wxWindowID",0},
3428 { "_wxRect","_class_wxRect",0},
3429 { "_wxPoint","_class_wxPoint",0},
3430 { "_wxBitmap","_class_wxBitmap",0},
3431 { "_wxPyTimer","_class_wxPyTimer",0},
3432 { "_wxWindowDC","_class_wxWindowDC",0},
3433 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
3434 { "_wxDropTarget","_class_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget},
3435 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget},
3436 { "_wxDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget},
3437 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget},
3438 { "_wxDropTarget","_class_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget},
3439 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget},
3440 { "_wxDropTarget","_class_wxDropTarget",0},
3441 { "_EBool","_wxCoord",0},
3442 { "_EBool","_wxPrintQuality",0},
3443 { "_EBool","_signed_int",0},
3444 { "_EBool","_int",0},
3445 { "_EBool","_wxWindowID",0},
3446 { "_class_wxRegion","_wxRegion",0},
3447 { "_class_wxDataFormat","_wxDataFormat",0},
3448 { "_wxGDIImage","_class_wxGDIImage",0},
3449 { "_wxFont","_class_wxFont",0},
3450 { "_class_wxPyDropTarget","_class_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget},
3451 { "_class_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget},
3452 { "_class_wxPyDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget},
3453 { "_class_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget},
3454 { "_class_wxPyDropTarget","_wxPyDropTarget",0},
3455 { "_unsigned_long","_wxDash",0},
3456 { "_unsigned_long","_long",0},
3457 { "_class_wxRect","_wxRect",0},
3458 { "_class_wxDC","_wxDC",0},
3459 { "_class_wxPyTimer","_wxPyTimer",0},
3460 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
3461 { "_signed_int","_wxCoord",0},
3462 { "_signed_int","_wxPrintQuality",0},
3463 { "_signed_int","_EBool",0},
3464 { "_signed_int","_wxWindowID",0},
3465 { "_signed_int","_int",0},
3466 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
3467 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
3468 { "_class_wxTextDataObject","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject},
3469 { "_class_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject},
3470 { "_class_wxTextDataObject","_wxTextDataObject",0},
3471 { "_wxScreenDC","_class_wxScreenDC",0},
3472 { "_WXTYPE","_short",0},
3473 { "_WXTYPE","_signed_short",0},
3474 { "_WXTYPE","_unsigned_short",0},
3475 { "_class_wxDropTarget","_class_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget},
3476 { "_class_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget},
3477 { "_class_wxDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget},
3478 { "_class_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget},
3479 { "_class_wxDropTarget","_class_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget},
3480 { "_class_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget},
3481 { "_class_wxDropTarget","_wxDropTarget",0},
3482 { "_class_wxBrush","_wxBrush",0},
3483 { "_unsigned_short","_WXTYPE",0},
3484 { "_unsigned_short","_short",0},
3485 { "_class_wxFont","_wxFont",0},
3486 { "_wxClipboard","_class_wxClipboard",0},
3487 { "_wxBusyInfo","_class_wxBusyInfo",0},
3488 { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
3489 { "_wxClientDC","_class_wxClientDC",0},
3490 { "_class_wxPoint","_wxPoint",0},
3491 { "_wxRealPoint","_class_wxRealPoint",0},
3492 { "_signed_short","_WXTYPE",0},
3493 { "_signed_short","_short",0},
3494 { "_wxMemoryDC","_class_wxMemoryDC",0},
3495 { "_wxPyTextDataObject","_class_wxPyTextDataObject",0},
3496 { "_wxPaintDC","_class_wxPaintDC",0},
3497 { "_class_wxWindowDC","_wxWindowDC",0},
3498 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
3499 { "_class_wxCursor","_wxCursor",0},
3500 { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0},
3501 { "_unsigned_char","_byte",0},
3502 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
3503 { "_unsigned_int","_wxCoord",0},
3504 { "_unsigned_int","_wxPrintQuality",0},
3505 { "_unsigned_int","_size_t",0},
3506 { "_unsigned_int","_uint",0},
3507 { "_unsigned_int","_wxWindowID",0},
3508 { "_unsigned_int","_int",0},
3509 { "_wxIcon","_class_wxIcon",0},
3510 { "_class_wxPen","_wxPen",0},
3511 { "_short","_WXTYPE",0},
3512 { "_short","_unsigned_short",0},
3513 { "_short","_signed_short",0},
3514 { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0},
3515 { "_class_wxPyDropSource","_wxPyDropSource",0},
3516 { "_class_wxImageList","_wxImageList",0},
3517 { "_class_wxGDIImage","_wxGDIImage",0},
3518 { "_wxWindowID","_wxCoord",0},
3519 { "_wxWindowID","_wxPrintQuality",0},
3520 { "_wxWindowID","_size_t",0},
3521 { "_wxWindowID","_EBool",0},
3522 { "_wxWindowID","_uint",0},
3523 { "_wxWindowID","_int",0},
3524 { "_wxWindowID","_signed_int",0},
3525 { "_wxWindowID","_unsigned_int",0},
3526 { "_int","_wxCoord",0},
3527 { "_int","_wxPrintQuality",0},
3528 { "_int","_size_t",0},
3529 { "_int","_EBool",0},
3530 { "_int","_uint",0},
3531 { "_int","_wxWindowID",0},
3532 { "_int","_unsigned_int",0},
3533 { "_int","_signed_int",0},
3534 { "_wxSize","_class_wxSize",0},
3535 { "_wxRegionIterator","_class_wxRegionIterator",0},
3536 { "_class_wxPrinterDC","_wxPrinterDC",0},
3537 { "_class_wxPyTextDataObject","_wxPyTextDataObject",0},
3538 { "_class_wxPaintDC","_wxPaintDC",0},
3539 { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0},
3540 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
3541 { "_class_wxIcon","_wxIcon",0},
3542 { "_class_wxColour","_wxColour",0},
3543 { "_class_wxScreenDC","_wxScreenDC",0},
3544 { "_wxPalette","_class_wxPalette",0},
3545 { "_wxCoord","_int",0},
3546 { "_wxCoord","_signed_int",0},
3547 { "_wxCoord","_unsigned_int",0},
3548 { "_wxCoord","_wxWindowID",0},
3549 { "_wxCoord","_uint",0},
3550 { "_wxCoord","_EBool",0},
3551 { "_wxCoord","_size_t",0},
3552 { "_wxCoord","_wxPrintQuality",0},
3553 { "_wxDataObjectComposite","_class_wxDataObjectComposite",0},
3554 { "_wxRegion","_class_wxRegion",0},
3555 { "_wxPyDropTarget","_class_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget},
3556 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget},
3557 { "_wxPyDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget},
3558 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget},
3559 { "_wxPyDropTarget","_class_wxPyDropTarget",0},
3560 { "_class_wxBusyInfo","_wxBusyInfo",0},
3561 { "_class_wxClientDC","_wxClientDC",0},
3562 { "_wxCustomDataObject","_class_wxCustomDataObject",0},
3563 { "_class_wxSize","_wxSize",0},
3564 { "_class_wxBitmap","_wxBitmap",0},
3565 { "_class_wxMemoryDC","_wxMemoryDC",0},
3566 { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0},
3567 { "_wxDash","_unsigned_long",0},
3568 { "_wxDash","_long",0},
3569 { "_class_wxPalette","_wxPalette",0},
3570 { "_wxFileDataObject","_class_wxFileDataObject",0},
3571 { "_class_wxDataObjectComposite","_wxDataObjectComposite",0},
3572 {0,0,0}};
3573
3574 static PyObject *SWIG_globals;
3575 #ifdef __cplusplus
3576 extern "C"
3577 #endif
3578 SWIGEXPORT(void) initclip_dndc() {
3579 PyObject *m, *d;
3580 SWIG_globals = SWIG_newvarlink();
3581 m = Py_InitModule("clip_dndc", clip_dndcMethods);
3582 d = PyModule_GetDict(m);
3583 PyDict_SetItemString(d,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID));
3584 PyDict_SetItemString(d,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT));
3585 PyDict_SetItemString(d,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP));
3586 PyDict_SetItemString(d,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE));
3587 PyDict_SetItemString(d,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK));
3588 PyDict_SetItemString(d,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF));
3589 PyDict_SetItemString(d,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF));
3590 PyDict_SetItemString(d,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT));
3591 PyDict_SetItemString(d,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB));
3592 PyDict_SetItemString(d,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE));
3593 PyDict_SetItemString(d,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA));
3594 PyDict_SetItemString(d,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF));
3595 PyDict_SetItemString(d,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE));
3596 PyDict_SetItemString(d,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT));
3597 PyDict_SetItemString(d,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE));
3598 PyDict_SetItemString(d,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME));
3599 PyDict_SetItemString(d,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE));
3600 PyDict_SetItemString(d,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE));
3601 PyDict_SetItemString(d,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX));
3602 PyDict_SetItemString(d,"cvar", SWIG_globals);
3603 SWIG_addvarlink(SWIG_globals,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get, _wrap_wxPyFormatInvalid_set);
3604 SWIG_addvarlink(SWIG_globals,"wxTheClipboard",_wrap_wxPyTheClipboard_get, _wrap_wxPyTheClipboard_set);
3605 PyDict_SetItemString(d,"wxDragError", PyInt_FromLong((long) wxDragError));
3606 PyDict_SetItemString(d,"wxDragNone", PyInt_FromLong((long) wxDragNone));
3607 PyDict_SetItemString(d,"wxDragCopy", PyInt_FromLong((long) wxDragCopy));
3608 PyDict_SetItemString(d,"wxDragMove", PyInt_FromLong((long) wxDragMove));
3609 PyDict_SetItemString(d,"wxDragCancel", PyInt_FromLong((long) wxDragCancel));
3610
3611
3612 wxPyTheClipboard = wxTheClipboard;
3613
3614 PyDict_SetItemString(d,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get));
3615 PyDict_SetItemString(d,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set));
3616 PyDict_SetItemString(d,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both));
3617 {
3618 int i;
3619 for (i = 0; _swig_mapping[i].n1; i++)
3620 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
3621 }
3622 }