add frame.. wrapper changes.

This commit is contained in:
Dana Jansens 2003-01-17 07:25:34 +00:00
parent a1e6634a05
commit 8be4541461
2 changed files with 9 additions and 10 deletions

View file

@ -836,7 +836,7 @@ class Frame(_object):
try:
if self.thisown: destroy(self)
except: pass
def area(*args): return apply(_openbox.Frame_area,args)
def size(*args): return apply(_openbox.Frame_size,args)
def setStyle(*args): return apply(_openbox.Frame_setStyle,args)
def adjust(*args): return apply(_openbox.Frame_adjust,args)
def focus(*args): return apply(_openbox.Frame_focus,args)

View file

@ -9464,21 +9464,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;
@ -11538,7 +11537,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 },