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