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