- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_OtkWidget_resize__SWIG_1(self,args);
- }
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OtkWidget_resize'");
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setGeometry__SWIG_0(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- otk::Rect *arg2 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setGeometry",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- (arg1)->setGeometry((otk::Rect const &)*arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setGeometry__SWIG_1(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- otk::Point *arg2 = 0 ;
- int arg3 ;
- int arg4 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOii:OtkWidget_setGeometry",&obj0,&obj1,&arg3,&arg4)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- (arg1)->setGeometry((otk::Point const &)*arg2,arg3,arg4);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setGeometry__SWIG_2(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- int arg2 ;
- int arg3 ;
- int arg4 ;
- int arg5 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oiiii:OtkWidget_setGeometry",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setGeometry(arg2,arg3,arg4,arg5);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setGeometry(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[6];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 5); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if (argc == 2) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_OtkWidget_setGeometry__SWIG_0(self,args);
- }
- }
- }
- if (argc == 4) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_OtkWidget_setGeometry__SWIG_1(self,args);
- }
- }
- }
- }
- }
- if (argc == 5) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_OtkWidget_setGeometry__SWIG_2(self,args);
- }
- }
- }
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OtkWidget_setGeometry'");
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_isVisible(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_isVisible",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::OtkWidget const *)arg1)->isVisible();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_show(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- bool arg2 = (bool) false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O|O:OtkWidget_show",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (bool) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- (arg1)->show(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_hide(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- bool arg2 = (bool) false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O|O:OtkWidget_hide",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (bool) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- (arg1)->hide(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_isFocused(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_isFocused",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::OtkWidget const *)arg1)->isFocused();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_focus(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_focus",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->focus();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_unfocus(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_unfocus",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->unfocus();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_hasGrabbedMouse(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_hasGrabbedMouse",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::OtkWidget const *)arg1)->hasGrabbedMouse();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_grabMouse(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_grabMouse",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)(arg1)->grabMouse();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_ungrabMouse(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_ungrabMouse",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->ungrabMouse();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_hasGrabbedKeyboard(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_hasGrabbedKeyboard",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::OtkWidget const *)arg1)->hasGrabbedKeyboard();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_grabKeyboard(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_grabKeyboard",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)(arg1)->grabKeyboard();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_ungrabKeyboard(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_ungrabKeyboard",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->ungrabKeyboard();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_texture(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_texture",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)((otk::OtkWidget const *)arg1)->texture();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setTexture(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setTexture",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setTexture(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_borderColor(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- otk::BColor *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_borderColor",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BColor *)((otk::OtkWidget const *)arg1)->borderColor();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setBorderColor(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- otk::BColor *arg2 = (otk::BColor *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setBorderColor",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setBorderColor((otk::BColor const *)arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_borderWidth(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_borderWidth",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::OtkWidget const *)arg1)->borderWidth();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setBorderWidth(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- int arg2 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setBorderWidth",&obj0,&arg2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setBorderWidth(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_addChild(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- otk::OtkWidget *arg2 = (otk::OtkWidget *) 0 ;
- bool arg3 = (bool) false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO|O:OtkWidget_addChild",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (obj2) {
- arg3 = (bool) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- (arg1)->addChild(arg2,arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_removeChild(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- otk::OtkWidget *arg2 = (otk::OtkWidget *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_removeChild",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->removeChild(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_isStretchableHorz(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_isStretchableHorz",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::OtkWidget const *)arg1)->isStretchableHorz();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setStretchableHorz(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- bool arg2 = (bool) true ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O|O:OtkWidget_setStretchableHorz",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (bool) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- (arg1)->setStretchableHorz(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_isStretchableVert(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_isStretchableVert",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::OtkWidget const *)arg1)->isStretchableVert();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setStretchableVert(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- bool arg2 = (bool) true ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O|O:OtkWidget_setStretchableVert",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (bool) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- (arg1)->setStretchableVert(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_cursor(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- Cursor result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_cursor",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (Cursor)((otk::OtkWidget const *)arg1)->cursor();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setCursor(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- Cursor arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setCursor",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (Cursor) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- (arg1)->setCursor(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_bevelWidth(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_bevelWidth",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::OtkWidget const *)arg1)->bevelWidth();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setBevelWidth(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- int arg2 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setBevelWidth",&obj0,&arg2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setBevelWidth(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_direction(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_direction",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::OtkWidget const *)arg1)->direction();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setDirection(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- int arg2 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setDirection",&obj0,&arg2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setDirection((otk::OtkWidget::Direction )arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_style(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- otk::Style *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_style",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::Style *)((otk::OtkWidget const *)arg1)->style();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setStyle(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- otk::Style *arg2 = (otk::Style *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setStyle",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setStyle(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_eventDispatcher(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- otk::OtkEventDispatcher *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_eventDispatcher",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::OtkEventDispatcher *)(arg1)->eventDispatcher();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventDispatcher, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setEventDispatcher(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- otk::OtkEventDispatcher *arg2 = (otk::OtkEventDispatcher *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setEventDispatcher",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setEventDispatcher(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * OtkWidget_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__OtkWidget, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_OtkFocusWidget(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- int arg2 = (int) otk::OtkWidget::Horizontal ;
- otk::OtkFocusWidget *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O|i:new_OtkFocusWidget",&obj0,&arg2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::OtkFocusWidget *)new otk::OtkFocusWidget(arg1,(otk::OtkWidget::Direction )arg2);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkFocusWidget, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_delete_OtkFocusWidget(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkFocusWidget",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- delete arg1;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_focus(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_focus",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->focus();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_unfocus(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_unfocus",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->unfocus();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_setTexture(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusWidget_setTexture",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setTexture(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_setBorderColor(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
- otk::BColor *arg2 = (otk::BColor *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusWidget_setBorderColor",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setBorderColor((otk::BColor const *)arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_setUnfocusTexture(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusWidget_setUnfocusTexture",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setUnfocusTexture(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_getUnfocusTexture(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_getUnfocusTexture",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)((otk::OtkFocusWidget const *)arg1)->getUnfocusTexture();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_setUnfocusBorderColor(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
- otk::BColor *arg2 = (otk::BColor *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusWidget_setUnfocusBorderColor",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setUnfocusBorderColor((otk::BColor const *)arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_getUnfocusBorderColor(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
- otk::BColor *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_getUnfocusBorderColor",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BColor *)((otk::OtkFocusWidget const *)arg1)->getUnfocusBorderColor();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_isFocused(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_isFocused",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::OtkFocusWidget const *)arg1)->isFocused();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_isUnfocused(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_isUnfocused",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::OtkFocusWidget const *)arg1)->isUnfocused();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * OtkFocusWidget_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__OtkFocusWidget, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_OtkFocusLabel(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- otk::OtkFocusLabel *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:new_OtkFocusLabel",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::OtkFocusLabel *)new otk::OtkFocusLabel(arg1);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkFocusLabel, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_delete_OtkFocusLabel(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkFocusLabel",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- delete arg1;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusLabel_getText(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
- std::string *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusLabel_getText",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- std::string const &_result_ref = ((otk::OtkFocusLabel const *)arg1)->getText();
- result = (std::string *) &_result_ref;
- }
-
- {
- resultobj = PyString_FromString(result->c_str());
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusLabel_setText(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
- std::string *arg2 = 0 ;
- std::string temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusLabel_setText",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- (arg1)->setText((std::string const &)*arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusLabel_update(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusLabel_update",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->update();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusLabel_setStyle(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
- otk::Style *arg2 = (otk::Style *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusLabel_setStyle",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setStyle(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * OtkFocusLabel_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__OtkFocusLabel, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_OtkAppWidget(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
- int arg2 = (int) otk::OtkWidget::Horizontal ;
- Cursor arg3 = (Cursor) 0 ;
- int arg4 = (int) 1 ;
- otk::OtkAppWidget *result;
- PyObject * obj0 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O|iOi:new_OtkAppWidget",&obj0,&arg2,&obj2,&arg4)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (obj2) {
- arg3 = (Cursor) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- result = (otk::OtkAppWidget *)new otk::OtkAppWidget(arg1,(otk::OtkWidget::Direction )arg2,arg3,arg4);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkAppWidget, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_delete_OtkAppWidget(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkAppWidget *arg1 = (otk::OtkAppWidget *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkAppWidget",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkAppWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- delete arg1;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkAppWidget_show(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkAppWidget *arg1 = (otk::OtkAppWidget *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkAppWidget_show",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkAppWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->show();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkAppWidget_hide(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkAppWidget *arg1 = (otk::OtkAppWidget *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkAppWidget_hide",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkAppWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->hide();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkAppWidget_clientMessageHandler(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkAppWidget *arg1 = (otk::OtkAppWidget *) 0 ;
- XClientMessageEvent *arg2 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkAppWidget_clientMessageHandler",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkAppWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * OtkAppWidget_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__OtkAppWidget, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_OtkApplication(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- int arg1 ;
- char **arg2 = (char **) 0 ;
- otk::OtkApplication *result;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"iO:new_OtkApplication",&arg1,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::OtkApplication *)new otk::OtkApplication(arg1,arg2);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkApplication, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_delete_OtkApplication(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkApplication",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- delete arg1;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkApplication_run(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkApplication_run",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->run();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkApplication_setDockable(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
- bool arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkApplication_setDockable",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (bool) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- (arg1)->setDockable(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkApplication_isDockable(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkApplication_isDockable",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::OtkApplication const *)arg1)->isDockable();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkApplication_getStyle(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
- otk::Style *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkApplication_getStyle",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::Style *)((otk::OtkApplication const *)arg1)->getStyle();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * OtkApplication_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__OtkApplication, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject * PointerAssassin_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__PointerAssassin, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_OtkButton(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
- otk::OtkButton *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:new_OtkButton",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::OtkButton *)new otk::OtkButton(arg1);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkButton, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_delete_OtkButton(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkButton",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- delete arg1;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_getPressedFocusTexture(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkButton_getPressedFocusTexture",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)((otk::OtkButton const *)arg1)->getPressedFocusTexture();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_setPressedFocusTexture(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setPressedFocusTexture",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setPressedFocusTexture(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_getPressedUnfocusTexture(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkButton_getPressedUnfocusTexture",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)((otk::OtkButton const *)arg1)->getPressedUnfocusTexture();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_setPressedUnfocusTexture(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setPressedUnfocusTexture",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setPressedUnfocusTexture(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_setTexture(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setTexture",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setTexture(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_setUnfocusTexture(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setUnfocusTexture",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setUnfocusTexture(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_isPressed(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OtkButton_isPressed",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::OtkButton const *)arg1)->isPressed();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_press(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
- unsigned int arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_press",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- (arg1)->press(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_release(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
- unsigned int arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_release",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- (arg1)->release(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_buttonPressHandler(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
- XButtonEvent *arg2 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_buttonPressHandler",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- (arg1)->buttonPressHandler((XButtonEvent const &)*arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_buttonReleaseHandler(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
- XButtonEvent *arg2 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_buttonReleaseHandler",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- (arg1)->buttonReleaseHandler((XButtonEvent const &)*arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_setStyle(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
- otk::Style *arg2 = (otk::Style *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setStyle",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setStyle(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * OtkButton_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__OtkButton, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_BColor__SWIG_0(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- unsigned int arg1 = (unsigned int) ~(0u) ;
- otk::BColor *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"|O:new_BColor",&obj0)) goto fail;
- if (obj0) {
- arg1 = (unsigned int) PyInt_AsLong(obj0);
- if (PyErr_Occurred()) SWIG_fail;
- }
- result = (otk::BColor *)new otk::BColor(arg1);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_BColor__SWIG_1(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- int arg1 ;
- int arg2 ;
- int arg3 ;
- unsigned int arg4 = (unsigned int) ~(0u) ;
- otk::BColor *result;
- PyObject * obj3 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"iii|O:new_BColor",&arg1,&arg2,&arg3,&obj3)) goto fail;
- if (obj3) {
- arg4 = (unsigned int) PyInt_AsLong(obj3);
- if (PyErr_Occurred()) SWIG_fail;
- }
- result = (otk::BColor *)new otk::BColor(arg1,arg2,arg3,arg4);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_BColor__SWIG_2(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- std::string *arg1 = 0 ;
- unsigned int arg2 = (unsigned int) ~(0u) ;
- otk::BColor *result;
- std::string temp1 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O|O:new_BColor",&obj0,&obj1)) goto fail;
- {
- if (PyString_Check(obj0)) {
- temp1 = std::string(PyString_AsString(obj0));
- arg1 = &temp1;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- if (obj1) {
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- result = (otk::BColor *)new otk::BColor((std::string const &)*arg1,arg2);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_BColor(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[5];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 4); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if ((argc >= 0) && (argc <= 1)) {
- int _v;
- if (argc <= 0) {
- return _wrap_new_BColor__SWIG_0(self,args);
- }
- {
- _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_new_BColor__SWIG_0(self,args);
- }
- }
- if ((argc >= 1) && (argc <= 2)) {
- int _v;
- {
- _v = PyString_Check(argv[0]) ? 1 : 0;
- }
- if (_v) {
- if (argc <= 1) {
- return _wrap_new_BColor__SWIG_2(self,args);
- }
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_new_BColor__SWIG_2(self,args);
- }
- }
- }
- if ((argc >= 3) && (argc <= 4)) {
- int _v;
- {
- _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- if (argc <= 3) {
- return _wrap_new_BColor__SWIG_1(self,args);
- }
- {
- _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_new_BColor__SWIG_1(self,args);
- }
- }
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BColor'");
- return NULL;
-}
-
-
-static PyObject *_wrap_delete_BColor(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BColor *arg1 = (otk::BColor *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:delete_BColor",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- delete arg1;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BColor_name(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BColor *arg1 = (otk::BColor *) 0 ;
- std::string *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BColor_name",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- std::string const &_result_ref = ((otk::BColor const *)arg1)->name();
- result = (std::string *) &_result_ref;
- }
-
- {
- resultobj = PyString_FromString(result->c_str());
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BColor_red(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BColor *arg1 = (otk::BColor *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BColor_red",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::BColor const *)arg1)->red();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BColor_green(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BColor *arg1 = (otk::BColor *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BColor_green",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::BColor const *)arg1)->green();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BColor_blue(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BColor *arg1 = (otk::BColor *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BColor_blue",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::BColor const *)arg1)->blue();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BColor_setRGB(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BColor *arg1 = (otk::BColor *) 0 ;
- int arg2 ;
- int arg3 ;
- int arg4 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oiii:BColor_setRGB",&obj0,&arg2,&arg3,&arg4)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setRGB(arg2,arg3,arg4);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BColor_screen(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BColor *arg1 = (otk::BColor *) 0 ;
- unsigned int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BColor_screen",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (unsigned int)((otk::BColor const *)arg1)->screen();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BColor_setScreen(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BColor *arg1 = (otk::BColor *) 0 ;
- unsigned int arg2 = (unsigned int) ~(0u) ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O|O:BColor_setScreen",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- (arg1)->setScreen(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BColor_isAllocated(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BColor *arg1 = (otk::BColor *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BColor_isAllocated",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::BColor const *)arg1)->isAllocated();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BColor_isValid(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BColor *arg1 = (otk::BColor *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BColor_isValid",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::BColor const *)arg1)->isValid();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BColor_pixel(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BColor *arg1 = (otk::BColor *) 0 ;
- unsigned long result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BColor_pixel",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (unsigned long)((otk::BColor const *)arg1)->pixel();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BColor_equals(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BColor *arg1 = (otk::BColor *) 0 ;
- otk::BColor *arg2 = 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:BColor_equals",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- result = (bool)((otk::BColor const *)arg1)->operator ==((otk::BColor const &)*arg2);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BColor_cleanupColorCache(PyObject *self, PyObject *args) {
- PyObject *resultobj;
-
- if(!PyArg_ParseTuple(args,(char *)":BColor_cleanupColorCache")) goto fail;
- otk::BColor::cleanupColorCache();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * BColor_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__BColor, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_Configuration__SWIG_0(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- std::string *arg1 = 0 ;
- bool arg2 = (bool) True ;
- otk::Configuration *result;
- std::string temp1 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O|O:new_Configuration",&obj0,&obj1)) goto fail;
- {
- if (PyString_Check(obj0)) {
- temp1 = std::string(PyString_AsString(obj0));
- arg1 = &temp1;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- if (obj1) {
- arg2 = (bool) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- result = (otk::Configuration *)new otk::Configuration((std::string const &)*arg1,arg2);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Configuration, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_Configuration__SWIG_1(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- bool arg1 = (bool) True ;
- otk::Configuration *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"|O:new_Configuration",&obj0)) goto fail;
- if (obj0) {
- arg1 = (bool) PyInt_AsLong(obj0);
- if (PyErr_Occurred()) SWIG_fail;
- }
- result = (otk::Configuration *)new otk::Configuration(arg1);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Configuration, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_Configuration(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[3];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 2); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if ((argc >= 0) && (argc <= 1)) {
- int _v;
- if (argc <= 0) {
- return _wrap_new_Configuration__SWIG_1(self,args);
- }
- {
- _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_new_Configuration__SWIG_1(self,args);
- }
- }
- if ((argc >= 1) && (argc <= 2)) {
- int _v;
- {
- _v = PyString_Check(argv[0]) ? 1 : 0;
- }
- if (_v) {
- if (argc <= 1) {
- return _wrap_new_Configuration__SWIG_0(self,args);
- }
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_new_Configuration__SWIG_0(self,args);
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Configuration'");
- return NULL;
-}
-
-
-static PyObject *_wrap_delete_Configuration(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:delete_Configuration",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- delete arg1;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_file(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- std::string *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Configuration_file",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- std::string const &_result_ref = ((otk::Configuration const *)arg1)->file();
- result = (std::string *) &_result_ref;
- }
-
- {
- resultobj = PyString_FromString(result->c_str());
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setFile(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- std::string *arg2 = 0 ;
- std::string temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Configuration_setFile",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- (arg1)->setFile((std::string const &)*arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_autoSave(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Configuration_autoSave",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::Configuration const *)arg1)->autoSave();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setAutoSave(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- bool arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Configuration_setAutoSave",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (bool) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- (arg1)->setAutoSave(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_isModified(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Configuration_isModified",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::Configuration const *)arg1)->isModified();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_save(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Configuration_save",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->save();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_load(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Configuration_load",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)(arg1)->load();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_merge(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- std::string *arg2 = 0 ;
- bool arg3 = (bool) False ;
- bool result;
- std::string temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO|O:Configuration_merge",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- if (obj2) {
- arg3 = (bool) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- result = (bool)(arg1)->merge((std::string const &)*arg2,arg3);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_create(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Configuration_create",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->create();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setValue_bool(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- std::string *arg2 = 0 ;
- bool arg3 ;
- std::string temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_setValue_bool",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- arg3 = (bool) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- (arg1)->setValue((std::string const &)*arg2,arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setValue(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- std::string *arg2 = 0 ;
- int arg3 ;
- std::string temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOi:Configuration_setValue",&obj0,&obj1,&arg3)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- (arg1)->setValue((std::string const &)*arg2,arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setValue_unsigned(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- std::string *arg2 = 0 ;
- unsigned int arg3 ;
- std::string temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_setValue_unsigned",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- arg3 = (unsigned int) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- (arg1)->setValue((std::string const &)*arg2,arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setValue_long(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- std::string *arg2 = 0 ;
- long arg3 ;
- std::string temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOl:Configuration_setValue_long",&obj0,&obj1,&arg3)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- (arg1)->setValue((std::string const &)*arg2,arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setValue_unsignedlong(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- std::string *arg2 = 0 ;
- unsigned long arg3 ;
- std::string temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_setValue_unsignedlong",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- arg3 = (unsigned long) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- (arg1)->setValue((std::string const &)*arg2,arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setValue_string(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- std::string *arg2 = 0 ;
- std::string *arg3 = 0 ;
- std::string temp2 ;
- std::string temp3 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_setValue_string",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- {
- if (PyString_Check(obj2)) {
- temp3 = std::string(PyString_AsString(obj2));
- arg3 = &temp3;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- (arg1)->setValue((std::string const &)*arg2,(std::string const &)*arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setValue_charptr(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- std::string *arg2 = 0 ;
- char *arg3 ;
- std::string temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOs:Configuration_setValue_charptr",&obj0,&obj1,&arg3)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- (arg1)->setValue((std::string const &)*arg2,(char const *)arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_getValue__SWIG_0(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- std::string *arg2 = 0 ;
- bool *arg3 = 0 ;
- bool result;
- std::string temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_bool,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg3 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_getValue__SWIG_1(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- std::string *arg2 = 0 ;
- int *arg3 = 0 ;
- bool result;
- std::string temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg3 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_getValue__SWIG_2(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- std::string *arg2 = 0 ;
- unsigned int *arg3 = 0 ;
- bool result;
- std::string temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg3 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_getValue__SWIG_3(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- std::string *arg2 = 0 ;
- long *arg3 = 0 ;
- bool result;
- std::string temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg3 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_getValue__SWIG_4(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- std::string *arg2 = 0 ;
- unsigned long *arg3 = 0 ;
- bool result;
- std::string temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg3 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_getValue__SWIG_5(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Configuration *arg1 = (otk::Configuration *) 0 ;
- std::string *arg2 = 0 ;
- std::string *arg3 = 0 ;
- bool result;
- std::string temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_std__string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg3 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_getValue(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[4];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 3); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if (argc == 3) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = PyString_Check(argv[1]) ? 1 : 0;
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_bool, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_Configuration_getValue__SWIG_0(self,args);
- }
- }
- }
- }
- if (argc == 3) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = PyString_Check(argv[1]) ? 1 : 0;
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_int, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_Configuration_getValue__SWIG_1(self,args);
- }
- }
- }
- }
- if (argc == 3) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = PyString_Check(argv[1]) ? 1 : 0;
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_unsigned_int, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_Configuration_getValue__SWIG_2(self,args);
- }
- }
- }
- }
- if (argc == 3) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = PyString_Check(argv[1]) ? 1 : 0;
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_long, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_Configuration_getValue__SWIG_3(self,args);
- }
- }
- }
- }
- if (argc == 3) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = PyString_Check(argv[1]) ? 1 : 0;
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_Configuration_getValue__SWIG_4(self,args);
- }
- }
- }
- }
- if (argc == 3) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = PyString_Check(argv[1]) ? 1 : 0;
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_std__string, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_Configuration_getValue__SWIG_5(self,args);
- }
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Configuration_getValue'");
- return NULL;
-}
-
-
-static PyObject * Configuration_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__Configuration, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_OBDisplay_initialize(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- char *arg1 ;
-
- if(!PyArg_ParseTuple(args,(char *)"s:OBDisplay_initialize",&arg1)) goto fail;
- otk::OBDisplay::initialize(arg1);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_destroy(PyObject *self, PyObject *args) {
- PyObject *resultobj;
-
- if(!PyArg_ParseTuple(args,(char *)":OBDisplay_destroy")) goto fail;
- otk::OBDisplay::destroy();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_gcCache(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BGCCache *result;
-
- if(!PyArg_ParseTuple(args,(char *)":OBDisplay_gcCache")) goto fail;
- result = (otk::BGCCache *)otk::OBDisplay::gcCache();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BGCCache, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_screenInfo(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- int arg1 ;
- otk::ScreenInfo *result;
-
- if(!PyArg_ParseTuple(args,(char *)"i:OBDisplay_screenInfo",&arg1)) goto fail;
- result = (otk::ScreenInfo *)otk::OBDisplay::screenInfo(arg1);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_findScreen(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- Window arg1 ;
- otk::ScreenInfo *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:OBDisplay_findScreen",&obj0)) goto fail;
- arg1 = (Window) PyInt_AsLong(obj0);
- if (PyErr_Occurred()) SWIG_fail;
- result = (otk::ScreenInfo *)otk::OBDisplay::findScreen(arg1);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_xkb(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- bool result;
-
- if(!PyArg_ParseTuple(args,(char *)":OBDisplay_xkb")) goto fail;
- result = (bool)otk::OBDisplay::xkb();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_xkbEventBase(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- int result;
-
- if(!PyArg_ParseTuple(args,(char *)":OBDisplay_xkbEventBase")) goto fail;
- result = (int)otk::OBDisplay::xkbEventBase();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_shape(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- bool result;
-
- if(!PyArg_ParseTuple(args,(char *)":OBDisplay_shape")) goto fail;
- result = (bool)otk::OBDisplay::shape();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_shapeEventBase(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- int result;
-
- if(!PyArg_ParseTuple(args,(char *)":OBDisplay_shapeEventBase")) goto fail;
- result = (int)otk::OBDisplay::shapeEventBase();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_xinerama(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- bool result;
-
- if(!PyArg_ParseTuple(args,(char *)":OBDisplay_xinerama")) goto fail;
- result = (bool)otk::OBDisplay::xinerama();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_numLockMask(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- unsigned int result;
-
- if(!PyArg_ParseTuple(args,(char *)":OBDisplay_numLockMask")) goto fail;
- result = (unsigned int)otk::OBDisplay::numLockMask();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_scrollLockMask(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- unsigned int result;
-
- if(!PyArg_ParseTuple(args,(char *)":OBDisplay_scrollLockMask")) goto fail;
- result = (unsigned int)otk::OBDisplay::scrollLockMask();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_grab(PyObject *self, PyObject *args) {
- PyObject *resultobj;
-
- if(!PyArg_ParseTuple(args,(char *)":OBDisplay_grab")) goto fail;
- otk::OBDisplay::grab();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_ungrab(PyObject *self, PyObject *args) {
- PyObject *resultobj;
-
- if(!PyArg_ParseTuple(args,(char *)":OBDisplay_ungrab")) goto fail;
- otk::OBDisplay::ungrab();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_grabButton(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- unsigned int arg1 ;
- unsigned int arg2 ;
- Window arg3 ;
- bool arg4 ;
- unsigned int arg5 ;
- int arg6 ;
- int arg7 ;
- Window arg8 ;
- Cursor arg9 ;
- bool arg10 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj7 = 0 ;
- PyObject * obj8 = 0 ;
- PyObject * obj9 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOOOOiiOOO:OBDisplay_grabButton",&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7,&obj7,&obj8,&obj9)) goto fail;
- arg1 = (unsigned int) PyInt_AsLong(obj0);
- if (PyErr_Occurred()) SWIG_fail;
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (Window) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- arg4 = (bool) PyInt_AsLong(obj3);
- if (PyErr_Occurred()) SWIG_fail;
- arg5 = (unsigned int) PyInt_AsLong(obj4);
- if (PyErr_Occurred()) SWIG_fail;
- arg8 = (Window) PyInt_AsLong(obj7);
- if (PyErr_Occurred()) SWIG_fail;
- arg9 = (Cursor) PyInt_AsLong(obj8);
- if (PyErr_Occurred()) SWIG_fail;
- arg10 = (bool) PyInt_AsLong(obj9);
- if (PyErr_Occurred()) SWIG_fail;
- otk::OBDisplay::grabButton(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_ungrabButton(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- unsigned int arg1 ;
- unsigned int arg2 ;
- Window arg3 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOO:OBDisplay_ungrabButton",&obj0,&obj1,&obj2)) goto fail;
- arg1 = (unsigned int) PyInt_AsLong(obj0);
- if (PyErr_Occurred()) SWIG_fail;
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (Window) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- otk::OBDisplay::ungrabButton(arg1,arg2,arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_grabKey(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- unsigned int arg1 ;
- unsigned int arg2 ;
- Window arg3 ;
- bool arg4 ;
- int arg5 ;
- int arg6 ;
- bool arg7 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj6 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOOOiiO:OBDisplay_grabKey",&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail;
- arg1 = (unsigned int) PyInt_AsLong(obj0);
- if (PyErr_Occurred()) SWIG_fail;
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (Window) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- arg4 = (bool) PyInt_AsLong(obj3);
- if (PyErr_Occurred()) SWIG_fail;
- arg7 = (bool) PyInt_AsLong(obj6);
- if (PyErr_Occurred()) SWIG_fail;
- otk::OBDisplay::grabKey(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_ungrabKey(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- unsigned int arg1 ;
- unsigned int arg2 ;
- Window arg3 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOO:OBDisplay_ungrabKey",&obj0,&obj1,&obj2)) goto fail;
- arg1 = (unsigned int) PyInt_AsLong(obj0);
- if (PyErr_Occurred()) SWIG_fail;
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (Window) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- otk::OBDisplay::ungrabKey(arg1,arg2,arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * OBDisplay_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__OBDisplay, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_BFont_fallbackFont(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- std::string result;
-
- if(!PyArg_ParseTuple(args,(char *)":BFont_fallbackFont")) goto fail;
- result = otk::BFont::fallbackFont();
-
- {
- resultobj = PyString_FromString((&result)->c_str());
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BFont_setFallbackFont(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- std::string *arg1 = 0 ;
- std::string temp1 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BFont_setFallbackFont",&obj0)) goto fail;
- {
- if (PyString_Check(obj0)) {
- temp1 = std::string(PyString_AsString(obj0));
- arg1 = &temp1;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- otk::BFont::setFallbackFont((std::string const &)*arg1);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_BFont(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- int arg1 ;
- std::string *arg2 = 0 ;
- bool arg3 ;
- unsigned char arg4 ;
- unsigned char arg5 ;
- otk::BFont *result;
- std::string temp2 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"iOOOO:new_BFont",&arg1,&obj1,&obj2,&obj3,&obj4)) goto fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- arg3 = (bool) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- arg4 = (unsigned char) PyInt_AsLong(obj3);
- if (PyErr_Occurred()) SWIG_fail;
- arg5 = (unsigned char) PyInt_AsLong(obj4);
- if (PyErr_Occurred()) SWIG_fail;
- result = (otk::BFont *)new otk::BFont(arg1,(std::string const &)*arg2,arg3,arg4,arg5);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BFont, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_delete_BFont(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BFont *arg1 = (otk::BFont *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:delete_BFont",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- delete arg1;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BFont_fontstring(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BFont *arg1 = (otk::BFont *) 0 ;
- std::string *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BFont_fontstring",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- std::string const &_result_ref = ((otk::BFont const *)arg1)->fontstring();
- result = (std::string *) &_result_ref;
- }
-
- {
- resultobj = PyString_FromString(result->c_str());
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BFont_height(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BFont *arg1 = (otk::BFont *) 0 ;
- unsigned int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BFont_height",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (unsigned int)((otk::BFont const *)arg1)->height();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BFont_maxCharWidth(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BFont *arg1 = (otk::BFont *) 0 ;
- unsigned int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BFont_maxCharWidth",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (unsigned int)((otk::BFont const *)arg1)->maxCharWidth();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BFont_measureString(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BFont *arg1 = (otk::BFont *) 0 ;
- std::string *arg2 = 0 ;
- bool arg3 = (bool) false ;
- unsigned int result;
- std::string temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO|O:BFont_measureString",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- if (PyString_Check(obj1)) {
- temp2 = std::string(PyString_AsString(obj1));
- arg2 = &temp2;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- if (obj2) {
- arg3 = (bool) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- result = (unsigned int)((otk::BFont const *)arg1)->measureString((std::string const &)*arg2,arg3);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BFont_drawString(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BFont *arg1 = (otk::BFont *) 0 ;
- XftDraw *arg2 = (XftDraw *) 0 ;
- int arg3 ;
- int arg4 ;
- otk::BColor *arg5 = 0 ;
- std::string *arg6 = 0 ;
- bool arg7 = (bool) false ;
- std::string temp6 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- PyObject * obj6 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOiiOO|O:BFont_drawString",&obj0,&obj1,&arg3,&arg4,&obj4,&obj5,&obj6)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XftDraw,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg5 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- {
- if (PyString_Check(obj5)) {
- temp6 = std::string(PyString_AsString(obj5));
- arg6 = &temp6;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- if (obj6) {
- arg7 = (bool) PyInt_AsLong(obj6);
- if (PyErr_Occurred()) SWIG_fail;
- }
- ((otk::BFont const *)arg1)->drawString(arg2,arg3,arg4,(otk::BColor const &)*arg5,(std::string const &)*arg6,arg7);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * BFont_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__BFont, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_BGCCacheContext_set__SWIG_0(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BGCCacheContext *arg1 = (otk::BGCCacheContext *) 0 ;
- otk::BColor *arg2 = 0 ;
- XFontStruct *arg3 = (XFontStruct *) (XFontStruct *)0 ;
- int arg4 ;
- int arg5 ;
- int arg6 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOOiii:BGCCacheContext_set",&obj0,&obj1,&obj2,&arg4,&arg5,&arg6)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_XFontStruct,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->set((otk::BColor const &)*arg2,(XFontStruct const *)arg3,arg4,arg5,arg6);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BGCCacheContext_set__SWIG_1(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BGCCacheContext *arg1 = (otk::BGCCacheContext *) 0 ;
- XFontStruct *arg2 = (XFontStruct *) (XFontStruct *)0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:BGCCacheContext_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFontStruct,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->set((XFontStruct const *)arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BGCCacheContext_set(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[7];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 6); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if (argc == 2) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__BGCCacheContext, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_XFontStruct, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_BGCCacheContext_set__SWIG_1(self,args);
- }
- }
- }
- if (argc == 6) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__BGCCacheContext, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__BColor, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_XFontStruct, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_BGCCacheContext_set__SWIG_0(self,args);
- }
- }
- }
- }
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'BGCCacheContext_set'");
- return NULL;
-}
-
-
-static PyObject *_wrap_delete_BGCCacheContext(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BGCCacheContext *arg1 = (otk::BGCCacheContext *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:delete_BGCCacheContext",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- delete arg1;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * BGCCacheContext_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__BGCCacheContext, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_BGCCacheItem_gc(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BGCCacheItem *arg1 = (otk::BGCCacheItem *) 0 ;
- GC *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BGCCacheItem_gc",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- GC const &_result_ref = ((otk::BGCCacheItem const *)arg1)->gc();
- result = (GC *) &_result_ref;
- }
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_GC, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * BGCCacheItem_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__BGCCacheItem, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_BGCCache(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- unsigned int arg1 ;
- otk::BGCCache *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:new_BGCCache",&obj0)) goto fail;
- arg1 = (unsigned int) PyInt_AsLong(obj0);
- if (PyErr_Occurred()) SWIG_fail;
- result = (otk::BGCCache *)new otk::BGCCache(arg1);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BGCCache, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_delete_BGCCache(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BGCCache *arg1 = (otk::BGCCache *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:delete_BGCCache",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- delete arg1;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BGCCache_purge(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BGCCache *arg1 = (otk::BGCCache *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BGCCache_purge",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->purge();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BGCCache_find(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BGCCache *arg1 = (otk::BGCCache *) 0 ;
- otk::BColor *arg2 = 0 ;
- XFontStruct *arg3 = (XFontStruct *) (XFontStruct *)0 ;
- int arg4 = (int) GXcopy ;
- int arg5 = (int) ClipByChildren ;
- int arg6 = (int) 0 ;
- otk::BGCCacheItem *result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO|Oiii:BGCCache_find",&obj0,&obj1,&obj2,&arg4,&arg5,&arg6)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- if (obj2) {
- if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_XFontStruct,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- }
- result = (otk::BGCCacheItem *)(arg1)->find((otk::BColor const &)*arg2,(XFontStruct const *)arg3,arg4,arg5,arg6);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BGCCacheItem, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BGCCache_release(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BGCCache *arg1 = (otk::BGCCache *) 0 ;
- otk::BGCCacheItem *arg2 = (otk::BGCCacheItem *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:BGCCache_release",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BGCCacheItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->release(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * BGCCache_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__BGCCache, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_BPen(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BColor *arg1 = 0 ;
- XFontStruct *arg2 = (XFontStruct *) (XFontStruct *)0 ;
- int arg3 = (int) 0 ;
- int arg4 = (int) GXcopy ;
- int arg5 = (int) ClipByChildren ;
- otk::BPen *result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O|Oiii:new_BPen",&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- if (obj1) {
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFontStruct,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- }
- result = (otk::BPen *)new otk::BPen((otk::BColor const &)*arg1,(XFontStruct const *)arg2,arg3,arg4,arg5);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BPen, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_delete_BPen(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BPen *arg1 = (otk::BPen *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:delete_BPen",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- delete arg1;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BPen_gc(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BPen *arg1 = (otk::BPen *) 0 ;
- GC *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BPen_gc",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- GC const &_result_ref = ((otk::BPen const *)arg1)->gc();
- result = (GC *) &_result_ref;
- }
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_GC, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * BPen_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__BPen, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_BImage(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- int arg2 ;
- int arg3 ;
- otk::BImage *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oii:new_BImage",&obj0,&arg2,&arg3)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BImage *)new otk::BImage(arg1,arg2,arg3);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImage, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_delete_BImage(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImage *arg1 = (otk::BImage *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:delete_BImage",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- delete arg1;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImage_render(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImage *arg1 = (otk::BImage *) 0 ;
- otk::BTexture *arg2 = 0 ;
- Pixmap result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:BImage_render",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- result = (Pixmap)(arg1)->render((otk::BTexture const &)*arg2);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * BImage_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__BImage, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_BImageControl(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
- otk::ScreenInfo *arg2 = (otk::ScreenInfo *) 0 ;
- bool arg3 = (bool) False ;
- int arg4 = (int) 4 ;
- unsigned long arg5 = (unsigned long) 300000l ;
- unsigned long arg6 = (unsigned long) 200l ;
- otk::BImageControl *result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO|OiOO:new_BImageControl",&obj0,&obj1,&obj2,&arg4,&obj4,&obj5)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (obj2) {
- arg3 = (bool) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj4) {
- arg5 = (unsigned long) PyInt_AsLong(obj4);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj5) {
- arg6 = (unsigned long) PyInt_AsLong(obj5);
- if (PyErr_Occurred()) SWIG_fail;
- }
- result = (otk::BImageControl *)new otk::BImageControl(arg1,(otk::ScreenInfo const *)arg2,arg3,arg4,arg5,arg6);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_delete_BImageControl(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:delete_BImageControl",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- delete arg1;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_doDither(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_doDither",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)(arg1)->doDither();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getScreenInfo(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- otk::ScreenInfo *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getScreenInfo",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::ScreenInfo *)((otk::BImageControl const *)arg1)->getScreenInfo();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getDrawable(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- Window result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getDrawable",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (Window)((otk::BImageControl const *)arg1)->getDrawable();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getVisual(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- Visual *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getVisual",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (Visual *)(arg1)->getVisual();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Visual, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getBitsPerPixel(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getBitsPerPixel",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::BImageControl const *)arg1)->getBitsPerPixel();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getDepth(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getDepth",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::BImageControl const *)arg1)->getDepth();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getColorsPerChannel(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getColorsPerChannel",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::BImageControl const *)arg1)->getColorsPerChannel();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getSqrt(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- unsigned int arg2 ;
- unsigned long result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:BImageControl_getSqrt",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- result = (unsigned long)(arg1)->getSqrt(arg2);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_renderImage(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- unsigned int arg2 ;
- unsigned int arg3 ;
- otk::BTexture *arg4 = 0 ;
- Pixmap result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOOO:BImageControl_renderImage",&obj0,&obj1,&obj2,&obj3)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (unsigned int) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg4 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- result = (Pixmap)(arg1)->renderImage(arg2,arg3,(otk::BTexture const &)*arg4);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_installRootColormap(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_installRootColormap",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->installRootColormap();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_removeImage(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- Pixmap arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:BImageControl_removeImage",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (Pixmap) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- (arg1)->removeImage(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getColorTables(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- unsigned char **arg2 = (unsigned char **) 0 ;
- unsigned char **arg3 = (unsigned char **) 0 ;
- unsigned char **arg4 = (unsigned char **) 0 ;
- int *arg5 = (int *) 0 ;
- int *arg6 = (int *) 0 ;
- int *arg7 = (int *) 0 ;
- int *arg8 = (int *) 0 ;
- int *arg9 = (int *) 0 ;
- int *arg10 = (int *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- PyObject * obj6 = 0 ;
- PyObject * obj7 = 0 ;
- PyObject * obj8 = 0 ;
- PyObject * obj9 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:BImageControl_getColorTables",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->getColorTables(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getXColorTable(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- XColor **arg2 = (XColor **) 0 ;
- int *arg3 = (int *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOO:BImageControl_getXColorTable",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_XColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->getXColorTable(arg2,arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getGradientBuffers(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- unsigned int arg2 ;
- unsigned int arg3 ;
- unsigned int **arg4 = (unsigned int **) 0 ;
- unsigned int **arg5 = (unsigned int **) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOOOO:BImageControl_getGradientBuffers",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (unsigned int) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_p_unsigned_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_p_unsigned_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->getGradientBuffers(arg2,arg3,arg4,arg5);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_setDither(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- bool arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:BImageControl_setDither",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (bool) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- (arg1)->setDither(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_setColorsPerChannel(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- int arg2 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oi:BImageControl_setColorsPerChannel",&obj0,&arg2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setColorsPerChannel(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_timeout(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_timeout",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- otk::BImageControl::timeout(arg1);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * BImageControl_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__BImageControl, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_Point__SWIG_0(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Point *result;
-
- if(!PyArg_ParseTuple(args,(char *)":new_Point")) goto fail;
- result = (otk::Point *)new otk::Point();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Point, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_Point__SWIG_1(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- int arg1 ;
- int arg2 ;
- otk::Point *result;
-
- if(!PyArg_ParseTuple(args,(char *)"ii:new_Point",&arg1,&arg2)) goto fail;
- result = (otk::Point *)new otk::Point(arg1,arg2);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Point, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_Point(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[3];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 2); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if (argc == 0) {
- return _wrap_new_Point__SWIG_0(self,args);
- }
- if (argc == 2) {
- int _v;
- {
- _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_new_Point__SWIG_1(self,args);
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Point'");
- return NULL;
-}
-
-
-static PyObject *_wrap_Point_setX(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Point *arg1 = (otk::Point *) 0 ;
- int arg2 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oi:Point_setX",&obj0,&arg2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setX(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Point_x(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Point *arg1 = (otk::Point *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Point_x",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::Point const *)arg1)->x();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Point_setY(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Point *arg1 = (otk::Point *) 0 ;
- int arg2 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oi:Point_setY",&obj0,&arg2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setY(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Point_y(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Point *arg1 = (otk::Point *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Point_y",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::Point const *)arg1)->y();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Point_setPoint(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Point *arg1 = (otk::Point *) 0 ;
- int arg2 ;
- int arg3 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oii:Point_setPoint",&obj0,&arg2,&arg3)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setPoint(arg2,arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * Point_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__Point, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_OBProperty(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OBProperty *result;
-
- if(!PyArg_ParseTuple(args,(char *)":new_OBProperty")) goto fail;
- result = (otk::OBProperty *)new otk::OBProperty();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBProperty, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_delete_OBProperty(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:delete_OBProperty",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- delete arg1;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_set__SWIG_0(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
- Window arg2 ;
- int arg3 ;
- int arg4 ;
- unsigned long arg5 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj4 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (Window) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg5 = (unsigned long) PyInt_AsLong(obj4);
- if (PyErr_Occurred()) SWIG_fail;
- ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_set__SWIG_1(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
- Window arg2 ;
- int arg3 ;
- int arg4 ;
- unsigned long *arg5 ;
- int arg6 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj4 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOiiOi:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4,&arg6)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (Window) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5,arg6);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_set__SWIG_2(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
- Window arg2 ;
- int arg3 ;
- int arg4 ;
- std::string *arg5 = 0 ;
- std::string temp5 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj4 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (Window) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- {
- if (PyString_Check(obj4)) {
- temp5 = std::string(PyString_AsString(obj4));
- arg5 = &temp5;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,(std::string const &)*arg5);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_set__SWIG_3(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
- Window arg2 ;
- int arg3 ;
- int arg4 ;
- otk::OBProperty::StringVect *arg5 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj4 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (Window) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_otk__OBProperty__StringVect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg5 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,(otk::OBProperty::StringVect const &)*arg5);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_set(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[7];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 6); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if (argc == 5) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_otk__OBProperty__StringVect, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_OBProperty_set__SWIG_3(self,args);
- }
- }
- }
- }
- }
- }
- if (argc == 5) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_OBProperty_set__SWIG_0(self,args);
- }
- }
- }
- }
- }
- }
- if (argc == 5) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = PyString_Check(argv[4]) ? 1 : 0;
- }
- if (_v) {
- return _wrap_OBProperty_set__SWIG_2(self,args);
- }
- }
- }
- }
- }
- }
- if (argc == 6) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_OBProperty_set__SWIG_1(self,args);
- }
- }
- }
- }
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OBProperty_set'");
- return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_get__SWIG_0(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
- Window arg2 ;
- int arg3 ;
- int arg4 ;
- unsigned long *arg5 = (unsigned long *) 0 ;
- unsigned long **arg6 = (unsigned long **) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOiiOO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4,&obj5)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (Window) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5,arg6);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_get__SWIG_1(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
- Window arg2 ;
- int arg3 ;
- int arg4 ;
- unsigned long *arg5 = (unsigned long *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj4 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (Window) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_get__SWIG_2(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
- Window arg2 ;
- int arg3 ;
- int arg4 ;
- std::string *arg5 = (std::string *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj4 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (Window) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_std__string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,arg5);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_get__SWIG_3(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
- Window arg2 ;
- int arg3 ;
- int arg4 ;
- unsigned long *arg5 = (unsigned long *) 0 ;
- otk::OBProperty::StringVect *arg6 = (otk::OBProperty::StringVect *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOiiOO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4,&obj5)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (Window) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_otk__OBProperty__StringVect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,arg5,arg6);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_get(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[7];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 6); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if (argc == 5) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_OBProperty_get__SWIG_1(self,args);
- }
- }
- }
- }
- }
- }
- if (argc == 5) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_std__string, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_OBProperty_get__SWIG_2(self,args);
- }
- }
- }
- }
- }
- }
- if (argc == 6) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[5], (void **) &ptr, SWIGTYPE_p_p_unsigned_long, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_OBProperty_get__SWIG_0(self,args);
- }
- }
- }
- }
- }
- }
- }
- if (argc == 6) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[5], (void **) &ptr, SWIGTYPE_p_otk__OBProperty__StringVect, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_OBProperty_get__SWIG_3(self,args);
- }
- }
- }
- }
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OBProperty_get'");
- return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_erase(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
- Window arg2 ;
- int arg3 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOi:OBProperty_erase",&obj0,&obj1,&arg3)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (Window) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- ((otk::OBProperty const *)arg1)->erase(arg2,(otk::OBProperty::Atoms )arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_atom(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
- int arg2 ;
- Atom result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oi:OBProperty_atom",&obj0,&arg2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (Atom)((otk::OBProperty const *)arg1)->atom((otk::OBProperty::Atoms )arg2);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * OBProperty_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__OBProperty, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_Rect__SWIG_0(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *result;
-
- if(!PyArg_ParseTuple(args,(char *)":new_Rect")) goto fail;
- result = (otk::Rect *)new otk::Rect();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_Rect__SWIG_1(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- int arg1 ;
- int arg2 ;
- int arg3 ;
- int arg4 ;
- otk::Rect *result;
-
- if(!PyArg_ParseTuple(args,(char *)"iiii:new_Rect",&arg1,&arg2,&arg3,&arg4)) goto fail;
- result = (otk::Rect *)new otk::Rect(arg1,arg2,arg3,arg4);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_Rect__SWIG_2(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Point *arg1 = 0 ;
- otk::Point *arg2 = 0 ;
- otk::Rect *result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:new_Rect",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- result = (otk::Rect *)new otk::Rect((otk::Point const &)*arg1,(otk::Point const &)*arg2);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_Rect__SWIG_3(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = 0 ;
- otk::Rect *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:new_Rect",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- result = (otk::Rect *)new otk::Rect((otk::Rect const &)*arg1);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_Rect__SWIG_4(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- XRectangle *arg1 = 0 ;
- otk::Rect *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:new_Rect",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_XRectangle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- result = (otk::Rect *)new otk::Rect((XRectangle const &)*arg1);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[5];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 4); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if (argc == 0) {
- return _wrap_new_Rect__SWIG_0(self,args);
- }
- if (argc == 1) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_new_Rect__SWIG_3(self,args);
- }
- }
- if (argc == 1) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_XRectangle, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_new_Rect__SWIG_4(self,args);
- }
- }
- if (argc == 2) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_new_Rect__SWIG_2(self,args);
- }
- }
- }
- if (argc == 4) {
- int _v;
- {
- _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_new_Rect__SWIG_1(self,args);
- }
- }
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Rect'");
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_left(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Rect_left",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::Rect const *)arg1)->left();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_top(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Rect_top",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::Rect const *)arg1)->top();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_right(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Rect_right",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::Rect const *)arg1)->right();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_bottom(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Rect_bottom",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::Rect const *)arg1)->bottom();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_x(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Rect_x",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::Rect const *)arg1)->x();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_y(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Rect_y",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::Rect const *)arg1)->y();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_location(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- otk::Point result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Rect_location",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = ((otk::Rect const *)arg1)->location();
-
- {
- otk::Point * resultptr;
- resultptr = new otk::Point((otk::Point &) result);
- resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Point, 1);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setX(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int arg2 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setX",&obj0,&arg2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setX(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setY(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int arg2 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setY",&obj0,&arg2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setY(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setPos__SWIG_0(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int arg2 ;
- int arg3 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_setPos",&obj0,&arg2,&arg3)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setPos(arg2,arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setPos__SWIG_1(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- otk::Point *arg2 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Rect_setPos",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- (arg1)->setPos((otk::Point const &)*arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setPos(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[4];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 3); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if (argc == 2) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_Rect_setPos__SWIG_1(self,args);
- }
- }
- }
- if (argc == 3) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_Rect_setPos__SWIG_0(self,args);
- }
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setPos'");
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_width(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Rect_width",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::Rect const *)arg1)->width();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_height(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Rect_height",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::Rect const *)arg1)->height();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_size(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- otk::Point result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Rect_size",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = ((otk::Rect const *)arg1)->size();
-
- {
- otk::Point * resultptr;
- resultptr = new otk::Point((otk::Point &) result);
- resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Point, 1);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setWidth(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int arg2 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setWidth",&obj0,&arg2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setWidth(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setHeight(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int arg2 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setHeight",&obj0,&arg2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setHeight(arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setSize__SWIG_0(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int arg2 ;
- int arg3 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_setSize",&obj0,&arg2,&arg3)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setSize(arg2,arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setSize__SWIG_1(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- otk::Point *arg2 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Rect_setSize",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- (arg1)->setSize((otk::Point const &)*arg2);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setSize(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[4];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 3); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if (argc == 2) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_Rect_setSize__SWIG_1(self,args);
- }
- }
- }
- if (argc == 3) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_Rect_setSize__SWIG_0(self,args);
- }
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setSize'");
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setRect__SWIG_0(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int arg2 ;
- int arg3 ;
- int arg4 ;
- int arg5 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oiiii:Rect_setRect",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setRect(arg2,arg3,arg4,arg5);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setRect__SWIG_1(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- otk::Point *arg2 = 0 ;
- otk::Point *arg3 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOO:Rect_setRect",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg3 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- (arg1)->setRect((otk::Point const &)*arg2,(otk::Point const &)*arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setRect(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[6];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 5); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if (argc == 3) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_Rect_setRect__SWIG_1(self,args);
- }
- }
- }
- }
- if (argc == 5) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_Rect_setRect__SWIG_0(self,args);
- }
- }
- }
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setRect'");
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setCoords__SWIG_0(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int arg2 ;
- int arg3 ;
- int arg4 ;
- int arg5 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oiiii:Rect_setCoords",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- (arg1)->setCoords(arg2,arg3,arg4,arg5);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setCoords__SWIG_1(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- otk::Point *arg2 = 0 ;
- otk::Point *arg3 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OOO:Rect_setCoords",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg3 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- (arg1)->setCoords((otk::Point const &)*arg2,(otk::Point const &)*arg3);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setCoords(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[6];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 5); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if (argc == 3) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_Rect_setCoords__SWIG_1(self,args);
- }
- }
- }
- }
- if (argc == 5) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_Rect_setCoords__SWIG_0(self,args);
- }
- }
- }
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setCoords'");
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_equals(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- otk::Rect *arg2 = 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Rect_equals",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- result = (bool)(arg1)->operator ==((otk::Rect const &)*arg2);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_valid(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Rect_valid",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::Rect const *)arg1)->valid();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_intersects(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- otk::Rect *arg2 = 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Rect_intersects",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- result = (bool)((otk::Rect const *)arg1)->intersects((otk::Rect const &)*arg2);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_contains__SWIG_0(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- int arg2 ;
- int arg3 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_contains",&obj0,&arg2,&arg3)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)((otk::Rect const *)arg1)->contains(arg2,arg3);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_contains__SWIG_1(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- otk::Point *arg2 = 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Rect_contains",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- result = (bool)((otk::Rect const *)arg1)->contains((otk::Point const &)*arg2);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_contains__SWIG_2(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Rect *arg1 = (otk::Rect *) 0 ;
- otk::Rect *arg2 = 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Rect_contains",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
- }
- result = (bool)((otk::Rect const *)arg1)->contains((otk::Rect const &)*arg2);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Rect_contains(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[4];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 3); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if (argc == 2) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_Rect_contains__SWIG_1(self,args);
- }
- }
- }
- if (argc == 2) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- return _wrap_Rect_contains__SWIG_2(self,args);
- }
- }
- }
- if (argc == 3) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- }else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_Rect_contains__SWIG_0(self,args);
- }
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_contains'");
- return NULL;
-}
-
-
-static PyObject * Rect_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__Rect, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_ScreenInfo(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- unsigned int arg1 ;
- otk::ScreenInfo *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:new_ScreenInfo",&obj0)) goto fail;
- arg1 = (unsigned int) PyInt_AsLong(obj0);
- if (PyErr_Occurred()) SWIG_fail;
- result = (otk::ScreenInfo *)new otk::ScreenInfo(arg1);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_visual(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
- Visual *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_visual",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (Visual *)((otk::ScreenInfo const *)arg1)->visual();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Visual, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_rootWindow(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
- Window result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_rootWindow",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (Window)((otk::ScreenInfo const *)arg1)->rootWindow();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_colormap(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
- Colormap result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_colormap",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (Colormap)((otk::ScreenInfo const *)arg1)->colormap();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_depth(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_depth",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (int)((otk::ScreenInfo const *)arg1)->depth();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_screen(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
- unsigned int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_screen",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (unsigned int)((otk::ScreenInfo const *)arg1)->screen();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_rect(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
- otk::Rect *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_rect",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- otk::Rect const &_result_ref = ((otk::ScreenInfo const *)arg1)->rect();
- result = (otk::Rect *) &_result_ref;
- }
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_width(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
- unsigned int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_width",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (unsigned int)((otk::ScreenInfo const *)arg1)->width();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_height(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
- unsigned int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_height",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (unsigned int)((otk::ScreenInfo const *)arg1)->height();
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_displayString(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
- std::string *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_displayString",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- {
- std::string const &_result_ref = ((otk::ScreenInfo const *)arg1)->displayString();
- result = (std::string *) &_result_ref;
- }
-
- {
- resultobj = PyString_FromString(result->c_str());
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * ScreenInfo_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__ScreenInfo, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_Strut_top_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Strut *arg1 = (otk::Strut *) 0 ;
- unsigned int arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Strut_top_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- if (arg1) (arg1)->top = arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Strut_top_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Strut *arg1 = (otk::Strut *) 0 ;
- unsigned int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Strut_top_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (unsigned int) ((arg1)->top);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Strut_bottom_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Strut *arg1 = (otk::Strut *) 0 ;
- unsigned int arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Strut_bottom_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- if (arg1) (arg1)->bottom = arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Strut_bottom_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Strut *arg1 = (otk::Strut *) 0 ;
- unsigned int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Strut_bottom_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (unsigned int) ((arg1)->bottom);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Strut_left_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Strut *arg1 = (otk::Strut *) 0 ;
- unsigned int arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Strut_left_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- if (arg1) (arg1)->left = arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Strut_left_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Strut *arg1 = (otk::Strut *) 0 ;
- unsigned int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Strut_left_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (unsigned int) ((arg1)->left);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Strut_right_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Strut *arg1 = (otk::Strut *) 0 ;
- unsigned int arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Strut_right_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- if (arg1) (arg1)->right = arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Strut_right_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Strut *arg1 = (otk::Strut *) 0 ;
- unsigned int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Strut_right_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (unsigned int) ((arg1)->right);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_Strut__SWIG_0(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Strut *result;
-
- if(!PyArg_ParseTuple(args,(char *)":new_Strut")) goto fail;
- result = (otk::Strut *)new otk::Strut();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_Strut__SWIG_1(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- int arg1 ;
- int arg2 ;
- int arg3 ;
- int arg4 ;
- otk::Strut *result;
-
- if(!PyArg_ParseTuple(args,(char *)"iiii:new_Strut",&arg1,&arg2,&arg3,&arg4)) goto fail;
- result = (otk::Strut *)new otk::Strut(arg1,arg2,arg3,arg4);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_Strut(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[5];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 4); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if (argc == 0) {
- return _wrap_new_Strut__SWIG_0(self,args);
- }
- if (argc == 4) {
- int _v;
- {
- _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
- }
- if (_v) {
- {
- _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
- }
- if (_v) {
- return _wrap_new_Strut__SWIG_1(self,args);
- }
- }
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Strut'");
- return NULL;
-}
-
-
-static PyObject * Strut_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__Strut, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_PixmapMask_mask_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
- Pixmap arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:PixmapMask_mask_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (Pixmap) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- if (arg1) (arg1)->mask = arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_PixmapMask_mask_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
- Pixmap result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:PixmapMask_mask_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (Pixmap) ((arg1)->mask);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_PixmapMask_w_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
- unsigned int arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:PixmapMask_w_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- if (arg1) (arg1)->w = arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_PixmapMask_w_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
- unsigned int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:PixmapMask_w_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (unsigned int) ((arg1)->w);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_PixmapMask_h_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
- unsigned int arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:PixmapMask_h_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (unsigned int) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- if (arg1) (arg1)->h = arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_PixmapMask_h_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
- unsigned int result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:PixmapMask_h_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (unsigned int) ((arg1)->h);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_new_PixmapMask(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::PixmapMask *result;
-
- if(!PyArg_ParseTuple(args,(char *)":new_PixmapMask")) goto fail;
- result = (otk::PixmapMask *)new otk::PixmapMask();
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * PixmapMask_swigregister(PyObject *self, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_otk__PixmapMask, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_Style_image_control_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BImageControl *arg2 = (otk::BImageControl *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_image_control_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
- if (arg1) (arg1)->image_control = arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_image_control_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BImageControl *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_image_control_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BImageControl *) ((arg1)->image_control);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_l_text_focus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BColor *arg2 = (otk::BColor *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_l_text_focus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->l_text_focus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_l_text_focus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BColor *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_l_text_focus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BColor *)& ((arg1)->l_text_focus);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_l_text_unfocus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BColor *arg2 = (otk::BColor *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_l_text_unfocus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->l_text_unfocus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_l_text_unfocus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BColor *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_l_text_unfocus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BColor *)& ((arg1)->l_text_unfocus);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_pic_focus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BColor *arg2 = (otk::BColor *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pic_focus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->b_pic_focus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_pic_focus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BColor *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pic_focus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BColor *)& ((arg1)->b_pic_focus);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_pic_unfocus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BColor *arg2 = (otk::BColor *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pic_unfocus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->b_pic_unfocus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_pic_unfocus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BColor *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pic_unfocus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BColor *)& ((arg1)->b_pic_unfocus);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_border_color_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BColor *arg2 = (otk::BColor *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_border_color_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->border_color = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_border_color_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BColor *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_border_color_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BColor *)& ((arg1)->border_color);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_font_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BFont *arg2 = (otk::BFont *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_font_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
- if (arg1) (arg1)->font = arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_font_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BFont *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_font_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BFont *) ((arg1)->font);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BFont, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_f_focus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_f_focus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->f_focus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_f_focus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_f_focus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)& ((arg1)->f_focus);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_f_unfocus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_f_unfocus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->f_unfocus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_f_unfocus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_f_unfocus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)& ((arg1)->f_unfocus);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_t_focus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_t_focus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->t_focus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_t_focus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_t_focus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)& ((arg1)->t_focus);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_t_unfocus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_t_unfocus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->t_unfocus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_t_unfocus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_t_unfocus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)& ((arg1)->t_unfocus);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_l_focus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_l_focus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->l_focus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_l_focus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_l_focus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)& ((arg1)->l_focus);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_l_unfocus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_l_unfocus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->l_unfocus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_l_unfocus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_l_unfocus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)& ((arg1)->l_unfocus);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_h_focus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_h_focus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->h_focus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_h_focus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_h_focus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)& ((arg1)->h_focus);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_h_unfocus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_h_unfocus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->h_unfocus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_h_unfocus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_h_unfocus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)& ((arg1)->h_unfocus);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_focus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_focus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->b_focus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_focus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_b_focus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)& ((arg1)->b_focus);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_unfocus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_unfocus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->b_unfocus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_unfocus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_b_unfocus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)& ((arg1)->b_unfocus);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_pressed_focus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pressed_focus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->b_pressed_focus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_pressed_focus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pressed_focus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)& ((arg1)->b_pressed_focus);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_pressed_unfocus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pressed_unfocus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->b_pressed_unfocus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_pressed_unfocus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pressed_unfocus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)& ((arg1)->b_pressed_unfocus);
-
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_g_focus_set(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *arg2 = (otk::BTexture *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:Style_g_focus_set",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if (arg1) (arg1)->g_focus = *arg2;
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Style_g_focus_get(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- otk::Style *arg1 = (otk::Style *) 0 ;
- otk::BTexture *result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:Style_g_focus_get",&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (otk::BTexture *)& ((arg1)->g_focus);