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