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