X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fopenbox_wrap.cc;h=1fba163c3aa8519f7901baa4223588115e292ee3;hb=00bc993775b916de76772bdc5e31618076194797;hp=42bdebcbe6ff3362d3706279a81c17e12853f207;hpb=940247c3e5639751e6bd5de0fab27af17a889d25;p=chaz%2Fopenbox diff --git a/src/openbox_wrap.cc b/src/openbox_wrap.cc index 42bdebcb..1fba163c 100644 --- a/src/openbox_wrap.cc +++ b/src/openbox_wrap.cc @@ -3621,6 +3621,43 @@ static PyObject *_wrap_Atoms_net_wm_action_resize_get(PyObject *self, PyObject * } +static PyObject *_wrap_Atoms_net_wm_action_minimize_set(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::Atoms *arg1 = (otk::Atoms *) 0 ; + Atom arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Atoms_net_wm_action_minimize_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Atoms,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Atom) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->net_wm_action_minimize = arg2; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Atoms_net_wm_action_minimize_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::Atoms *arg1 = (otk::Atoms *) 0 ; + Atom result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Atoms_net_wm_action_minimize_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Atoms,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (Atom) ((arg1)->net_wm_action_minimize); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + static PyObject *_wrap_Atoms_net_wm_action_shade_set(PyObject *self, PyObject *args) { PyObject *resultobj; otk::Atoms *arg1 = (otk::Atoms *) 0 ; @@ -3658,6 +3695,43 @@ static PyObject *_wrap_Atoms_net_wm_action_shade_get(PyObject *self, PyObject *a } +static PyObject *_wrap_Atoms_net_wm_action_stick_set(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::Atoms *arg1 = (otk::Atoms *) 0 ; + Atom arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Atoms_net_wm_action_stick_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Atoms,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Atom) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->net_wm_action_stick = arg2; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Atoms_net_wm_action_stick_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::Atoms *arg1 = (otk::Atoms *) 0 ; + Atom result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Atoms_net_wm_action_stick_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Atoms,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (Atom) ((arg1)->net_wm_action_stick); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + static PyObject *_wrap_Atoms_net_wm_action_maximize_horz_set(PyObject *self, PyObject *args) { PyObject *resultobj; otk::Atoms *arg1 = (otk::Atoms *) 0 ; @@ -3732,6 +3806,43 @@ static PyObject *_wrap_Atoms_net_wm_action_maximize_vert_get(PyObject *self, PyO } +static PyObject *_wrap_Atoms_net_wm_action_fullscreen_set(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::Atoms *arg1 = (otk::Atoms *) 0 ; + Atom arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Atoms_net_wm_action_fullscreen_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Atoms,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (Atom) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->net_wm_action_fullscreen = arg2; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Atoms_net_wm_action_fullscreen_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + otk::Atoms *arg1 = (otk::Atoms *) 0 ; + Atom result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Atoms_net_wm_action_fullscreen_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Atoms,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (Atom) ((arg1)->net_wm_action_fullscreen); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + static PyObject *_wrap_Atoms_net_wm_action_change_desktop_set(PyObject *self, PyObject *args) { PyObject *resultobj; otk::Atoms *arg1 = (otk::Atoms *) 0 ; @@ -9045,6 +9156,23 @@ static PyObject *_wrap_Client_shaded(PyObject *self, PyObject *args) { } +static PyObject *_wrap_Client_fullscreen(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Client *arg1 = (ob::Client *) 0 ; + bool result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Client_fullscreen",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)((ob::Client const *)arg1)->fullscreen(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + static PyObject *_wrap_Client_iconic(PyObject *self, PyObject *args) { PyObject *resultobj; ob::Client *arg1 = (ob::Client *) 0 ; @@ -9113,6 +9241,22 @@ static PyObject *_wrap_Client_layer(PyObject *self, PyObject *args) { } +static PyObject *_wrap_Client_applyStartupState(PyObject *self, PyObject *args) { + PyObject *resultobj; + ob::Client *arg1 = (ob::Client *) 0 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Client_applyStartupState",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->applyStartupState(); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + static PyObject *_wrap_Client_toggleClientBorder(PyObject *self, PyObject *args) { PyObject *resultobj; ob::Client *arg1 = (ob::Client *) 0 ; @@ -9197,13 +9341,11 @@ static PyObject *_wrap_Client_resize(PyObject *self, PyObject *args) { int arg2 ; int arg3 ; int arg4 ; - int arg5 = (int) INT_MIN ; - int arg6 = (int) INT_MIN ; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"Oiii|ii:Client_resize",&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; + if(!PyArg_ParseTuple(args,(char *)"Oiii:Client_resize",&obj0,&arg2,&arg3,&arg4)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - (arg1)->resize((ob::Client::Corner )arg2,arg3,arg4,arg5,arg6); + (arg1)->resize((ob::Client::Corner )arg2,arg3,arg4); Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -9464,21 +9606,20 @@ static PyObject *_wrap_delete_Frame(PyObject *self, PyObject *args) { } -static PyObject *_wrap_Frame_area(PyObject *self, PyObject *args) { +static PyObject *_wrap_Frame_size(PyObject *self, PyObject *args) { PyObject *resultobj; ob::Frame *arg1 = (ob::Frame *) 0 ; - otk::Rect result; + otk::Strut *result; PyObject * obj0 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:Frame_area",&obj0)) goto fail; + if(!PyArg_ParseTuple(args,(char *)"O:Frame_size",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Frame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - result = ((ob::Frame const *)arg1)->area(); - { - otk::Rect * resultptr; - resultptr = new otk::Rect((otk::Rect &) result); - resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Rect, 1); + otk::Strut const &_result_ref = ((ob::Frame const *)arg1)->size(); + result = (otk::Strut *) &_result_ref; } + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 0); return resultobj; fail: return NULL; @@ -11292,12 +11433,18 @@ static PyMethodDef SwigMethods[] = { { (char *)"Atoms_net_wm_action_move_get", _wrap_Atoms_net_wm_action_move_get, METH_VARARGS }, { (char *)"Atoms_net_wm_action_resize_set", _wrap_Atoms_net_wm_action_resize_set, METH_VARARGS }, { (char *)"Atoms_net_wm_action_resize_get", _wrap_Atoms_net_wm_action_resize_get, METH_VARARGS }, + { (char *)"Atoms_net_wm_action_minimize_set", _wrap_Atoms_net_wm_action_minimize_set, METH_VARARGS }, + { (char *)"Atoms_net_wm_action_minimize_get", _wrap_Atoms_net_wm_action_minimize_get, METH_VARARGS }, { (char *)"Atoms_net_wm_action_shade_set", _wrap_Atoms_net_wm_action_shade_set, METH_VARARGS }, { (char *)"Atoms_net_wm_action_shade_get", _wrap_Atoms_net_wm_action_shade_get, METH_VARARGS }, + { (char *)"Atoms_net_wm_action_stick_set", _wrap_Atoms_net_wm_action_stick_set, METH_VARARGS }, + { (char *)"Atoms_net_wm_action_stick_get", _wrap_Atoms_net_wm_action_stick_get, METH_VARARGS }, { (char *)"Atoms_net_wm_action_maximize_horz_set", _wrap_Atoms_net_wm_action_maximize_horz_set, METH_VARARGS }, { (char *)"Atoms_net_wm_action_maximize_horz_get", _wrap_Atoms_net_wm_action_maximize_horz_get, METH_VARARGS }, { (char *)"Atoms_net_wm_action_maximize_vert_set", _wrap_Atoms_net_wm_action_maximize_vert_set, METH_VARARGS }, { (char *)"Atoms_net_wm_action_maximize_vert_get", _wrap_Atoms_net_wm_action_maximize_vert_get, METH_VARARGS }, + { (char *)"Atoms_net_wm_action_fullscreen_set", _wrap_Atoms_net_wm_action_fullscreen_set, METH_VARARGS }, + { (char *)"Atoms_net_wm_action_fullscreen_get", _wrap_Atoms_net_wm_action_fullscreen_get, METH_VARARGS }, { (char *)"Atoms_net_wm_action_change_desktop_set", _wrap_Atoms_net_wm_action_change_desktop_set, METH_VARARGS }, { (char *)"Atoms_net_wm_action_change_desktop_get", _wrap_Atoms_net_wm_action_change_desktop_get, METH_VARARGS }, { (char *)"Atoms_net_wm_action_close_set", _wrap_Atoms_net_wm_action_close_set, METH_VARARGS }, @@ -11516,10 +11663,12 @@ static PyMethodDef SwigMethods[] = { { (char *)"Client_transientFor", _wrap_Client_transientFor, METH_VARARGS }, { (char *)"Client_modal", _wrap_Client_modal, METH_VARARGS }, { (char *)"Client_shaded", _wrap_Client_shaded, METH_VARARGS }, + { (char *)"Client_fullscreen", _wrap_Client_fullscreen, METH_VARARGS }, { (char *)"Client_iconic", _wrap_Client_iconic, METH_VARARGS }, { (char *)"Client_maxVert", _wrap_Client_maxVert, METH_VARARGS }, { (char *)"Client_maxHorz", _wrap_Client_maxHorz, METH_VARARGS }, { (char *)"Client_layer", _wrap_Client_layer, METH_VARARGS }, + { (char *)"Client_applyStartupState", _wrap_Client_applyStartupState, METH_VARARGS }, { (char *)"Client_toggleClientBorder", _wrap_Client_toggleClientBorder, METH_VARARGS }, { (char *)"Client_area", _wrap_Client_area, METH_VARARGS }, { (char *)"Client_strut", _wrap_Client_strut, METH_VARARGS }, @@ -11538,7 +11687,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"Client_swigregister", Client_swigregister, METH_VARARGS }, { (char *)"new_Frame", _wrap_new_Frame, METH_VARARGS }, { (char *)"delete_Frame", _wrap_delete_Frame, METH_VARARGS }, - { (char *)"Frame_area", _wrap_Frame_area, METH_VARARGS }, + { (char *)"Frame_size", _wrap_Frame_size, METH_VARARGS }, { (char *)"Frame_setStyle", _wrap_Frame_setStyle, METH_VARARGS }, { (char *)"Frame_adjust", _wrap_Frame_adjust, METH_VARARGS }, { (char *)"Frame_focus", _wrap_Frame_focus, METH_VARARGS }, @@ -11843,6 +11992,8 @@ static swig_const_info swig_const_table[] = { { SWIG_PY_INT, (char *)"Client_Func_Move", (long) ob::Client::Func_Move, 0, 0, 0}, { SWIG_PY_INT, (char *)"Client_Func_Iconify", (long) ob::Client::Func_Iconify, 0, 0, 0}, { SWIG_PY_INT, (char *)"Client_Func_Maximize", (long) ob::Client::Func_Maximize, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"Client_Func_Shade", (long) ob::Client::Func_Shade, 0, 0, 0}, +{ SWIG_PY_INT, (char *)"Client_Func_Fullscreen", (long) ob::Client::Func_Fullscreen, 0, 0, 0}, { SWIG_PY_INT, (char *)"Client_Func_Close", (long) ob::Client::Func_Close, 0, 0, 0}, { SWIG_PY_INT, (char *)"Client_Decor_Titlebar", (long) ob::Client::Decor_Titlebar, 0, 0, 0}, { SWIG_PY_INT, (char *)"Client_Decor_Handle", (long) ob::Client::Decor_Handle, 0, 0, 0},