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>
60 #include <wx/fontenum.h>
62 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
67 } else if (target
== Py_None
) {
71 if (!PyList_Check(target
)) {
73 target
= PyList_New(0);
74 PyList_Append(target
, o2
);
77 PyList_Append(target
,o
);
83 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
89 } else if (target
== Py_None
) {
93 if (!PyTuple_Check(target
)) {
95 target
= PyTuple_New(1);
96 PyTuple_SetItem(target
, 0, o2
);
99 PyTuple_SetItem(o3
, 0, o
);
102 target
= PySequence_Concat(o2
, o3
);
109 static char* wxStringErrorMsg
= "string type is required for parameter";
111 void wxToolTip_Enable(bool flag
) {
112 wxToolTip::Enable(flag
);
115 void wxToolTip_SetDelay(long milliseconds
) {
116 wxToolTip::SetDelay(milliseconds
);
119 int wxCaret_GetBlinkTime() {
120 return wxCaret::GetBlinkTime();
123 void wxCaret_SetBlinkTime(int milliseconds
) {
124 wxCaret::SetBlinkTime(milliseconds
);
129 static PyObject
*_wrap_wxFindWindowByLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
130 PyObject
* _resultobj
;
133 wxWindow
* _arg1
= (wxWindow
*) NULL
;
134 PyObject
* _obj0
= 0;
135 PyObject
* _argo1
= 0;
136 char *_kwnames
[] = { "label","parent", NULL
};
140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxFindWindowByLabel",_kwnames
,&_obj0
,&_argo1
))
143 if (!PyString_Check(_obj0
)) {
144 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
147 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
150 if (_argo1
== Py_None
) { _arg1
= NULL
; }
151 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
152 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p.");
157 wxPy_BEGIN_ALLOW_THREADS
;
158 _result
= (wxWindow
*)wxFindWindowByLabel(*_arg0
,_arg1
);
160 wxPy_END_ALLOW_THREADS
;
162 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
163 _resultobj
= Py_BuildValue("s",_ptemp
);
166 _resultobj
= Py_None
;
175 static PyObject
*_wrap_wxFindWindowByName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
176 PyObject
* _resultobj
;
179 wxWindow
* _arg1
= (wxWindow
*) NULL
;
180 PyObject
* _obj0
= 0;
181 PyObject
* _argo1
= 0;
182 char *_kwnames
[] = { "name","parent", NULL
};
186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxFindWindowByName",_kwnames
,&_obj0
,&_argo1
))
189 if (!PyString_Check(_obj0
)) {
190 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
193 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
196 if (_argo1
== Py_None
) { _arg1
= NULL
; }
197 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
198 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p.");
203 wxPy_BEGIN_ALLOW_THREADS
;
204 _result
= (wxWindow
*)wxFindWindowByName(*_arg0
,_arg1
);
206 wxPy_END_ALLOW_THREADS
;
208 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
209 _resultobj
= Py_BuildValue("s",_ptemp
);
212 _resultobj
= Py_None
;
221 static PyObject
*_wrap_wxToolTip_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
222 PyObject
* _resultobj
;
225 char *_kwnames
[] = { "flag", NULL
};
228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxToolTip_Enable",_kwnames
,&tempbool0
))
230 _arg0
= (bool ) tempbool0
;
232 wxPy_BEGIN_ALLOW_THREADS
;
233 wxToolTip_Enable(_arg0
);
235 wxPy_END_ALLOW_THREADS
;
236 } Py_INCREF(Py_None
);
237 _resultobj
= Py_None
;
241 static PyObject
*_wrap_wxToolTip_SetDelay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
242 PyObject
* _resultobj
;
244 char *_kwnames
[] = { "milliseconds", NULL
};
247 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"l:wxToolTip_SetDelay",_kwnames
,&_arg0
))
250 wxPy_BEGIN_ALLOW_THREADS
;
251 wxToolTip_SetDelay(_arg0
);
253 wxPy_END_ALLOW_THREADS
;
254 } Py_INCREF(Py_None
);
255 _resultobj
= Py_None
;
259 static PyObject
*_wrap_wxCaret_GetBlinkTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
260 PyObject
* _resultobj
;
262 char *_kwnames
[] = { NULL
};
265 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxCaret_GetBlinkTime",_kwnames
))
268 wxPy_BEGIN_ALLOW_THREADS
;
269 _result
= (int )wxCaret_GetBlinkTime();
271 wxPy_END_ALLOW_THREADS
;
272 } _resultobj
= Py_BuildValue("i",_result
);
276 static PyObject
*_wrap_wxCaret_SetBlinkTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
277 PyObject
* _resultobj
;
279 char *_kwnames
[] = { "milliseconds", NULL
};
282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxCaret_SetBlinkTime",_kwnames
,&_arg0
))
285 wxPy_BEGIN_ALLOW_THREADS
;
286 wxCaret_SetBlinkTime(_arg0
);
288 wxPy_END_ALLOW_THREADS
;
289 } Py_INCREF(Py_None
);
290 _resultobj
= Py_None
;
294 #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0))
295 static PyObject
*_wrap_new_wxToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
296 PyObject
* _resultobj
;
299 PyObject
* _obj0
= 0;
300 char *_kwnames
[] = { "tip", NULL
};
304 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxToolTip",_kwnames
,&_obj0
))
307 if (!PyString_Check(_obj0
)) {
308 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
311 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
314 wxPy_BEGIN_ALLOW_THREADS
;
315 _result
= (wxToolTip
*)new_wxToolTip(*_arg0
);
317 wxPy_END_ALLOW_THREADS
;
319 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolTip_p");
320 _resultobj
= Py_BuildValue("s",_ptemp
);
323 _resultobj
= Py_None
;
332 #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0))
333 static PyObject
*_wrap_wxToolTip_SetTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
334 PyObject
* _resultobj
;
337 PyObject
* _argo0
= 0;
338 PyObject
* _obj1
= 0;
339 char *_kwnames
[] = { "self","tip", NULL
};
342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolTip_SetTip",_kwnames
,&_argo0
,&_obj1
))
345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolTip_p")) {
347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p.");
352 if (!PyString_Check(_obj1
)) {
353 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
356 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
359 wxPy_BEGIN_ALLOW_THREADS
;
360 wxToolTip_SetTip(_arg0
,*_arg1
);
362 wxPy_END_ALLOW_THREADS
;
363 } Py_INCREF(Py_None
);
364 _resultobj
= Py_None
;
372 #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip())
373 static PyObject
*_wrap_wxToolTip_GetTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
374 PyObject
* _resultobj
;
377 PyObject
* _argo0
= 0;
378 char *_kwnames
[] = { "self", NULL
};
381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolTip_GetTip",_kwnames
,&_argo0
))
384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolTip_p")) {
386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p.");
391 wxPy_BEGIN_ALLOW_THREADS
;
392 _result
= new wxString (wxToolTip_GetTip(_arg0
));
394 wxPy_END_ALLOW_THREADS
;
396 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
404 #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow())
405 static PyObject
*_wrap_wxToolTip_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
406 PyObject
* _resultobj
;
409 PyObject
* _argo0
= 0;
410 char *_kwnames
[] = { "self", NULL
};
414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolTip_GetWindow",_kwnames
,&_argo0
))
417 if (_argo0
== Py_None
) { _arg0
= NULL
; }
418 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolTip_p")) {
419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p.");
424 wxPy_BEGIN_ALLOW_THREADS
;
425 _result
= (wxWindow
*)wxToolTip_GetWindow(_arg0
);
427 wxPy_END_ALLOW_THREADS
;
429 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
430 _resultobj
= Py_BuildValue("s",_ptemp
);
433 _resultobj
= Py_None
;
438 #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1))
439 static PyObject
*_wrap_new_wxCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
440 PyObject
* _resultobj
;
444 PyObject
* _argo0
= 0;
446 PyObject
* _obj1
= 0;
447 char *_kwnames
[] = { "window","size", NULL
};
451 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:new_wxCaret",_kwnames
,&_argo0
,&_obj1
))
454 if (_argo0
== Py_None
) { _arg0
= NULL
; }
455 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
456 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p.");
462 if (! wxSize_helper(_obj1
, &_arg1
))
466 wxPy_BEGIN_ALLOW_THREADS
;
467 _result
= (wxCaret
*)new_wxCaret(_arg0
,*_arg1
);
469 wxPy_END_ALLOW_THREADS
;
471 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCaret_p");
472 _resultobj
= Py_BuildValue("s",_ptemp
);
475 _resultobj
= Py_None
;
480 #define delete_wxCaret(_swigobj) (delete _swigobj)
481 static PyObject
*_wrap_delete_wxCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
482 PyObject
* _resultobj
;
484 PyObject
* _argo0
= 0;
485 char *_kwnames
[] = { "self", NULL
};
488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCaret",_kwnames
,&_argo0
))
491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p.");
498 wxPy_BEGIN_ALLOW_THREADS
;
499 delete_wxCaret(_arg0
);
501 wxPy_END_ALLOW_THREADS
;
502 } Py_INCREF(Py_None
);
503 _resultobj
= Py_None
;
507 #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk())
508 static PyObject
*_wrap_wxCaret_IsOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
509 PyObject
* _resultobj
;
512 PyObject
* _argo0
= 0;
513 char *_kwnames
[] = { "self", NULL
};
516 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_IsOk",_kwnames
,&_argo0
))
519 if (_argo0
== Py_None
) { _arg0
= NULL
; }
520 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
521 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p.");
526 wxPy_BEGIN_ALLOW_THREADS
;
527 _result
= (bool )wxCaret_IsOk(_arg0
);
529 wxPy_END_ALLOW_THREADS
;
530 } _resultobj
= Py_BuildValue("i",_result
);
534 #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible())
535 static PyObject
*_wrap_wxCaret_IsVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
536 PyObject
* _resultobj
;
539 PyObject
* _argo0
= 0;
540 char *_kwnames
[] = { "self", NULL
};
543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_IsVisible",_kwnames
,&_argo0
))
546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p.");
553 wxPy_BEGIN_ALLOW_THREADS
;
554 _result
= (bool )wxCaret_IsVisible(_arg0
);
556 wxPy_END_ALLOW_THREADS
;
557 } _resultobj
= Py_BuildValue("i",_result
);
561 #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
562 static PyObject
*_wrap_wxCaret_GetPositionTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
563 PyObject
* _resultobj
;
569 PyObject
* _argo0
= 0;
570 char *_kwnames
[] = { "self", NULL
};
579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_GetPositionTuple",_kwnames
,&_argo0
))
582 if (_argo0
== Py_None
) { _arg0
= NULL
; }
583 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
584 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p.");
589 wxPy_BEGIN_ALLOW_THREADS
;
590 wxCaret_GetPositionTuple(_arg0
,_arg1
,_arg2
);
592 wxPy_END_ALLOW_THREADS
;
593 } Py_INCREF(Py_None
);
594 _resultobj
= Py_None
;
597 o
= PyInt_FromLong((long) (*_arg1
));
598 _resultobj
= t_output_helper(_resultobj
, o
);
602 o
= PyInt_FromLong((long) (*_arg2
));
603 _resultobj
= t_output_helper(_resultobj
, o
);
608 #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition())
609 static PyObject
*_wrap_wxCaret_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
610 PyObject
* _resultobj
;
613 PyObject
* _argo0
= 0;
614 char *_kwnames
[] = { "self", NULL
};
618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_GetPosition",_kwnames
,&_argo0
))
621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p.");
628 wxPy_BEGIN_ALLOW_THREADS
;
629 _result
= new wxPoint (wxCaret_GetPosition(_arg0
));
631 wxPy_END_ALLOW_THREADS
;
632 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
633 _resultobj
= Py_BuildValue("s",_ptemp
);
637 #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
638 static PyObject
*_wrap_wxCaret_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
639 PyObject
* _resultobj
;
645 PyObject
* _argo0
= 0;
646 char *_kwnames
[] = { "self", NULL
};
655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_GetSizeTuple",_kwnames
,&_argo0
))
658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p.");
665 wxPy_BEGIN_ALLOW_THREADS
;
666 wxCaret_GetSizeTuple(_arg0
,_arg1
,_arg2
);
668 wxPy_END_ALLOW_THREADS
;
669 } Py_INCREF(Py_None
);
670 _resultobj
= Py_None
;
673 o
= PyInt_FromLong((long) (*_arg1
));
674 _resultobj
= t_output_helper(_resultobj
, o
);
678 o
= PyInt_FromLong((long) (*_arg2
));
679 _resultobj
= t_output_helper(_resultobj
, o
);
684 #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize())
685 static PyObject
*_wrap_wxCaret_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
686 PyObject
* _resultobj
;
689 PyObject
* _argo0
= 0;
690 char *_kwnames
[] = { "self", NULL
};
694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_GetSize",_kwnames
,&_argo0
))
697 if (_argo0
== Py_None
) { _arg0
= NULL
; }
698 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p.");
704 wxPy_BEGIN_ALLOW_THREADS
;
705 _result
= new wxSize (wxCaret_GetSize(_arg0
));
707 wxPy_END_ALLOW_THREADS
;
708 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
709 _resultobj
= Py_BuildValue("s",_ptemp
);
713 #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow())
714 static PyObject
*_wrap_wxCaret_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
715 PyObject
* _resultobj
;
718 PyObject
* _argo0
= 0;
719 char *_kwnames
[] = { "self", NULL
};
723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_GetWindow",_kwnames
,&_argo0
))
726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p.");
733 wxPy_BEGIN_ALLOW_THREADS
;
734 _result
= (wxWindow
*)wxCaret_GetWindow(_arg0
);
736 wxPy_END_ALLOW_THREADS
;
738 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
739 _resultobj
= Py_BuildValue("s",_ptemp
);
742 _resultobj
= Py_None
;
747 #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
748 static PyObject
*_wrap_wxCaret_MoveXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
749 PyObject
* _resultobj
;
753 PyObject
* _argo0
= 0;
754 char *_kwnames
[] = { "self","x","y", NULL
};
757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxCaret_MoveXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
760 if (_argo0
== Py_None
) { _arg0
= NULL
; }
761 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p.");
767 wxPy_BEGIN_ALLOW_THREADS
;
768 wxCaret_MoveXY(_arg0
,_arg1
,_arg2
);
770 wxPy_END_ALLOW_THREADS
;
771 } Py_INCREF(Py_None
);
772 _resultobj
= Py_None
;
776 #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
777 static PyObject
*_wrap_wxCaret_Move(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
778 PyObject
* _resultobj
;
781 PyObject
* _argo0
= 0;
783 PyObject
* _obj1
= 0;
784 char *_kwnames
[] = { "self","pt", NULL
};
787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCaret_Move",_kwnames
,&_argo0
,&_obj1
))
790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p.");
798 if (! wxPoint_helper(_obj1
, &_arg1
))
802 wxPy_BEGIN_ALLOW_THREADS
;
803 wxCaret_Move(_arg0
,*_arg1
);
805 wxPy_END_ALLOW_THREADS
;
806 } Py_INCREF(Py_None
);
807 _resultobj
= Py_None
;
811 #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
812 static PyObject
*_wrap_wxCaret_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
813 PyObject
* _resultobj
;
815 int _arg1
= (int ) TRUE
;
816 PyObject
* _argo0
= 0;
817 char *_kwnames
[] = { "self","show", NULL
};
820 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxCaret_Show",_kwnames
,&_argo0
,&_arg1
))
823 if (_argo0
== Py_None
) { _arg0
= NULL
; }
824 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
825 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p.");
830 wxPy_BEGIN_ALLOW_THREADS
;
831 wxCaret_Show(_arg0
,_arg1
);
833 wxPy_END_ALLOW_THREADS
;
834 } Py_INCREF(Py_None
);
835 _resultobj
= Py_None
;
839 #define wxCaret_Hide(_swigobj) (_swigobj->Hide())
840 static PyObject
*_wrap_wxCaret_Hide(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
841 PyObject
* _resultobj
;
843 PyObject
* _argo0
= 0;
844 char *_kwnames
[] = { "self", NULL
};
847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_Hide",_kwnames
,&_argo0
))
850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p.");
857 wxPy_BEGIN_ALLOW_THREADS
;
860 wxPy_END_ALLOW_THREADS
;
861 } Py_INCREF(Py_None
);
862 _resultobj
= Py_None
;
866 #define wxCaret_OnSetFocus(_swigobj) (_swigobj->OnSetFocus())
867 static PyObject
*_wrap_wxCaret_OnSetFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
868 PyObject
* _resultobj
;
870 PyObject
* _argo0
= 0;
871 char *_kwnames
[] = { "self", NULL
};
874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_OnSetFocus",_kwnames
,&_argo0
))
877 if (_argo0
== Py_None
) { _arg0
= NULL
; }
878 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_OnSetFocus. Expected _wxCaret_p.");
884 wxPy_BEGIN_ALLOW_THREADS
;
885 wxCaret_OnSetFocus(_arg0
);
887 wxPy_END_ALLOW_THREADS
;
888 } Py_INCREF(Py_None
);
889 _resultobj
= Py_None
;
893 #define wxCaret_OnKillFocus(_swigobj) (_swigobj->OnKillFocus())
894 static PyObject
*_wrap_wxCaret_OnKillFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
895 PyObject
* _resultobj
;
897 PyObject
* _argo0
= 0;
898 char *_kwnames
[] = { "self", NULL
};
901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCaret_OnKillFocus",_kwnames
,&_argo0
))
904 if (_argo0
== Py_None
) { _arg0
= NULL
; }
905 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCaret_p")) {
906 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCaret_OnKillFocus. Expected _wxCaret_p.");
911 wxPy_BEGIN_ALLOW_THREADS
;
912 wxCaret_OnKillFocus(_arg0
);
914 wxPy_END_ALLOW_THREADS
;
915 } Py_INCREF(Py_None
);
916 _resultobj
= Py_None
;
920 static PyMethodDef misc2cMethods
[] = {
921 { "wxCaret_OnKillFocus", (PyCFunction
) _wrap_wxCaret_OnKillFocus
, METH_VARARGS
| METH_KEYWORDS
},
922 { "wxCaret_OnSetFocus", (PyCFunction
) _wrap_wxCaret_OnSetFocus
, METH_VARARGS
| METH_KEYWORDS
},
923 { "wxCaret_Hide", (PyCFunction
) _wrap_wxCaret_Hide
, METH_VARARGS
| METH_KEYWORDS
},
924 { "wxCaret_Show", (PyCFunction
) _wrap_wxCaret_Show
, METH_VARARGS
| METH_KEYWORDS
},
925 { "wxCaret_Move", (PyCFunction
) _wrap_wxCaret_Move
, METH_VARARGS
| METH_KEYWORDS
},
926 { "wxCaret_MoveXY", (PyCFunction
) _wrap_wxCaret_MoveXY
, METH_VARARGS
| METH_KEYWORDS
},
927 { "wxCaret_GetWindow", (PyCFunction
) _wrap_wxCaret_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
928 { "wxCaret_GetSize", (PyCFunction
) _wrap_wxCaret_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
929 { "wxCaret_GetSizeTuple", (PyCFunction
) _wrap_wxCaret_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
930 { "wxCaret_GetPosition", (PyCFunction
) _wrap_wxCaret_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
931 { "wxCaret_GetPositionTuple", (PyCFunction
) _wrap_wxCaret_GetPositionTuple
, METH_VARARGS
| METH_KEYWORDS
},
932 { "wxCaret_IsVisible", (PyCFunction
) _wrap_wxCaret_IsVisible
, METH_VARARGS
| METH_KEYWORDS
},
933 { "wxCaret_IsOk", (PyCFunction
) _wrap_wxCaret_IsOk
, METH_VARARGS
| METH_KEYWORDS
},
934 { "delete_wxCaret", (PyCFunction
) _wrap_delete_wxCaret
, METH_VARARGS
| METH_KEYWORDS
},
935 { "new_wxCaret", (PyCFunction
) _wrap_new_wxCaret
, METH_VARARGS
| METH_KEYWORDS
},
936 { "wxToolTip_GetWindow", (PyCFunction
) _wrap_wxToolTip_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
937 { "wxToolTip_GetTip", (PyCFunction
) _wrap_wxToolTip_GetTip
, METH_VARARGS
| METH_KEYWORDS
},
938 { "wxToolTip_SetTip", (PyCFunction
) _wrap_wxToolTip_SetTip
, METH_VARARGS
| METH_KEYWORDS
},
939 { "new_wxToolTip", (PyCFunction
) _wrap_new_wxToolTip
, METH_VARARGS
| METH_KEYWORDS
},
940 { "wxCaret_SetBlinkTime", (PyCFunction
) _wrap_wxCaret_SetBlinkTime
, METH_VARARGS
| METH_KEYWORDS
},
941 { "wxCaret_GetBlinkTime", (PyCFunction
) _wrap_wxCaret_GetBlinkTime
, METH_VARARGS
| METH_KEYWORDS
},
942 { "wxToolTip_SetDelay", (PyCFunction
) _wrap_wxToolTip_SetDelay
, METH_VARARGS
| METH_KEYWORDS
},
943 { "wxToolTip_Enable", (PyCFunction
) _wrap_wxToolTip_Enable
, METH_VARARGS
| METH_KEYWORDS
},
944 { "wxFindWindowByName", (PyCFunction
) _wrap_wxFindWindowByName
, METH_VARARGS
| METH_KEYWORDS
},
945 { "wxFindWindowByLabel", (PyCFunction
) _wrap_wxFindWindowByLabel
, METH_VARARGS
| METH_KEYWORDS
},
952 * This table is used by the pointer type-checker
954 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
955 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
956 { "_signed_long","_long",0},
957 { "_wxPrintQuality","_int",0},
958 { "_wxPrintQuality","_signed_int",0},
959 { "_wxPrintQuality","_unsigned_int",0},
960 { "_wxPrintQuality","_wxWindowID",0},
961 { "_wxPrintQuality","_uint",0},
962 { "_wxPrintQuality","_EBool",0},
963 { "_wxPrintQuality","_size_t",0},
964 { "_class_wxRegionIterator","_wxRegionIterator",0},
965 { "_class_wxMenuBar","_wxMenuBar",0},
966 { "_class_wxEvtHandler","_wxEvtHandler",0},
967 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
968 { "_wxCursor","_class_wxCursor",0},
969 { "_wxMask","_class_wxMask",0},
970 { "_wxToolTip","_class_wxToolTip",0},
971 { "_wxPen","_class_wxPen",0},
972 { "_byte","_unsigned_char",0},
973 { "_long","_wxDash",0},
974 { "_long","_unsigned_long",0},
975 { "_long","_signed_long",0},
976 { "_wxImageList","_class_wxImageList",0},
977 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
978 { "_wxDC","_class_wxDC",0},
979 { "_size_t","_wxPrintQuality",0},
980 { "_size_t","_unsigned_int",0},
981 { "_size_t","_int",0},
982 { "_size_t","_wxWindowID",0},
983 { "_size_t","_uint",0},
984 { "_class_wxRealPoint","_wxRealPoint",0},
985 { "_wxPrinterDC","_class_wxPrinterDC",0},
986 { "_class_wxMenuItem","_wxMenuItem",0},
987 { "_wxPanel","_class_wxPanel",0},
988 { "_class_wxMask","_wxMask",0},
989 { "_class_wxToolTip","_wxToolTip",0},
990 { "_wxColour","_class_wxColour",0},
991 { "_class_wxDialog","_wxDialog",0},
992 { "_wxCaret","_class_wxCaret",0},
993 { "_wxBrush","_class_wxBrush",0},
994 { "_uint","_wxPrintQuality",0},
995 { "_uint","_size_t",0},
996 { "_uint","_unsigned_int",0},
998 { "_uint","_wxWindowID",0},
999 { "_wxPyValidator","_class_wxPyValidator",0},
1000 { "_wxRect","_class_wxRect",0},
1001 { "_wxPoint","_class_wxPoint",0},
1002 { "_wxBitmap","_class_wxBitmap",0},
1003 { "_wxPyTimer","_class_wxPyTimer",0},
1004 { "_wxWindowDC","_class_wxWindowDC",0},
1005 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
1006 { "_class_wxValidator","_wxValidator",0},
1007 { "_EBool","_wxPrintQuality",0},
1008 { "_EBool","_signed_int",0},
1009 { "_EBool","_int",0},
1010 { "_EBool","_wxWindowID",0},
1011 { "_class_wxRegion","_wxRegion",0},
1012 { "_wxFont","_class_wxFont",0},
1013 { "_unsigned_long","_wxDash",0},
1014 { "_unsigned_long","_long",0},
1015 { "_class_wxRect","_wxRect",0},
1016 { "_class_wxDC","_wxDC",0},
1017 { "_class_wxPyTimer","_wxPyTimer",0},
1018 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
1019 { "_class_wxPanel","_wxPanel",0},
1020 { "_signed_int","_wxPrintQuality",0},
1021 { "_signed_int","_EBool",0},
1022 { "_signed_int","_wxWindowID",0},
1023 { "_signed_int","_int",0},
1024 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
1025 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
1026 { "_wxMenu","_class_wxMenu",0},
1027 { "_wxScreenDC","_class_wxScreenDC",0},
1028 { "_WXTYPE","_short",0},
1029 { "_WXTYPE","_signed_short",0},
1030 { "_WXTYPE","_unsigned_short",0},
1031 { "_class_wxCaret","_wxCaret",0},
1032 { "_class_wxBrush","_wxBrush",0},
1033 { "_unsigned_short","_WXTYPE",0},
1034 { "_unsigned_short","_short",0},
1035 { "_class_wxWindow","_wxWindow",0},
1036 { "_class_wxFont","_wxFont",0},
1037 { "_class_wxPyValidator","_wxPyValidator",0},
1038 { "_wxClientDC","_class_wxClientDC",0},
1039 { "_class_wxPoint","_wxPoint",0},
1040 { "_wxRealPoint","_class_wxRealPoint",0},
1041 { "_signed_short","_WXTYPE",0},
1042 { "_signed_short","_short",0},
1043 { "_wxMemoryDC","_class_wxMemoryDC",0},
1044 { "_wxPaintDC","_class_wxPaintDC",0},
1045 { "_class_wxWindowDC","_wxWindowDC",0},
1046 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
1047 { "_class_wxCursor","_wxCursor",0},
1048 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
1049 { "_unsigned_char","_byte",0},
1050 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
1051 { "_class_wxMenu","_wxMenu",0},
1052 { "_unsigned_int","_wxPrintQuality",0},
1053 { "_unsigned_int","_size_t",0},
1054 { "_unsigned_int","_uint",0},
1055 { "_unsigned_int","_wxWindowID",0},
1056 { "_unsigned_int","_int",0},
1057 { "_wxIcon","_class_wxIcon",0},
1058 { "_wxDialog","_class_wxDialog",0},
1059 { "_class_wxPen","_wxPen",0},
1060 { "_short","_WXTYPE",0},
1061 { "_short","_unsigned_short",0},
1062 { "_short","_signed_short",0},
1063 { "_class_wxImageList","_wxImageList",0},
1064 { "_wxWindowID","_wxPrintQuality",0},
1065 { "_wxWindowID","_size_t",0},
1066 { "_wxWindowID","_EBool",0},
1067 { "_wxWindowID","_uint",0},
1068 { "_wxWindowID","_int",0},
1069 { "_wxWindowID","_signed_int",0},
1070 { "_wxWindowID","_unsigned_int",0},
1071 { "_int","_wxPrintQuality",0},
1072 { "_int","_size_t",0},
1073 { "_int","_EBool",0},
1074 { "_int","_uint",0},
1075 { "_int","_wxWindowID",0},
1076 { "_int","_unsigned_int",0},
1077 { "_int","_signed_int",0},
1078 { "_wxSize","_class_wxSize",0},
1079 { "_wxRegionIterator","_class_wxRegionIterator",0},
1080 { "_class_wxPrinterDC","_wxPrinterDC",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
);