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