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