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