X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fopenbox_wrap.cc;h=68213a5ae5f2b04dab5610904ffca9ae1c107d21;hb=0b12453cf633b914f6712315dfc2c0171d2bb574;hp=dfa50d662089694c549ab23a7eba7b33938b01af;hpb=7990e6fc46c4a73139cb59e2d17df37ff1fe4e0a;p=chaz%2Fopenbox diff --git a/src/openbox_wrap.cc b/src/openbox_wrap.cc index dfa50d66..68213a5a 100644 --- a/src/openbox_wrap.cc +++ b/src/openbox_wrap.cc @@ -645,33 +645,69 @@ SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) { /* -------- TYPES TABLE (BEGIN) -------- */ -#define SWIGTYPE_p_otk__OBTimerQueueManager swig_types[0] -#define SWIGTYPE_p_ob__OBActions swig_types[1] -#define SWIGTYPE_p_ob__Cursors swig_types[2] -#define SWIGTYPE_p_ob__OBScreen swig_types[3] -#define SWIGTYPE_p_otk__Style swig_types[4] -#define SWIGTYPE_p_ob__OBFrame swig_types[5] -#define SWIGTYPE_p_XReparentEvent swig_types[6] -#define SWIGTYPE_p_ob__OBClient swig_types[7] -#define SWIGTYPE_p_ob__Openbox swig_types[8] -#define SWIGTYPE_p_otk__Strut swig_types[9] -#define SWIGTYPE_p_XMapRequestEvent swig_types[10] -#define SWIGTYPE_p_XConfigureRequestEvent swig_types[11] -#define SWIGTYPE_p_otk__OtkEventHandler swig_types[12] -#define SWIGTYPE_p_otk__Rect swig_types[13] -#define SWIGTYPE_p_ob__OBWidget swig_types[14] -#define SWIGTYPE_p_XClientMessageEvent swig_types[15] -#define SWIGTYPE_p_XFocusChangeEvent swig_types[16] -#define SWIGTYPE_p_otk__OBProperty swig_types[17] -#define SWIGTYPE_p_otk__OtkEventDispatcher swig_types[18] -#define SWIGTYPE_p_XPropertyEvent swig_types[19] -#define SWIGTYPE_p_XDestroyWindowEvent swig_types[20] -#define SWIGTYPE_p_otk__BImageControl swig_types[21] -#define SWIGTYPE_p_PyObject swig_types[22] -#define SWIGTYPE_p_ob__OBBindings swig_types[23] -#define SWIGTYPE_p_ob__MwmHints swig_types[24] -#define SWIGTYPE_p_XUnmapEvent swig_types[25] -static swig_type_info *swig_types[27]; +#define SWIGTYPE_p_ob__OBScreen swig_types[0] +#define SWIGTYPE_p_otk__Point swig_types[1] +#define SWIGTYPE_p_XMapEvent swig_types[2] +#define SWIGTYPE_p_XUnmapEvent swig_types[3] +#define SWIGTYPE_p_XColormapEvent swig_types[4] +#define SWIGTYPE_p_XNoExposeEvent swig_types[5] +#define SWIGTYPE_p_XGraphicsExposeEvent swig_types[6] +#define SWIGTYPE_p_XExposeEvent swig_types[7] +#define SWIGTYPE_p_XFocusChangeEvent swig_types[8] +#define SWIGTYPE_p_XClientMessageEvent swig_types[9] +#define SWIGTYPE_p_ob__MouseData swig_types[10] +#define SWIGTYPE_p_XSelectionClearEvent swig_types[11] +#define SWIGTYPE_p_otk__Rect swig_types[12] +#define SWIGTYPE_p_Visual swig_types[13] +#define SWIGTYPE_p_XResizeRequestEvent swig_types[14] +#define SWIGTYPE_p_XMapRequestEvent swig_types[15] +#define SWIGTYPE_p_XConfigureRequestEvent swig_types[16] +#define SWIGTYPE_p_XCirculateRequestEvent swig_types[17] +#define SWIGTYPE_p_XGravityEvent swig_types[18] +#define SWIGTYPE_p_XVisibilityEvent swig_types[19] +#define SWIGTYPE_p_XPropertyEvent swig_types[20] +#define SWIGTYPE_p_XSelectionRequestEvent swig_types[21] +#define SWIGTYPE_p_ob__Cursors swig_types[22] +#define SWIGTYPE_p_ob__OBFrame swig_types[23] +#define SWIGTYPE_p_otk__BImageControl swig_types[24] +#define SWIGTYPE_p_ob__MwmHints swig_types[25] +#define SWIGTYPE_p_ob__OBWidget swig_types[26] +#define SWIGTYPE_p_ob__KeyData swig_types[27] +#define SWIGTYPE_p_XConfigureEvent swig_types[28] +#define SWIGTYPE_p_XCirculateEvent swig_types[29] +#define SWIGTYPE_p_XRectangle swig_types[30] +#define SWIGTYPE_p_std__string swig_types[31] +#define SWIGTYPE_p_XCrossingEvent swig_types[32] +#define SWIGTYPE_p_Display swig_types[33] +#define SWIGTYPE_p_otk__OBDisplay swig_types[34] +#define SWIGTYPE_p_XMappingEvent swig_types[35] +#define SWIGTYPE_p_otk__Style swig_types[36] +#define SWIGTYPE_p_otk__OtkEventHandler swig_types[37] +#define SWIGTYPE_p_XReparentEvent swig_types[38] +#define SWIGTYPE_p_otk__OtkEventDispatcher swig_types[39] +#define SWIGTYPE_p_otk__BGCCache swig_types[40] +#define SWIGTYPE_p_ob__OBBindings swig_types[41] +#define SWIGTYPE_p_ob__Openbox swig_types[42] +#define SWIGTYPE_p_ob__OBActions swig_types[43] +#define SWIGTYPE_p_XEvent swig_types[44] +#define SWIGTYPE_p_XTextProperty swig_types[45] +#define SWIGTYPE_p_otk__OBProperty swig_types[46] +#define SWIGTYPE_p_PyObject swig_types[47] +#define SWIGTYPE_p_otk__ScreenInfo swig_types[48] +#define SWIGTYPE_p_ob__OBClient swig_types[49] +#define SWIGTYPE_p_ob__EventData swig_types[50] +#define SWIGTYPE_p_XCreateWindowEvent swig_types[51] +#define SWIGTYPE_p_XDestroyWindowEvent swig_types[52] +#define SWIGTYPE_p_otk__OBProperty__StringVect swig_types[53] +#define SWIGTYPE_p_XKeyEvent swig_types[54] +#define SWIGTYPE_p_otk__Strut swig_types[55] +#define SWIGTYPE_p_unsigned_long swig_types[56] +#define SWIGTYPE_p_p_unsigned_long swig_types[57] +#define SWIGTYPE_p_XMotionEvent swig_types[58] +#define SWIGTYPE_p_XButtonEvent swig_types[59] +#define SWIGTYPE_p_XSelectionEvent swig_types[60] +#define SWIGTYPE_p_otk__OBTimerQueueManager swig_types[61] +static swig_type_info *swig_types[63]; /* -------- TYPES TABLE (END) -------- */ @@ -692,6 +728,8 @@ static swig_type_info *swig_types[27]; #include "client.hh" #include "bindings.hh" #include "actions.hh" +#include "python.hh" +#include "otk/otk.hh" #define SWIG_MemoryError 1 @@ -778,8 +816,75 @@ static std::string SwigString_AsString(PyObject* o) { ob::Openbox *Openbox_instance() { return ob::Openbox::instance; } +namespace ob { +void python_callback(PyObject *func, MouseData *data) +{ + PyObject *arglist; + PyObject *result; + + arglist = Py_BuildValue("(O)", SWIG_NewPointerObj((void *) data, + SWIGTYPE_p_ob__MouseData, + 0)); + + // call the callback + result = PyEval_CallObject(func, arglist); + if (!result || PyErr_Occurred()) { + // an exception occured in the script, display it + PyErr_Print(); + } + + Py_XDECREF(result); + Py_DECREF(arglist); +} + +void python_callback(PyObject *func, EventData *data) +{ + PyObject *arglist; + PyObject *result; + + arglist = Py_BuildValue("(O)", SWIG_NewPointerObj((void *) data, + SWIGTYPE_p_ob__EventData, + 0)); + + // call the callback + result = PyEval_CallObject(func, arglist); + if (!result || PyErr_Occurred()) { + // an exception occured in the script, display it + PyErr_Print(); + } + + Py_XDECREF(result); + Py_DECREF(arglist); +} + +void python_callback(PyObject *func, KeyData *data) +{ + PyObject *arglist; + PyObject *result; + + arglist = Py_BuildValue("(O)", SWIG_NewPointerObj((void *) data, + SWIGTYPE_p_ob__KeyData, + 0)); + + // call the callback + result = PyEval_CallObject(func, arglist); + if (!result || PyErr_Occurred()) { + // an exception occured in the script, display it + PyErr_Print(); + } + + Py_XDECREF(result); + Py_DECREF(arglist); +} + +} + + #include + + Display *OBDisplay_display() { return otk::OBDisplay::display; } + ob::OBClient *ob_OBScreen_client(ob::OBScreen *self,int i){ if (i >= (int)self->clients.size()) return NULL; @@ -807,55 +912,39 @@ static PyObject *_wrap_Openbox_instance(PyObject *self, PyObject *args) { } -static PyObject *_wrap_Cursors_session_set(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_display(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Cursors *arg1 = (ob::Cursors *) 0 ; - Cursor arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + Display *result; - if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_session_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (Cursor) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->session = arg2; + if(!PyArg_ParseTuple(args,(char *)":OBDisplay_display")) goto fail; + result = (Display *)OBDisplay_display(); - Py_INCREF(Py_None); resultobj = Py_None; + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Display, 0); return resultobj; fail: return NULL; } -static PyObject *_wrap_Cursors_session_get(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_initialize(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Cursors *arg1 = (ob::Cursors *) 0 ; - Cursor result; - PyObject * obj0 = 0 ; + char *arg1 ; - if(!PyArg_ParseTuple(args,(char *)"O:Cursors_session_get",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (Cursor) ((arg1)->session); + if(!PyArg_ParseTuple(args,(char *)"s:OBDisplay_initialize",&arg1)) goto fail; + otk::OBDisplay::initialize(arg1); - resultobj = PyInt_FromLong((long)result); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_Cursors_move_set(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_destroy(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Cursors *arg1 = (ob::Cursors *) 0 ; - Cursor arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_move_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (Cursor) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->move = arg2; + if(!PyArg_ParseTuple(args,(char *)":OBDisplay_destroy")) goto fail; + otk::OBDisplay::destroy(); Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -864,89 +953,73 @@ static PyObject *_wrap_Cursors_move_set(PyObject *self, PyObject *args) { } -static PyObject *_wrap_Cursors_move_get(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_gcCache(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Cursors *arg1 = (ob::Cursors *) 0 ; - Cursor result; - PyObject * obj0 = 0 ; + otk::BGCCache *result; - if(!PyArg_ParseTuple(args,(char *)"O:Cursors_move_get",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (Cursor) ((arg1)->move); + if(!PyArg_ParseTuple(args,(char *)":OBDisplay_gcCache")) goto fail; + result = (otk::BGCCache *)otk::OBDisplay::gcCache(); - resultobj = PyInt_FromLong((long)result); + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BGCCache, 0); return resultobj; fail: return NULL; } -static PyObject *_wrap_Cursors_ll_angle_set(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_screenInfo(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Cursors *arg1 = (ob::Cursors *) 0 ; - Cursor arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + int arg1 ; + otk::ScreenInfo *result; - if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ll_angle_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (Cursor) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->ll_angle = arg2; + if(!PyArg_ParseTuple(args,(char *)"i:OBDisplay_screenInfo",&arg1)) goto fail; + result = (otk::ScreenInfo *)otk::OBDisplay::screenInfo(arg1); - Py_INCREF(Py_None); resultobj = Py_None; + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0); return resultobj; fail: return NULL; } -static PyObject *_wrap_Cursors_ll_angle_get(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_findScreen(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Cursors *arg1 = (ob::Cursors *) 0 ; - Cursor result; + Window arg1 ; + otk::ScreenInfo *result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ll_angle_get",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (Cursor) ((arg1)->ll_angle); + 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 = PyInt_FromLong((long)result); + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0); return resultobj; fail: return NULL; } -static PyObject *_wrap_Cursors_lr_angle_set(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_xkb(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Cursors *arg1 = (ob::Cursors *) 0 ; - Cursor arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + bool result; - if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_lr_angle_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (Cursor) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->lr_angle = arg2; + if(!PyArg_ParseTuple(args,(char *)":OBDisplay_xkb")) goto fail; + result = (bool)otk::OBDisplay::xkb(); - Py_INCREF(Py_None); resultobj = Py_None; + resultobj = PyInt_FromLong((long)result); return resultobj; fail: return NULL; } -static PyObject *_wrap_Cursors_lr_angle_get(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_xkbEventBase(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Cursors *arg1 = (ob::Cursors *) 0 ; - Cursor result; - PyObject * obj0 = 0 ; + int result; - if(!PyArg_ParseTuple(args,(char *)"O:Cursors_lr_angle_get",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (Cursor) ((arg1)->lr_angle); + if(!PyArg_ParseTuple(args,(char *)":OBDisplay_xkbEventBase")) goto fail; + result = (int)otk::OBDisplay::xkbEventBase(); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -955,35 +1028,26 @@ static PyObject *_wrap_Cursors_lr_angle_get(PyObject *self, PyObject *args) { } -static PyObject *_wrap_Cursors_ul_angle_set(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_shape(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Cursors *arg1 = (ob::Cursors *) 0 ; - Cursor arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + bool result; - if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ul_angle_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (Cursor) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->ul_angle = arg2; + if(!PyArg_ParseTuple(args,(char *)":OBDisplay_shape")) goto fail; + result = (bool)otk::OBDisplay::shape(); - Py_INCREF(Py_None); resultobj = Py_None; + resultobj = PyInt_FromLong((long)result); return resultobj; fail: return NULL; } -static PyObject *_wrap_Cursors_ul_angle_get(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_shapeEventBase(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Cursors *arg1 = (ob::Cursors *) 0 ; - Cursor result; - PyObject * obj0 = 0 ; + int result; - if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ul_angle_get",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (Cursor) ((arg1)->ul_angle); + if(!PyArg_ParseTuple(args,(char *)":OBDisplay_shapeEventBase")) goto fail; + result = (int)otk::OBDisplay::shapeEventBase(); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -992,35 +1056,26 @@ static PyObject *_wrap_Cursors_ul_angle_get(PyObject *self, PyObject *args) { } -static PyObject *_wrap_Cursors_ur_angle_set(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_xinerama(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Cursors *arg1 = (ob::Cursors *) 0 ; - Cursor arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + bool result; - if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ur_angle_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (Cursor) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->ur_angle = arg2; + if(!PyArg_ParseTuple(args,(char *)":OBDisplay_xinerama")) goto fail; + result = (bool)otk::OBDisplay::xinerama(); - Py_INCREF(Py_None); resultobj = Py_None; + resultobj = PyInt_FromLong((long)result); return resultobj; fail: return NULL; } -static PyObject *_wrap_Cursors_ur_angle_get(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_numLockMask(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Cursors *arg1 = (ob::Cursors *) 0 ; - Cursor result; - PyObject * obj0 = 0 ; + unsigned int result; - if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ur_angle_get",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (Cursor) ((arg1)->ur_angle); + if(!PyArg_ParseTuple(args,(char *)":OBDisplay_numLockMask")) goto fail; + result = (unsigned int)otk::OBDisplay::numLockMask(); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -1029,22 +1084,12 @@ static PyObject *_wrap_Cursors_ur_angle_get(PyObject *self, PyObject *args) { } -static PyObject * Cursors_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_ob__Cursors, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_Openbox_state(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_scrollLockMask(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; - int result; - PyObject * obj0 = 0 ; + unsigned int result; - if(!PyArg_ParseTuple(args,(char *)"O:Openbox_state",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (int)((ob::Openbox const *)arg1)->state(); + if(!PyArg_ParseTuple(args,(char *)":OBDisplay_scrollLockMask")) goto fail; + result = (unsigned int)otk::OBDisplay::scrollLockMask(); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -1053,144 +1098,374 @@ static PyObject *_wrap_Openbox_state(PyObject *self, PyObject *args) { } -static PyObject *_wrap_Openbox_timerManager(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_grab(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; - otk::OBTimerQueueManager *result; - PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:Openbox_timerManager",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (otk::OBTimerQueueManager *)(arg1)->timerManager(); + if(!PyArg_ParseTuple(args,(char *)":OBDisplay_grab")) goto fail; + otk::OBDisplay::grab(); - resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimerQueueManager, 0); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_Openbox_property(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_ungrab(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; - otk::OBProperty *result; - PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:Openbox_property",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (otk::OBProperty *)((ob::Openbox const *)arg1)->property(); + if(!PyArg_ParseTuple(args,(char *)":OBDisplay_ungrab")) goto fail; + otk::OBDisplay::ungrab(); - resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBProperty, 0); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_Openbox_actions(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_grabButton(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; - ob::OBActions *result; + 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 *)"O:Openbox_actions",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (ob::OBActions *)((ob::Openbox const *)arg1)->actions(); + 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); - resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBActions, 0); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_Openbox_bindings(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_ungrabButton(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; - ob::OBBindings *result; + unsigned int arg1 ; + unsigned int arg2 ; + Window arg3 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:Openbox_bindings",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (ob::OBBindings *)((ob::Openbox const *)arg1)->bindings(); + 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); - resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBBindings, 0); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_Openbox_screen(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_grabKey(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; - int arg2 ; - ob::OBScreen *result; + 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 *)"Oi:Openbox_screen",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (ob::OBScreen *)(arg1)->screen(arg2); + 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); - resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_Openbox_screenCount(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBDisplay_ungrabKey(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; - int result; + unsigned int arg1 ; + unsigned int arg2 ; + Window arg3 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:Openbox_screenCount",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (int)((ob::Openbox const *)arg1)->screenCount(); + 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); - resultobj = PyInt_FromLong((long)result); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_Openbox_cursors(PyObject *self, PyObject *args) { +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_new_Point__SWIG_0(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; - ob::Cursors *result; - PyObject * obj0 = 0 ; + otk::Point *result; - if(!PyArg_ParseTuple(args,(char *)"O:Openbox_cursors",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - { - ob::Cursors const &_result_ref = ((ob::Openbox const *)arg1)->cursors(); - result = (ob::Cursors *) &_result_ref; + 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); + } + } } - resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Cursors, 0); + 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_Openbox_addClient(PyObject *self, PyObject *args) { +static PyObject *_wrap_Point_x(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; + 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 ; - ob::OBClient *arg3 = (ob::OBClient *) 0 ; + int arg3 ; + int arg4 ; + unsigned long arg5 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj4 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OOO:Openbox_addClient",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + 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(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - (arg1)->addClient(arg2,arg3); + 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; @@ -1199,18 +1474,24 @@ static PyObject *_wrap_Openbox_addClient(PyObject *self, PyObject *args) { } -static PyObject *_wrap_Openbox_removeClient(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBProperty_set__SWIG_1(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; + 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 *)"OO:Openbox_removeClient",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + 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; - (arg1)->removeClient(arg2); + 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; @@ -1219,188 +1500,4996 @@ static PyObject *_wrap_Openbox_removeClient(PyObject *self, PyObject *args) { } -static PyObject *_wrap_Openbox_findClient(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBProperty_set__SWIG_2(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; + otk::OBProperty *arg1 = (otk::OBProperty *) 0 ; Window arg2 ; - ob::OBClient *result; + 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 *)"OO:Openbox_findClient",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + 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; - result = (ob::OBClient *)(arg1)->findClient(arg2); + { + 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); - resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_Openbox_focusedClient(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBProperty_set__SWIG_3(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; - ob::OBClient *result; + 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 *)"O:Openbox_focusedClient",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (ob::OBClient *)(arg1)->focusedClient(); + 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); - resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_Openbox_setFocusedClient(PyObject *self, PyObject *args) { +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; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; - ob::OBClient *arg2 = (ob::OBClient *) 0 ; + 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 *)"OO:Openbox_setFocusedClient",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - (arg1)->setFocusedClient(arg2); + 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); - Py_INCREF(Py_None); resultobj = Py_None; + resultobj = PyInt_FromLong((long)result); return resultobj; fail: return NULL; } -static PyObject *_wrap_Openbox_focusedScreen(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBProperty_get__SWIG_1(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; - ob::OBScreen *result; + 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 *)"O:Openbox_focusedScreen",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (ob::OBScreen *)(arg1)->focusedScreen(); + 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 = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0); + resultobj = PyInt_FromLong((long)result); return resultobj; fail: return NULL; } -static PyObject *_wrap_Openbox_shutdown(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBProperty_get__SWIG_2(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; + 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 *)"O:Openbox_shutdown",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - (arg1)->shutdown(); + 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___eq__(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___eq__",&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___ne__(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___ne__",&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___or__(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::Rect *arg1 = (otk::Rect *) 0 ; + otk::Rect *arg2 = 0 ; + otk::Rect result; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Rect___or__",&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 = ((otk::Rect const *)arg1)->operator |((otk::Rect const &)*arg2); + + { + otk::Rect * resultptr; + resultptr = new otk::Rect((otk::Rect &) result); + resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Rect, 1); + } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Rect___and__(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::Rect *arg1 = (otk::Rect *) 0 ; + otk::Rect *arg2 = 0 ; + otk::Rect result; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Rect___and__",&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 = ((otk::Rect const *)arg1)->operator &((otk::Rect const &)*arg2); + + { + otk::Rect * resultptr; + resultptr = new otk::Rect((otk::Rect &) result); + resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Rect, 1); + } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Rect___ior__(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::Rect *arg1 = (otk::Rect *) 0 ; + otk::Rect *arg2 = 0 ; + otk::Rect *result; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Rect___ior__",&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; + } + { + otk::Rect &_result_ref = (arg1)->operator |=((otk::Rect const &)*arg2); + result = (otk::Rect *) &_result_ref; + } + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Rect___iand__(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::Rect *arg1 = (otk::Rect *) 0 ; + otk::Rect *arg2 = 0 ; + otk::Rect *result; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Rect___iand__",&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; + } + { + otk::Rect &_result_ref = (arg1)->operator &=((otk::Rect const &)*arg2); + result = (otk::Rect *) &_result_ref; + } + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0); + 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 int _wrap_BSENTINEL_set(PyObject *_val) { + PyErr_SetString(PyExc_TypeError,"Variable BSENTINEL is read-only."); + return 1; +} + + +static PyObject *_wrap_BSENTINEL_get() { + PyObject *pyobj; + + pyobj = PyInt_FromLong((long)otk::BSENTINEL); + return pyobj; +} + + +static PyObject *_wrap_expandTilde(PyObject *self, PyObject *args) { + PyObject *resultobj; + std::string *arg1 = 0 ; + std::string result; + std::string temp1 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:expandTilde",&obj0)) goto fail; + { + if (PyString_Check(obj0)) { + temp1 = std::string(PyString_AsString(obj0)); + arg1 = &temp1; + }else { + SWIG_exception(SWIG_TypeError, "string expected"); + } + } + result = otk::expandTilde((std::string const &)*arg1); + + { + resultobj = PyString_FromString((&result)->c_str()); + } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_bexec(PyObject *self, PyObject *args) { + PyObject *resultobj; + std::string *arg1 = 0 ; + std::string *arg2 = 0 ; + std::string temp1 ; + std::string temp2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:bexec",&obj0,&obj1)) goto fail; + { + if (PyString_Check(obj0)) { + temp1 = std::string(PyString_AsString(obj0)); + arg1 = &temp1; + }else { + SWIG_exception(SWIG_TypeError, "string expected"); + } + } + { + if (PyString_Check(obj1)) { + temp2 = std::string(PyString_AsString(obj1)); + arg2 = &temp2; + }else { + SWIG_exception(SWIG_TypeError, "string expected"); + } + } + otk::bexec((std::string const &)*arg1,(std::string const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_textPropertyToString(PyObject *self, PyObject *args) { + PyObject *resultobj; + Display *arg1 = (Display *) 0 ; + XTextProperty *arg2 = 0 ; + std::string result; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:textPropertyToString",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XTextProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + result = otk::textPropertyToString(arg1,*arg2); + + { + resultobj = PyString_FromString((&result)->c_str()); + } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_itostring_unsigned_long(PyObject *self, PyObject *args) { + PyObject *resultobj; + unsigned long arg1 ; + std::string result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:itostring_unsigned_long",&obj0)) goto fail; + arg1 = (unsigned long) PyInt_AsLong(obj0); + if (PyErr_Occurred()) SWIG_fail; + result = otk::itostring(arg1); + + { + resultobj = PyString_FromString((&result)->c_str()); + } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_itostring_long(PyObject *self, PyObject *args) { + PyObject *resultobj; + long arg1 ; + std::string result; + + if(!PyArg_ParseTuple(args,(char *)"l:itostring_long",&arg1)) goto fail; + result = otk::itostring(arg1); + + { + resultobj = PyString_FromString((&result)->c_str()); + } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_itostring_unsigned(PyObject *self, PyObject *args) { + PyObject *resultobj; + unsigned int arg1 ; + std::string result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:itostring_unsigned",&obj0)) goto fail; + arg1 = (unsigned int) PyInt_AsLong(obj0); + if (PyErr_Occurred()) SWIG_fail; + result = otk::itostring(arg1); + + { + resultobj = PyString_FromString((&result)->c_str()); + } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_itostring(PyObject *self, PyObject *args) { + PyObject *resultobj; + int arg1 ; + std::string result; + + if(!PyArg_ParseTuple(args,(char *)"i:itostring",&arg1)) goto fail; + result = otk::itostring(arg1); + + { + resultobj = PyString_FromString((&result)->c_str()); + } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_basename(PyObject *self, PyObject *args) { + PyObject *resultobj; + std::string *arg1 = 0 ; + std::string result; + std::string temp1 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:basename",&obj0)) goto fail; + { + if (PyString_Check(obj0)) { + temp1 = std::string(PyString_AsString(obj0)); + arg1 = &temp1; + }else { + SWIG_exception(SWIG_TypeError, "string expected"); + } + } + result = otk::basename((std::string const &)*arg1); + + { + resultobj = PyString_FromString((&result)->c_str()); + } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_handle(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_handle",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->handle((XEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_keyPressHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XKeyEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_keyPressHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->keyPressHandler((XKeyEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_keyReleaseHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XKeyEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_keyReleaseHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->keyReleaseHandler((XKeyEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_buttonPressHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XButtonEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_buttonPressHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,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_OtkEventHandler_buttonReleaseHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XButtonEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_buttonReleaseHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,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_OtkEventHandler_motionHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XMotionEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_motionHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMotionEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->motionHandler((XMotionEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_enterHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XCrossingEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_enterHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCrossingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->enterHandler((XCrossingEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_leaveHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XCrossingEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_leaveHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCrossingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->leaveHandler((XCrossingEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_focusHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XFocusChangeEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_focusHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->focusHandler((XFocusChangeEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_unfocusHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XFocusChangeEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_unfocusHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_exposeHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XExposeEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_exposeHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->exposeHandler((XExposeEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_graphicsExposeHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XGraphicsExposeEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_graphicsExposeHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XGraphicsExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->graphicsExposeHandler((XGraphicsExposeEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_noExposeEventHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XNoExposeEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_noExposeEventHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XNoExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->noExposeEventHandler((XNoExposeEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_circulateRequestHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XCirculateRequestEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_circulateRequestHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCirculateRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->circulateRequestHandler((XCirculateRequestEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_configureRequestHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XConfigureRequestEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_configureRequestHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_mapRequestHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XMapRequestEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_mapRequestHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->mapRequestHandler((XMapRequestEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_resizeRequestHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XResizeRequestEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_resizeRequestHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XResizeRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->resizeRequestHandler((XResizeRequestEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_circulateHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XCirculateEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_circulateHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCirculateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->circulateHandler((XCirculateEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_configureHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XConfigureEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_configureHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->configureHandler((XConfigureEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_createHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XCreateWindowEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_createHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCreateWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->createHandler((XCreateWindowEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_destroyHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XDestroyWindowEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_destroyHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_gravityHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XGravityEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_gravityHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XGravityEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->gravityHandler((XGravityEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_mapHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XMapEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_mapHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->mapHandler((XMapEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_mappingHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XMappingEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_mappingHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMappingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->mappingHandler((XMappingEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_reparentHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XReparentEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_reparentHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->reparentHandler((XReparentEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_unmapHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XUnmapEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_unmapHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->unmapHandler((XUnmapEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_visibilityHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XVisibilityEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_visibilityHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XVisibilityEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->visibilityHandler((XVisibilityEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_colorMapHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XColormapEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_colorMapHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XColormapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->colorMapHandler((XColormapEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_propertyHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XPropertyEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_propertyHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->propertyHandler((XPropertyEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_selectionClearHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XSelectionClearEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_selectionClearHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionClearEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->selectionClearHandler((XSelectionClearEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_selectionHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XSelectionEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_selectionHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->selectionHandler((XSelectionEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_selectionRequestHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XSelectionRequestEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_selectionRequestHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->selectionRequestHandler((XSelectionRequestEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventHandler_clientMessageHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + XClientMessageEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_clientMessageHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,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 *_wrap_delete_OtkEventHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkEventHandler",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + delete arg1; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject * OtkEventHandler_swigregister(PyObject *self, PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; + SWIG_TypeClientData(SWIGTYPE_p_otk__OtkEventHandler, obj); + Py_INCREF(obj); + return Py_BuildValue((char *)""); +} +static PyObject *_wrap_new_OtkEventDispatcher(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventDispatcher *result; + + if(!PyArg_ParseTuple(args,(char *)":new_OtkEventDispatcher")) goto fail; + result = (otk::OtkEventDispatcher *)new otk::OtkEventDispatcher(); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventDispatcher, 1); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_delete_OtkEventDispatcher(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkEventDispatcher",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + delete arg1; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventDispatcher_clearAllHandlers(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_clearAllHandlers",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->clearAllHandlers(); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventDispatcher_registerHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ; + Window arg2 ; + otk::OtkEventHandler *arg3 = (otk::OtkEventHandler *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OOO:OtkEventDispatcher_registerHandler",&obj0,&obj1,&obj2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Window) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->registerHandler(arg2,arg3); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventDispatcher_clearHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ; + Window arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_clearHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Window) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + (arg1)->clearHandler(arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventDispatcher_dispatchEvents(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_dispatchEvents",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->dispatchEvents(); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventDispatcher_setFallbackHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ; + otk::OtkEventHandler *arg2 = (otk::OtkEventHandler *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_setFallbackHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->setFallbackHandler(arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventDispatcher_getFallbackHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ; + otk::OtkEventHandler *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_getFallbackHandler",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (otk::OtkEventHandler *)((otk::OtkEventDispatcher const *)arg1)->getFallbackHandler(); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventHandler, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventDispatcher_setMasterHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ; + otk::OtkEventHandler *arg2 = (otk::OtkEventHandler *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_setMasterHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->setMasterHandler(arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventDispatcher_getMasterHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ; + otk::OtkEventHandler *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_getMasterHandler",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (otk::OtkEventHandler *)((otk::OtkEventDispatcher const *)arg1)->getMasterHandler(); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventHandler, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventDispatcher_findHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ; + Window arg2 ; + otk::OtkEventHandler *result; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_findHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Window) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + result = (otk::OtkEventHandler *)(arg1)->findHandler(arg2); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventHandler, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OtkEventDispatcher_lastTime(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ; + Time result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_lastTime",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (Time)((otk::OtkEventDispatcher const *)arg1)->lastTime(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject * OtkEventDispatcher_swigregister(PyObject *self, PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; + SWIG_TypeClientData(SWIGTYPE_p_otk__OtkEventDispatcher, obj); + Py_INCREF(obj); + return Py_BuildValue((char *)""); +} +static PyObject *_wrap_Cursors_session_set(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Cursors *arg1 = (ob::Cursors *) 0 ; + Cursor arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_session_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Cursor) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->session = arg2; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Cursors_session_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Cursors *arg1 = (ob::Cursors *) 0 ; + Cursor result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Cursors_session_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (Cursor) ((arg1)->session); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Cursors_move_set(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Cursors *arg1 = (ob::Cursors *) 0 ; + Cursor arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_move_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Cursor) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->move = arg2; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Cursors_move_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Cursors *arg1 = (ob::Cursors *) 0 ; + Cursor result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Cursors_move_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (Cursor) ((arg1)->move); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Cursors_ll_angle_set(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Cursors *arg1 = (ob::Cursors *) 0 ; + Cursor arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ll_angle_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Cursor) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->ll_angle = arg2; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Cursors_ll_angle_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Cursors *arg1 = (ob::Cursors *) 0 ; + Cursor result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ll_angle_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (Cursor) ((arg1)->ll_angle); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Cursors_lr_angle_set(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Cursors *arg1 = (ob::Cursors *) 0 ; + Cursor arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_lr_angle_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Cursor) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->lr_angle = arg2; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Cursors_lr_angle_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Cursors *arg1 = (ob::Cursors *) 0 ; + Cursor result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Cursors_lr_angle_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (Cursor) ((arg1)->lr_angle); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Cursors_ul_angle_set(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Cursors *arg1 = (ob::Cursors *) 0 ; + Cursor arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ul_angle_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Cursor) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->ul_angle = arg2; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Cursors_ul_angle_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Cursors *arg1 = (ob::Cursors *) 0 ; + Cursor result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ul_angle_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (Cursor) ((arg1)->ul_angle); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Cursors_ur_angle_set(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Cursors *arg1 = (ob::Cursors *) 0 ; + Cursor arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ur_angle_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Cursor) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->ur_angle = arg2; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Cursors_ur_angle_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Cursors *arg1 = (ob::Cursors *) 0 ; + Cursor result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ur_angle_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (Cursor) ((arg1)->ur_angle); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject * Cursors_swigregister(PyObject *self, PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; + SWIG_TypeClientData(SWIGTYPE_p_ob__Cursors, obj); + Py_INCREF(obj); + return Py_BuildValue((char *)""); +} +static PyObject *_wrap_Openbox_state(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + int result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Openbox_state",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int)((ob::Openbox const *)arg1)->state(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Openbox_timerManager(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + otk::OBTimerQueueManager *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Openbox_timerManager",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (otk::OBTimerQueueManager *)(arg1)->timerManager(); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimerQueueManager, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Openbox_property(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + otk::OBProperty *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Openbox_property",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (otk::OBProperty *)((ob::Openbox const *)arg1)->property(); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBProperty, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Openbox_actions(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + ob::OBActions *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Openbox_actions",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (ob::OBActions *)((ob::Openbox const *)arg1)->actions(); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBActions, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Openbox_bindings(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + ob::OBBindings *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Openbox_bindings",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (ob::OBBindings *)((ob::Openbox const *)arg1)->bindings(); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBBindings, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Openbox_screen(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + int arg2 ; + ob::OBScreen *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Oi:Openbox_screen",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (ob::OBScreen *)(arg1)->screen(arg2); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Openbox_screenCount(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + int result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Openbox_screenCount",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int)((ob::Openbox const *)arg1)->screenCount(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Openbox_cursors(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + ob::Cursors *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Openbox_cursors",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + { + ob::Cursors const &_result_ref = ((ob::Openbox const *)arg1)->cursors(); + result = (ob::Cursors *) &_result_ref; + } + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Cursors, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Openbox_addClient(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + Window arg2 ; + ob::OBClient *arg3 = (ob::OBClient *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OOO:Openbox_addClient",&obj0,&obj1,&obj2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Window) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->addClient(arg2,arg3); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Openbox_removeClient(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + Window arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_removeClient",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Window) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + (arg1)->removeClient(arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Openbox_findClient(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + Window arg2 ; + ob::OBClient *result; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_findClient",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Window) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + result = (ob::OBClient *)(arg1)->findClient(arg2); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Openbox_focusedClient(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + ob::OBClient *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedClient",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (ob::OBClient *)(arg1)->focusedClient(); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Openbox_setFocusedClient(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + ob::OBClient *arg2 = (ob::OBClient *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_setFocusedClient",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->setFocusedClient(arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Openbox_focusedScreen(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + ob::OBScreen *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedScreen",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (ob::OBScreen *)(arg1)->focusedScreen(); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Openbox_shutdown(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Openbox_shutdown",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->shutdown(); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Openbox_restart(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + std::string const &arg2_defvalue = "" ; + std::string *arg2 = (std::string *) &arg2_defvalue ; + std::string temp2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O|O:Openbox_restart",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (obj1) { + { + if (PyString_Check(obj1)) { + temp2 = std::string(PyString_AsString(obj1)); + arg2 = &temp2; + }else { + SWIG_exception(SWIG_TypeError, "string expected"); + } + } + } + (arg1)->restart((std::string const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Openbox_execute(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Openbox *arg1 = (ob::Openbox *) 0 ; + int arg2 ; + std::string *arg3 = 0 ; + std::string temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj2 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OiO:Openbox_execute",&obj0,&arg2,&obj2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + { + if (PyString_Check(obj2)) { + temp3 = std::string(PyString_AsString(obj2)); + arg3 = &temp3; + }else { + SWIG_exception(SWIG_TypeError, "string expected"); + } + } + (arg1)->execute(arg2,(std::string const &)*arg3); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject * Openbox_swigregister(PyObject *self, PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; + SWIG_TypeClientData(SWIGTYPE_p_ob__Openbox, obj); + Py_INCREF(obj); + return Py_BuildValue((char *)""); +} +static PyObject *_wrap_OBScreen_client(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + int arg2 ; + ob::OBClient *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Oi:OBScreen_client",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (ob::OBClient *)ob_OBScreen_client(arg1,arg2); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_clientCount(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + int result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_clientCount",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int)ob_OBScreen_clientCount((ob::OBScreen const *)arg1); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_number(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + int result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_number",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int)((ob::OBScreen const *)arg1)->number(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_managed(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + bool result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_managed",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)((ob::OBScreen const *)arg1)->managed(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_imageControl(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + otk::BImageControl *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_imageControl",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (otk::BImageControl *)(arg1)->imageControl(); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_area(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + otk::Rect *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_area",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + { + otk::Rect const &_result_ref = ((ob::OBScreen const *)arg1)->area(); + result = (otk::Rect *) &_result_ref; + } + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_style(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + otk::Style *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_style",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (otk::Style *)((ob::OBScreen const *)arg1)->style(); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_focuswindow(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + Window result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_focuswindow",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (Window)((ob::OBScreen const *)arg1)->focuswindow(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_desktop(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + long result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_desktop",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (long)((ob::OBScreen const *)arg1)->desktop(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_numDesktops(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + long result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_numDesktops",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (long)((ob::OBScreen const *)arg1)->numDesktops(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_updateStrut(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_updateStrut",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->updateStrut(); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_manageExisting(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_manageExisting",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->manageExisting(); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_manageWindow(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + Window arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_manageWindow",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Window) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + (arg1)->manageWindow(arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_unmanageWindow(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + ob::OBClient *arg2 = (ob::OBClient *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_unmanageWindow",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->unmanageWindow(arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_restack(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + bool arg2 ; + ob::OBClient *arg3 = (ob::OBClient *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OOO:OBScreen_restack",&obj0,&obj1,&obj2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (bool) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->restack(arg2,arg3); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_setDesktopName(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + long arg2 ; + std::string *arg3 = 0 ; + std::string temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj2 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OlO:OBScreen_setDesktopName",&obj0,&arg2,&obj2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + { + if (PyString_Check(obj2)) { + temp3 = std::string(PyString_AsString(obj2)); + arg3 = &temp3; + }else { + SWIG_exception(SWIG_TypeError, "string expected"); + } + } + (arg1)->setDesktopName(arg2,(std::string const &)*arg3); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_propertyHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + XPropertyEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_propertyHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->propertyHandler((XPropertyEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBScreen_clientMessageHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + XClientMessageEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_clientMessageHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,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 *_wrap_OBScreen_mapRequestHandler(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + XMapRequestEvent *arg2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_mapRequestHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->mapRequestHandler((XMapRequestEvent const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject * OBScreen_swigregister(PyObject *self, PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; + SWIG_TypeClientData(SWIGTYPE_p_ob__OBScreen, obj); + Py_INCREF(obj); + return Py_BuildValue((char *)""); +} +static PyObject *_wrap_MwmHints_flags_set(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::MwmHints *arg1 = (ob::MwmHints *) 0 ; + unsigned long arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_flags_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (unsigned long) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->flags = arg2; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_MwmHints_flags_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::MwmHints *arg1 = (ob::MwmHints *) 0 ; + unsigned long result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_flags_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (unsigned long) ((arg1)->flags); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_MwmHints_functions_set(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::MwmHints *arg1 = (ob::MwmHints *) 0 ; + unsigned long arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_functions_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (unsigned long) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->functions = arg2; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_MwmHints_functions_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::MwmHints *arg1 = (ob::MwmHints *) 0 ; + unsigned long result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_functions_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (unsigned long) ((arg1)->functions); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_MwmHints_decorations_set(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::MwmHints *arg1 = (ob::MwmHints *) 0 ; + unsigned long arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_decorations_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (unsigned long) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->decorations = arg2; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_MwmHints_decorations_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::MwmHints *arg1 = (ob::MwmHints *) 0 ; + unsigned long result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_decorations_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (unsigned long) ((arg1)->decorations); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject * MwmHints_swigregister(PyObject *self, PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; + SWIG_TypeClientData(SWIGTYPE_p_ob__MwmHints, obj); + Py_INCREF(obj); + return Py_BuildValue((char *)""); +} +static PyObject *_wrap_OBClient_frame_set(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + ob::OBFrame *arg2 = (ob::OBFrame *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_frame_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBFrame,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; + if (arg1) (arg1)->frame = arg2; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_frame_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + ob::OBFrame *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_frame_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (ob::OBFrame *) ((arg1)->frame); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBFrame, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_ignore_unmaps_set(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + int arg2 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Oi:OBClient_ignore_unmaps_set",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1) (arg1)->ignore_unmaps = arg2; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_ignore_unmaps_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + int result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_ignore_unmaps_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int) ((arg1)->ignore_unmaps); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_screen(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + int result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_screen",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int)((ob::OBClient const *)arg1)->screen(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_window(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + Window result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_window",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (Window)((ob::OBClient const *)arg1)->window(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_type(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + int result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_type",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int)((ob::OBClient const *)arg1)->type(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_normal(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + bool result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_normal",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)((ob::OBClient const *)arg1)->normal(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_desktop(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + long result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_desktop",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (long)((ob::OBClient const *)arg1)->desktop(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_title(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + std::string *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_title",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + { + std::string const &_result_ref = ((ob::OBClient const *)arg1)->title(); + result = (std::string *) &_result_ref; + } + + { + resultobj = PyString_FromString(result->c_str()); + } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_iconTitle(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + std::string *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconTitle",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + { + std::string const &_result_ref = ((ob::OBClient const *)arg1)->iconTitle(); + result = (std::string *) &_result_ref; + } + + { + resultobj = PyString_FromString(result->c_str()); + } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_appName(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + std::string *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appName",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + { + std::string const &_result_ref = ((ob::OBClient const *)arg1)->appName(); + result = (std::string *) &_result_ref; + } + + { + resultobj = PyString_FromString(result->c_str()); + } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_appClass(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + std::string *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appClass",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + { + std::string const &_result_ref = ((ob::OBClient const *)arg1)->appClass(); + result = (std::string *) &_result_ref; + } + + { + resultobj = PyString_FromString(result->c_str()); + } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_role(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + std::string *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_role",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + { + std::string const &_result_ref = ((ob::OBClient const *)arg1)->role(); + result = (std::string *) &_result_ref; + } + + { + resultobj = PyString_FromString(result->c_str()); + } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_canFocus(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + bool result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_canFocus",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)((ob::OBClient const *)arg1)->canFocus(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_urgent(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + bool result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_urgent",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)((ob::OBClient const *)arg1)->urgent(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_focusNotify(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + bool result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focusNotify",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)((ob::OBClient const *)arg1)->focusNotify(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_shaped(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + bool result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaped",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)((ob::OBClient const *)arg1)->shaped(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_gravity(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + int result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_gravity",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int)((ob::OBClient const *)arg1)->gravity(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_positionRequested(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + bool result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_positionRequested",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)((ob::OBClient const *)arg1)->positionRequested(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_decorations(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + ob::OBClient::DecorationFlags result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_decorations",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (ob::OBClient::DecorationFlags)((ob::OBClient const *)arg1)->decorations(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_funtions(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + ob::OBClient::FunctionFlags result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_funtions",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (ob::OBClient::FunctionFlags)((ob::OBClient const *)arg1)->funtions(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_OBClient_transientFor(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + ob::OBClient *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_transientFor",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (ob::OBClient *)((ob::OBClient const *)arg1)->transientFor(); - Py_INCREF(Py_None); resultobj = Py_None; + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0); return resultobj; fail: return NULL; } -static PyObject *_wrap_Openbox_restart(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_modal(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; - std::string const &arg2_defvalue = "" ; - std::string *arg2 = (std::string *) &arg2_defvalue ; - std::string temp2 ; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + bool result; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O|O:Openbox_restart",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (obj1) { - { - if (PyString_Check(obj1)) { - temp2 = std::string(PyString_AsString(obj1)); - arg2 = &temp2; - }else { - SWIG_exception(SWIG_TypeError, "string expected"); - } - } - } - (arg1)->restart((std::string const &)*arg2); + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_modal",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)((ob::OBClient const *)arg1)->modal(); - Py_INCREF(Py_None); resultobj = Py_None; + resultobj = PyInt_FromLong((long)result); return resultobj; fail: return NULL; } -static PyObject *_wrap_Openbox_execute(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_shaded(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::Openbox *arg1 = (ob::Openbox *) 0 ; - int arg2 ; - std::string *arg3 = 0 ; - std::string temp3 ; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + bool result; PyObject * obj0 = 0 ; - PyObject * obj2 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OiO:Openbox_execute",&obj0,&arg2,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - { - if (PyString_Check(obj2)) { - temp3 = std::string(PyString_AsString(obj2)); - arg3 = &temp3; - }else { - SWIG_exception(SWIG_TypeError, "string expected"); - } - } - (arg1)->execute(arg2,(std::string const &)*arg3); + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaded",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)((ob::OBClient const *)arg1)->shaded(); - Py_INCREF(Py_None); resultobj = Py_None; + resultobj = PyInt_FromLong((long)result); return resultobj; fail: return NULL; } -static PyObject * Openbox_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_ob__Openbox, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_OBScreen_client(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_iconic(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; - int arg2 ; - ob::OBClient *result; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + bool result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"Oi:OBScreen_client",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (ob::OBClient *)ob_OBScreen_client(arg1,arg2); + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconic",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)((ob::OBClient const *)arg1)->iconic(); - resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0); + resultobj = PyInt_FromLong((long)result); return resultobj; fail: return NULL; } -static PyObject *_wrap_OBScreen_clientCount(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_maxVert(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; - int result; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + bool result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_clientCount",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (int)ob_OBScreen_clientCount((ob::OBScreen const *)arg1); + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxVert",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)((ob::OBClient const *)arg1)->maxVert(); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -1409,15 +6498,15 @@ static PyObject *_wrap_OBScreen_clientCount(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBScreen_number(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_maxHorz(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; - int result; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + bool result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_number",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (int)((ob::OBScreen const *)arg1)->number(); + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxHorz",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)((ob::OBClient const *)arg1)->maxHorz(); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -1426,15 +6515,15 @@ static PyObject *_wrap_OBScreen_number(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBScreen_managed(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_layer(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; - bool result; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + int result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_managed",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (bool)((ob::OBScreen const *)arg1)->managed(); + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_layer",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int)((ob::OBClient const *)arg1)->layer(); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -1443,33 +6532,36 @@ static PyObject *_wrap_OBScreen_managed(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBScreen_imageControl(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_toggleClientBorder(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; - otk::BImageControl *result; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + bool arg2 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_imageControl",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (otk::BImageControl *)(arg1)->imageControl(); + if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_toggleClientBorder",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (bool) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + (arg1)->toggleClientBorder(arg2); - resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 0); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_OBScreen_area(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_area(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; otk::Rect *result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_area",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_area",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { - otk::Rect const &_result_ref = ((ob::OBScreen const *)arg1)->area(); + otk::Rect const &_result_ref = ((ob::OBClient const *)arg1)->area(); result = (otk::Rect *) &_result_ref; } @@ -1480,66 +6572,74 @@ static PyObject *_wrap_OBScreen_area(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBScreen_style(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_strut(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; - otk::Style *result; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + otk::Strut *result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_style",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (otk::Style *)((ob::OBScreen const *)arg1)->style(); + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_strut",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + { + otk::Strut const &_result_ref = ((ob::OBClient const *)arg1)->strut(); + result = (otk::Strut *) &_result_ref; + } - resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0); + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 0); return resultobj; fail: return NULL; } -static PyObject *_wrap_OBScreen_focuswindow(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_move(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; - Window result; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + int arg2 ; + int arg3 ; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_focuswindow",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (Window)((ob::OBScreen const *)arg1)->focuswindow(); + if(!PyArg_ParseTuple(args,(char *)"Oii:OBClient_move",&obj0,&arg2,&arg3)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->move(arg2,arg3); - resultobj = PyInt_FromLong((long)result); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_OBScreen_desktop(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_resize(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; - long result; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int arg5 = (int) INT_MIN ; + int arg6 = (int) INT_MIN ; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_desktop",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (long)((ob::OBScreen const *)arg1)->desktop(); + if(!PyArg_ParseTuple(args,(char *)"Oiii|ii:OBClient_resize",&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->resize((ob::OBClient::Corner )arg2,arg3,arg4,arg5,arg6); - resultobj = PyInt_FromLong((long)result); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_OBScreen_numDesktops(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_focus(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; - long result; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + bool result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_numDesktops",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (long)((ob::OBScreen const *)arg1)->numDesktops(); + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focus",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)((ob::OBClient const *)arg1)->focus(); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -1548,14 +6648,14 @@ static PyObject *_wrap_OBScreen_numDesktops(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBScreen_updateStrut(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_unfocus(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_updateStrut",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - (arg1)->updateStrut(); + if(!PyArg_ParseTuple(args,(char *)"O:OBClient_unfocus",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + ((ob::OBClient const *)arg1)->unfocus(); Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -1564,14 +6664,20 @@ static PyObject *_wrap_OBScreen_updateStrut(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBScreen_manageExisting(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_focusHandler(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + XFocusChangeEvent *arg2 = 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_manageExisting",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - (arg1)->manageExisting(); + if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_focusHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->focusHandler((XFocusChangeEvent const &)*arg2); Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -1580,18 +6686,20 @@ static PyObject *_wrap_OBScreen_manageExisting(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBScreen_manageWindow(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_unfocusHandler(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; - Window arg2 ; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + XFocusChangeEvent *arg2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_manageWindow",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (Window) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - (arg1)->manageWindow(arg2); + if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unfocusHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2); Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -1600,17 +6708,20 @@ static PyObject *_wrap_OBScreen_manageWindow(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBScreen_unmanageWindow(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_propertyHandler(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; - ob::OBClient *arg2 = (ob::OBClient *) 0 ; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + XPropertyEvent *arg2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_unmanageWindow",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - (arg1)->unmanageWindow(arg2); + if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_propertyHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->propertyHandler((XPropertyEvent const &)*arg2); Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -1619,21 +6730,20 @@ static PyObject *_wrap_OBScreen_unmanageWindow(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBScreen_restack(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_clientMessageHandler(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; - bool arg2 ; - ob::OBClient *arg3 = (ob::OBClient *) 0 ; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + XClientMessageEvent *arg2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OOO:OBScreen_restack",&obj0,&obj1,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (bool) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - (arg1)->restack(arg2,arg3); + if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_clientMessageHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,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; @@ -1642,26 +6752,20 @@ static PyObject *_wrap_OBScreen_restack(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBScreen_setDesktopName(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_configureRequestHandler(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; - long arg2 ; - std::string *arg3 = 0 ; - std::string temp3 ; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + XConfigureRequestEvent *arg2 = 0 ; PyObject * obj0 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OlO:OBScreen_setDesktopName",&obj0,&arg2,&obj2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - { - if (PyString_Check(obj2)) { - temp3 = std::string(PyString_AsString(obj2)); - arg3 = &temp3; - }else { - SWIG_exception(SWIG_TypeError, "string expected"); - } + if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_configureRequestHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; } - (arg1)->setDesktopName(arg2,(std::string const &)*arg3); + (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2); Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -1670,20 +6774,20 @@ static PyObject *_wrap_OBScreen_setDesktopName(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBScreen_propertyHandler(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_unmapHandler(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; - XPropertyEvent *arg2 = 0 ; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + XUnmapEvent *arg2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_propertyHandler",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unmapHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if (arg2 == NULL) { PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; } - (arg1)->propertyHandler((XPropertyEvent const &)*arg2); + (arg1)->unmapHandler((XUnmapEvent const &)*arg2); Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -1692,20 +6796,20 @@ static PyObject *_wrap_OBScreen_propertyHandler(PyObject *self, PyObject *args) } -static PyObject *_wrap_OBScreen_clientMessageHandler(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_destroyHandler(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; - XClientMessageEvent *arg2 = 0 ; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + XDestroyWindowEvent *arg2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_clientMessageHandler",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_destroyHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if (arg2 == NULL) { PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; } - (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2); + (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2); Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -1714,20 +6818,20 @@ static PyObject *_wrap_OBScreen_clientMessageHandler(PyObject *self, PyObject *a } -static PyObject *_wrap_OBScreen_mapRequestHandler(PyObject *self, PyObject *args) { +static PyObject *_wrap_OBClient_reparentHandler(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBScreen *arg1 = (ob::OBScreen *) 0 ; - XMapRequestEvent *arg2 = 0 ; + ob::OBClient *arg1 = (ob::OBClient *) 0 ; + XReparentEvent *arg2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_mapRequestHandler",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_reparentHandler",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if (arg2 == NULL) { PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; } - (arg1)->mapRequestHandler((XMapRequestEvent const &)*arg2); + (arg1)->reparentHandler((XReparentEvent const &)*arg2); Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -1736,25 +6840,22 @@ static PyObject *_wrap_OBScreen_mapRequestHandler(PyObject *self, PyObject *args } -static PyObject * OBScreen_swigregister(PyObject *self, PyObject *args) { +static PyObject * OBClient_swigregister(PyObject *self, PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_ob__OBScreen, obj); + SWIG_TypeClientData(SWIGTYPE_p_ob__OBClient, obj); Py_INCREF(obj); return Py_BuildValue((char *)""); } -static PyObject *_wrap_MwmHints_flags_set(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_screen_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::MwmHints *arg1 = (ob::MwmHints *) 0 ; - unsigned long arg2 ; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int arg2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_flags_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned long) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->flags = arg2; + if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_screen_set",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1) (arg1)->screen = arg2; Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -1763,15 +6864,15 @@ static PyObject *_wrap_MwmHints_flags_set(PyObject *self, PyObject *args) { } -static PyObject *_wrap_MwmHints_flags_get(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_screen_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::MwmHints *arg1 = (ob::MwmHints *) 0 ; - unsigned long result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_flags_get",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (unsigned long) ((arg1)->flags); + if(!PyArg_ParseTuple(args,(char *)"O:MouseData_screen_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int) ((arg1)->screen); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -1780,18 +6881,17 @@ static PyObject *_wrap_MwmHints_flags_get(PyObject *self, PyObject *args) { } -static PyObject *_wrap_MwmHints_functions_set(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_client_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::MwmHints *arg1 = (ob::MwmHints *) 0 ; - unsigned long arg2 ; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + ob::OBClient *arg2 = (ob::OBClient *) 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_functions_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned long) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->functions = arg2; + if(!PyArg_ParseTuple(args,(char *)"OO:MouseData_client_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; + if (arg1) (arg1)->client = arg2; Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -1800,35 +6900,35 @@ static PyObject *_wrap_MwmHints_functions_set(PyObject *self, PyObject *args) { } -static PyObject *_wrap_MwmHints_functions_get(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_client_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::MwmHints *arg1 = (ob::MwmHints *) 0 ; - unsigned long result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + ob::OBClient *result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_functions_get",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (unsigned long) ((arg1)->functions); + if(!PyArg_ParseTuple(args,(char *)"O:MouseData_client_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (ob::OBClient *) ((arg1)->client); - resultobj = PyInt_FromLong((long)result); + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0); return resultobj; fail: return NULL; } -static PyObject *_wrap_MwmHints_decorations_set(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_time_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::MwmHints *arg1 = (ob::MwmHints *) 0 ; - unsigned long arg2 ; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + Time arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_decorations_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned long) PyInt_AsLong(obj1); + if(!PyArg_ParseTuple(args,(char *)"OO:MouseData_time_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Time) PyInt_AsLong(obj1); if (PyErr_Occurred()) SWIG_fail; - if (arg1) (arg1)->decorations = arg2; + if (arg1) (arg1)->time = arg2; Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -1837,15 +6937,15 @@ static PyObject *_wrap_MwmHints_decorations_set(PyObject *self, PyObject *args) } -static PyObject *_wrap_MwmHints_decorations_get(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_time_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::MwmHints *arg1 = (ob::MwmHints *) 0 ; - unsigned long result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + Time result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_decorations_get",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (unsigned long) ((arg1)->decorations); + if(!PyArg_ParseTuple(args,(char *)"O:MouseData_time_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (Time) ((arg1)->time); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -1854,24 +6954,18 @@ static PyObject *_wrap_MwmHints_decorations_get(PyObject *self, PyObject *args) } -static PyObject * MwmHints_swigregister(PyObject *self, PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_ob__MwmHints, obj); - Py_INCREF(obj); - return Py_BuildValue((char *)""); -} -static PyObject *_wrap_OBClient_frame_set(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_state_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - ob::OBFrame *arg2 = (ob::OBFrame *) 0 ; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + unsigned int arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_frame_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBFrame,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; - if (arg1) (arg1)->frame = arg2; + if(!PyArg_ParseTuple(args,(char *)"OO:MouseData_state_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (unsigned int) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->state = arg2; Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -1880,32 +6974,35 @@ static PyObject *_wrap_OBClient_frame_set(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBClient_frame_get(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_state_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - ob::OBFrame *result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + unsigned int result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_frame_get",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (ob::OBFrame *) ((arg1)->frame); + if(!PyArg_ParseTuple(args,(char *)"O:MouseData_state_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (unsigned int) ((arg1)->state); - resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBFrame, 0); + resultobj = PyInt_FromLong((long)result); return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_ignore_unmaps_set(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_button_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - int arg2 ; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + unsigned int arg2 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"Oi:OBClient_ignore_unmaps_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (arg1)->ignore_unmaps = arg2; + if(!PyArg_ParseTuple(args,(char *)"OO:MouseData_button_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (unsigned int) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->button = arg2; Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -1914,32 +7011,15 @@ static PyObject *_wrap_OBClient_ignore_unmaps_set(PyObject *self, PyObject *args } -static PyObject *_wrap_OBClient_ignore_unmaps_get(PyObject *self, PyObject *args) { - PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - int result; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_ignore_unmaps_get",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (int) ((arg1)->ignore_unmaps); - - resultobj = PyInt_FromLong((long)result); - return resultobj; - fail: - return NULL; -} - - -static PyObject *_wrap_OBClient_screen(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_button_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - int result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + unsigned int result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_screen",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (int)((ob::OBClient const *)arg1)->screen(); + if(!PyArg_ParseTuple(args,(char *)"O:MouseData_button_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (unsigned int) ((arg1)->button); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -1948,32 +7028,32 @@ static PyObject *_wrap_OBClient_screen(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBClient_window(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_context_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - Window result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int arg2 ; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_window",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (Window)((ob::OBClient const *)arg1)->window(); + if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_context_set",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1) (arg1)->context = (ob::MouseContext )arg2; - resultobj = PyInt_FromLong((long)result); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_type(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_context_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; int result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_type",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (int)((ob::OBClient const *)arg1)->type(); + if(!PyArg_ParseTuple(args,(char *)"O:MouseData_context_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int) ((arg1)->context); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -1982,32 +7062,32 @@ static PyObject *_wrap_OBClient_type(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBClient_normal(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_action_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - bool result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int arg2 ; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_normal",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (bool)((ob::OBClient const *)arg1)->normal(); + if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_action_set",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1) (arg1)->action = (ob::MouseAction )arg2; - resultobj = PyInt_FromLong((long)result); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_desktop(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_action_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - long result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_desktop",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (long)((ob::OBClient const *)arg1)->desktop(); + if(!PyArg_ParseTuple(args,(char *)"O:MouseData_action_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int) ((arg1)->action); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -2016,125 +7096,100 @@ static PyObject *_wrap_OBClient_desktop(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBClient_title(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_xroot_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - std::string *result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int arg2 ; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_title",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - { - std::string const &_result_ref = ((ob::OBClient const *)arg1)->title(); - result = (std::string *) &_result_ref; - } + if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_xroot_set",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1) (arg1)->xroot = arg2; - { - resultobj = PyString_FromString(result->c_str()); - } + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } - -static PyObject *_wrap_OBClient_iconTitle(PyObject *self, PyObject *args) { - PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - std::string *result; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconTitle",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - { - std::string const &_result_ref = ((ob::OBClient const *)arg1)->iconTitle(); - result = (std::string *) &_result_ref; - } + +static PyObject *_wrap_MouseData_xroot_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int result; + PyObject * obj0 = 0 ; - { - resultobj = PyString_FromString(result->c_str()); - } + if(!PyArg_ParseTuple(args,(char *)"O:MouseData_xroot_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int) ((arg1)->xroot); + + resultobj = PyInt_FromLong((long)result); return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_appName(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_yroot_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - std::string *result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int arg2 ; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appName",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - { - std::string const &_result_ref = ((ob::OBClient const *)arg1)->appName(); - result = (std::string *) &_result_ref; - } + if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_yroot_set",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1) (arg1)->yroot = arg2; - { - resultobj = PyString_FromString(result->c_str()); - } + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_appClass(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_yroot_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - std::string *result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appClass",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - { - std::string const &_result_ref = ((ob::OBClient const *)arg1)->appClass(); - result = (std::string *) &_result_ref; - } + if(!PyArg_ParseTuple(args,(char *)"O:MouseData_yroot_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int) ((arg1)->yroot); - { - resultobj = PyString_FromString(result->c_str()); - } + resultobj = PyInt_FromLong((long)result); return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_role(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_pressx_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - std::string *result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int arg2 ; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_role",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - { - std::string const &_result_ref = ((ob::OBClient const *)arg1)->role(); - result = (std::string *) &_result_ref; - } + if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_pressx_set",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1) (arg1)->pressx = arg2; - { - resultobj = PyString_FromString(result->c_str()); - } + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_canFocus(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_pressx_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - bool result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_canFocus",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (bool)((ob::OBClient const *)arg1)->canFocus(); + if(!PyArg_ParseTuple(args,(char *)"O:MouseData_pressx_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int) ((arg1)->pressx); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -2143,32 +7198,32 @@ static PyObject *_wrap_OBClient_canFocus(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBClient_urgent(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_pressy_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - bool result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int arg2 ; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_urgent",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (bool)((ob::OBClient const *)arg1)->urgent(); + if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_pressy_set",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1) (arg1)->pressy = arg2; - resultobj = PyInt_FromLong((long)result); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_focusNotify(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_pressy_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - bool result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focusNotify",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (bool)((ob::OBClient const *)arg1)->focusNotify(); + if(!PyArg_ParseTuple(args,(char *)"O:MouseData_pressy_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int) ((arg1)->pressy); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -2177,32 +7232,32 @@ static PyObject *_wrap_OBClient_focusNotify(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBClient_shaped(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_press_clientx_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - bool result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int arg2 ; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaped",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (bool)((ob::OBClient const *)arg1)->shaped(); + if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_press_clientx_set",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1) (arg1)->press_clientx = arg2; - resultobj = PyInt_FromLong((long)result); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_gravity(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_press_clientx_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; int result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_gravity",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (int)((ob::OBClient const *)arg1)->gravity(); + if(!PyArg_ParseTuple(args,(char *)"O:MouseData_press_clientx_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int) ((arg1)->press_clientx); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -2211,32 +7266,32 @@ static PyObject *_wrap_OBClient_gravity(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBClient_positionRequested(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_press_clienty_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - bool result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int arg2 ; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_positionRequested",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (bool)((ob::OBClient const *)arg1)->positionRequested(); + if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_press_clienty_set",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1) (arg1)->press_clienty = arg2; - resultobj = PyInt_FromLong((long)result); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_decorations(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_press_clienty_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - ob::OBClient::DecorationFlags result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_decorations",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (ob::OBClient::DecorationFlags)((ob::OBClient const *)arg1)->decorations(); + if(!PyArg_ParseTuple(args,(char *)"O:MouseData_press_clienty_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int) ((arg1)->press_clienty); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -2245,66 +7300,66 @@ static PyObject *_wrap_OBClient_decorations(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBClient_funtions(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_press_clientwidth_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - ob::OBClient::FunctionFlags result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int arg2 ; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_funtions",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (ob::OBClient::FunctionFlags)((ob::OBClient const *)arg1)->funtions(); + if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_press_clientwidth_set",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1) (arg1)->press_clientwidth = arg2; - resultobj = PyInt_FromLong((long)result); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_transientFor(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_press_clientwidth_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - ob::OBClient *result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_transientFor",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (ob::OBClient *)((ob::OBClient const *)arg1)->transientFor(); + if(!PyArg_ParseTuple(args,(char *)"O:MouseData_press_clientwidth_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int) ((arg1)->press_clientwidth); - resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0); + resultobj = PyInt_FromLong((long)result); return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_modal(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_press_clientheight_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - bool result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int arg2 ; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_modal",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (bool)((ob::OBClient const *)arg1)->modal(); + if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_press_clientheight_set",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1) (arg1)->press_clientheight = arg2; - resultobj = PyInt_FromLong((long)result); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_shaded(PyObject *self, PyObject *args) { +static PyObject *_wrap_MouseData_press_clientheight_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - bool result; + ob::MouseData *arg1 = (ob::MouseData *) 0 ; + int result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaded",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (bool)((ob::OBClient const *)arg1)->shaded(); + if(!PyArg_ParseTuple(args,(char *)"O:MouseData_press_clientheight_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int) ((arg1)->press_clientheight); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -2313,66 +7368,254 @@ static PyObject *_wrap_OBClient_shaded(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBClient_iconic(PyObject *self, PyObject *args) { +static PyObject *_wrap_new_MouseData__SWIG_0(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - bool result; - PyObject * obj0 = 0 ; + int arg1 ; + ob::OBClient *arg2 = (ob::OBClient *) 0 ; + Time arg3 ; + unsigned int arg4 ; + unsigned int arg5 ; + int arg6 ; + int arg7 ; + int arg8 ; + int arg9 ; + otk::Point *arg10 = 0 ; + otk::Rect *arg11 = 0 ; + ob::MouseData *result; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj9 = 0 ; + PyObject * obj10 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconic",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (bool)((ob::OBClient const *)arg1)->iconic(); + if(!PyArg_ParseTuple(args,(char *)"iOOOOiiiiOO:new_MouseData",&arg1,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7,&arg8,&arg9,&obj9,&obj10)) goto fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg3 = (Time) PyInt_AsLong(obj2); + if (PyErr_Occurred()) SWIG_fail; + arg4 = (unsigned int) PyInt_AsLong(obj3); + if (PyErr_Occurred()) SWIG_fail; + arg5 = (unsigned int) PyInt_AsLong(obj4); + if (PyErr_Occurred()) SWIG_fail; + if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg10 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + if ((SWIG_ConvertPtr(obj10,(void **) &arg11, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg11 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + result = (ob::MouseData *)new ob::MouseData(arg1,arg2,arg3,arg4,arg5,(ob::MouseContext )arg6,(ob::MouseAction )arg7,arg8,arg9,(otk::Point const &)*arg10,(otk::Rect const &)*arg11); - resultobj = PyInt_FromLong((long)result); + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__MouseData, 1); return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_maxVert(PyObject *self, PyObject *args) { +static PyObject *_wrap_new_MouseData__SWIG_1(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - bool result; - PyObject * obj0 = 0 ; + int arg1 ; + ob::OBClient *arg2 = (ob::OBClient *) 0 ; + Time arg3 ; + unsigned int arg4 ; + unsigned int arg5 ; + int arg6 ; + int arg7 ; + ob::MouseData *result; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxVert",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (bool)((ob::OBClient const *)arg1)->maxVert(); + if(!PyArg_ParseTuple(args,(char *)"iOOOOii:new_MouseData",&arg1,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7)) goto fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg3 = (Time) PyInt_AsLong(obj2); + if (PyErr_Occurred()) SWIG_fail; + arg4 = (unsigned int) PyInt_AsLong(obj3); + if (PyErr_Occurred()) SWIG_fail; + arg5 = (unsigned int) PyInt_AsLong(obj4); + if (PyErr_Occurred()) SWIG_fail; + result = (ob::MouseData *)new ob::MouseData(arg1,arg2,arg3,arg4,arg5,(ob::MouseContext )arg6,(ob::MouseAction )arg7); - resultobj = PyInt_FromLong((long)result); + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__MouseData, 1); return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_maxHorz(PyObject *self, PyObject *args) { +static PyObject *_wrap_new_MouseData(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[12]; + int ii; + + argc = PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 11); ii++) { + argv[ii] = PyTuple_GetItem(args,ii); + } + if (argc == 7) { + int _v; + { + _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0; + } + if (_v) { + { + void *ptr; + if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_ob__OBClient, 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) { + { + _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) { + { + _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0; + } + if (_v) { + return _wrap_new_MouseData__SWIG_1(self,args); + } + } + } + } + } + } + } + } + if (argc == 11) { + int _v; + { + _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0; + } + if (_v) { + { + void *ptr; + if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_ob__OBClient, 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) { + { + _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) { + { + _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0; + } + if (_v) { + { + _v = (PyInt_Check(argv[7]) || PyLong_Check(argv[7])) ? 1 : 0; + } + if (_v) { + { + _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0; + } + if (_v) { + { + void *ptr; + if (SWIG_ConvertPtr(argv[9], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) { + _v = 0; + PyErr_Clear(); + }else { + _v = 1; + } + } + if (_v) { + { + void *ptr; + if (SWIG_ConvertPtr(argv[10], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) { + _v = 0; + PyErr_Clear(); + }else { + _v = 1; + } + } + if (_v) { + return _wrap_new_MouseData__SWIG_0(self,args); + } + } + } + } + } + } + } + } + } + } + } + } + + PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_MouseData'"); + return NULL; +} + + +static PyObject * MouseData_swigregister(PyObject *self, PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; + SWIG_TypeClientData(SWIGTYPE_p_ob__MouseData, obj); + Py_INCREF(obj); + return Py_BuildValue((char *)""); +} +static PyObject *_wrap_EventData_screen_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - bool result; + ob::EventData *arg1 = (ob::EventData *) 0 ; + int arg2 ; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxHorz",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (bool)((ob::OBClient const *)arg1)->maxHorz(); + if(!PyArg_ParseTuple(args,(char *)"Oi:EventData_screen_set",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1) (arg1)->screen = arg2; - resultobj = PyInt_FromLong((long)result); + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_layer(PyObject *self, PyObject *args) { +static PyObject *_wrap_EventData_screen_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; + ob::EventData *arg1 = (ob::EventData *) 0 ; int result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_layer",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (int)((ob::OBClient const *)arg1)->layer(); + if(!PyArg_ParseTuple(args,(char *)"O:EventData_screen_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int) ((arg1)->screen); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -2381,18 +7624,17 @@ static PyObject *_wrap_OBClient_layer(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBClient_toggleClientBorder(PyObject *self, PyObject *args) { +static PyObject *_wrap_EventData_client_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - bool arg2 ; + ob::EventData *arg1 = (ob::EventData *) 0 ; + ob::OBClient *arg2 = (ob::OBClient *) 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_toggleClientBorder",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (bool) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - (arg1)->toggleClientBorder(arg2); + if(!PyArg_ParseTuple(args,(char *)"OO:EventData_client_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; + if (arg1) (arg1)->client = arg2; Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -2401,56 +7643,69 @@ static PyObject *_wrap_OBClient_toggleClientBorder(PyObject *self, PyObject *arg } -static PyObject *_wrap_OBClient_area(PyObject *self, PyObject *args) { +static PyObject *_wrap_EventData_client_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - otk::Rect *result; + ob::EventData *arg1 = (ob::EventData *) 0 ; + ob::OBClient *result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_area",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - { - otk::Rect const &_result_ref = ((ob::OBClient const *)arg1)->area(); - result = (otk::Rect *) &_result_ref; - } + if(!PyArg_ParseTuple(args,(char *)"O:EventData_client_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (ob::OBClient *) ((arg1)->client); - resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0); + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0); return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_strut(PyObject *self, PyObject *args) { +static PyObject *_wrap_EventData_state_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - otk::Strut *result; + ob::EventData *arg1 = (ob::EventData *) 0 ; + unsigned int arg2 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_strut",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - { - otk::Strut const &_result_ref = ((ob::OBClient const *)arg1)->strut(); - result = (otk::Strut *) &_result_ref; - } + if(!PyArg_ParseTuple(args,(char *)"OO:EventData_state_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (unsigned int) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->state = arg2; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_EventData_state_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::EventData *arg1 = (ob::EventData *) 0 ; + unsigned int result; + PyObject * obj0 = 0 ; - resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 0); + if(!PyArg_ParseTuple(args,(char *)"O:EventData_state_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (unsigned int) ((arg1)->state); + + resultobj = PyInt_FromLong((long)result); return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_move(PyObject *self, PyObject *args) { +static PyObject *_wrap_EventData_action_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; + ob::EventData *arg1 = (ob::EventData *) 0 ; int arg2 ; - int arg3 ; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"Oii:OBClient_move",&obj0,&arg2,&arg3)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - (arg1)->move(arg2,arg3); + if(!PyArg_ParseTuple(args,(char *)"Oi:EventData_action_set",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1) (arg1)->action = (ob::EventAction )arg2; Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -2459,55 +7714,62 @@ static PyObject *_wrap_OBClient_move(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBClient_resize(PyObject *self, PyObject *args) { +static PyObject *_wrap_EventData_action_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 = (int) INT_MIN ; - int arg6 = (int) INT_MIN ; + ob::EventData *arg1 = (ob::EventData *) 0 ; + int result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"Oiii|ii:OBClient_resize",&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - (arg1)->resize((ob::OBClient::Corner )arg2,arg3,arg4,arg5,arg6); + if(!PyArg_ParseTuple(args,(char *)"O:EventData_action_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int) ((arg1)->action); - Py_INCREF(Py_None); resultobj = Py_None; + resultobj = PyInt_FromLong((long)result); return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_close(PyObject *self, PyObject *args) { +static PyObject *_wrap_new_EventData(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - PyObject * obj0 = 0 ; + int arg1 ; + ob::OBClient *arg2 = (ob::OBClient *) 0 ; + int arg3 ; + unsigned int arg4 ; + ob::EventData *result; + PyObject * obj1 = 0 ; + PyObject * obj3 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_close",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - (arg1)->close(); + if(!PyArg_ParseTuple(args,(char *)"iOiO:new_EventData",&arg1,&obj1,&arg3,&obj3)) goto fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg4 = (unsigned int) PyInt_AsLong(obj3); + if (PyErr_Occurred()) SWIG_fail; + result = (ob::EventData *)new ob::EventData(arg1,arg2,(ob::EventAction )arg3,arg4); - Py_INCREF(Py_None); resultobj = Py_None; + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__EventData, 1); return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_shade(PyObject *self, PyObject *args) { +static PyObject * EventData_swigregister(PyObject *self, PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; + SWIG_TypeClientData(SWIGTYPE_p_ob__EventData, obj); + Py_INCREF(obj); + return Py_BuildValue((char *)""); +} +static PyObject *_wrap_KeyData_screen_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - bool arg2 ; + ob::KeyData *arg1 = (ob::KeyData *) 0 ; + int arg2 ; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_shade",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (bool) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - (arg1)->shade(arg2); + if(!PyArg_ParseTuple(args,(char *)"Oi:KeyData_screen_set",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1) (arg1)->screen = arg2; Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -2516,15 +7778,15 @@ static PyObject *_wrap_OBClient_shade(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBClient_focus(PyObject *self, PyObject *args) { +static PyObject *_wrap_KeyData_screen_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - bool result; + ob::KeyData *arg1 = (ob::KeyData *) 0 ; + int result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focus",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = (bool)(arg1)->focus(); + if(!PyArg_ParseTuple(args,(char *)"O:KeyData_screen_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (int) ((arg1)->screen); resultobj = PyInt_FromLong((long)result); return resultobj; @@ -2533,14 +7795,17 @@ static PyObject *_wrap_OBClient_focus(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBClient_unfocus(PyObject *self, PyObject *args) { +static PyObject *_wrap_KeyData_client_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; + ob::KeyData *arg1 = (ob::KeyData *) 0 ; + ob::OBClient *arg2 = (ob::OBClient *) 0 ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBClient_unfocus",&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - (arg1)->unfocus(); + if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_client_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; + if (arg1) (arg1)->client = arg2; Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -2549,42 +7814,35 @@ static PyObject *_wrap_OBClient_unfocus(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBClient_focusHandler(PyObject *self, PyObject *args) { +static PyObject *_wrap_KeyData_client_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - XFocusChangeEvent *arg2 = 0 ; + ob::KeyData *arg1 = (ob::KeyData *) 0 ; + ob::OBClient *result; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_focusHandler",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; - } - (arg1)->focusHandler((XFocusChangeEvent const &)*arg2); + if(!PyArg_ParseTuple(args,(char *)"O:KeyData_client_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (ob::OBClient *) ((arg1)->client); - Py_INCREF(Py_None); resultobj = Py_None; + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0); return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_unfocusHandler(PyObject *self, PyObject *args) { +static PyObject *_wrap_KeyData_time_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - XFocusChangeEvent *arg2 = 0 ; + ob::KeyData *arg1 = (ob::KeyData *) 0 ; + Time arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unfocusHandler",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; - } - (arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2); + if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_time_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Time) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->time = arg2; Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -2593,42 +7851,35 @@ static PyObject *_wrap_OBClient_unfocusHandler(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBClient_propertyHandler(PyObject *self, PyObject *args) { +static PyObject *_wrap_KeyData_time_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - XPropertyEvent *arg2 = 0 ; + ob::KeyData *arg1 = (ob::KeyData *) 0 ; + Time result; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_propertyHandler",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; - } - (arg1)->propertyHandler((XPropertyEvent const &)*arg2); + if(!PyArg_ParseTuple(args,(char *)"O:KeyData_time_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (Time) ((arg1)->time); - Py_INCREF(Py_None); resultobj = Py_None; + resultobj = PyInt_FromLong((long)result); return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_clientMessageHandler(PyObject *self, PyObject *args) { +static PyObject *_wrap_KeyData_state_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - XClientMessageEvent *arg2 = 0 ; + ob::KeyData *arg1 = (ob::KeyData *) 0 ; + unsigned int arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_clientMessageHandler",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,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); + if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_state_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (unsigned int) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->state = arg2; Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -2637,42 +7888,34 @@ static PyObject *_wrap_OBClient_clientMessageHandler(PyObject *self, PyObject *a } -static PyObject *_wrap_OBClient_configureRequestHandler(PyObject *self, PyObject *args) { +static PyObject *_wrap_KeyData_state_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - XConfigureRequestEvent *arg2 = 0 ; + ob::KeyData *arg1 = (ob::KeyData *) 0 ; + unsigned int result; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_configureRequestHandler",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; - } - (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2); + if(!PyArg_ParseTuple(args,(char *)"O:KeyData_state_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (unsigned int) ((arg1)->state); - Py_INCREF(Py_None); resultobj = Py_None; + resultobj = PyInt_FromLong((long)result); return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_unmapHandler(PyObject *self, PyObject *args) { +static PyObject *_wrap_KeyData_key_set(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - XUnmapEvent *arg2 = 0 ; + ob::KeyData *arg1 = (ob::KeyData *) 0 ; + std::string *arg2 = (std::string *) 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unmapHandler",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; - } - (arg1)->unmapHandler((XUnmapEvent const &)*arg2); + if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_key_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1) (arg1)->key = *arg2; Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -2681,54 +7924,57 @@ static PyObject *_wrap_OBClient_unmapHandler(PyObject *self, PyObject *args) { } -static PyObject *_wrap_OBClient_destroyHandler(PyObject *self, PyObject *args) { +static PyObject *_wrap_KeyData_key_get(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - XDestroyWindowEvent *arg2 = 0 ; + ob::KeyData *arg1 = (ob::KeyData *) 0 ; + std::string *result; PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_destroyHandler",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; - } - (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2); + if(!PyArg_ParseTuple(args,(char *)"O:KeyData_key_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (std::string *)& ((arg1)->key); - Py_INCREF(Py_None); resultobj = Py_None; + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__string, 0); return resultobj; fail: return NULL; } -static PyObject *_wrap_OBClient_reparentHandler(PyObject *self, PyObject *args) { +static PyObject *_wrap_new_KeyData(PyObject *self, PyObject *args) { PyObject *resultobj; - ob::OBClient *arg1 = (ob::OBClient *) 0 ; - XReparentEvent *arg2 = 0 ; - PyObject * obj0 = 0 ; + int arg1 ; + ob::OBClient *arg2 = (ob::OBClient *) 0 ; + Time arg3 ; + unsigned int arg4 ; + unsigned int arg5 ; + ob::KeyData *result; PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_reparentHandler",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg2 == NULL) { - PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; - } - (arg1)->reparentHandler((XReparentEvent const &)*arg2); + if(!PyArg_ParseTuple(args,(char *)"iOOOO:new_KeyData",&arg1,&obj1,&obj2,&obj3,&obj4)) goto fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg3 = (Time) PyInt_AsLong(obj2); + if (PyErr_Occurred()) SWIG_fail; + arg4 = (unsigned int) PyInt_AsLong(obj3); + if (PyErr_Occurred()) SWIG_fail; + arg5 = (unsigned int) PyInt_AsLong(obj4); + if (PyErr_Occurred()) SWIG_fail; + result = (ob::KeyData *)new ob::KeyData(arg1,arg2,arg3,arg4,arg5); - Py_INCREF(Py_None); resultobj = Py_None; + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__KeyData, 1); return resultobj; fail: return NULL; } -static PyObject * OBClient_swigregister(PyObject *self, PyObject *args) { +static PyObject * KeyData_swigregister(PyObject *self, PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; - SWIG_TypeClientData(SWIGTYPE_p_ob__OBClient, obj); + SWIG_TypeClientData(SWIGTYPE_p_ob__KeyData, obj); Py_INCREF(obj); return Py_BuildValue((char *)""); } @@ -2855,6 +8101,146 @@ static PyObject *_wrap_send_client_msg(PyObject *self, PyObject *args) { static PyMethodDef SwigMethods[] = { { (char *)"Openbox_instance", _wrap_Openbox_instance, METH_VARARGS }, + { (char *)"OBDisplay_display", _wrap_OBDisplay_display, METH_VARARGS }, + { (char *)"OBDisplay_initialize", _wrap_OBDisplay_initialize, METH_VARARGS }, + { (char *)"OBDisplay_destroy", _wrap_OBDisplay_destroy, METH_VARARGS }, + { (char *)"OBDisplay_gcCache", _wrap_OBDisplay_gcCache, METH_VARARGS }, + { (char *)"OBDisplay_screenInfo", _wrap_OBDisplay_screenInfo, METH_VARARGS }, + { (char *)"OBDisplay_findScreen", _wrap_OBDisplay_findScreen, METH_VARARGS }, + { (char *)"OBDisplay_xkb", _wrap_OBDisplay_xkb, METH_VARARGS }, + { (char *)"OBDisplay_xkbEventBase", _wrap_OBDisplay_xkbEventBase, METH_VARARGS }, + { (char *)"OBDisplay_shape", _wrap_OBDisplay_shape, METH_VARARGS }, + { (char *)"OBDisplay_shapeEventBase", _wrap_OBDisplay_shapeEventBase, METH_VARARGS }, + { (char *)"OBDisplay_xinerama", _wrap_OBDisplay_xinerama, METH_VARARGS }, + { (char *)"OBDisplay_numLockMask", _wrap_OBDisplay_numLockMask, METH_VARARGS }, + { (char *)"OBDisplay_scrollLockMask", _wrap_OBDisplay_scrollLockMask, METH_VARARGS }, + { (char *)"OBDisplay_grab", _wrap_OBDisplay_grab, METH_VARARGS }, + { (char *)"OBDisplay_ungrab", _wrap_OBDisplay_ungrab, METH_VARARGS }, + { (char *)"OBDisplay_grabButton", _wrap_OBDisplay_grabButton, METH_VARARGS }, + { (char *)"OBDisplay_ungrabButton", _wrap_OBDisplay_ungrabButton, METH_VARARGS }, + { (char *)"OBDisplay_grabKey", _wrap_OBDisplay_grabKey, METH_VARARGS }, + { (char *)"OBDisplay_ungrabKey", _wrap_OBDisplay_ungrabKey, METH_VARARGS }, + { (char *)"OBDisplay_swigregister", OBDisplay_swigregister, METH_VARARGS }, + { (char *)"new_Point", _wrap_new_Point, METH_VARARGS }, + { (char *)"Point_setX", _wrap_Point_setX, METH_VARARGS }, + { (char *)"Point_x", _wrap_Point_x, METH_VARARGS }, + { (char *)"Point_setY", _wrap_Point_setY, METH_VARARGS }, + { (char *)"Point_y", _wrap_Point_y, METH_VARARGS }, + { (char *)"Point_setPoint", _wrap_Point_setPoint, METH_VARARGS }, + { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, + { (char *)"new_OBProperty", _wrap_new_OBProperty, METH_VARARGS }, + { (char *)"delete_OBProperty", _wrap_delete_OBProperty, METH_VARARGS }, + { (char *)"OBProperty_set", _wrap_OBProperty_set, METH_VARARGS }, + { (char *)"OBProperty_get", _wrap_OBProperty_get, METH_VARARGS }, + { (char *)"OBProperty_erase", _wrap_OBProperty_erase, METH_VARARGS }, + { (char *)"OBProperty_atom", _wrap_OBProperty_atom, METH_VARARGS }, + { (char *)"OBProperty_swigregister", OBProperty_swigregister, METH_VARARGS }, + { (char *)"new_Rect", _wrap_new_Rect, METH_VARARGS }, + { (char *)"Rect_left", _wrap_Rect_left, METH_VARARGS }, + { (char *)"Rect_top", _wrap_Rect_top, METH_VARARGS }, + { (char *)"Rect_right", _wrap_Rect_right, METH_VARARGS }, + { (char *)"Rect_bottom", _wrap_Rect_bottom, METH_VARARGS }, + { (char *)"Rect_x", _wrap_Rect_x, METH_VARARGS }, + { (char *)"Rect_y", _wrap_Rect_y, METH_VARARGS }, + { (char *)"Rect_location", _wrap_Rect_location, METH_VARARGS }, + { (char *)"Rect_setX", _wrap_Rect_setX, METH_VARARGS }, + { (char *)"Rect_setY", _wrap_Rect_setY, METH_VARARGS }, + { (char *)"Rect_setPos", _wrap_Rect_setPos, METH_VARARGS }, + { (char *)"Rect_width", _wrap_Rect_width, METH_VARARGS }, + { (char *)"Rect_height", _wrap_Rect_height, METH_VARARGS }, + { (char *)"Rect_size", _wrap_Rect_size, METH_VARARGS }, + { (char *)"Rect_setWidth", _wrap_Rect_setWidth, METH_VARARGS }, + { (char *)"Rect_setHeight", _wrap_Rect_setHeight, METH_VARARGS }, + { (char *)"Rect_setSize", _wrap_Rect_setSize, METH_VARARGS }, + { (char *)"Rect_setRect", _wrap_Rect_setRect, METH_VARARGS }, + { (char *)"Rect_setCoords", _wrap_Rect_setCoords, METH_VARARGS }, + { (char *)"Rect___eq__", _wrap_Rect___eq__, METH_VARARGS }, + { (char *)"Rect___ne__", _wrap_Rect___ne__, METH_VARARGS }, + { (char *)"Rect___or__", _wrap_Rect___or__, METH_VARARGS }, + { (char *)"Rect___and__", _wrap_Rect___and__, METH_VARARGS }, + { (char *)"Rect___ior__", _wrap_Rect___ior__, METH_VARARGS }, + { (char *)"Rect___iand__", _wrap_Rect___iand__, METH_VARARGS }, + { (char *)"Rect_valid", _wrap_Rect_valid, METH_VARARGS }, + { (char *)"Rect_intersects", _wrap_Rect_intersects, METH_VARARGS }, + { (char *)"Rect_contains", _wrap_Rect_contains, METH_VARARGS }, + { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, + { (char *)"new_ScreenInfo", _wrap_new_ScreenInfo, METH_VARARGS }, + { (char *)"ScreenInfo_visual", _wrap_ScreenInfo_visual, METH_VARARGS }, + { (char *)"ScreenInfo_rootWindow", _wrap_ScreenInfo_rootWindow, METH_VARARGS }, + { (char *)"ScreenInfo_colormap", _wrap_ScreenInfo_colormap, METH_VARARGS }, + { (char *)"ScreenInfo_depth", _wrap_ScreenInfo_depth, METH_VARARGS }, + { (char *)"ScreenInfo_screen", _wrap_ScreenInfo_screen, METH_VARARGS }, + { (char *)"ScreenInfo_rect", _wrap_ScreenInfo_rect, METH_VARARGS }, + { (char *)"ScreenInfo_width", _wrap_ScreenInfo_width, METH_VARARGS }, + { (char *)"ScreenInfo_height", _wrap_ScreenInfo_height, METH_VARARGS }, + { (char *)"ScreenInfo_displayString", _wrap_ScreenInfo_displayString, METH_VARARGS }, + { (char *)"ScreenInfo_swigregister", ScreenInfo_swigregister, METH_VARARGS }, + { (char *)"Strut_top_set", _wrap_Strut_top_set, METH_VARARGS }, + { (char *)"Strut_top_get", _wrap_Strut_top_get, METH_VARARGS }, + { (char *)"Strut_bottom_set", _wrap_Strut_bottom_set, METH_VARARGS }, + { (char *)"Strut_bottom_get", _wrap_Strut_bottom_get, METH_VARARGS }, + { (char *)"Strut_left_set", _wrap_Strut_left_set, METH_VARARGS }, + { (char *)"Strut_left_get", _wrap_Strut_left_get, METH_VARARGS }, + { (char *)"Strut_right_set", _wrap_Strut_right_set, METH_VARARGS }, + { (char *)"Strut_right_get", _wrap_Strut_right_get, METH_VARARGS }, + { (char *)"new_Strut", _wrap_new_Strut, METH_VARARGS }, + { (char *)"Strut_swigregister", Strut_swigregister, METH_VARARGS }, + { (char *)"expandTilde", _wrap_expandTilde, METH_VARARGS }, + { (char *)"bexec", _wrap_bexec, METH_VARARGS }, + { (char *)"textPropertyToString", _wrap_textPropertyToString, METH_VARARGS }, + { (char *)"itostring_unsigned_long", _wrap_itostring_unsigned_long, METH_VARARGS }, + { (char *)"itostring_long", _wrap_itostring_long, METH_VARARGS }, + { (char *)"itostring_unsigned", _wrap_itostring_unsigned, METH_VARARGS }, + { (char *)"itostring", _wrap_itostring, METH_VARARGS }, + { (char *)"basename", _wrap_basename, METH_VARARGS }, + { (char *)"OtkEventHandler_handle", _wrap_OtkEventHandler_handle, METH_VARARGS }, + { (char *)"OtkEventHandler_keyPressHandler", _wrap_OtkEventHandler_keyPressHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_keyReleaseHandler", _wrap_OtkEventHandler_keyReleaseHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_buttonPressHandler", _wrap_OtkEventHandler_buttonPressHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_buttonReleaseHandler", _wrap_OtkEventHandler_buttonReleaseHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_motionHandler", _wrap_OtkEventHandler_motionHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_enterHandler", _wrap_OtkEventHandler_enterHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_leaveHandler", _wrap_OtkEventHandler_leaveHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_focusHandler", _wrap_OtkEventHandler_focusHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_unfocusHandler", _wrap_OtkEventHandler_unfocusHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_exposeHandler", _wrap_OtkEventHandler_exposeHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_graphicsExposeHandler", _wrap_OtkEventHandler_graphicsExposeHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_noExposeEventHandler", _wrap_OtkEventHandler_noExposeEventHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_circulateRequestHandler", _wrap_OtkEventHandler_circulateRequestHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_configureRequestHandler", _wrap_OtkEventHandler_configureRequestHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_mapRequestHandler", _wrap_OtkEventHandler_mapRequestHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_resizeRequestHandler", _wrap_OtkEventHandler_resizeRequestHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_circulateHandler", _wrap_OtkEventHandler_circulateHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_configureHandler", _wrap_OtkEventHandler_configureHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_createHandler", _wrap_OtkEventHandler_createHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_destroyHandler", _wrap_OtkEventHandler_destroyHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_gravityHandler", _wrap_OtkEventHandler_gravityHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_mapHandler", _wrap_OtkEventHandler_mapHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_mappingHandler", _wrap_OtkEventHandler_mappingHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_reparentHandler", _wrap_OtkEventHandler_reparentHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_unmapHandler", _wrap_OtkEventHandler_unmapHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_visibilityHandler", _wrap_OtkEventHandler_visibilityHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_colorMapHandler", _wrap_OtkEventHandler_colorMapHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_propertyHandler", _wrap_OtkEventHandler_propertyHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_selectionClearHandler", _wrap_OtkEventHandler_selectionClearHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_selectionHandler", _wrap_OtkEventHandler_selectionHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_selectionRequestHandler", _wrap_OtkEventHandler_selectionRequestHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_clientMessageHandler", _wrap_OtkEventHandler_clientMessageHandler, METH_VARARGS }, + { (char *)"delete_OtkEventHandler", _wrap_delete_OtkEventHandler, METH_VARARGS }, + { (char *)"OtkEventHandler_swigregister", OtkEventHandler_swigregister, METH_VARARGS }, + { (char *)"new_OtkEventDispatcher", _wrap_new_OtkEventDispatcher, METH_VARARGS }, + { (char *)"delete_OtkEventDispatcher", _wrap_delete_OtkEventDispatcher, METH_VARARGS }, + { (char *)"OtkEventDispatcher_clearAllHandlers", _wrap_OtkEventDispatcher_clearAllHandlers, METH_VARARGS }, + { (char *)"OtkEventDispatcher_registerHandler", _wrap_OtkEventDispatcher_registerHandler, METH_VARARGS }, + { (char *)"OtkEventDispatcher_clearHandler", _wrap_OtkEventDispatcher_clearHandler, METH_VARARGS }, + { (char *)"OtkEventDispatcher_dispatchEvents", _wrap_OtkEventDispatcher_dispatchEvents, METH_VARARGS }, + { (char *)"OtkEventDispatcher_setFallbackHandler", _wrap_OtkEventDispatcher_setFallbackHandler, METH_VARARGS }, + { (char *)"OtkEventDispatcher_getFallbackHandler", _wrap_OtkEventDispatcher_getFallbackHandler, METH_VARARGS }, + { (char *)"OtkEventDispatcher_setMasterHandler", _wrap_OtkEventDispatcher_setMasterHandler, METH_VARARGS }, + { (char *)"OtkEventDispatcher_getMasterHandler", _wrap_OtkEventDispatcher_getMasterHandler, METH_VARARGS }, + { (char *)"OtkEventDispatcher_findHandler", _wrap_OtkEventDispatcher_findHandler, METH_VARARGS }, + { (char *)"OtkEventDispatcher_lastTime", _wrap_OtkEventDispatcher_lastTime, METH_VARARGS }, + { (char *)"OtkEventDispatcher_swigregister", OtkEventDispatcher_swigregister, METH_VARARGS }, { (char *)"Cursors_session_set", _wrap_Cursors_session_set, METH_VARARGS }, { (char *)"Cursors_session_get", _wrap_Cursors_session_get, METH_VARARGS }, { (char *)"Cursors_move_set", _wrap_Cursors_move_set, METH_VARARGS }, @@ -2947,8 +8333,6 @@ static PyMethodDef SwigMethods[] = { { (char *)"OBClient_strut", _wrap_OBClient_strut, METH_VARARGS }, { (char *)"OBClient_move", _wrap_OBClient_move, METH_VARARGS }, { (char *)"OBClient_resize", _wrap_OBClient_resize, METH_VARARGS }, - { (char *)"OBClient_close", _wrap_OBClient_close, METH_VARARGS }, - { (char *)"OBClient_shade", _wrap_OBClient_shade, METH_VARARGS }, { (char *)"OBClient_focus", _wrap_OBClient_focus, METH_VARARGS }, { (char *)"OBClient_unfocus", _wrap_OBClient_unfocus, METH_VARARGS }, { (char *)"OBClient_focusHandler", _wrap_OBClient_focusHandler, METH_VARARGS }, @@ -2960,6 +8344,60 @@ static PyMethodDef SwigMethods[] = { { (char *)"OBClient_destroyHandler", _wrap_OBClient_destroyHandler, METH_VARARGS }, { (char *)"OBClient_reparentHandler", _wrap_OBClient_reparentHandler, METH_VARARGS }, { (char *)"OBClient_swigregister", OBClient_swigregister, METH_VARARGS }, + { (char *)"MouseData_screen_set", _wrap_MouseData_screen_set, METH_VARARGS }, + { (char *)"MouseData_screen_get", _wrap_MouseData_screen_get, METH_VARARGS }, + { (char *)"MouseData_client_set", _wrap_MouseData_client_set, METH_VARARGS }, + { (char *)"MouseData_client_get", _wrap_MouseData_client_get, METH_VARARGS }, + { (char *)"MouseData_time_set", _wrap_MouseData_time_set, METH_VARARGS }, + { (char *)"MouseData_time_get", _wrap_MouseData_time_get, METH_VARARGS }, + { (char *)"MouseData_state_set", _wrap_MouseData_state_set, METH_VARARGS }, + { (char *)"MouseData_state_get", _wrap_MouseData_state_get, METH_VARARGS }, + { (char *)"MouseData_button_set", _wrap_MouseData_button_set, METH_VARARGS }, + { (char *)"MouseData_button_get", _wrap_MouseData_button_get, METH_VARARGS }, + { (char *)"MouseData_context_set", _wrap_MouseData_context_set, METH_VARARGS }, + { (char *)"MouseData_context_get", _wrap_MouseData_context_get, METH_VARARGS }, + { (char *)"MouseData_action_set", _wrap_MouseData_action_set, METH_VARARGS }, + { (char *)"MouseData_action_get", _wrap_MouseData_action_get, METH_VARARGS }, + { (char *)"MouseData_xroot_set", _wrap_MouseData_xroot_set, METH_VARARGS }, + { (char *)"MouseData_xroot_get", _wrap_MouseData_xroot_get, METH_VARARGS }, + { (char *)"MouseData_yroot_set", _wrap_MouseData_yroot_set, METH_VARARGS }, + { (char *)"MouseData_yroot_get", _wrap_MouseData_yroot_get, METH_VARARGS }, + { (char *)"MouseData_pressx_set", _wrap_MouseData_pressx_set, METH_VARARGS }, + { (char *)"MouseData_pressx_get", _wrap_MouseData_pressx_get, METH_VARARGS }, + { (char *)"MouseData_pressy_set", _wrap_MouseData_pressy_set, METH_VARARGS }, + { (char *)"MouseData_pressy_get", _wrap_MouseData_pressy_get, METH_VARARGS }, + { (char *)"MouseData_press_clientx_set", _wrap_MouseData_press_clientx_set, METH_VARARGS }, + { (char *)"MouseData_press_clientx_get", _wrap_MouseData_press_clientx_get, METH_VARARGS }, + { (char *)"MouseData_press_clienty_set", _wrap_MouseData_press_clienty_set, METH_VARARGS }, + { (char *)"MouseData_press_clienty_get", _wrap_MouseData_press_clienty_get, METH_VARARGS }, + { (char *)"MouseData_press_clientwidth_set", _wrap_MouseData_press_clientwidth_set, METH_VARARGS }, + { (char *)"MouseData_press_clientwidth_get", _wrap_MouseData_press_clientwidth_get, METH_VARARGS }, + { (char *)"MouseData_press_clientheight_set", _wrap_MouseData_press_clientheight_set, METH_VARARGS }, + { (char *)"MouseData_press_clientheight_get", _wrap_MouseData_press_clientheight_get, METH_VARARGS }, + { (char *)"new_MouseData", _wrap_new_MouseData, METH_VARARGS }, + { (char *)"MouseData_swigregister", MouseData_swigregister, METH_VARARGS }, + { (char *)"EventData_screen_set", _wrap_EventData_screen_set, METH_VARARGS }, + { (char *)"EventData_screen_get", _wrap_EventData_screen_get, METH_VARARGS }, + { (char *)"EventData_client_set", _wrap_EventData_client_set, METH_VARARGS }, + { (char *)"EventData_client_get", _wrap_EventData_client_get, METH_VARARGS }, + { (char *)"EventData_state_set", _wrap_EventData_state_set, METH_VARARGS }, + { (char *)"EventData_state_get", _wrap_EventData_state_get, METH_VARARGS }, + { (char *)"EventData_action_set", _wrap_EventData_action_set, METH_VARARGS }, + { (char *)"EventData_action_get", _wrap_EventData_action_get, METH_VARARGS }, + { (char *)"new_EventData", _wrap_new_EventData, METH_VARARGS }, + { (char *)"EventData_swigregister", EventData_swigregister, METH_VARARGS }, + { (char *)"KeyData_screen_set", _wrap_KeyData_screen_set, METH_VARARGS }, + { (char *)"KeyData_screen_get", _wrap_KeyData_screen_get, METH_VARARGS }, + { (char *)"KeyData_client_set", _wrap_KeyData_client_set, METH_VARARGS }, + { (char *)"KeyData_client_get", _wrap_KeyData_client_get, METH_VARARGS }, + { (char *)"KeyData_time_set", _wrap_KeyData_time_set, METH_VARARGS }, + { (char *)"KeyData_time_get", _wrap_KeyData_time_get, METH_VARARGS }, + { (char *)"KeyData_state_set", _wrap_KeyData_state_set, METH_VARARGS }, + { (char *)"KeyData_state_get", _wrap_KeyData_state_get, METH_VARARGS }, + { (char *)"KeyData_key_set", _wrap_KeyData_key_set, METH_VARARGS }, + { (char *)"KeyData_key_get", _wrap_KeyData_key_get, METH_VARARGS }, + { (char *)"new_KeyData", _wrap_new_KeyData, METH_VARARGS }, + { (char *)"KeyData_swigregister", KeyData_swigregister, METH_VARARGS }, { (char *)"mbind", _wrap_mbind, METH_VARARGS }, { (char *)"kbind", _wrap_kbind, METH_VARARGS }, { (char *)"ebind", _wrap_ebind, METH_VARARGS }, @@ -2971,6 +8409,12 @@ static PyMethodDef SwigMethods[] = { /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ +static void *_p_ob__OBScreenTo_p_ob__OBWidget(void *x) { + return (void *)((ob::OBWidget *) ((ob::OBScreen *) x)); +} +static void *_p_ob__OBClientTo_p_ob__OBWidget(void *x) { + return (void *)((ob::OBWidget *) ((ob::OBClient *) x)); +} static void *_p_ob__OBActionsTo_p_otk__OtkEventHandler(void *x) { return (void *)((otk::OtkEventHandler *) ((ob::OBActions *) x)); } @@ -2983,69 +8427,135 @@ static void *_p_ob__OBScreenTo_p_otk__OtkEventHandler(void *x) { static void *_p_ob__OBClientTo_p_otk__OtkEventHandler(void *x) { return (void *)((otk::OtkEventHandler *) ((ob::OBClient *) x)); } -static void *_p_ob__OBScreenTo_p_ob__OBWidget(void *x) { - return (void *)((ob::OBWidget *) ((ob::OBScreen *) x)); -} -static void *_p_ob__OBClientTo_p_ob__OBWidget(void *x) { - return (void *)((ob::OBWidget *) ((ob::OBClient *) x)); -} static void *_p_ob__OpenboxTo_p_otk__OtkEventDispatcher(void *x) { return (void *)((otk::OtkEventDispatcher *) ((ob::Openbox *) x)); } -static swig_type_info _swigt__p_otk__OBTimerQueueManager[] = {{"_p_otk__OBTimerQueueManager", 0, "otk::OBTimerQueueManager *", 0},{"_p_otk__OBTimerQueueManager"},{0}}; -static swig_type_info _swigt__p_ob__OBActions[] = {{"_p_ob__OBActions", 0, "ob::OBActions *", 0},{"_p_ob__OBActions"},{0}}; -static swig_type_info _swigt__p_ob__Cursors[] = {{"_p_ob__Cursors", 0, "ob::Cursors *", 0},{"_p_ob__Cursors"},{0}}; static swig_type_info _swigt__p_ob__OBScreen[] = {{"_p_ob__OBScreen", 0, "ob::OBScreen *", 0},{"_p_ob__OBScreen"},{0}}; -static swig_type_info _swigt__p_otk__Style[] = {{"_p_otk__Style", 0, "otk::Style *", 0},{"_p_otk__Style"},{0}}; -static swig_type_info _swigt__p_ob__OBFrame[] = {{"_p_ob__OBFrame", 0, "ob::OBFrame *", 0},{"_p_ob__OBFrame"},{0}}; -static swig_type_info _swigt__p_XReparentEvent[] = {{"_p_XReparentEvent", 0, "XReparentEvent *", 0},{"_p_XReparentEvent"},{0}}; -static swig_type_info _swigt__p_ob__OBClient[] = {{"_p_ob__OBClient", 0, "ob::OBClient *", 0},{"_p_ob__OBClient"},{0}}; -static swig_type_info _swigt__p_ob__Openbox[] = {{"_p_ob__Openbox", 0, "ob::Openbox *", 0},{"_p_ob__Openbox"},{0}}; -static swig_type_info _swigt__p_otk__Strut[] = {{"_p_otk__Strut", 0, "otk::Strut *", 0},{"_p_otk__Strut"},{0}}; +static swig_type_info _swigt__p_otk__Point[] = {{"_p_otk__Point", 0, "otk::Point *", 0},{"_p_otk__Point"},{0}}; +static swig_type_info _swigt__p_XMapEvent[] = {{"_p_XMapEvent", 0, "XMapEvent *", 0},{"_p_XMapEvent"},{0}}; +static swig_type_info _swigt__p_XUnmapEvent[] = {{"_p_XUnmapEvent", 0, "XUnmapEvent *", 0},{"_p_XUnmapEvent"},{0}}; +static swig_type_info _swigt__p_XColormapEvent[] = {{"_p_XColormapEvent", 0, "XColormapEvent *", 0},{"_p_XColormapEvent"},{0}}; +static swig_type_info _swigt__p_XNoExposeEvent[] = {{"_p_XNoExposeEvent", 0, "XNoExposeEvent *", 0},{"_p_XNoExposeEvent"},{0}}; +static swig_type_info _swigt__p_XGraphicsExposeEvent[] = {{"_p_XGraphicsExposeEvent", 0, "XGraphicsExposeEvent *", 0},{"_p_XGraphicsExposeEvent"},{0}}; +static swig_type_info _swigt__p_XExposeEvent[] = {{"_p_XExposeEvent", 0, "XExposeEvent *", 0},{"_p_XExposeEvent"},{0}}; +static swig_type_info _swigt__p_XFocusChangeEvent[] = {{"_p_XFocusChangeEvent", 0, "XFocusChangeEvent *", 0},{"_p_XFocusChangeEvent"},{0}}; +static swig_type_info _swigt__p_XClientMessageEvent[] = {{"_p_XClientMessageEvent", 0, "XClientMessageEvent *", 0},{"_p_XClientMessageEvent"},{0}}; +static swig_type_info _swigt__p_ob__MouseData[] = {{"_p_ob__MouseData", 0, "ob::MouseData *", 0},{"_p_ob__MouseData"},{0}}; +static swig_type_info _swigt__p_XSelectionClearEvent[] = {{"_p_XSelectionClearEvent", 0, "XSelectionClearEvent *", 0},{"_p_XSelectionClearEvent"},{0}}; +static swig_type_info _swigt__p_otk__Rect[] = {{"_p_otk__Rect", 0, "otk::Rect *", 0},{"_p_otk__Rect"},{0}}; +static swig_type_info _swigt__p_Visual[] = {{"_p_Visual", 0, "Visual *", 0},{"_p_Visual"},{0}}; +static swig_type_info _swigt__p_XResizeRequestEvent[] = {{"_p_XResizeRequestEvent", 0, "XResizeRequestEvent *", 0},{"_p_XResizeRequestEvent"},{0}}; static swig_type_info _swigt__p_XMapRequestEvent[] = {{"_p_XMapRequestEvent", 0, "XMapRequestEvent *", 0},{"_p_XMapRequestEvent"},{0}}; static swig_type_info _swigt__p_XConfigureRequestEvent[] = {{"_p_XConfigureRequestEvent", 0, "XConfigureRequestEvent *", 0},{"_p_XConfigureRequestEvent"},{0}}; -static swig_type_info _swigt__p_otk__OtkEventHandler[] = {{"_p_otk__OtkEventHandler", 0, "otk::OtkEventHandler *", 0},{"_p_ob__OBActions", _p_ob__OBActionsTo_p_otk__OtkEventHandler},{"_p_otk__OtkEventHandler"},{"_p_ob__Openbox", _p_ob__OpenboxTo_p_otk__OtkEventHandler},{"_p_ob__OBScreen", _p_ob__OBScreenTo_p_otk__OtkEventHandler},{"_p_ob__OBClient", _p_ob__OBClientTo_p_otk__OtkEventHandler},{0}}; -static swig_type_info _swigt__p_otk__Rect[] = {{"_p_otk__Rect", 0, "otk::Rect *", 0},{"_p_otk__Rect"},{0}}; -static swig_type_info _swigt__p_ob__OBWidget[] = {{"_p_ob__OBWidget", 0, "ob::OBWidget *", 0},{"_p_ob__OBWidget"},{"_p_ob__OBScreen", _p_ob__OBScreenTo_p_ob__OBWidget},{"_p_ob__OBClient", _p_ob__OBClientTo_p_ob__OBWidget},{0}}; -static swig_type_info _swigt__p_XClientMessageEvent[] = {{"_p_XClientMessageEvent", 0, "XClientMessageEvent *", 0},{"_p_XClientMessageEvent"},{0}}; -static swig_type_info _swigt__p_XFocusChangeEvent[] = {{"_p_XFocusChangeEvent", 0, "XFocusChangeEvent *", 0},{"_p_XFocusChangeEvent"},{0}}; -static swig_type_info _swigt__p_otk__OBProperty[] = {{"_p_otk__OBProperty", 0, "otk::OBProperty *", 0},{"_p_otk__OBProperty"},{0}}; -static swig_type_info _swigt__p_otk__OtkEventDispatcher[] = {{"_p_otk__OtkEventDispatcher", 0, "otk::OtkEventDispatcher *", 0},{"_p_otk__OtkEventDispatcher"},{"_p_ob__Openbox", _p_ob__OpenboxTo_p_otk__OtkEventDispatcher},{0}}; +static swig_type_info _swigt__p_XCirculateRequestEvent[] = {{"_p_XCirculateRequestEvent", 0, "XCirculateRequestEvent *", 0},{"_p_XCirculateRequestEvent"},{0}}; +static swig_type_info _swigt__p_XGravityEvent[] = {{"_p_XGravityEvent", 0, "XGravityEvent *", 0},{"_p_XGravityEvent"},{0}}; +static swig_type_info _swigt__p_XVisibilityEvent[] = {{"_p_XVisibilityEvent", 0, "XVisibilityEvent *", 0},{"_p_XVisibilityEvent"},{0}}; static swig_type_info _swigt__p_XPropertyEvent[] = {{"_p_XPropertyEvent", 0, "XPropertyEvent *", 0},{"_p_XPropertyEvent"},{0}}; -static swig_type_info _swigt__p_XDestroyWindowEvent[] = {{"_p_XDestroyWindowEvent", 0, "XDestroyWindowEvent *", 0},{"_p_XDestroyWindowEvent"},{0}}; +static swig_type_info _swigt__p_XSelectionRequestEvent[] = {{"_p_XSelectionRequestEvent", 0, "XSelectionRequestEvent *", 0},{"_p_XSelectionRequestEvent"},{0}}; +static swig_type_info _swigt__p_ob__Cursors[] = {{"_p_ob__Cursors", 0, "ob::Cursors *", 0},{"_p_ob__Cursors"},{0}}; +static swig_type_info _swigt__p_ob__OBFrame[] = {{"_p_ob__OBFrame", 0, "ob::OBFrame *", 0},{"_p_ob__OBFrame"},{0}}; static swig_type_info _swigt__p_otk__BImageControl[] = {{"_p_otk__BImageControl", 0, "otk::BImageControl *", 0},{"_p_otk__BImageControl"},{0}}; -static swig_type_info _swigt__p_PyObject[] = {{"_p_PyObject", 0, "PyObject *", 0},{"_p_PyObject"},{0}}; -static swig_type_info _swigt__p_ob__OBBindings[] = {{"_p_ob__OBBindings", 0, "ob::OBBindings *", 0},{"_p_ob__OBBindings"},{0}}; static swig_type_info _swigt__p_ob__MwmHints[] = {{"_p_ob__MwmHints", 0, "ob::MwmHints *", 0},{"_p_ob__MwmHints"},{0}}; -static swig_type_info _swigt__p_XUnmapEvent[] = {{"_p_XUnmapEvent", 0, "XUnmapEvent *", 0},{"_p_XUnmapEvent"},{0}}; +static swig_type_info _swigt__p_ob__OBWidget[] = {{"_p_ob__OBWidget", 0, "ob::OBWidget *", 0},{"_p_ob__OBWidget"},{"_p_ob__OBScreen", _p_ob__OBScreenTo_p_ob__OBWidget},{"_p_ob__OBClient", _p_ob__OBClientTo_p_ob__OBWidget},{0}}; +static swig_type_info _swigt__p_ob__KeyData[] = {{"_p_ob__KeyData", 0, "ob::KeyData *", 0},{"_p_ob__KeyData"},{0}}; +static swig_type_info _swigt__p_XConfigureEvent[] = {{"_p_XConfigureEvent", 0, "XConfigureEvent *", 0},{"_p_XConfigureEvent"},{0}}; +static swig_type_info _swigt__p_XCirculateEvent[] = {{"_p_XCirculateEvent", 0, "XCirculateEvent *", 0},{"_p_XCirculateEvent"},{0}}; +static swig_type_info _swigt__p_XRectangle[] = {{"_p_XRectangle", 0, "XRectangle *", 0},{"_p_XRectangle"},{0}}; +static swig_type_info _swigt__p_std__string[] = {{"_p_std__string", 0, "std::string *", 0},{"_p_std__string"},{0}}; +static swig_type_info _swigt__p_XCrossingEvent[] = {{"_p_XCrossingEvent", 0, "XCrossingEvent *", 0},{"_p_XCrossingEvent"},{0}}; +static swig_type_info _swigt__p_Display[] = {{"_p_Display", 0, "Display *", 0},{"_p_Display"},{0}}; +static swig_type_info _swigt__p_otk__OBDisplay[] = {{"_p_otk__OBDisplay", 0, "otk::OBDisplay *", 0},{"_p_otk__OBDisplay"},{0}}; +static swig_type_info _swigt__p_XMappingEvent[] = {{"_p_XMappingEvent", 0, "XMappingEvent *", 0},{"_p_XMappingEvent"},{0}}; +static swig_type_info _swigt__p_otk__Style[] = {{"_p_otk__Style", 0, "otk::Style *", 0},{"_p_otk__Style"},{0}}; +static swig_type_info _swigt__p_otk__OtkEventHandler[] = {{"_p_otk__OtkEventHandler", 0, "otk::OtkEventHandler *", 0},{"_p_ob__OBActions", _p_ob__OBActionsTo_p_otk__OtkEventHandler},{"_p_otk__OtkEventHandler"},{"_p_ob__Openbox", _p_ob__OpenboxTo_p_otk__OtkEventHandler},{"_p_ob__OBScreen", _p_ob__OBScreenTo_p_otk__OtkEventHandler},{"_p_ob__OBClient", _p_ob__OBClientTo_p_otk__OtkEventHandler},{0}}; +static swig_type_info _swigt__p_XReparentEvent[] = {{"_p_XReparentEvent", 0, "XReparentEvent *", 0},{"_p_XReparentEvent"},{0}}; +static swig_type_info _swigt__p_otk__OtkEventDispatcher[] = {{"_p_otk__OtkEventDispatcher", 0, "otk::OtkEventDispatcher *", 0},{"_p_otk__OtkEventDispatcher"},{"_p_ob__Openbox", _p_ob__OpenboxTo_p_otk__OtkEventDispatcher},{0}}; +static swig_type_info _swigt__p_otk__BGCCache[] = {{"_p_otk__BGCCache", 0, "otk::BGCCache *", 0},{"_p_otk__BGCCache"},{0}}; +static swig_type_info _swigt__p_ob__OBBindings[] = {{"_p_ob__OBBindings", 0, "ob::OBBindings *", 0},{"_p_ob__OBBindings"},{0}}; +static swig_type_info _swigt__p_ob__Openbox[] = {{"_p_ob__Openbox", 0, "ob::Openbox *", 0},{"_p_ob__Openbox"},{0}}; +static swig_type_info _swigt__p_ob__OBActions[] = {{"_p_ob__OBActions", 0, "ob::OBActions *", 0},{"_p_ob__OBActions"},{0}}; +static swig_type_info _swigt__p_XEvent[] = {{"_p_XEvent", 0, "XEvent *", 0},{"_p_XEvent"},{0}}; +static swig_type_info _swigt__p_XTextProperty[] = {{"_p_XTextProperty", 0, "XTextProperty *", 0},{"_p_XTextProperty"},{0}}; +static swig_type_info _swigt__p_otk__OBProperty[] = {{"_p_otk__OBProperty", 0, "otk::OBProperty *", 0},{"_p_otk__OBProperty"},{0}}; +static swig_type_info _swigt__p_PyObject[] = {{"_p_PyObject", 0, "PyObject *", 0},{"_p_PyObject"},{0}}; +static swig_type_info _swigt__p_otk__ScreenInfo[] = {{"_p_otk__ScreenInfo", 0, "otk::ScreenInfo *", 0},{"_p_otk__ScreenInfo"},{0}}; +static swig_type_info _swigt__p_ob__OBClient[] = {{"_p_ob__OBClient", 0, "ob::OBClient *", 0},{"_p_ob__OBClient"},{0}}; +static swig_type_info _swigt__p_ob__EventData[] = {{"_p_ob__EventData", 0, "ob::EventData *", 0},{"_p_ob__EventData"},{0}}; +static swig_type_info _swigt__p_XCreateWindowEvent[] = {{"_p_XCreateWindowEvent", 0, "XCreateWindowEvent *", 0},{"_p_XCreateWindowEvent"},{0}}; +static swig_type_info _swigt__p_XDestroyWindowEvent[] = {{"_p_XDestroyWindowEvent", 0, "XDestroyWindowEvent *", 0},{"_p_XDestroyWindowEvent"},{0}}; +static swig_type_info _swigt__p_otk__OBProperty__StringVect[] = {{"_p_otk__OBProperty__StringVect", 0, "otk::OBProperty::StringVect *", 0},{"_p_otk__OBProperty__StringVect"},{0}}; +static swig_type_info _swigt__p_XKeyEvent[] = {{"_p_XKeyEvent", 0, "XKeyEvent *", 0},{"_p_XKeyEvent"},{0}}; +static swig_type_info _swigt__p_otk__Strut[] = {{"_p_otk__Strut", 0, "otk::Strut *", 0},{"_p_otk__Strut"},{0}}; +static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *", 0},{"_p_unsigned_long"},{0}}; +static swig_type_info _swigt__p_p_unsigned_long[] = {{"_p_p_unsigned_long", 0, "unsigned long **", 0},{"_p_p_unsigned_long"},{0}}; +static swig_type_info _swigt__p_XMotionEvent[] = {{"_p_XMotionEvent", 0, "XMotionEvent *", 0},{"_p_XMotionEvent"},{0}}; +static swig_type_info _swigt__p_XButtonEvent[] = {{"_p_XButtonEvent", 0, "XButtonEvent *", 0},{"_p_XButtonEvent"},{0}}; +static swig_type_info _swigt__p_XSelectionEvent[] = {{"_p_XSelectionEvent", 0, "XSelectionEvent *", 0},{"_p_XSelectionEvent"},{0}}; +static swig_type_info _swigt__p_otk__OBTimerQueueManager[] = {{"_p_otk__OBTimerQueueManager", 0, "otk::OBTimerQueueManager *", 0},{"_p_otk__OBTimerQueueManager"},{0}}; static swig_type_info *swig_types_initial[] = { -_swigt__p_otk__OBTimerQueueManager, -_swigt__p_ob__OBActions, -_swigt__p_ob__Cursors, _swigt__p_ob__OBScreen, -_swigt__p_otk__Style, -_swigt__p_ob__OBFrame, -_swigt__p_XReparentEvent, -_swigt__p_ob__OBClient, -_swigt__p_ob__Openbox, -_swigt__p_otk__Strut, +_swigt__p_otk__Point, +_swigt__p_XMapEvent, +_swigt__p_XUnmapEvent, +_swigt__p_XColormapEvent, +_swigt__p_XNoExposeEvent, +_swigt__p_XGraphicsExposeEvent, +_swigt__p_XExposeEvent, +_swigt__p_XFocusChangeEvent, +_swigt__p_XClientMessageEvent, +_swigt__p_ob__MouseData, +_swigt__p_XSelectionClearEvent, +_swigt__p_otk__Rect, +_swigt__p_Visual, +_swigt__p_XResizeRequestEvent, _swigt__p_XMapRequestEvent, _swigt__p_XConfigureRequestEvent, -_swigt__p_otk__OtkEventHandler, -_swigt__p_otk__Rect, -_swigt__p_ob__OBWidget, -_swigt__p_XClientMessageEvent, -_swigt__p_XFocusChangeEvent, -_swigt__p_otk__OBProperty, -_swigt__p_otk__OtkEventDispatcher, +_swigt__p_XCirculateRequestEvent, +_swigt__p_XGravityEvent, +_swigt__p_XVisibilityEvent, _swigt__p_XPropertyEvent, -_swigt__p_XDestroyWindowEvent, +_swigt__p_XSelectionRequestEvent, +_swigt__p_ob__Cursors, +_swigt__p_ob__OBFrame, _swigt__p_otk__BImageControl, -_swigt__p_PyObject, -_swigt__p_ob__OBBindings, _swigt__p_ob__MwmHints, -_swigt__p_XUnmapEvent, +_swigt__p_ob__OBWidget, +_swigt__p_ob__KeyData, +_swigt__p_XConfigureEvent, +_swigt__p_XCirculateEvent, +_swigt__p_XRectangle, +_swigt__p_std__string, +_swigt__p_XCrossingEvent, +_swigt__p_Display, +_swigt__p_otk__OBDisplay, +_swigt__p_XMappingEvent, +_swigt__p_otk__Style, +_swigt__p_otk__OtkEventHandler, +_swigt__p_XReparentEvent, +_swigt__p_otk__OtkEventDispatcher, +_swigt__p_otk__BGCCache, +_swigt__p_ob__OBBindings, +_swigt__p_ob__Openbox, +_swigt__p_ob__OBActions, +_swigt__p_XEvent, +_swigt__p_XTextProperty, +_swigt__p_otk__OBProperty, +_swigt__p_PyObject, +_swigt__p_otk__ScreenInfo, +_swigt__p_ob__OBClient, +_swigt__p_ob__EventData, +_swigt__p_XCreateWindowEvent, +_swigt__p_XDestroyWindowEvent, +_swigt__p_otk__OBProperty__StringVect, +_swigt__p_XKeyEvent, +_swigt__p_otk__Strut, +_swigt__p_unsigned_long, +_swigt__p_p_unsigned_long, +_swigt__p_XMotionEvent, +_swigt__p_XButtonEvent, +_swigt__p_XSelectionEvent, +_swigt__p_otk__OBTimerQueueManager, 0 }; @@ -3053,6 +8563,101 @@ _swigt__p_XUnmapEvent, /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ static swig_const_info swig_const_table[] = { +{ SWIG_PY_INT, (char *)"OBProperty_Atom_Cardinal", (long) otk::OBProperty::Atom_Cardinal, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_Atom_Window", (long) otk::OBProperty::Atom_Window, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_Atom_Pixmap", (long) otk::OBProperty::Atom_Pixmap, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_Atom_Atom", (long) otk::OBProperty::Atom_Atom, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_Atom_String", (long) otk::OBProperty::Atom_String, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_Atom_Utf8", (long) otk::OBProperty::Atom_Utf8, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_openbox_pid", (long) otk::OBProperty::openbox_pid, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_wm_colormap_windows", (long) otk::OBProperty::wm_colormap_windows, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_wm_protocols", (long) otk::OBProperty::wm_protocols, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_wm_state", (long) otk::OBProperty::wm_state, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_wm_delete_window", (long) otk::OBProperty::wm_delete_window, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_wm_take_focus", (long) otk::OBProperty::wm_take_focus, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_wm_change_state", (long) otk::OBProperty::wm_change_state, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_wm_name", (long) otk::OBProperty::wm_name, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_wm_icon_name", (long) otk::OBProperty::wm_icon_name, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_wm_class", (long) otk::OBProperty::wm_class, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_wm_window_role", (long) otk::OBProperty::wm_window_role, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_motif_wm_hints", (long) otk::OBProperty::motif_wm_hints, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_blackbox_attributes", (long) otk::OBProperty::blackbox_attributes, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_blackbox_change_attributes", (long) otk::OBProperty::blackbox_change_attributes, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_blackbox_hints", (long) otk::OBProperty::blackbox_hints, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_blackbox_structure_messages", (long) otk::OBProperty::blackbox_structure_messages, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_startup", (long) otk::OBProperty::blackbox_notify_startup, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_window_add", (long) otk::OBProperty::blackbox_notify_window_add, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_window_del", (long) otk::OBProperty::blackbox_notify_window_del, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_window_focus", (long) otk::OBProperty::blackbox_notify_window_focus, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_current_workspace", (long) otk::OBProperty::blackbox_notify_current_workspace, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_workspace_count", (long) otk::OBProperty::blackbox_notify_workspace_count, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_window_raise", (long) otk::OBProperty::blackbox_notify_window_raise, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_window_lower", (long) otk::OBProperty::blackbox_notify_window_lower, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_blackbox_change_workspace", (long) otk::OBProperty::blackbox_change_workspace, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_blackbox_change_window_focus", (long) otk::OBProperty::blackbox_change_window_focus, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_blackbox_cycle_window_focus", (long) otk::OBProperty::blackbox_cycle_window_focus, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_openbox_show_root_menu", (long) otk::OBProperty::openbox_show_root_menu, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_openbox_show_workspace_menu", (long) otk::OBProperty::openbox_show_workspace_menu, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_supported", (long) otk::OBProperty::net_supported, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_client_list", (long) otk::OBProperty::net_client_list, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_client_list_stacking", (long) otk::OBProperty::net_client_list_stacking, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_number_of_desktops", (long) otk::OBProperty::net_number_of_desktops, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_desktop_geometry", (long) otk::OBProperty::net_desktop_geometry, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_desktop_viewport", (long) otk::OBProperty::net_desktop_viewport, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_current_desktop", (long) otk::OBProperty::net_current_desktop, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_desktop_names", (long) otk::OBProperty::net_desktop_names, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_active_window", (long) otk::OBProperty::net_active_window, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_workarea", (long) otk::OBProperty::net_workarea, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_supporting_wm_check", (long) otk::OBProperty::net_supporting_wm_check, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_close_window", (long) otk::OBProperty::net_close_window, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize", (long) otk::OBProperty::net_wm_moveresize, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_name", (long) otk::OBProperty::net_wm_name, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_visible_name", (long) otk::OBProperty::net_wm_visible_name, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_icon_name", (long) otk::OBProperty::net_wm_icon_name, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_visible_icon_name", (long) otk::OBProperty::net_wm_visible_icon_name, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_desktop", (long) otk::OBProperty::net_wm_desktop, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type", (long) otk::OBProperty::net_wm_window_type, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_state", (long) otk::OBProperty::net_wm_state, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_strut", (long) otk::OBProperty::net_wm_strut, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_allowed_actions", (long) otk::OBProperty::net_wm_allowed_actions, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_desktop", (long) otk::OBProperty::net_wm_window_type_desktop, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_dock", (long) otk::OBProperty::net_wm_window_type_dock, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_toolbar", (long) otk::OBProperty::net_wm_window_type_toolbar, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_menu", (long) otk::OBProperty::net_wm_window_type_menu, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_utility", (long) otk::OBProperty::net_wm_window_type_utility, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_splash", (long) otk::OBProperty::net_wm_window_type_splash, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_dialog", (long) otk::OBProperty::net_wm_window_type_dialog, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_normal", (long) otk::OBProperty::net_wm_window_type_normal, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize_size_topleft", (long) otk::OBProperty::net_wm_moveresize_size_topleft, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize_size_topright", (long) otk::OBProperty::net_wm_moveresize_size_topright, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize_size_bottomleft", (long) otk::OBProperty::net_wm_moveresize_size_bottomleft, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize_size_bottomright", (long) otk::OBProperty::net_wm_moveresize_size_bottomright, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize_move", (long) otk::OBProperty::net_wm_moveresize_move, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_action_move", (long) otk::OBProperty::net_wm_action_move, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_action_resize", (long) otk::OBProperty::net_wm_action_resize, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_action_shade", (long) otk::OBProperty::net_wm_action_shade, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_action_maximize_horz", (long) otk::OBProperty::net_wm_action_maximize_horz, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_action_maximize_vert", (long) otk::OBProperty::net_wm_action_maximize_vert, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_action_change_desktop", (long) otk::OBProperty::net_wm_action_change_desktop, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_action_close", (long) otk::OBProperty::net_wm_action_close, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_state_modal", (long) otk::OBProperty::net_wm_state_modal, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_state_sticky", (long) otk::OBProperty::net_wm_state_sticky, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_state_maximized_vert", (long) otk::OBProperty::net_wm_state_maximized_vert, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_state_maximized_horz", (long) otk::OBProperty::net_wm_state_maximized_horz, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_state_shaded", (long) otk::OBProperty::net_wm_state_shaded, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_state_skip_taskbar", (long) otk::OBProperty::net_wm_state_skip_taskbar, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_state_skip_pager", (long) otk::OBProperty::net_wm_state_skip_pager, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_state_hidden", (long) otk::OBProperty::net_wm_state_hidden, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_state_fullscreen", (long) otk::OBProperty::net_wm_state_fullscreen, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_state_above", (long) otk::OBProperty::net_wm_state_above, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_net_wm_state_below", (long) otk::OBProperty::net_wm_state_below, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_kde_net_system_tray_windows", (long) otk::OBProperty::kde_net_system_tray_windows, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_kde_net_wm_system_tray_window_for", (long) otk::OBProperty::kde_net_wm_system_tray_window_for, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_kde_net_wm_window_type_override", (long) otk::OBProperty::kde_net_wm_window_type_override, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_NUM_ATOMS", (long) otk::OBProperty::NUM_ATOMS, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_ascii", (long) otk::OBProperty::ascii, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_utf8", (long) otk::OBProperty::utf8, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"OBProperty_NUM_STRING_TYPE", (long) otk::OBProperty::NUM_STRING_TYPE, 0, 0, 0}, { SWIG_PY_INT, (char *)"Openbox_State_Starting", (long) ob::Openbox::State_Starting, 0, 0, 0}, { SWIG_PY_INT, (char *)"Openbox_State_Normal", (long) ob::Openbox::State_Normal, 0, 0, 0}, { SWIG_PY_INT, (char *)"Openbox_State_Exiting", (long) ob::Openbox::State_Exiting, 0, 0, 0}, @@ -3137,6 +8742,7 @@ static swig_const_info swig_const_table[] = { { SWIG_PY_INT, (char *)"EventStartup", (long) ob::EventStartup, 0, 0, 0}, { SWIG_PY_INT, (char *)"EventShutdown", (long) ob::EventShutdown, 0, 0, 0}, { SWIG_PY_INT, (char *)"EventFocus", (long) ob::EventFocus, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"EventBell", (long) ob::EventBell, 0, 0, 0}, { SWIG_PY_INT, (char *)"NUM_EVENTS", (long) ob::NUM_EVENTS, 0, 0, 0}, { SWIG_PY_INT, (char *)"X_PROTOCOL", (long) 11, 0, 0, 0}, { SWIG_PY_INT, (char *)"X_PROTOCOL_REVISION", (long) 0, 0, 0, 0}, @@ -3507,5 +9113,7 @@ SWIGEXPORT(void) SWIG_init(void) { } SWIG_InstallConstants(d,swig_const_table); + PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); + SWIG_addvarlink(SWIG_globals,(char*)"BSENTINEL",_wrap_BSENTINEL_get, _wrap_BSENTINEL_set); }