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