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