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