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