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