4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 810)
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
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
47 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
48 extern PyObject
*SWIG_newvarlink(void);
52 #define SWIG_init initmisc2c
54 #define SWIG_name "misc2c"
57 #include <wx/resource.h>
58 #include <wx/tooltip.h>
61 #include <wx/fontenum.h>
64 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyList_Check(target
)) {
75 target
= PyList_New(0);
76 PyList_Append(target
, o2
);
79 PyList_Append(target
,o
);
85 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
91 } else if (target
== Py_None
) {
95 if (!PyTuple_Check(target
)) {
97 target
= PyTuple_New(1);
98 PyTuple_SetItem(target
, 0, o2
);
101 PyTuple_SetItem(o3
, 0, o
);
104 target
= PySequence_Concat(o2
, o3
);
111 static char* wxStringErrorMsg
= "string type is required for parameter";
113 void wxToolTip_Enable(bool flag
) {
114 wxToolTip::Enable(flag
);
117 void wxToolTip_SetDelay(long milliseconds
) {
118 wxToolTip::SetDelay(milliseconds
);
121 int wxCaret_GetBlinkTime() {
122 return wxCaret::GetBlinkTime();
125 void wxCaret_SetBlinkTime(int milliseconds
) {
126 wxCaret::SetBlinkTime(milliseconds
);
131 static PyObject
*_wrap_wxFindWindowByLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
132 PyObject
* _resultobj
;
135 wxWindow
* _arg1
= (wxWindow
*) NULL
;
136 PyObject
* _obj0
= 0;
137 PyObject
* _argo1
= 0;
138 char *_kwnames
[] = { "label","parent", NULL
};
142 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxFindWindowByLabel",_kwnames
,&_obj0
,&_argo1
))
145 if (!PyString_Check(_obj0
)) {
146 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
149 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
152 if (_argo1
== Py_None
) { _arg1
= NULL
; }
153 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p.");
159 wxPy_BEGIN_ALLOW_THREADS
;
160 _result
= (wxWindow
*)wxFindWindowByLabel(*_arg0
,_arg1
);
162 wxPy_END_ALLOW_THREADS
;
164 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
165 _resultobj
= Py_BuildValue("s",_ptemp
);
168 _resultobj
= Py_None
;
177 static PyObject
*_wrap_wxFindWindowByName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
178 PyObject
* _resultobj
;
181 wxWindow
* _arg1
= (wxWindow
*) NULL
;
182 PyObject
* _obj0
= 0;
183 PyObject
* _argo1
= 0;
184 char *_kwnames
[] = { "name","parent", NULL
};
188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxFindWindowByName",_kwnames
,&_obj0
,&_argo1
))
191 if (!PyString_Check(_obj0
)) {
192 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
195 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
198 if (_argo1
== Py_None
) { _arg1
= NULL
; }
199 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p.");
205 wxPy_BEGIN_ALLOW_THREADS
;
206 _result
= (wxWindow
*)wxFindWindowByName(*_arg0
,_arg1
);
208 wxPy_END_ALLOW_THREADS
;
210 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
211 _resultobj
= Py_BuildValue("s",_ptemp
);
214 _resultobj
= Py_None
;
223 static PyObject
*_wrap_wxToolTip_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
224 PyObject
* _resultobj
;
227 char *_kwnames
[] = { "flag", NULL
};
230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxToolTip_Enable",_kwnames
,&tempbool0
))
232 _arg0
= (bool ) tempbool0
;
234 wxPy_BEGIN_ALLOW_THREADS
;
235 wxToolTip_Enable(_arg0
);
237 wxPy_END_ALLOW_THREADS
;
238 } Py_INCREF(Py_None
);
239 _resultobj
= Py_None
;
243 static PyObject
*_wrap_wxToolTip_SetDelay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
244 PyObject
* _resultobj
;
246 char *_kwnames
[] = { "milliseconds", NULL
};
249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"l:wxToolTip_SetDelay",_kwnames
,&_arg0
))
252 wxPy_BEGIN_ALLOW_THREADS
;
253 wxToolTip_SetDelay(_arg0
);
255 wxPy_END_ALLOW_THREADS
;
256 } Py_INCREF(Py_None
);
257 _resultobj
= Py_None
;
261 static PyObject
*_wrap_wxCaret_GetBlinkTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
262 PyObject
* _resultobj
;
264 char *_kwnames
[] = { NULL
};
267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxCaret_GetBlinkTime",_kwnames
))
270 wxPy_BEGIN_ALLOW_THREADS
;
271 _result
= (int )wxCaret_GetBlinkTime();
273 wxPy_END_ALLOW_THREADS
;
274 } _resultobj
= Py_BuildValue("i",_result
);
278 static PyObject
*_wrap_wxCaret_SetBlinkTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
279 PyObject
* _resultobj
;
281 char *_kwnames
[] = { "milliseconds", NULL
};
284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxCaret_SetBlinkTime",_kwnames
,&_arg0
))
287 wxPy_BEGIN_ALLOW_THREADS
;
288 wxCaret_SetBlinkTime(_arg0
);
290 wxPy_END_ALLOW_THREADS
;
291 } Py_INCREF(Py_None
);
292 _resultobj
= Py_None
;
296 #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0))
297 static PyObject
*_wrap_new_wxToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
298 PyObject
* _resultobj
;
301 PyObject
* _obj0
= 0;
302 char *_kwnames
[] = { "tip", NULL
};
306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxToolTip",_kwnames
,&_obj0
))
309 if (!PyString_Check(_obj0
)) {
310 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
313 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
316 wxPy_BEGIN_ALLOW_THREADS
;
317 _result
= (wxToolTip
*)new_wxToolTip(*_arg0
);
319 wxPy_END_ALLOW_THREADS
;
321 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolTip_p");
322 _resultobj
= Py_BuildValue("s",_ptemp
);
325 _resultobj
= Py_None
;
334 #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0))
335 static PyObject
*_wrap_wxToolTip_SetTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
336 PyObject
* _resultobj
;
339 PyObject
* _argo0
= 0;
340 PyObject
* _obj1
= 0;
341 char *_kwnames
[] = { "self","tip", NULL
};
344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolTip_SetTip",_kwnames
,&_argo0
,&_obj1
))
347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolTip_p")) {
349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p.");
354 if (!PyString_Check(_obj1
)) {
355 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
358 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
361 wxPy_BEGIN_ALLOW_THREADS
;
362 wxToolTip_SetTip(_arg0
,*_arg1
);
364 wxPy_END_ALLOW_THREADS
;
365 } Py_INCREF(Py_None
);
366 _resultobj
= Py_None
;
374 #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip())
375 static PyObject
*_wrap_wxToolTip_GetTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
376 PyObject
* _resultobj
;
379 PyObject
* _argo0
= 0;
380 char *_kwnames
[] = { "self", NULL
};
383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolTip_GetTip",_kwnames
,&_argo0
))
386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolTip_p")) {
388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p.");
393 wxPy_BEGIN_ALLOW_THREADS
;
394 _result
= new wxString (wxToolTip_GetTip(_arg0
));
396 wxPy_END_ALLOW_THREADS
;
398 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
406 #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow())
407 static PyObject
*_wrap_wxToolTip_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
408 PyObject
* _resultobj
;
411 PyObject
* _argo0
= 0;
412 char *_kwnames
[] = { "self", NULL
};
416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolTip_GetWindow",_kwnames
,&_argo0
))
419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolTip_p")) {
421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p.");
426 wxPy_BEGIN_ALLOW_THREADS
;
427 _result
= (wxWindow
*)wxToolTip_GetWindow(_arg0
);
429 wxPy_END_ALLOW_THREADS
;
431 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
432 _resultobj
= Py_BuildValue("s",_ptemp
);
435 _resultobj
= Py_None
;
440 #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1))
441 static PyObject
*_wrap_new_wxCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
442 PyObject
* _resultobj
;
446 PyObject
* _argo0
= 0;
448 PyObject
* _obj1
= 0;
449 char *_kwnames
[] = { "window","size", NULL
};
453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:new_wxCaret",_kwnames
,&_argo0
,&_obj1
))
456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p.");
464 if (! wxSize_helper(_obj1
, &_arg1
))
468 wxPy_BEGIN_ALLOW_THREADS
;
469 _result
= (wxCaret
*)new_wxCaret(_arg0
,*_arg1
);
471 wxPy_END_ALLOW_THREADS
;
473 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCaret_p");
474 _resultobj
= Py_BuildValue("s",_ptemp
);
477 _resultobj
= Py_None
;
482 #define delete_wxCaret(_swigobj) (delete _swigobj)
483 static PyObject
*_wrap_delete_wxCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
484 PyObject
* _resultobj
;
486 PyObject
* _argo0
= 0;
487 char *_kwnames
[] = { "self", NULL
};
490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCaret",_kwnames
,&_argo0
))
493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p.");
500 wxPy_BEGIN_ALLOW_THREADS
;
501 delete_wxCaret(_arg0
);
503 wxPy_END_ALLOW_THREADS
;
504 } Py_INCREF(Py_None
);
505 _resultobj
= Py_None
;
509 #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk())
510 static PyObject
*_wrap_wxCaret_IsOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
511 PyObject
* _resultobj
;
514 PyObject
* _argo0
= 0;
515 char *_kwnames
[] = { "self", NULL
};
518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_IsOk",_kwnames
,&_argo0
))
521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p.");
528 wxPy_BEGIN_ALLOW_THREADS
;
529 _result
= (bool )wxCaret_IsOk(_arg0
);
531 wxPy_END_ALLOW_THREADS
;
532 } _resultobj
= Py_BuildValue("i",_result
);
536 #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible())
537 static PyObject
*_wrap_wxCaret_IsVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
538 PyObject
* _resultobj
;
541 PyObject
* _argo0
= 0;
542 char *_kwnames
[] = { "self", NULL
};
545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_IsVisible",_kwnames
,&_argo0
))
548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p.");
555 wxPy_BEGIN_ALLOW_THREADS
;
556 _result
= (bool )wxCaret_IsVisible(_arg0
);
558 wxPy_END_ALLOW_THREADS
;
559 } _resultobj
= Py_BuildValue("i",_result
);
563 #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
564 static PyObject
*_wrap_wxCaret_GetPositionTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
565 PyObject
* _resultobj
;
571 PyObject
* _argo0
= 0;
572 char *_kwnames
[] = { "self", NULL
};
581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_GetPositionTuple",_kwnames
,&_argo0
))
584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p.");
591 wxPy_BEGIN_ALLOW_THREADS
;
592 wxCaret_GetPositionTuple(_arg0
,_arg1
,_arg2
);
594 wxPy_END_ALLOW_THREADS
;
595 } Py_INCREF(Py_None
);
596 _resultobj
= Py_None
;
599 o
= PyInt_FromLong((long) (*_arg1
));
600 _resultobj
= t_output_helper(_resultobj
, o
);
604 o
= PyInt_FromLong((long) (*_arg2
));
605 _resultobj
= t_output_helper(_resultobj
, o
);
610 #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition())
611 static PyObject
*_wrap_wxCaret_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
612 PyObject
* _resultobj
;
615 PyObject
* _argo0
= 0;
616 char *_kwnames
[] = { "self", NULL
};
620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_GetPosition",_kwnames
,&_argo0
))
623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p.");
630 wxPy_BEGIN_ALLOW_THREADS
;
631 _result
= new wxPoint (wxCaret_GetPosition(_arg0
));
633 wxPy_END_ALLOW_THREADS
;
634 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
635 _resultobj
= Py_BuildValue("s",_ptemp
);
639 #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
640 static PyObject
*_wrap_wxCaret_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
641 PyObject
* _resultobj
;
647 PyObject
* _argo0
= 0;
648 char *_kwnames
[] = { "self", NULL
};
657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_GetSizeTuple",_kwnames
,&_argo0
))
660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p.");
667 wxPy_BEGIN_ALLOW_THREADS
;
668 wxCaret_GetSizeTuple(_arg0
,_arg1
,_arg2
);
670 wxPy_END_ALLOW_THREADS
;
671 } Py_INCREF(Py_None
);
672 _resultobj
= Py_None
;
675 o
= PyInt_FromLong((long) (*_arg1
));
676 _resultobj
= t_output_helper(_resultobj
, o
);
680 o
= PyInt_FromLong((long) (*_arg2
));
681 _resultobj
= t_output_helper(_resultobj
, o
);
686 #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize())
687 static PyObject
*_wrap_wxCaret_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
688 PyObject
* _resultobj
;
691 PyObject
* _argo0
= 0;
692 char *_kwnames
[] = { "self", NULL
};
696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_GetSize",_kwnames
,&_argo0
))
699 if (_argo0
== Py_None
) { _arg0
= NULL
; }
700 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p.");
706 wxPy_BEGIN_ALLOW_THREADS
;
707 _result
= new wxSize (wxCaret_GetSize(_arg0
));
709 wxPy_END_ALLOW_THREADS
;
710 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
711 _resultobj
= Py_BuildValue("s",_ptemp
);
715 #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow())
716 static PyObject
*_wrap_wxCaret_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
717 PyObject
* _resultobj
;
720 PyObject
* _argo0
= 0;
721 char *_kwnames
[] = { "self", NULL
};
725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_GetWindow",_kwnames
,&_argo0
))
728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p.");
735 wxPy_BEGIN_ALLOW_THREADS
;
736 _result
= (wxWindow
*)wxCaret_GetWindow(_arg0
);
738 wxPy_END_ALLOW_THREADS
;
740 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
741 _resultobj
= Py_BuildValue("s",_ptemp
);
744 _resultobj
= Py_None
;
749 #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
750 static PyObject
*_wrap_wxCaret_MoveXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
751 PyObject
* _resultobj
;
755 PyObject
* _argo0
= 0;
756 char *_kwnames
[] = { "self","x","y", NULL
};
759 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxCaret_MoveXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
762 if (_argo0
== Py_None
) { _arg0
= NULL
; }
763 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
764 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p.");
769 wxPy_BEGIN_ALLOW_THREADS
;
770 wxCaret_MoveXY(_arg0
,_arg1
,_arg2
);
772 wxPy_END_ALLOW_THREADS
;
773 } Py_INCREF(Py_None
);
774 _resultobj
= Py_None
;
778 #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
779 static PyObject
*_wrap_wxCaret_Move(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
780 PyObject
* _resultobj
;
783 PyObject
* _argo0
= 0;
785 PyObject
* _obj1
= 0;
786 char *_kwnames
[] = { "self","pt", NULL
};
789 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCaret_Move",_kwnames
,&_argo0
,&_obj1
))
792 if (_argo0
== Py_None
) { _arg0
= NULL
; }
793 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
794 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p.");
800 if (! wxPoint_helper(_obj1
, &_arg1
))
804 wxPy_BEGIN_ALLOW_THREADS
;
805 wxCaret_Move(_arg0
,*_arg1
);
807 wxPy_END_ALLOW_THREADS
;
808 } Py_INCREF(Py_None
);
809 _resultobj
= Py_None
;
813 #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
814 static PyObject
*_wrap_wxCaret_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
815 PyObject
* _resultobj
;
817 int _arg1
= (int ) TRUE
;
818 PyObject
* _argo0
= 0;
819 char *_kwnames
[] = { "self","show", NULL
};
822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxCaret_Show",_kwnames
,&_argo0
,&_arg1
))
825 if (_argo0
== Py_None
) { _arg0
= NULL
; }
826 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p.");
832 wxPy_BEGIN_ALLOW_THREADS
;
833 wxCaret_Show(_arg0
,_arg1
);
835 wxPy_END_ALLOW_THREADS
;
836 } Py_INCREF(Py_None
);
837 _resultobj
= Py_None
;
841 #define wxCaret_Hide(_swigobj) (_swigobj->Hide())
842 static PyObject
*_wrap_wxCaret_Hide(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
843 PyObject
* _resultobj
;
845 PyObject
* _argo0
= 0;
846 char *_kwnames
[] = { "self", NULL
};
849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_Hide",_kwnames
,&_argo0
))
852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p.");
859 wxPy_BEGIN_ALLOW_THREADS
;
862 wxPy_END_ALLOW_THREADS
;
863 } Py_INCREF(Py_None
);
864 _resultobj
= Py_None
;
868 #define wxCaret_OnSetFocus(_swigobj) (_swigobj->OnSetFocus())
869 static PyObject
*_wrap_wxCaret_OnSetFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
870 PyObject
* _resultobj
;
872 PyObject
* _argo0
= 0;
873 char *_kwnames
[] = { "self", NULL
};
876 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_OnSetFocus",_kwnames
,&_argo0
))
879 if (_argo0
== Py_None
) { _arg0
= NULL
; }
880 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
881 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_OnSetFocus. Expected _wxCaret_p.");
886 wxPy_BEGIN_ALLOW_THREADS
;
887 wxCaret_OnSetFocus(_arg0
);
889 wxPy_END_ALLOW_THREADS
;
890 } Py_INCREF(Py_None
);
891 _resultobj
= Py_None
;
895 #define wxCaret_OnKillFocus(_swigobj) (_swigobj->OnKillFocus())
896 static PyObject
*_wrap_wxCaret_OnKillFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
897 PyObject
* _resultobj
;
899 PyObject
* _argo0
= 0;
900 char *_kwnames
[] = { "self", NULL
};
903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_OnKillFocus",_kwnames
,&_argo0
))
906 if (_argo0
== Py_None
) { _arg0
= NULL
; }
907 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
908 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_OnKillFocus. Expected _wxCaret_p.");
913 wxPy_BEGIN_ALLOW_THREADS
;
914 wxCaret_OnKillFocus(_arg0
);
916 wxPy_END_ALLOW_THREADS
;
917 } Py_INCREF(Py_None
);
918 _resultobj
= Py_None
;
922 static PyMethodDef misc2cMethods
[] = {
923 { "wxCaret_OnKillFocus", (PyCFunction
) _wrap_wxCaret_OnKillFocus
, METH_VARARGS
| METH_KEYWORDS
},
924 { "wxCaret_OnSetFocus", (PyCFunction
) _wrap_wxCaret_OnSetFocus
, METH_VARARGS
| METH_KEYWORDS
},
925 { "wxCaret_Hide", (PyCFunction
) _wrap_wxCaret_Hide
, METH_VARARGS
| METH_KEYWORDS
},
926 { "wxCaret_Show", (PyCFunction
) _wrap_wxCaret_Show
, METH_VARARGS
| METH_KEYWORDS
},
927 { "wxCaret_Move", (PyCFunction
) _wrap_wxCaret_Move
, METH_VARARGS
| METH_KEYWORDS
},
928 { "wxCaret_MoveXY", (PyCFunction
) _wrap_wxCaret_MoveXY
, METH_VARARGS
| METH_KEYWORDS
},
929 { "wxCaret_GetWindow", (PyCFunction
) _wrap_wxCaret_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
930 { "wxCaret_GetSize", (PyCFunction
) _wrap_wxCaret_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
931 { "wxCaret_GetSizeTuple", (PyCFunction
) _wrap_wxCaret_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
932 { "wxCaret_GetPosition", (PyCFunction
) _wrap_wxCaret_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
933 { "wxCaret_GetPositionTuple", (PyCFunction
) _wrap_wxCaret_GetPositionTuple
, METH_VARARGS
| METH_KEYWORDS
},
934 { "wxCaret_IsVisible", (PyCFunction
) _wrap_wxCaret_IsVisible
, METH_VARARGS
| METH_KEYWORDS
},
935 { "wxCaret_IsOk", (PyCFunction
) _wrap_wxCaret_IsOk
, METH_VARARGS
| METH_KEYWORDS
},
936 { "delete_wxCaret", (PyCFunction
) _wrap_delete_wxCaret
, METH_VARARGS
| METH_KEYWORDS
},
937 { "new_wxCaret", (PyCFunction
) _wrap_new_wxCaret
, METH_VARARGS
| METH_KEYWORDS
},
938 { "wxToolTip_GetWindow", (PyCFunction
) _wrap_wxToolTip_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
939 { "wxToolTip_GetTip", (PyCFunction
) _wrap_wxToolTip_GetTip
, METH_VARARGS
| METH_KEYWORDS
},
940 { "wxToolTip_SetTip", (PyCFunction
) _wrap_wxToolTip_SetTip
, METH_VARARGS
| METH_KEYWORDS
},
941 { "new_wxToolTip", (PyCFunction
) _wrap_new_wxToolTip
, METH_VARARGS
| METH_KEYWORDS
},
942 { "wxCaret_SetBlinkTime", (PyCFunction
) _wrap_wxCaret_SetBlinkTime
, METH_VARARGS
| METH_KEYWORDS
},
943 { "wxCaret_GetBlinkTime", (PyCFunction
) _wrap_wxCaret_GetBlinkTime
, METH_VARARGS
| METH_KEYWORDS
},
944 { "wxToolTip_SetDelay", (PyCFunction
) _wrap_wxToolTip_SetDelay
, METH_VARARGS
| METH_KEYWORDS
},
945 { "wxToolTip_Enable", (PyCFunction
) _wrap_wxToolTip_Enable
, METH_VARARGS
| METH_KEYWORDS
},
946 { "wxFindWindowByName", (PyCFunction
) _wrap_wxFindWindowByName
, METH_VARARGS
| METH_KEYWORDS
},
947 { "wxFindWindowByLabel", (PyCFunction
) _wrap_wxFindWindowByLabel
, METH_VARARGS
| METH_KEYWORDS
},
954 * This table is used by the pointer type-checker
956 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
957 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
958 { "_signed_long","_long",0},
959 { "_wxPrintQuality","_int",0},
960 { "_wxPrintQuality","_signed_int",0},
961 { "_wxPrintQuality","_unsigned_int",0},
962 { "_wxPrintQuality","_wxWindowID",0},
963 { "_wxPrintQuality","_uint",0},
964 { "_wxPrintQuality","_EBool",0},
965 { "_wxPrintQuality","_size_t",0},
966 { "_class_wxRegionIterator","_wxRegionIterator",0},
967 { "_class_wxMenuBar","_wxMenuBar",0},
968 { "_class_wxEvtHandler","_wxEvtHandler",0},
969 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
970 { "_wxCursor","_class_wxCursor",0},
971 { "_wxMask","_class_wxMask",0},
972 { "_wxToolTip","_class_wxToolTip",0},
973 { "_wxPen","_class_wxPen",0},
974 { "_byte","_unsigned_char",0},
975 { "_long","_wxDash",0},
976 { "_long","_unsigned_long",0},
977 { "_long","_signed_long",0},
978 { "_wxImageList","_class_wxImageList",0},
979 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
980 { "_wxDC","_class_wxDC",0},
981 { "_size_t","_wxPrintQuality",0},
982 { "_size_t","_unsigned_int",0},
983 { "_size_t","_int",0},
984 { "_size_t","_wxWindowID",0},
985 { "_size_t","_uint",0},
986 { "_class_wxRealPoint","_wxRealPoint",0},
987 { "_class_wxMenuItem","_wxMenuItem",0},
988 { "_class_wxPostScriptDC","_wxPostScriptDC",0},
989 { "_wxPanel","_class_wxPanel",0},
990 { "_class_wxMask","_wxMask",0},
991 { "_class_wxToolTip","_wxToolTip",0},
992 { "_wxColour","_class_wxColour",0},
993 { "_class_wxDialog","_wxDialog",0},
994 { "_wxCaret","_class_wxCaret",0},
995 { "_wxBrush","_class_wxBrush",0},
996 { "_uint","_wxPrintQuality",0},
997 { "_uint","_size_t",0},
998 { "_uint","_unsigned_int",0},
1000 { "_uint","_wxWindowID",0},
1001 { "_wxPyValidator","_class_wxPyValidator",0},
1002 { "_wxRect","_class_wxRect",0},
1003 { "_wxPoint","_class_wxPoint",0},
1004 { "_wxBitmap","_class_wxBitmap",0},
1005 { "_wxPyTimer","_class_wxPyTimer",0},
1006 { "_wxWindowDC","_class_wxWindowDC",0},
1007 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
1008 { "_class_wxValidator","_wxValidator",0},
1009 { "_EBool","_wxPrintQuality",0},
1010 { "_EBool","_signed_int",0},
1011 { "_EBool","_int",0},
1012 { "_EBool","_wxWindowID",0},
1013 { "_class_wxRegion","_wxRegion",0},
1014 { "_wxFont","_class_wxFont",0},
1015 { "_unsigned_long","_wxDash",0},
1016 { "_unsigned_long","_long",0},
1017 { "_class_wxRect","_wxRect",0},
1018 { "_class_wxDC","_wxDC",0},
1019 { "_class_wxPyTimer","_wxPyTimer",0},
1020 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
1021 { "_class_wxPanel","_wxPanel",0},
1022 { "_signed_int","_wxPrintQuality",0},
1023 { "_signed_int","_EBool",0},
1024 { "_signed_int","_wxWindowID",0},
1025 { "_signed_int","_int",0},
1026 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
1027 { "_wxMenu","_class_wxMenu",0},
1028 { "_wxScreenDC","_class_wxScreenDC",0},
1029 { "_WXTYPE","_short",0},
1030 { "_WXTYPE","_signed_short",0},
1031 { "_WXTYPE","_unsigned_short",0},
1032 { "_class_wxCaret","_wxCaret",0},
1033 { "_class_wxBrush","_wxBrush",0},
1034 { "_unsigned_short","_WXTYPE",0},
1035 { "_unsigned_short","_short",0},
1036 { "_class_wxWindow","_wxWindow",0},
1037 { "_class_wxFont","_wxFont",0},
1038 { "_class_wxPyValidator","_wxPyValidator",0},
1039 { "_wxClientDC","_class_wxClientDC",0},
1040 { "_class_wxPoint","_wxPoint",0},
1041 { "_wxRealPoint","_class_wxRealPoint",0},
1042 { "_signed_short","_WXTYPE",0},
1043 { "_signed_short","_short",0},
1044 { "_wxMemoryDC","_class_wxMemoryDC",0},
1045 { "_wxPaintDC","_class_wxPaintDC",0},
1046 { "_class_wxWindowDC","_wxWindowDC",0},
1047 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
1048 { "_class_wxCursor","_wxCursor",0},
1049 { "_wxPostScriptDC","_class_wxPostScriptDC",0},
1050 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
1051 { "_unsigned_char","_byte",0},
1052 { "_class_wxMenu","_wxMenu",0},
1053 { "_unsigned_int","_wxPrintQuality",0},
1054 { "_unsigned_int","_size_t",0},
1055 { "_unsigned_int","_uint",0},
1056 { "_unsigned_int","_wxWindowID",0},
1057 { "_unsigned_int","_int",0},
1058 { "_wxIcon","_class_wxIcon",0},
1059 { "_wxDialog","_class_wxDialog",0},
1060 { "_class_wxPen","_wxPen",0},
1061 { "_short","_WXTYPE",0},
1062 { "_short","_unsigned_short",0},
1063 { "_short","_signed_short",0},
1064 { "_class_wxImageList","_wxImageList",0},
1065 { "_wxWindowID","_wxPrintQuality",0},
1066 { "_wxWindowID","_size_t",0},
1067 { "_wxWindowID","_EBool",0},
1068 { "_wxWindowID","_uint",0},
1069 { "_wxWindowID","_int",0},
1070 { "_wxWindowID","_signed_int",0},
1071 { "_wxWindowID","_unsigned_int",0},
1072 { "_int","_wxPrintQuality",0},
1073 { "_int","_size_t",0},
1074 { "_int","_EBool",0},
1075 { "_int","_uint",0},
1076 { "_int","_wxWindowID",0},
1077 { "_int","_unsigned_int",0},
1078 { "_int","_signed_int",0},
1079 { "_wxSize","_class_wxSize",0},
1080 { "_wxRegionIterator","_class_wxRegionIterator",0},
1081 { "_class_wxPaintDC","_wxPaintDC",0},
1082 { "_wxValidator","_class_wxValidator",0},
1083 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
1084 { "_class_wxIcon","_wxIcon",0},
1085 { "_class_wxColour","_wxColour",0},
1086 { "_class_wxScreenDC","_wxScreenDC",0},
1087 { "_wxPalette","_class_wxPalette",0},
1088 { "_wxRegion","_class_wxRegion",0},
1089 { "_class_wxClientDC","_wxClientDC",0},
1090 { "_class_wxSize","_wxSize",0},
1091 { "_class_wxBitmap","_wxBitmap",0},
1092 { "_class_wxMemoryDC","_wxMemoryDC",0},
1093 { "_wxMenuBar","_class_wxMenuBar",0},
1094 { "_wxEvtHandler","_class_wxEvtHandler",0},
1095 { "_wxMenuItem","_class_wxMenuItem",0},
1096 { "_wxDash","_unsigned_long",0},
1097 { "_wxDash","_long",0},
1098 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
1099 { "_class_wxPalette","_wxPalette",0},
1100 { "_wxWindow","_class_wxWindow",0},
1103 static PyObject
*SWIG_globals
;
1107 SWIGEXPORT(void) initmisc2c() {
1109 SWIG_globals
= SWIG_newvarlink();
1110 m
= Py_InitModule("misc2c", misc2cMethods
);
1111 d
= PyModule_GetDict(m
);
1114 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1115 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);