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