2 * FILE : contrib/dllwidget/dllwidget_.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initdllwidget_c
56 #define SWIG_name "dllwidget_c"
59 #include "dllwidget.h"
62 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
68 } else if (target
== Py_None
) {
72 if (!PyTuple_Check(target
)) {
74 target
= PyTuple_New(1);
75 PyTuple_SetItem(target
, 0, o2
);
78 PyTuple_SetItem(o3
, 0, o
);
81 target
= PySequence_Concat(o2
, o3
);
90 static void *SwigwxDllWidgetTowxPanel(void *ptr
) {
93 src
= (wxDllWidget
*) ptr
;
94 dest
= (wxPanel
*) src
;
98 static void *SwigwxDllWidgetTowxWindow(void *ptr
) {
101 src
= (wxDllWidget
*) ptr
;
102 dest
= (wxWindow
*) src
;
103 return (void *) dest
;
106 static void *SwigwxDllWidgetTowxEvtHandler(void *ptr
) {
109 src
= (wxDllWidget
*) ptr
;
110 dest
= (wxEvtHandler
*) src
;
111 return (void *) dest
;
114 static void *SwigwxDllWidgetTowxObject(void *ptr
) {
117 src
= (wxDllWidget
*) ptr
;
118 dest
= (wxObject
*) src
;
119 return (void *) dest
;
122 #define new_wxDllWidget(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDllWidget(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
123 static PyObject
*_wrap_new_wxDllWidget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
124 PyObject
* _resultobj
;
125 wxDllWidget
* _result
;
127 wxWindowID _arg1
= (wxWindowID
) -1;
128 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
129 wxString
* _arg3
= (wxString
*) &wxEmptyString
;
130 wxPoint
* _arg4
= (wxPoint
*) &wxDefaultPosition
;
131 wxSize
* _arg5
= (wxSize
*) &wxDefaultSize
;
132 long _arg6
= (long ) 0;
133 PyObject
* _argo0
= 0;
134 PyObject
* _obj2
= 0;
135 PyObject
* _obj3
= 0;
137 PyObject
* _obj4
= 0;
139 PyObject
* _obj5
= 0;
140 char *_kwnames
[] = { "parent","id","dllName","className","pos","size","style", NULL
};
144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOOOl:new_wxDllWidget",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_obj4
,&_obj5
,&_arg6
))
147 if (_argo0
== Py_None
) { _arg0
= NULL
; }
148 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDllWidget. Expected _wxWindow_p.");
155 _arg2
= wxString_in_helper(_obj2
);
161 _arg3
= wxString_in_helper(_obj3
);
168 if (! wxPoint_helper(_obj4
, &_arg4
))
174 if (! wxSize_helper(_obj5
, &_arg5
))
178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
179 _result
= (wxDllWidget
*)new_wxDllWidget(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
);
181 wxPyEndAllowThreads(__tstate
);
182 if (PyErr_Occurred()) return NULL
;
184 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDllWidget_p");
185 _resultobj
= Py_BuildValue("s",_ptemp
);
188 _resultobj
= Py_None
;
201 #define wxDllWidget_Ok(_swigobj) (_swigobj->Ok())
202 static PyObject
*_wrap_wxDllWidget_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
203 PyObject
* _resultobj
;
206 PyObject
* _argo0
= 0;
207 char *_kwnames
[] = { "self", NULL
};
210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDllWidget_Ok",_kwnames
,&_argo0
))
213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDllWidget_p")) {
215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDllWidget_Ok. Expected _wxDllWidget_p.");
220 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
221 _result
= (bool )wxDllWidget_Ok(_arg0
);
223 wxPyEndAllowThreads(__tstate
);
224 if (PyErr_Occurred()) return NULL
;
225 } _resultobj
= Py_BuildValue("i",_result
);
229 #define wxDllWidget_SendCommand(_swigobj,_swigarg0,_swigarg1) (_swigobj->SendCommand(_swigarg0,_swigarg1))
230 static PyObject
*_wrap_wxDllWidget_SendCommand(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
231 PyObject
* _resultobj
;
235 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
236 PyObject
* _argo0
= 0;
237 PyObject
* _obj2
= 0;
238 char *_kwnames
[] = { "self","cmd","param", NULL
};
241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|O:wxDllWidget_SendCommand",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDllWidget_p")) {
246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDllWidget_SendCommand. Expected _wxDllWidget_p.");
252 _arg2
= wxString_in_helper(_obj2
);
257 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
258 _result
= (int )wxDllWidget_SendCommand(_arg0
,_arg1
,*_arg2
);
260 wxPyEndAllowThreads(__tstate
);
261 if (PyErr_Occurred()) return NULL
;
262 } _resultobj
= Py_BuildValue("i",_result
);
270 #define wxDllWidget_GetWidgetWindow(_swigobj) (_swigobj->GetWidgetWindow())
271 static PyObject
*_wrap_wxDllWidget_GetWidgetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
272 PyObject
* _resultobj
;
275 PyObject
* _argo0
= 0;
276 char *_kwnames
[] = { "self", NULL
};
279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDllWidget_GetWidgetWindow",_kwnames
,&_argo0
))
282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDllWidget_p")) {
284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDllWidget_GetWidgetWindow. Expected _wxDllWidget_p.");
289 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
290 _result
= (wxWindow
*)wxDllWidget_GetWidgetWindow(_arg0
);
292 wxPyEndAllowThreads(__tstate
);
293 if (PyErr_Occurred()) return NULL
;
294 }{ _resultobj
= wxPyMake_wxObject(_result
); }
298 static PyObject
*_wrap_wxDllWidget_GetDllExt(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
299 PyObject
* _resultobj
;
301 char *_kwnames
[] = { NULL
};
304 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxDllWidget_GetDllExt",_kwnames
))
307 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
308 _result
= new wxString (wxDllWidget::GetDllExt());
310 wxPyEndAllowThreads(__tstate
);
311 if (PyErr_Occurred()) return NULL
;
314 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
316 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
325 static PyMethodDef dllwidget_cMethods
[] = {
326 { "wxDllWidget_GetDllExt", (PyCFunction
) _wrap_wxDllWidget_GetDllExt
, METH_VARARGS
| METH_KEYWORDS
},
327 { "wxDllWidget_GetWidgetWindow", (PyCFunction
) _wrap_wxDllWidget_GetWidgetWindow
, METH_VARARGS
| METH_KEYWORDS
},
328 { "wxDllWidget_SendCommand", (PyCFunction
) _wrap_wxDllWidget_SendCommand
, METH_VARARGS
| METH_KEYWORDS
},
329 { "wxDllWidget_Ok", (PyCFunction
) _wrap_wxDllWidget_Ok
, METH_VARARGS
| METH_KEYWORDS
},
330 { "new_wxDllWidget", (PyCFunction
) _wrap_new_wxDllWidget
, METH_VARARGS
| METH_KEYWORDS
},
337 * This table is used by the pointer type-checker
339 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
340 { "_signed_long","_long",0},
341 { "_wxPrintQuality","_wxCoord",0},
342 { "_wxPrintQuality","_int",0},
343 { "_wxPrintQuality","_signed_int",0},
344 { "_wxPrintQuality","_unsigned_int",0},
345 { "_wxPrintQuality","_wxWindowID",0},
346 { "_wxPrintQuality","_uint",0},
347 { "_wxPrintQuality","_EBool",0},
348 { "_wxPrintQuality","_size_t",0},
349 { "_wxPrintQuality","_time_t",0},
350 { "_byte","_unsigned_char",0},
351 { "_long","_unsigned_long",0},
352 { "_long","_signed_long",0},
353 { "_size_t","_wxCoord",0},
354 { "_size_t","_wxPrintQuality",0},
355 { "_size_t","_time_t",0},
356 { "_size_t","_unsigned_int",0},
357 { "_size_t","_int",0},
358 { "_size_t","_wxWindowID",0},
359 { "_size_t","_uint",0},
360 { "_wxPanel","_wxDllWidget",SwigwxDllWidgetTowxPanel
},
361 { "_uint","_wxCoord",0},
362 { "_uint","_wxPrintQuality",0},
363 { "_uint","_time_t",0},
364 { "_uint","_size_t",0},
365 { "_uint","_unsigned_int",0},
367 { "_uint","_wxWindowID",0},
368 { "_wxChar","_char",0},
369 { "_char","_wxChar",0},
370 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
371 { "_EBool","_wxCoord",0},
372 { "_EBool","_wxPrintQuality",0},
373 { "_EBool","_signed_int",0},
374 { "_EBool","_int",0},
375 { "_EBool","_wxWindowID",0},
376 { "_unsigned_long","_long",0},
377 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
378 { "_signed_int","_wxCoord",0},
379 { "_signed_int","_wxPrintQuality",0},
380 { "_signed_int","_EBool",0},
381 { "_signed_int","_wxWindowID",0},
382 { "_signed_int","_int",0},
383 { "_WXTYPE","_wxDateTime_t",0},
384 { "_WXTYPE","_short",0},
385 { "_WXTYPE","_signed_short",0},
386 { "_WXTYPE","_unsigned_short",0},
387 { "_unsigned_short","_wxDateTime_t",0},
388 { "_unsigned_short","_WXTYPE",0},
389 { "_unsigned_short","_short",0},
390 { "_wxObject","_wxDllWidget",SwigwxDllWidgetTowxObject
},
391 { "_signed_short","_WXTYPE",0},
392 { "_signed_short","_short",0},
393 { "_unsigned_char","_byte",0},
394 { "_unsigned_int","_wxCoord",0},
395 { "_unsigned_int","_wxPrintQuality",0},
396 { "_unsigned_int","_time_t",0},
397 { "_unsigned_int","_size_t",0},
398 { "_unsigned_int","_uint",0},
399 { "_unsigned_int","_wxWindowID",0},
400 { "_unsigned_int","_int",0},
401 { "_short","_wxDateTime_t",0},
402 { "_short","_WXTYPE",0},
403 { "_short","_unsigned_short",0},
404 { "_short","_signed_short",0},
405 { "_wxWindowID","_wxCoord",0},
406 { "_wxWindowID","_wxPrintQuality",0},
407 { "_wxWindowID","_time_t",0},
408 { "_wxWindowID","_size_t",0},
409 { "_wxWindowID","_EBool",0},
410 { "_wxWindowID","_uint",0},
411 { "_wxWindowID","_int",0},
412 { "_wxWindowID","_signed_int",0},
413 { "_wxWindowID","_unsigned_int",0},
414 { "_int","_wxCoord",0},
415 { "_int","_wxPrintQuality",0},
416 { "_int","_time_t",0},
417 { "_int","_size_t",0},
418 { "_int","_EBool",0},
420 { "_int","_wxWindowID",0},
421 { "_int","_unsigned_int",0},
422 { "_int","_signed_int",0},
423 { "_wxDateTime_t","_unsigned_short",0},
424 { "_wxDateTime_t","_short",0},
425 { "_wxDateTime_t","_WXTYPE",0},
426 { "_time_t","_wxCoord",0},
427 { "_time_t","_wxPrintQuality",0},
428 { "_time_t","_unsigned_int",0},
429 { "_time_t","_int",0},
430 { "_time_t","_wxWindowID",0},
431 { "_time_t","_uint",0},
432 { "_time_t","_size_t",0},
433 { "_wxCoord","_int",0},
434 { "_wxCoord","_signed_int",0},
435 { "_wxCoord","_unsigned_int",0},
436 { "_wxCoord","_wxWindowID",0},
437 { "_wxCoord","_uint",0},
438 { "_wxCoord","_EBool",0},
439 { "_wxCoord","_size_t",0},
440 { "_wxCoord","_time_t",0},
441 { "_wxCoord","_wxPrintQuality",0},
442 { "_wxEvtHandler","_wxDllWidget",SwigwxDllWidgetTowxEvtHandler
},
443 { "_wxWindow","_wxDllWidget",SwigwxDllWidgetTowxWindow
},
446 static PyObject
*SWIG_globals
;
450 SWIGEXPORT(void) initdllwidget_c() {
452 SWIG_globals
= SWIG_newvarlink();
453 m
= Py_InitModule("dllwidget_c", dllwidget_cMethods
);
454 d
= PyModule_GetDict(m
);
457 wxClassInfo::CleanUpClasses();
458 wxClassInfo::InitializeClasses();
462 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
463 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);