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