1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.17u-20021222-0248
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
14 template<class T
> class SwigValueWrapper
{
17 inline SwigValueWrapper() : tt(0) { }
18 inline ~SwigValueWrapper() { if (tt
) delete tt
; }
19 inline SwigValueWrapper
& operator=(const T
& t
) { tt
= new T(t
); return *this; }
20 inline operator T
&() const { return *tt
; }
21 inline T
*operator&() { return tt
; }
28 /***********************************************************************
31 * This file contains generic SWIG runtime support for pointer
32 * type checking as well as a few commonly used macros to control
35 * Author : David Beazley (beazley@cs.uchicago.edu)
37 * Copyright (c) 1999-2000, The University of Chicago
39 * This file may be freely redistributed without license or fee provided
40 * this copyright message remains intact.
41 ************************************************************************/
45 #if defined(_WIN32) || defined(__WIN32__)
46 # if defined(_MSC_VER)
47 # if defined(STATIC_LINKED)
48 # define SWIGEXPORT(a) a
49 # define SWIGIMPORT(a) extern a
51 # define SWIGEXPORT(a) __declspec(dllexport) a
52 # define SWIGIMPORT(a) extern a
55 # if defined(__BORLANDC__)
56 # define SWIGEXPORT(a) a _export
57 # define SWIGIMPORT(a) a _export
59 # define SWIGEXPORT(a) a
60 # define SWIGIMPORT(a) a
64 # define SWIGEXPORT(a) a
65 # define SWIGIMPORT(a) a
69 #define SWIGRUNTIME(a) SWIGEXPORT(a)
71 #define SWIGRUNTIME(a) static a
78 typedef void *(*swig_converter_func
)(void *);
79 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
81 typedef struct swig_type_info
{
83 swig_converter_func converter
;
86 swig_dycast_func dcast
;
87 struct swig_type_info
*next
;
88 struct swig_type_info
*prev
;
93 SWIGIMPORT(swig_type_info
*) SWIG_TypeRegister(swig_type_info
*);
94 SWIGIMPORT(swig_type_info
*) SWIG_TypeCheck(char *c
, swig_type_info
*);
95 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info
*, void *);
96 SWIGIMPORT(swig_type_info
*) SWIG_TypeDynamicCast(swig_type_info
*, void **);
97 SWIGIMPORT(swig_type_info
*) SWIG_TypeQuery(const char *);
98 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info
*, void *);
102 static swig_type_info
*swig_type_list
= 0;
104 /* Register a type mapping with the type-checking */
105 SWIGRUNTIME(swig_type_info
*)
106 SWIG_TypeRegister(swig_type_info
*ti
)
108 swig_type_info
*tc
, *head
, *ret
, *next
;
109 /* Check to see if this type has already been registered */
112 if (strcmp(tc
->name
, ti
->name
) == 0) {
113 /* Already exists in the table. Just add additional types to the list */
114 if (tc
->clientdata
) ti
->clientdata
= tc
->clientdata
;
125 ti
->prev
= swig_type_list
;
128 /* Build linked lists */
132 /* Patch up the rest of the links */
143 /* Check the typename */
144 SWIGRUNTIME(swig_type_info
*)
145 SWIG_TypeCheck(char *c
, swig_type_info
*ty
)
148 if (!ty
) return 0; /* Void pointer */
149 s
= ty
->next
; /* First element always just a name */
151 if (strcmp(s
->name
,c
) == 0) {
152 if (s
== ty
->next
) return s
;
153 /* Move s to the top of the linked list */
154 s
->prev
->next
= s
->next
;
156 s
->next
->prev
= s
->prev
;
158 /* Insert s as second element in the list */
160 if (ty
->next
) ty
->next
->prev
= s
;
165 } while (s
&& (s
!= ty
->next
));
169 /* Cast a pointer up an inheritance hierarchy */
171 SWIG_TypeCast(swig_type_info
*ty
, void *ptr
)
173 if ((!ty
) || (!ty
->converter
)) return ptr
;
174 return (*ty
->converter
)(ptr
);
177 /* Dynamic pointer casting. Down an inheritance hierarchy */
178 SWIGRUNTIME(swig_type_info
*)
179 SWIG_TypeDynamicCast(swig_type_info
*ty
, void **ptr
)
181 swig_type_info
*lastty
= ty
;
182 if (!ty
|| !ty
->dcast
) return ty
;
183 while (ty
&& (ty
->dcast
)) {
184 ty
= (*ty
->dcast
)(ptr
);
190 /* Search for a swig_type_info structure */
191 SWIGRUNTIME(swig_type_info
*)
192 SWIG_TypeQuery(const char *name
) {
193 swig_type_info
*ty
= swig_type_list
;
195 if (ty
->str
&& (strcmp(name
,ty
->str
) == 0)) return ty
;
196 if (ty
->name
&& (strcmp(name
,ty
->name
) == 0)) return ty
;
202 /* Set the clientdata field for a type */
204 SWIG_TypeClientData(swig_type_info
*ti
, void *clientdata
) {
205 swig_type_info
*tc
, *equiv
;
206 if (ti
->clientdata
== clientdata
) return;
207 ti
->clientdata
= clientdata
;
210 if (!equiv
->converter
) {
213 if ((strcmp(tc
->name
, equiv
->name
) == 0))
214 SWIG_TypeClientData(tc
,clientdata
);
228 /***********************************************************************
231 * This file contains the runtime support for Python modules
232 * and includes code for managing global variables and pointer
235 * Author : David Beazley (beazley@cs.uchicago.edu)
236 ************************************************************************/
244 #define SWIG_PY_INT 1
245 #define SWIG_PY_FLOAT 2
246 #define SWIG_PY_STRING 3
247 #define SWIG_PY_POINTER 4
248 #define SWIG_PY_BINARY 5
250 /* Flags for pointer conversion */
252 #define SWIG_POINTER_EXCEPTION 0x1
253 #define SWIG_POINTER_DISOWN 0x2
255 /* Exception handling in wrappers */
256 #define SWIG_fail goto fail
258 /* Constant information structure */
259 typedef struct swig_const_info
{
265 swig_type_info
**ptype
;
268 #ifdef SWIG_NOINCLUDE
270 SWIGEXPORT(PyObject
*) SWIG_newvarlink();
271 SWIGEXPORT(void) SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
272 SWIGEXPORT(int) SWIG_ConvertPtr(PyObject
*, void **, swig_type_info
*, int);
273 SWIGEXPORT(int) SWIG_ConvertPacked(PyObject
*, void *, int sz
, swig_type_info
*, int);
274 SWIGEXPORT(char *) SWIG_PackData(char *c
, void *, int);
275 SWIGEXPORT(char *) SWIG_UnpackData(char *c
, void *, int);
276 SWIGEXPORT(PyObject
*) SWIG_NewPointerObj(void *, swig_type_info
*,int own
);
277 SWIGEXPORT(PyObject
*) SWIG_NewPackedObj(void *, int sz
, swig_type_info
*);
278 SWIGEXPORT(void) SWIG_InstallConstants(PyObject
*d
, swig_const_info constants
[]);
281 /* -----------------------------------------------------------------------------
282 * global variable support code.
283 * ----------------------------------------------------------------------------- */
285 typedef struct swig_globalvar
{
286 char *name
; /* Name of global variable */
287 PyObject
*(*get_attr
)(void); /* Return the current value */
288 int (*set_attr
)(PyObject
*); /* Set the value */
289 struct swig_globalvar
*next
;
292 typedef struct swig_varlinkobject
{
294 swig_globalvar
*vars
;
295 } swig_varlinkobject
;
298 swig_varlink_repr(swig_varlinkobject
*v
) {
300 return PyString_FromString("<Global variables>");
304 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int flags
) {
307 fprintf(fp
,"Global variables { ");
308 for (var
= v
->vars
; var
; var
=var
->next
) {
309 fprintf(fp
,"%s", var
->name
);
310 if (var
->next
) fprintf(fp
,", ");
317 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
) {
318 swig_globalvar
*var
= v
->vars
;
320 if (strcmp(var
->name
,n
) == 0) {
321 return (*var
->get_attr
)();
325 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
330 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
) {
331 swig_globalvar
*var
= v
->vars
;
333 if (strcmp(var
->name
,n
) == 0) {
334 return (*var
->set_attr
)(p
);
338 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
342 statichere PyTypeObject varlinktype
= {
343 PyObject_HEAD_INIT(0)
345 (char *)"swigvarlink", /* Type name */
346 sizeof(swig_varlinkobject
), /* Basic size */
349 (printfunc
) swig_varlink_print
, /* Print */
350 (getattrfunc
) swig_varlink_getattr
, /* get attr */
351 (setattrfunc
) swig_varlink_setattr
, /* Set attr */
353 (reprfunc
) swig_varlink_repr
, /* tp_repr */
354 0, /* tp_as_number */
355 0, /* tp_as_mapping*/
359 /* Create a variable linking object for use later */
360 SWIGRUNTIME(PyObject
*)
361 SWIG_newvarlink(void) {
362 swig_varlinkobject
*result
= 0;
363 result
= PyMem_NEW(swig_varlinkobject
,1);
364 varlinktype
.ob_type
= &PyType_Type
; /* Patch varlinktype into a PyType */
365 result
->ob_type
= &varlinktype
;
367 result
->ob_refcnt
= 0;
368 Py_XINCREF((PyObject
*) result
);
369 return ((PyObject
*) result
);
373 SWIG_addvarlink(PyObject
*p
, char *name
,
374 PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
)) {
375 swig_varlinkobject
*v
;
377 v
= (swig_varlinkobject
*) p
;
378 gv
= (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
379 gv
->name
= (char *) malloc(strlen(name
)+1);
380 strcpy(gv
->name
,name
);
381 gv
->get_attr
= get_attr
;
382 gv
->set_attr
= set_attr
;
387 /* Pack binary data into a string */
389 SWIG_PackData(char *c
, void *ptr
, int sz
) {
390 static char hex
[17] = "0123456789abcdef";
392 unsigned char *u
= (unsigned char *) ptr
;
393 register unsigned char uu
;
394 for (i
= 0; i
< sz
; i
++,u
++) {
396 *(c
++) = hex
[(uu
& 0xf0) >> 4];
397 *(c
++) = hex
[uu
& 0xf];
402 /* Unpack binary data from a string */
404 SWIG_UnpackData(char *c
, void *ptr
, int sz
) {
405 register unsigned char uu
= 0;
407 unsigned char *u
= (unsigned char *) ptr
;
409 for (i
= 0; i
< sz
; i
++, u
++) {
411 if ((d
>= '0') && (d
<= '9'))
412 uu
= ((d
- '0') << 4);
413 else if ((d
>= 'a') && (d
<= 'f'))
414 uu
= ((d
- ('a'-10)) << 4);
416 if ((d
>= '0') && (d
<= '9'))
418 else if ((d
>= 'a') && (d
<= 'f'))
419 uu
|= (d
- ('a'-10));
425 /* Convert a pointer value */
427 SWIG_ConvertPtr(PyObject
*obj
, void **ptr
, swig_type_info
*ty
, int flags
) {
430 static PyObject
*SWIG_this
= 0;
435 if (obj
== Py_None
) {
439 #ifdef SWIG_COBJECT_TYPES
440 if (!(PyCObject_Check(obj
))) {
442 SWIG_this
= PyString_FromString("this");
444 obj
= PyObject_GetAttr(obj
,SWIG_this
);
446 if (!obj
) goto type_error
;
447 if (!PyCObject_Check(obj
)) {
452 *ptr
= PyCObject_AsVoidPtr(obj
);
453 c
= (char *) PyCObject_GetDesc(obj
);
454 if (newref
) Py_DECREF(obj
);
457 if (!(PyString_Check(obj
))) {
459 SWIG_this
= PyString_FromString("this");
461 obj
= PyObject_GetAttr(obj
,SWIG_this
);
463 if (!obj
) goto type_error
;
464 if (!PyString_Check(obj
)) {
469 c
= PyString_AsString(obj
);
470 /* Pointer values must start with leading underscore */
473 if (strcmp(c
,"NULL") == 0) {
474 if (newref
) { Py_DECREF(obj
); }
477 if (newref
) { Py_DECREF(obj
); }
482 c
= SWIG_UnpackData(c
,ptr
,sizeof(void *));
483 if (newref
) { Py_DECREF(obj
); }
486 #ifdef SWIG_COBJECT_TYPES
491 tc
= SWIG_TypeCheck(c
,ty
);
492 if (!tc
) goto type_error
;
493 *ptr
= SWIG_TypeCast(tc
,(void*) *ptr
);
496 if ((pyobj
) && (flags
& SWIG_POINTER_DISOWN
)) {
497 PyObject
*zero
= PyInt_FromLong(0);
498 PyObject_SetAttrString(pyobj
,(char*)"thisown",zero
);
504 if (flags
& SWIG_POINTER_EXCEPTION
) {
506 char *temp
= (char *) malloc(64+strlen(ty
->name
));
507 sprintf(temp
,"Type error. Expected %s", ty
->name
);
508 PyErr_SetString(PyExc_TypeError
, temp
);
511 PyErr_SetString(PyExc_TypeError
,"Expected a pointer");
517 /* Convert a packed value value */
519 SWIG_ConvertPacked(PyObject
*obj
, void *ptr
, int sz
, swig_type_info
*ty
, int flags
) {
523 if ((!obj
) || (!PyString_Check(obj
))) goto type_error
;
524 c
= PyString_AsString(obj
);
525 /* Pointer values must start with leading underscore */
526 if (*c
!= '_') goto type_error
;
528 c
= SWIG_UnpackData(c
,ptr
,sz
);
530 tc
= SWIG_TypeCheck(c
,ty
);
531 if (!tc
) goto type_error
;
539 char *temp
= (char *) malloc(64+strlen(ty
->name
));
540 sprintf(temp
,"Type error. Expected %s", ty
->name
);
541 PyErr_SetString(PyExc_TypeError
, temp
);
544 PyErr_SetString(PyExc_TypeError
,"Expected a pointer");
550 /* Create a new pointer object */
551 SWIGRUNTIME(PyObject
*)
552 SWIG_NewPointerObj(void *ptr
, swig_type_info
*type
, int own
) {
558 #ifdef SWIG_COBJECT_TYPES
559 robj
= PyCObject_FromVoidPtrAndDesc((void *) ptr
, (char *) type
->name
, NULL
);
565 r
= SWIG_PackData(r
,&ptr
,sizeof(void *));
566 strcpy(r
,type
->name
);
567 robj
= PyString_FromString(result
);
570 if (!robj
|| (robj
== Py_None
)) return robj
;
571 if (type
->clientdata
) {
573 PyObject
*args
= Py_BuildValue((char*)"(O)", robj
);
575 inst
= PyObject_CallObject((PyObject
*) type
->clientdata
, args
);
579 PyObject
*n
= PyInt_FromLong(1);
580 PyObject_SetAttrString(inst
,(char*)"thisown",n
);
589 SWIGRUNTIME(PyObject
*)
590 SWIG_NewPackedObj(void *ptr
, int sz
, swig_type_info
*type
) {
593 if ((2*sz
+ 1 + strlen(type
->name
)) > 1000) return 0;
595 r
= SWIG_PackData(r
,ptr
,sz
);
596 strcpy(r
,type
->name
);
597 return PyString_FromString(result
);
600 /* Install Constants */
602 SWIG_InstallConstants(PyObject
*d
, swig_const_info constants
[]) {
605 for (i
= 0; constants
[i
].type
; i
++) {
606 switch(constants
[i
].type
) {
608 obj
= PyInt_FromLong(constants
[i
].lvalue
);
611 obj
= PyFloat_FromDouble(constants
[i
].dvalue
);
614 obj
= PyString_FromString((char *) constants
[i
].pvalue
);
616 case SWIG_PY_POINTER
:
617 obj
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0);
620 obj
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
));
627 PyDict_SetItemString(d
,constants
[i
].name
,obj
);
646 /* -------- TYPES TABLE (BEGIN) -------- */
648 #define SWIGTYPE_p_Window swig_types[0]
649 #define SWIGTYPE_p_otk__OBTimerQueueManager swig_types[1]
650 #define SWIGTYPE_p_ob__Cursors swig_types[2]
651 #define SWIGTYPE_p_ob__OBScreen swig_types[3]
652 #define SWIGTYPE_p_otk__Style swig_types[4]
653 #define SWIGTYPE_p_ob__OBFrame swig_types[5]
654 #define SWIGTYPE_p_ob__OBClient swig_types[6]
655 #define SWIGTYPE_p_ob__Openbox swig_types[7]
656 #define SWIGTYPE_p_Cursor swig_types[8]
657 #define SWIGTYPE_p_otk__Strut swig_types[9]
658 #define SWIGTYPE_p_XShapeEvent swig_types[10]
659 #define SWIGTYPE_p_XConfigureRequestEvent swig_types[11]
660 #define SWIGTYPE_p_otk__OtkEventHandler swig_types[12]
661 #define SWIGTYPE_p_otk__Rect swig_types[13]
662 #define SWIGTYPE_p_ob__OBWidget swig_types[14]
663 #define SWIGTYPE_p_XClientMessageEvent swig_types[15]
664 #define SWIGTYPE_p_otk__OBProperty swig_types[16]
665 #define SWIGTYPE_p_otk__OtkEventDispatcher swig_types[17]
666 #define SWIGTYPE_p_XPropertyEvent swig_types[18]
667 #define SWIGTYPE_p_XDestroyWindowEvent swig_types[19]
668 #define SWIGTYPE_p_otk__BImageControl swig_types[20]
669 #define SWIGTYPE_p_ob__MwmHints swig_types[21]
670 #define SWIGTYPE_p_otk__Configuration swig_types[22]
671 #define SWIGTYPE_p_XUnmapEvent swig_types[23]
672 static swig_type_info
*swig_types
[25];
674 /* -------- TYPES TABLE (END) -------- */
677 /*-----------------------------------------------
678 @(target):= _openbox.so
679 ------------------------------------------------*/
680 #define SWIG_init init_openbox
682 #define SWIG_name "_openbox"
685 # include "../config.h"
688 #include "openbox.hh"
693 #define SWIG_MemoryError 1
694 #define SWIG_IOError 2
695 #define SWIG_RuntimeError 3
696 #define SWIG_IndexError 4
697 #define SWIG_TypeError 5
698 #define SWIG_DivisionByZero 6
699 #define SWIG_OverflowError 7
700 #define SWIG_SyntaxError 8
701 #define SWIG_ValueError 9
702 #define SWIG_SystemError 10
703 #define SWIG_UnknownError 99
706 static void _SWIG_exception(int code
, const char *msg
) {
708 case SWIG_MemoryError
:
709 PyErr_SetString(PyExc_MemoryError
,msg
);
712 PyErr_SetString(PyExc_IOError
,msg
);
714 case SWIG_RuntimeError
:
715 PyErr_SetString(PyExc_RuntimeError
,msg
);
717 case SWIG_IndexError
:
718 PyErr_SetString(PyExc_IndexError
,msg
);
721 PyErr_SetString(PyExc_TypeError
,msg
);
723 case SWIG_DivisionByZero
:
724 PyErr_SetString(PyExc_ZeroDivisionError
,msg
);
726 case SWIG_OverflowError
:
727 PyErr_SetString(PyExc_OverflowError
,msg
);
729 case SWIG_SyntaxError
:
730 PyErr_SetString(PyExc_SyntaxError
,msg
);
732 case SWIG_ValueError
:
733 PyErr_SetString(PyExc_ValueError
,msg
);
735 case SWIG_SystemError
:
736 PyErr_SetString(PyExc_SystemError
,msg
);
739 PyErr_SetString(PyExc_RuntimeError
,msg
);
744 #define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
752 static PyObject
* SwigInt_FromBool(bool b
) {
753 return PyInt_FromLong(b
? 1L : 0L);
755 static double SwigNumber_Check(PyObject
* o
) {
756 return PyFloat_Check(o
) || PyInt_Check(o
);
758 static double SwigNumber_AsDouble(PyObject
* o
) {
759 return (PyFloat_Check(o
) ? PyFloat_AsDouble(o
) : double(PyInt_AsLong(o
)));
761 static PyObject
* SwigString_FromString(const std::string
& s
) {
762 return PyString_FromString(s
.c_str());
764 static std::string
SwigString_AsString(PyObject
* o
) {
765 return std::string(PyString_AsString(o
));
773 ob::OBClient
*ob_OBScreen_client(ob::OBScreen
*self
,int i
){
774 ob::OBScreen::ClientList::iterator it
= self
->clients
.begin();
778 int ob_OBScreen_clientCount(ob::OBScreen
const *self
){
779 return (int) self
->clients
.size();
782 ob::Openbox
*Openbox_instance() { return ob::Openbox::instance
; }
790 static PyObject
*_wrap_Cursors_session_set(PyObject
*self
, PyObject
*args
) {
792 ob::Cursors
*arg1
= (ob::Cursors
*) 0 ;
795 PyObject
* obj0
= 0 ;
796 PyObject
* obj1
= 0 ;
798 if(!PyArg_ParseTuple(args
,(char *)"OO:Cursors_session_set",&obj0
,&obj1
)) goto fail
;
799 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Cursors
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
800 if ((SWIG_ConvertPtr(obj1
,(void **) &argp2
, SWIGTYPE_p_Cursor
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
802 if (arg1
) (arg1
)->session
= arg2
;
804 Py_INCREF(Py_None
); resultobj
= Py_None
;
811 static PyObject
*_wrap_Cursors_session_get(PyObject
*self
, PyObject
*args
) {
813 ob::Cursors
*arg1
= (ob::Cursors
*) 0 ;
815 PyObject
* obj0
= 0 ;
817 if(!PyArg_ParseTuple(args
,(char *)"O:Cursors_session_get",&obj0
)) goto fail
;
818 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Cursors
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
819 result
= ((arg1
)->session
);
823 resultptr
= new Cursor((Cursor
&) result
);
824 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_Cursor
, 1);
832 static PyObject
*_wrap_Cursors_move_set(PyObject
*self
, PyObject
*args
) {
834 ob::Cursors
*arg1
= (ob::Cursors
*) 0 ;
837 PyObject
* obj0
= 0 ;
838 PyObject
* obj1
= 0 ;
840 if(!PyArg_ParseTuple(args
,(char *)"OO:Cursors_move_set",&obj0
,&obj1
)) goto fail
;
841 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Cursors
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
842 if ((SWIG_ConvertPtr(obj1
,(void **) &argp2
, SWIGTYPE_p_Cursor
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
844 if (arg1
) (arg1
)->move
= arg2
;
846 Py_INCREF(Py_None
); resultobj
= Py_None
;
853 static PyObject
*_wrap_Cursors_move_get(PyObject
*self
, PyObject
*args
) {
855 ob::Cursors
*arg1
= (ob::Cursors
*) 0 ;
857 PyObject
* obj0
= 0 ;
859 if(!PyArg_ParseTuple(args
,(char *)"O:Cursors_move_get",&obj0
)) goto fail
;
860 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Cursors
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
861 result
= ((arg1
)->move
);
865 resultptr
= new Cursor((Cursor
&) result
);
866 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_Cursor
, 1);
874 static PyObject
*_wrap_Cursors_ll_angle_set(PyObject
*self
, PyObject
*args
) {
876 ob::Cursors
*arg1
= (ob::Cursors
*) 0 ;
879 PyObject
* obj0
= 0 ;
880 PyObject
* obj1
= 0 ;
882 if(!PyArg_ParseTuple(args
,(char *)"OO:Cursors_ll_angle_set",&obj0
,&obj1
)) goto fail
;
883 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Cursors
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
884 if ((SWIG_ConvertPtr(obj1
,(void **) &argp2
, SWIGTYPE_p_Cursor
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
886 if (arg1
) (arg1
)->ll_angle
= arg2
;
888 Py_INCREF(Py_None
); resultobj
= Py_None
;
895 static PyObject
*_wrap_Cursors_ll_angle_get(PyObject
*self
, PyObject
*args
) {
897 ob::Cursors
*arg1
= (ob::Cursors
*) 0 ;
899 PyObject
* obj0
= 0 ;
901 if(!PyArg_ParseTuple(args
,(char *)"O:Cursors_ll_angle_get",&obj0
)) goto fail
;
902 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Cursors
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
903 result
= ((arg1
)->ll_angle
);
907 resultptr
= new Cursor((Cursor
&) result
);
908 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_Cursor
, 1);
916 static PyObject
*_wrap_Cursors_lr_angle_set(PyObject
*self
, PyObject
*args
) {
918 ob::Cursors
*arg1
= (ob::Cursors
*) 0 ;
921 PyObject
* obj0
= 0 ;
922 PyObject
* obj1
= 0 ;
924 if(!PyArg_ParseTuple(args
,(char *)"OO:Cursors_lr_angle_set",&obj0
,&obj1
)) goto fail
;
925 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Cursors
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
926 if ((SWIG_ConvertPtr(obj1
,(void **) &argp2
, SWIGTYPE_p_Cursor
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
928 if (arg1
) (arg1
)->lr_angle
= arg2
;
930 Py_INCREF(Py_None
); resultobj
= Py_None
;
937 static PyObject
*_wrap_Cursors_lr_angle_get(PyObject
*self
, PyObject
*args
) {
939 ob::Cursors
*arg1
= (ob::Cursors
*) 0 ;
941 PyObject
* obj0
= 0 ;
943 if(!PyArg_ParseTuple(args
,(char *)"O:Cursors_lr_angle_get",&obj0
)) goto fail
;
944 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Cursors
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
945 result
= ((arg1
)->lr_angle
);
949 resultptr
= new Cursor((Cursor
&) result
);
950 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_Cursor
, 1);
958 static PyObject
*_wrap_Cursors_ul_angle_set(PyObject
*self
, PyObject
*args
) {
960 ob::Cursors
*arg1
= (ob::Cursors
*) 0 ;
963 PyObject
* obj0
= 0 ;
964 PyObject
* obj1
= 0 ;
966 if(!PyArg_ParseTuple(args
,(char *)"OO:Cursors_ul_angle_set",&obj0
,&obj1
)) goto fail
;
967 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Cursors
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
968 if ((SWIG_ConvertPtr(obj1
,(void **) &argp2
, SWIGTYPE_p_Cursor
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
970 if (arg1
) (arg1
)->ul_angle
= arg2
;
972 Py_INCREF(Py_None
); resultobj
= Py_None
;
979 static PyObject
*_wrap_Cursors_ul_angle_get(PyObject
*self
, PyObject
*args
) {
981 ob::Cursors
*arg1
= (ob::Cursors
*) 0 ;
983 PyObject
* obj0
= 0 ;
985 if(!PyArg_ParseTuple(args
,(char *)"O:Cursors_ul_angle_get",&obj0
)) goto fail
;
986 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Cursors
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
987 result
= ((arg1
)->ul_angle
);
991 resultptr
= new Cursor((Cursor
&) result
);
992 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_Cursor
, 1);
1000 static PyObject
*_wrap_Cursors_ur_angle_set(PyObject
*self
, PyObject
*args
) {
1001 PyObject
*resultobj
;
1002 ob::Cursors
*arg1
= (ob::Cursors
*) 0 ;
1005 PyObject
* obj0
= 0 ;
1006 PyObject
* obj1
= 0 ;
1008 if(!PyArg_ParseTuple(args
,(char *)"OO:Cursors_ur_angle_set",&obj0
,&obj1
)) goto fail
;
1009 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Cursors
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1010 if ((SWIG_ConvertPtr(obj1
,(void **) &argp2
, SWIGTYPE_p_Cursor
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
1012 if (arg1
) (arg1
)->ur_angle
= arg2
;
1014 Py_INCREF(Py_None
); resultobj
= Py_None
;
1021 static PyObject
*_wrap_Cursors_ur_angle_get(PyObject
*self
, PyObject
*args
) {
1022 PyObject
*resultobj
;
1023 ob::Cursors
*arg1
= (ob::Cursors
*) 0 ;
1025 PyObject
* obj0
= 0 ;
1027 if(!PyArg_ParseTuple(args
,(char *)"O:Cursors_ur_angle_get",&obj0
)) goto fail
;
1028 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Cursors
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1029 result
= ((arg1
)->ur_angle
);
1033 resultptr
= new Cursor((Cursor
&) result
);
1034 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_Cursor
, 1);
1042 static PyObject
* Cursors_swigregister(PyObject
*self
, PyObject
*args
) {
1044 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1045 SWIG_TypeClientData(SWIGTYPE_p_ob__Cursors
, obj
);
1047 return Py_BuildValue((char *)"");
1049 static PyObject
*_wrap_Openbox_state(PyObject
*self
, PyObject
*args
) {
1050 PyObject
*resultobj
;
1051 ob::Openbox
*arg1
= (ob::Openbox
*) 0 ;
1053 PyObject
* obj0
= 0 ;
1055 if(!PyArg_ParseTuple(args
,(char *)"O:Openbox_state",&obj0
)) goto fail
;
1056 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Openbox
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1057 result
= (int)((ob::Openbox
const *)arg1
)->state();
1059 resultobj
= PyInt_FromLong((long)result
);
1066 static PyObject
*_wrap_Openbox_timerManager(PyObject
*self
, PyObject
*args
) {
1067 PyObject
*resultobj
;
1068 ob::Openbox
*arg1
= (ob::Openbox
*) 0 ;
1069 otk::OBTimerQueueManager
*result
;
1070 PyObject
* obj0
= 0 ;
1072 if(!PyArg_ParseTuple(args
,(char *)"O:Openbox_timerManager",&obj0
)) goto fail
;
1073 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Openbox
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1074 result
= (otk::OBTimerQueueManager
*)(arg1
)->timerManager();
1076 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_otk__OBTimerQueueManager
, 0);
1083 static PyObject
*_wrap_Openbox_property(PyObject
*self
, PyObject
*args
) {
1084 PyObject
*resultobj
;
1085 ob::Openbox
*arg1
= (ob::Openbox
*) 0 ;
1086 otk::OBProperty
*result
;
1087 PyObject
* obj0
= 0 ;
1089 if(!PyArg_ParseTuple(args
,(char *)"O:Openbox_property",&obj0
)) goto fail
;
1090 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Openbox
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1091 result
= (otk::OBProperty
*)((ob::Openbox
const *)arg1
)->property();
1093 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_otk__OBProperty
, 0);
1100 static PyObject
*_wrap_Openbox_screen(PyObject
*self
, PyObject
*args
) {
1101 PyObject
*resultobj
;
1102 ob::Openbox
*arg1
= (ob::Openbox
*) 0 ;
1104 ob::OBScreen
*result
;
1105 PyObject
* obj0
= 0 ;
1107 if(!PyArg_ParseTuple(args
,(char *)"Oi:Openbox_screen",&obj0
,&arg2
)) goto fail
;
1108 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Openbox
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1109 result
= (ob::OBScreen
*)(arg1
)->screen(arg2
);
1111 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_ob__OBScreen
, 0);
1118 static PyObject
*_wrap_Openbox_cursors(PyObject
*self
, PyObject
*args
) {
1119 PyObject
*resultobj
;
1120 ob::Openbox
*arg1
= (ob::Openbox
*) 0 ;
1121 ob::Cursors
*result
;
1122 PyObject
* obj0
= 0 ;
1124 if(!PyArg_ParseTuple(args
,(char *)"O:Openbox_cursors",&obj0
)) goto fail
;
1125 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Openbox
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1127 ob::Cursors
const &_result_ref
= ((ob::Openbox
const *)arg1
)->cursors();
1128 result
= (ob::Cursors
*) &_result_ref
;
1131 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_ob__Cursors
, 0);
1138 static PyObject
*_wrap_Openbox_addClient(PyObject
*self
, PyObject
*args
) {
1139 PyObject
*resultobj
;
1140 ob::Openbox
*arg1
= (ob::Openbox
*) 0 ;
1142 ob::OBClient
*arg3
= (ob::OBClient
*) 0 ;
1144 PyObject
* obj0
= 0 ;
1145 PyObject
* obj1
= 0 ;
1146 PyObject
* obj2
= 0 ;
1148 if(!PyArg_ParseTuple(args
,(char *)"OOO:Openbox_addClient",&obj0
,&obj1
,&obj2
)) goto fail
;
1149 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Openbox
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1150 if ((SWIG_ConvertPtr(obj1
,(void **) &argp2
, SWIGTYPE_p_Window
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
1152 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1153 (arg1
)->addClient(arg2
,arg3
);
1155 Py_INCREF(Py_None
); resultobj
= Py_None
;
1162 static PyObject
*_wrap_Openbox_removeClient(PyObject
*self
, PyObject
*args
) {
1163 PyObject
*resultobj
;
1164 ob::Openbox
*arg1
= (ob::Openbox
*) 0 ;
1167 PyObject
* obj0
= 0 ;
1168 PyObject
* obj1
= 0 ;
1170 if(!PyArg_ParseTuple(args
,(char *)"OO:Openbox_removeClient",&obj0
,&obj1
)) goto fail
;
1171 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Openbox
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1172 if ((SWIG_ConvertPtr(obj1
,(void **) &argp2
, SWIGTYPE_p_Window
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
1174 (arg1
)->removeClient(arg2
);
1176 Py_INCREF(Py_None
); resultobj
= Py_None
;
1183 static PyObject
*_wrap_Openbox_findClient(PyObject
*self
, PyObject
*args
) {
1184 PyObject
*resultobj
;
1185 ob::Openbox
*arg1
= (ob::Openbox
*) 0 ;
1187 ob::OBClient
*result
;
1189 PyObject
* obj0
= 0 ;
1190 PyObject
* obj1
= 0 ;
1192 if(!PyArg_ParseTuple(args
,(char *)"OO:Openbox_findClient",&obj0
,&obj1
)) goto fail
;
1193 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Openbox
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1194 if ((SWIG_ConvertPtr(obj1
,(void **) &argp2
, SWIGTYPE_p_Window
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
1196 result
= (ob::OBClient
*)(arg1
)->findClient(arg2
);
1198 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_ob__OBClient
, 0);
1205 static PyObject
*_wrap_Openbox_shutdown(PyObject
*self
, PyObject
*args
) {
1206 PyObject
*resultobj
;
1207 ob::Openbox
*arg1
= (ob::Openbox
*) 0 ;
1208 PyObject
* obj0
= 0 ;
1210 if(!PyArg_ParseTuple(args
,(char *)"O:Openbox_shutdown",&obj0
)) goto fail
;
1211 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__Openbox
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1214 Py_INCREF(Py_None
); resultobj
= Py_None
;
1221 static PyObject
* Openbox_swigregister(PyObject
*self
, PyObject
*args
) {
1223 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1224 SWIG_TypeClientData(SWIGTYPE_p_ob__Openbox
, obj
);
1226 return Py_BuildValue((char *)"");
1228 static PyObject
*_wrap_OBScreen_managed(PyObject
*self
, PyObject
*args
) {
1229 PyObject
*resultobj
;
1230 ob::OBScreen
*arg1
= (ob::OBScreen
*) 0 ;
1232 PyObject
* obj0
= 0 ;
1234 if(!PyArg_ParseTuple(args
,(char *)"O:OBScreen_managed",&obj0
)) goto fail
;
1235 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBScreen
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1236 result
= (bool)((ob::OBScreen
const *)arg1
)->managed();
1238 resultobj
= PyInt_FromLong((long)result
);
1245 static PyObject
*_wrap_OBScreen_imageControl(PyObject
*self
, PyObject
*args
) {
1246 PyObject
*resultobj
;
1247 ob::OBScreen
*arg1
= (ob::OBScreen
*) 0 ;
1248 otk::BImageControl
*result
;
1249 PyObject
* obj0
= 0 ;
1251 if(!PyArg_ParseTuple(args
,(char *)"O:OBScreen_imageControl",&obj0
)) goto fail
;
1252 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBScreen
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1253 result
= (otk::BImageControl
*)(arg1
)->imageControl();
1255 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_otk__BImageControl
, 0);
1262 static PyObject
*_wrap_OBScreen_area(PyObject
*self
, PyObject
*args
) {
1263 PyObject
*resultobj
;
1264 ob::OBScreen
*arg1
= (ob::OBScreen
*) 0 ;
1266 PyObject
* obj0
= 0 ;
1268 if(!PyArg_ParseTuple(args
,(char *)"O:OBScreen_area",&obj0
)) goto fail
;
1269 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBScreen
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1271 otk::Rect
const &_result_ref
= ((ob::OBScreen
const *)arg1
)->area();
1272 result
= (otk::Rect
*) &_result_ref
;
1275 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_otk__Rect
, 0);
1282 static PyObject
*_wrap_OBScreen_style(PyObject
*self
, PyObject
*args
) {
1283 PyObject
*resultobj
;
1284 ob::OBScreen
*arg1
= (ob::OBScreen
*) 0 ;
1286 PyObject
* obj0
= 0 ;
1288 if(!PyArg_ParseTuple(args
,(char *)"O:OBScreen_style",&obj0
)) goto fail
;
1289 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBScreen
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1290 result
= (otk::Style
*)((ob::OBScreen
const *)arg1
)->style();
1292 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_otk__Style
, 0);
1299 static PyObject
*_wrap_OBScreen_addStrut(PyObject
*self
, PyObject
*args
) {
1300 PyObject
*resultobj
;
1301 ob::OBScreen
*arg1
= (ob::OBScreen
*) 0 ;
1302 otk::Strut
*arg2
= (otk::Strut
*) 0 ;
1303 PyObject
* obj0
= 0 ;
1304 PyObject
* obj1
= 0 ;
1306 if(!PyArg_ParseTuple(args
,(char *)"OO:OBScreen_addStrut",&obj0
,&obj1
)) goto fail
;
1307 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBScreen
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1308 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_otk__Strut
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1309 (arg1
)->addStrut(arg2
);
1311 Py_INCREF(Py_None
); resultobj
= Py_None
;
1318 static PyObject
*_wrap_OBScreen_removeStrut(PyObject
*self
, PyObject
*args
) {
1319 PyObject
*resultobj
;
1320 ob::OBScreen
*arg1
= (ob::OBScreen
*) 0 ;
1321 otk::Strut
*arg2
= (otk::Strut
*) 0 ;
1322 PyObject
* obj0
= 0 ;
1323 PyObject
* obj1
= 0 ;
1325 if(!PyArg_ParseTuple(args
,(char *)"OO:OBScreen_removeStrut",&obj0
,&obj1
)) goto fail
;
1326 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBScreen
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1327 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_otk__Strut
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1328 (arg1
)->removeStrut(arg2
);
1330 Py_INCREF(Py_None
); resultobj
= Py_None
;
1337 static PyObject
*_wrap_OBScreen_loadStyle(PyObject
*self
, PyObject
*args
) {
1338 PyObject
*resultobj
;
1339 ob::OBScreen
*arg1
= (ob::OBScreen
*) 0 ;
1340 otk::Configuration
*arg2
= 0 ;
1341 PyObject
* obj0
= 0 ;
1342 PyObject
* obj1
= 0 ;
1344 if(!PyArg_ParseTuple(args
,(char *)"OO:OBScreen_loadStyle",&obj0
,&obj1
)) goto fail
;
1345 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBScreen
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1346 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_otk__Configuration
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1348 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
1350 (arg1
)->loadStyle((otk::Configuration
const &)*arg2
);
1352 Py_INCREF(Py_None
); resultobj
= Py_None
;
1359 static PyObject
*_wrap_OBScreen_manageExisting(PyObject
*self
, PyObject
*args
) {
1360 PyObject
*resultobj
;
1361 ob::OBScreen
*arg1
= (ob::OBScreen
*) 0 ;
1362 PyObject
* obj0
= 0 ;
1364 if(!PyArg_ParseTuple(args
,(char *)"O:OBScreen_manageExisting",&obj0
)) goto fail
;
1365 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBScreen
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1366 (arg1
)->manageExisting();
1368 Py_INCREF(Py_None
); resultobj
= Py_None
;
1375 static PyObject
*_wrap_OBScreen_manageWindow(PyObject
*self
, PyObject
*args
) {
1376 PyObject
*resultobj
;
1377 ob::OBScreen
*arg1
= (ob::OBScreen
*) 0 ;
1380 PyObject
* obj0
= 0 ;
1381 PyObject
* obj1
= 0 ;
1383 if(!PyArg_ParseTuple(args
,(char *)"OO:OBScreen_manageWindow",&obj0
,&obj1
)) goto fail
;
1384 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBScreen
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1385 if ((SWIG_ConvertPtr(obj1
,(void **) &argp2
, SWIGTYPE_p_Window
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
1387 (arg1
)->manageWindow(arg2
);
1389 Py_INCREF(Py_None
); resultobj
= Py_None
;
1396 static PyObject
*_wrap_OBScreen_unmanageWindow(PyObject
*self
, PyObject
*args
) {
1397 PyObject
*resultobj
;
1398 ob::OBScreen
*arg1
= (ob::OBScreen
*) 0 ;
1399 ob::OBClient
*arg2
= (ob::OBClient
*) 0 ;
1400 PyObject
* obj0
= 0 ;
1401 PyObject
* obj1
= 0 ;
1403 if(!PyArg_ParseTuple(args
,(char *)"OO:OBScreen_unmanageWindow",&obj0
,&obj1
)) goto fail
;
1404 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBScreen
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1405 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1406 (arg1
)->unmanageWindow(arg2
);
1408 Py_INCREF(Py_None
); resultobj
= Py_None
;
1415 static PyObject
*_wrap_OBScreen_client(PyObject
*self
, PyObject
*args
) {
1416 PyObject
*resultobj
;
1417 ob::OBScreen
*arg1
= (ob::OBScreen
*) 0 ;
1419 ob::OBClient
*result
;
1420 PyObject
* obj0
= 0 ;
1422 if(!PyArg_ParseTuple(args
,(char *)"Oi:OBScreen_client",&obj0
,&arg2
)) goto fail
;
1423 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBScreen
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1424 result
= (ob::OBClient
*)ob_OBScreen_client(arg1
,arg2
);
1426 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_ob__OBClient
, 0);
1433 static PyObject
*_wrap_OBScreen_clientCount(PyObject
*self
, PyObject
*args
) {
1434 PyObject
*resultobj
;
1435 ob::OBScreen
*arg1
= (ob::OBScreen
*) 0 ;
1437 PyObject
* obj0
= 0 ;
1439 if(!PyArg_ParseTuple(args
,(char *)"O:OBScreen_clientCount",&obj0
)) goto fail
;
1440 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBScreen
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1441 result
= (int)ob_OBScreen_clientCount((ob::OBScreen
const *)arg1
);
1443 resultobj
= PyInt_FromLong((long)result
);
1450 static PyObject
* OBScreen_swigregister(PyObject
*self
, PyObject
*args
) {
1452 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1453 SWIG_TypeClientData(SWIGTYPE_p_ob__OBScreen
, obj
);
1455 return Py_BuildValue((char *)"");
1457 static PyObject
*_wrap_MwmHints_flags_set(PyObject
*self
, PyObject
*args
) {
1458 PyObject
*resultobj
;
1459 ob::MwmHints
*arg1
= (ob::MwmHints
*) 0 ;
1460 unsigned long arg2
;
1461 PyObject
* obj0
= 0 ;
1462 PyObject
* obj1
= 0 ;
1464 if(!PyArg_ParseTuple(args
,(char *)"OO:MwmHints_flags_set",&obj0
,&obj1
)) goto fail
;
1465 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__MwmHints
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1466 arg2
= (unsigned long) PyInt_AsLong(obj1
);
1467 if (PyErr_Occurred()) SWIG_fail
;
1468 if (arg1
) (arg1
)->flags
= arg2
;
1470 Py_INCREF(Py_None
); resultobj
= Py_None
;
1477 static PyObject
*_wrap_MwmHints_flags_get(PyObject
*self
, PyObject
*args
) {
1478 PyObject
*resultobj
;
1479 ob::MwmHints
*arg1
= (ob::MwmHints
*) 0 ;
1480 unsigned long result
;
1481 PyObject
* obj0
= 0 ;
1483 if(!PyArg_ParseTuple(args
,(char *)"O:MwmHints_flags_get",&obj0
)) goto fail
;
1484 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__MwmHints
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1485 result
= (unsigned long) ((arg1
)->flags
);
1487 resultobj
= PyInt_FromLong((long)result
);
1494 static PyObject
*_wrap_MwmHints_functions_set(PyObject
*self
, PyObject
*args
) {
1495 PyObject
*resultobj
;
1496 ob::MwmHints
*arg1
= (ob::MwmHints
*) 0 ;
1497 unsigned long arg2
;
1498 PyObject
* obj0
= 0 ;
1499 PyObject
* obj1
= 0 ;
1501 if(!PyArg_ParseTuple(args
,(char *)"OO:MwmHints_functions_set",&obj0
,&obj1
)) goto fail
;
1502 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__MwmHints
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1503 arg2
= (unsigned long) PyInt_AsLong(obj1
);
1504 if (PyErr_Occurred()) SWIG_fail
;
1505 if (arg1
) (arg1
)->functions
= arg2
;
1507 Py_INCREF(Py_None
); resultobj
= Py_None
;
1514 static PyObject
*_wrap_MwmHints_functions_get(PyObject
*self
, PyObject
*args
) {
1515 PyObject
*resultobj
;
1516 ob::MwmHints
*arg1
= (ob::MwmHints
*) 0 ;
1517 unsigned long result
;
1518 PyObject
* obj0
= 0 ;
1520 if(!PyArg_ParseTuple(args
,(char *)"O:MwmHints_functions_get",&obj0
)) goto fail
;
1521 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__MwmHints
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1522 result
= (unsigned long) ((arg1
)->functions
);
1524 resultobj
= PyInt_FromLong((long)result
);
1531 static PyObject
*_wrap_MwmHints_decorations_set(PyObject
*self
, PyObject
*args
) {
1532 PyObject
*resultobj
;
1533 ob::MwmHints
*arg1
= (ob::MwmHints
*) 0 ;
1534 unsigned long arg2
;
1535 PyObject
* obj0
= 0 ;
1536 PyObject
* obj1
= 0 ;
1538 if(!PyArg_ParseTuple(args
,(char *)"OO:MwmHints_decorations_set",&obj0
,&obj1
)) goto fail
;
1539 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__MwmHints
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1540 arg2
= (unsigned long) PyInt_AsLong(obj1
);
1541 if (PyErr_Occurred()) SWIG_fail
;
1542 if (arg1
) (arg1
)->decorations
= arg2
;
1544 Py_INCREF(Py_None
); resultobj
= Py_None
;
1551 static PyObject
*_wrap_MwmHints_decorations_get(PyObject
*self
, PyObject
*args
) {
1552 PyObject
*resultobj
;
1553 ob::MwmHints
*arg1
= (ob::MwmHints
*) 0 ;
1554 unsigned long result
;
1555 PyObject
* obj0
= 0 ;
1557 if(!PyArg_ParseTuple(args
,(char *)"O:MwmHints_decorations_get",&obj0
)) goto fail
;
1558 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__MwmHints
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1559 result
= (unsigned long) ((arg1
)->decorations
);
1561 resultobj
= PyInt_FromLong((long)result
);
1568 static PyObject
* MwmHints_swigregister(PyObject
*self
, PyObject
*args
) {
1570 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1571 SWIG_TypeClientData(SWIGTYPE_p_ob__MwmHints
, obj
);
1573 return Py_BuildValue((char *)"");
1575 static PyObject
*_wrap_OBClient_frame_set(PyObject
*self
, PyObject
*args
) {
1576 PyObject
*resultobj
;
1577 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1578 ob::OBFrame
*arg2
= (ob::OBFrame
*) 0 ;
1579 PyObject
* obj0
= 0 ;
1580 PyObject
* obj1
= 0 ;
1582 if(!PyArg_ParseTuple(args
,(char *)"OO:OBClient_frame_set",&obj0
,&obj1
)) goto fail
;
1583 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1584 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_ob__OBFrame
,SWIG_POINTER_EXCEPTION
| SWIG_POINTER_DISOWN
)) == -1) SWIG_fail
;
1585 if (arg1
) (arg1
)->frame
= arg2
;
1587 Py_INCREF(Py_None
); resultobj
= Py_None
;
1594 static PyObject
*_wrap_OBClient_frame_get(PyObject
*self
, PyObject
*args
) {
1595 PyObject
*resultobj
;
1596 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1597 ob::OBFrame
*result
;
1598 PyObject
* obj0
= 0 ;
1600 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_frame_get",&obj0
)) goto fail
;
1601 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1602 result
= (ob::OBFrame
*) ((arg1
)->frame
);
1604 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_ob__OBFrame
, 0);
1611 static PyObject
*_wrap_OBClient_ignore_unmaps_set(PyObject
*self
, PyObject
*args
) {
1612 PyObject
*resultobj
;
1613 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1615 PyObject
* obj0
= 0 ;
1617 if(!PyArg_ParseTuple(args
,(char *)"Oi:OBClient_ignore_unmaps_set",&obj0
,&arg2
)) goto fail
;
1618 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1619 if (arg1
) (arg1
)->ignore_unmaps
= arg2
;
1621 Py_INCREF(Py_None
); resultobj
= Py_None
;
1628 static PyObject
*_wrap_OBClient_ignore_unmaps_get(PyObject
*self
, PyObject
*args
) {
1629 PyObject
*resultobj
;
1630 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1632 PyObject
* obj0
= 0 ;
1634 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_ignore_unmaps_get",&obj0
)) goto fail
;
1635 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1636 result
= (int) ((arg1
)->ignore_unmaps
);
1638 resultobj
= PyInt_FromLong((long)result
);
1645 static PyObject
*_wrap_OBClient_screen(PyObject
*self
, PyObject
*args
) {
1646 PyObject
*resultobj
;
1647 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1649 PyObject
* obj0
= 0 ;
1651 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_screen",&obj0
)) goto fail
;
1652 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1653 result
= (int)((ob::OBClient
const *)arg1
)->screen();
1655 resultobj
= PyInt_FromLong((long)result
);
1662 static PyObject
*_wrap_OBClient_window(PyObject
*self
, PyObject
*args
) {
1663 PyObject
*resultobj
;
1664 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1666 PyObject
* obj0
= 0 ;
1668 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_window",&obj0
)) goto fail
;
1669 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1670 result
= ((ob::OBClient
const *)arg1
)->window();
1674 resultptr
= new Window((Window
&) result
);
1675 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_Window
, 1);
1683 static PyObject
*_wrap_OBClient_type(PyObject
*self
, PyObject
*args
) {
1684 PyObject
*resultobj
;
1685 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1687 PyObject
* obj0
= 0 ;
1689 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_type",&obj0
)) goto fail
;
1690 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1691 result
= (int)((ob::OBClient
const *)arg1
)->type();
1693 resultobj
= PyInt_FromLong((long)result
);
1700 static PyObject
*_wrap_OBClient_desktop(PyObject
*self
, PyObject
*args
) {
1701 PyObject
*resultobj
;
1702 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1703 unsigned long result
;
1704 PyObject
* obj0
= 0 ;
1706 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_desktop",&obj0
)) goto fail
;
1707 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1708 result
= (unsigned long)((ob::OBClient
const *)arg1
)->desktop();
1710 resultobj
= PyInt_FromLong((long)result
);
1717 static PyObject
*_wrap_OBClient_title(PyObject
*self
, PyObject
*args
) {
1718 PyObject
*resultobj
;
1719 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1720 std::string
*result
;
1721 PyObject
* obj0
= 0 ;
1723 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_title",&obj0
)) goto fail
;
1724 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1726 std::string
const &_result_ref
= ((ob::OBClient
const *)arg1
)->title();
1727 result
= (std::string
*) &_result_ref
;
1731 resultobj
= PyString_FromString(result
->c_str());
1739 static PyObject
*_wrap_OBClient_iconTitle(PyObject
*self
, PyObject
*args
) {
1740 PyObject
*resultobj
;
1741 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1742 std::string
*result
;
1743 PyObject
* obj0
= 0 ;
1745 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_iconTitle",&obj0
)) goto fail
;
1746 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1748 std::string
const &_result_ref
= ((ob::OBClient
const *)arg1
)->iconTitle();
1749 result
= (std::string
*) &_result_ref
;
1753 resultobj
= PyString_FromString(result
->c_str());
1761 static PyObject
*_wrap_OBClient_appName(PyObject
*self
, PyObject
*args
) {
1762 PyObject
*resultobj
;
1763 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1764 std::string
*result
;
1765 PyObject
* obj0
= 0 ;
1767 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_appName",&obj0
)) goto fail
;
1768 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1770 std::string
const &_result_ref
= ((ob::OBClient
const *)arg1
)->appName();
1771 result
= (std::string
*) &_result_ref
;
1775 resultobj
= PyString_FromString(result
->c_str());
1783 static PyObject
*_wrap_OBClient_appClass(PyObject
*self
, PyObject
*args
) {
1784 PyObject
*resultobj
;
1785 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1786 std::string
*result
;
1787 PyObject
* obj0
= 0 ;
1789 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_appClass",&obj0
)) goto fail
;
1790 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1792 std::string
const &_result_ref
= ((ob::OBClient
const *)arg1
)->appClass();
1793 result
= (std::string
*) &_result_ref
;
1797 resultobj
= PyString_FromString(result
->c_str());
1805 static PyObject
*_wrap_OBClient_canFocus(PyObject
*self
, PyObject
*args
) {
1806 PyObject
*resultobj
;
1807 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1809 PyObject
* obj0
= 0 ;
1811 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_canFocus",&obj0
)) goto fail
;
1812 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1813 result
= (bool)((ob::OBClient
const *)arg1
)->canFocus();
1815 resultobj
= PyInt_FromLong((long)result
);
1822 static PyObject
*_wrap_OBClient_urgent(PyObject
*self
, PyObject
*args
) {
1823 PyObject
*resultobj
;
1824 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1826 PyObject
* obj0
= 0 ;
1828 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_urgent",&obj0
)) goto fail
;
1829 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1830 result
= (bool)((ob::OBClient
const *)arg1
)->urgent();
1832 resultobj
= PyInt_FromLong((long)result
);
1839 static PyObject
*_wrap_OBClient_focusNotify(PyObject
*self
, PyObject
*args
) {
1840 PyObject
*resultobj
;
1841 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1843 PyObject
* obj0
= 0 ;
1845 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_focusNotify",&obj0
)) goto fail
;
1846 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1847 result
= (bool)((ob::OBClient
const *)arg1
)->focusNotify();
1849 resultobj
= PyInt_FromLong((long)result
);
1856 static PyObject
*_wrap_OBClient_shaped(PyObject
*self
, PyObject
*args
) {
1857 PyObject
*resultobj
;
1858 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1860 PyObject
* obj0
= 0 ;
1862 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_shaped",&obj0
)) goto fail
;
1863 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1864 result
= (bool)((ob::OBClient
const *)arg1
)->shaped();
1866 resultobj
= PyInt_FromLong((long)result
);
1873 static PyObject
*_wrap_OBClient_gravity(PyObject
*self
, PyObject
*args
) {
1874 PyObject
*resultobj
;
1875 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1877 PyObject
* obj0
= 0 ;
1879 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_gravity",&obj0
)) goto fail
;
1880 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1881 result
= (int)((ob::OBClient
const *)arg1
)->gravity();
1883 resultobj
= PyInt_FromLong((long)result
);
1890 static PyObject
*_wrap_OBClient_positionRequested(PyObject
*self
, PyObject
*args
) {
1891 PyObject
*resultobj
;
1892 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1894 PyObject
* obj0
= 0 ;
1896 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_positionRequested",&obj0
)) goto fail
;
1897 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1898 result
= (bool)((ob::OBClient
const *)arg1
)->positionRequested();
1900 resultobj
= PyInt_FromLong((long)result
);
1907 static PyObject
*_wrap_OBClient_decorations(PyObject
*self
, PyObject
*args
) {
1908 PyObject
*resultobj
;
1909 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1910 ob::OBClient::DecorationFlags result
;
1911 PyObject
* obj0
= 0 ;
1913 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_decorations",&obj0
)) goto fail
;
1914 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1915 result
= (ob::OBClient::DecorationFlags
)((ob::OBClient
const *)arg1
)->decorations();
1917 resultobj
= PyInt_FromLong((long)result
);
1924 static PyObject
*_wrap_OBClient_funtions(PyObject
*self
, PyObject
*args
) {
1925 PyObject
*resultobj
;
1926 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1927 ob::OBClient::FunctionFlags result
;
1928 PyObject
* obj0
= 0 ;
1930 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_funtions",&obj0
)) goto fail
;
1931 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1932 result
= (ob::OBClient::FunctionFlags
)((ob::OBClient
const *)arg1
)->funtions();
1934 resultobj
= PyInt_FromLong((long)result
);
1941 static PyObject
*_wrap_OBClient_modal(PyObject
*self
, PyObject
*args
) {
1942 PyObject
*resultobj
;
1943 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1945 PyObject
* obj0
= 0 ;
1947 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_modal",&obj0
)) goto fail
;
1948 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1949 result
= (bool)((ob::OBClient
const *)arg1
)->modal();
1951 resultobj
= PyInt_FromLong((long)result
);
1958 static PyObject
*_wrap_OBClient_shaded(PyObject
*self
, PyObject
*args
) {
1959 PyObject
*resultobj
;
1960 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1962 PyObject
* obj0
= 0 ;
1964 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_shaded",&obj0
)) goto fail
;
1965 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1966 result
= (bool)((ob::OBClient
const *)arg1
)->shaded();
1968 resultobj
= PyInt_FromLong((long)result
);
1975 static PyObject
*_wrap_OBClient_iconic(PyObject
*self
, PyObject
*args
) {
1976 PyObject
*resultobj
;
1977 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1979 PyObject
* obj0
= 0 ;
1981 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_iconic",&obj0
)) goto fail
;
1982 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1983 result
= (bool)((ob::OBClient
const *)arg1
)->iconic();
1985 resultobj
= PyInt_FromLong((long)result
);
1992 static PyObject
*_wrap_OBClient_maxVert(PyObject
*self
, PyObject
*args
) {
1993 PyObject
*resultobj
;
1994 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
1996 PyObject
* obj0
= 0 ;
1998 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_maxVert",&obj0
)) goto fail
;
1999 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2000 result
= (bool)((ob::OBClient
const *)arg1
)->maxVert();
2002 resultobj
= PyInt_FromLong((long)result
);
2009 static PyObject
*_wrap_OBClient_maxHorz(PyObject
*self
, PyObject
*args
) {
2010 PyObject
*resultobj
;
2011 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
2013 PyObject
* obj0
= 0 ;
2015 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_maxHorz",&obj0
)) goto fail
;
2016 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2017 result
= (bool)((ob::OBClient
const *)arg1
)->maxHorz();
2019 resultobj
= PyInt_FromLong((long)result
);
2026 static PyObject
*_wrap_OBClient_fullscreen(PyObject
*self
, PyObject
*args
) {
2027 PyObject
*resultobj
;
2028 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
2030 PyObject
* obj0
= 0 ;
2032 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_fullscreen",&obj0
)) goto fail
;
2033 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2034 result
= (bool)((ob::OBClient
const *)arg1
)->fullscreen();
2036 resultobj
= PyInt_FromLong((long)result
);
2043 static PyObject
*_wrap_OBClient_floating(PyObject
*self
, PyObject
*args
) {
2044 PyObject
*resultobj
;
2045 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
2047 PyObject
* obj0
= 0 ;
2049 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_floating",&obj0
)) goto fail
;
2050 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2051 result
= (bool)((ob::OBClient
const *)arg1
)->floating();
2053 resultobj
= PyInt_FromLong((long)result
);
2060 static PyObject
*_wrap_OBClient_toggleClientBorder(PyObject
*self
, PyObject
*args
) {
2061 PyObject
*resultobj
;
2062 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
2064 PyObject
* obj0
= 0 ;
2065 PyObject
* obj1
= 0 ;
2067 if(!PyArg_ParseTuple(args
,(char *)"OO:OBClient_toggleClientBorder",&obj0
,&obj1
)) goto fail
;
2068 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2069 arg2
= (bool) PyInt_AsLong(obj1
);
2070 if (PyErr_Occurred()) SWIG_fail
;
2071 (arg1
)->toggleClientBorder(arg2
);
2073 Py_INCREF(Py_None
); resultobj
= Py_None
;
2080 static PyObject
*_wrap_OBClient_area(PyObject
*self
, PyObject
*args
) {
2081 PyObject
*resultobj
;
2082 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
2084 PyObject
* obj0
= 0 ;
2086 if(!PyArg_ParseTuple(args
,(char *)"O:OBClient_area",&obj0
)) goto fail
;
2087 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2089 otk::Rect
const &_result_ref
= ((ob::OBClient
const *)arg1
)->area();
2090 result
= (otk::Rect
*) &_result_ref
;
2093 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_otk__Rect
, 0);
2100 static PyObject
*_wrap_OBClient_move(PyObject
*self
, PyObject
*args
) {
2101 PyObject
*resultobj
;
2102 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
2105 PyObject
* obj0
= 0 ;
2107 if(!PyArg_ParseTuple(args
,(char *)"Oii:OBClient_move",&obj0
,&arg2
,&arg3
)) goto fail
;
2108 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2109 (arg1
)->move(arg2
,arg3
);
2111 Py_INCREF(Py_None
); resultobj
= Py_None
;
2118 static PyObject
*_wrap_OBClient_resize(PyObject
*self
, PyObject
*args
) {
2119 PyObject
*resultobj
;
2120 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
2124 PyObject
* obj0
= 0 ;
2126 if(!PyArg_ParseTuple(args
,(char *)"Oiii:OBClient_resize",&obj0
,&arg2
,&arg3
,&arg4
)) goto fail
;
2127 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2128 (arg1
)->resize((ob::OBClient::Corner
)arg2
,arg3
,arg4
);
2130 Py_INCREF(Py_None
); resultobj
= Py_None
;
2137 static PyObject
*_wrap_OBClient_propertyHandler(PyObject
*self
, PyObject
*args
) {
2138 PyObject
*resultobj
;
2139 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
2140 XPropertyEvent
*arg2
= 0 ;
2141 PyObject
* obj0
= 0 ;
2142 PyObject
* obj1
= 0 ;
2144 if(!PyArg_ParseTuple(args
,(char *)"OO:OBClient_propertyHandler",&obj0
,&obj1
)) goto fail
;
2145 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2146 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_XPropertyEvent
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2148 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
2150 (arg1
)->propertyHandler((XPropertyEvent
const &)*arg2
);
2152 Py_INCREF(Py_None
); resultobj
= Py_None
;
2159 static PyObject
*_wrap_OBClient_clientMessageHandler(PyObject
*self
, PyObject
*args
) {
2160 PyObject
*resultobj
;
2161 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
2162 XClientMessageEvent
*arg2
= 0 ;
2163 PyObject
* obj0
= 0 ;
2164 PyObject
* obj1
= 0 ;
2166 if(!PyArg_ParseTuple(args
,(char *)"OO:OBClient_clientMessageHandler",&obj0
,&obj1
)) goto fail
;
2167 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2168 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_XClientMessageEvent
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2170 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
2172 (arg1
)->clientMessageHandler((XClientMessageEvent
const &)*arg2
);
2174 Py_INCREF(Py_None
); resultobj
= Py_None
;
2181 static PyObject
*_wrap_OBClient_shapeHandler(PyObject
*self
, PyObject
*args
) {
2182 PyObject
*resultobj
;
2183 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
2184 XShapeEvent
*arg2
= 0 ;
2185 PyObject
* obj0
= 0 ;
2186 PyObject
* obj1
= 0 ;
2188 if(!PyArg_ParseTuple(args
,(char *)"OO:OBClient_shapeHandler",&obj0
,&obj1
)) goto fail
;
2189 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2190 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_XShapeEvent
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2192 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
2194 (arg1
)->shapeHandler((XShapeEvent
const &)*arg2
);
2196 Py_INCREF(Py_None
); resultobj
= Py_None
;
2203 static PyObject
*_wrap_OBClient_configureRequestHandler(PyObject
*self
, PyObject
*args
) {
2204 PyObject
*resultobj
;
2205 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
2206 XConfigureRequestEvent
*arg2
= 0 ;
2207 PyObject
* obj0
= 0 ;
2208 PyObject
* obj1
= 0 ;
2210 if(!PyArg_ParseTuple(args
,(char *)"OO:OBClient_configureRequestHandler",&obj0
,&obj1
)) goto fail
;
2211 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2212 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_XConfigureRequestEvent
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2214 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
2216 (arg1
)->configureRequestHandler((XConfigureRequestEvent
const &)*arg2
);
2218 Py_INCREF(Py_None
); resultobj
= Py_None
;
2225 static PyObject
*_wrap_OBClient_unmapHandler(PyObject
*self
, PyObject
*args
) {
2226 PyObject
*resultobj
;
2227 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
2228 XUnmapEvent
*arg2
= 0 ;
2229 PyObject
* obj0
= 0 ;
2230 PyObject
* obj1
= 0 ;
2232 if(!PyArg_ParseTuple(args
,(char *)"OO:OBClient_unmapHandler",&obj0
,&obj1
)) goto fail
;
2233 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2234 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_XUnmapEvent
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2236 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
2238 (arg1
)->unmapHandler((XUnmapEvent
const &)*arg2
);
2240 Py_INCREF(Py_None
); resultobj
= Py_None
;
2247 static PyObject
*_wrap_OBClient_destroyHandler(PyObject
*self
, PyObject
*args
) {
2248 PyObject
*resultobj
;
2249 ob::OBClient
*arg1
= (ob::OBClient
*) 0 ;
2250 XDestroyWindowEvent
*arg2
= 0 ;
2251 PyObject
* obj0
= 0 ;
2252 PyObject
* obj1
= 0 ;
2254 if(!PyArg_ParseTuple(args
,(char *)"OO:OBClient_destroyHandler",&obj0
,&obj1
)) goto fail
;
2255 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_ob__OBClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2256 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_XDestroyWindowEvent
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2258 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
2260 (arg1
)->destroyHandler((XDestroyWindowEvent
const &)*arg2
);
2262 Py_INCREF(Py_None
); resultobj
= Py_None
;
2269 static PyObject
* OBClient_swigregister(PyObject
*self
, PyObject
*args
) {
2271 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2272 SWIG_TypeClientData(SWIGTYPE_p_ob__OBClient
, obj
);
2274 return Py_BuildValue((char *)"");
2276 static PyObject
*_wrap_Openbox_instance(PyObject
*self
, PyObject
*args
) {
2277 PyObject
*resultobj
;
2278 ob::Openbox
*result
;
2280 if(!PyArg_ParseTuple(args
,(char *)":Openbox_instance")) goto fail
;
2281 result
= (ob::Openbox
*)Openbox_instance();
2283 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_ob__Openbox
, 0);
2290 static PyMethodDef SwigMethods
[] = {
2291 { (char *)"Cursors_session_set", _wrap_Cursors_session_set
, METH_VARARGS
},
2292 { (char *)"Cursors_session_get", _wrap_Cursors_session_get
, METH_VARARGS
},
2293 { (char *)"Cursors_move_set", _wrap_Cursors_move_set
, METH_VARARGS
},
2294 { (char *)"Cursors_move_get", _wrap_Cursors_move_get
, METH_VARARGS
},
2295 { (char *)"Cursors_ll_angle_set", _wrap_Cursors_ll_angle_set
, METH_VARARGS
},
2296 { (char *)"Cursors_ll_angle_get", _wrap_Cursors_ll_angle_get
, METH_VARARGS
},
2297 { (char *)"Cursors_lr_angle_set", _wrap_Cursors_lr_angle_set
, METH_VARARGS
},
2298 { (char *)"Cursors_lr_angle_get", _wrap_Cursors_lr_angle_get
, METH_VARARGS
},
2299 { (char *)"Cursors_ul_angle_set", _wrap_Cursors_ul_angle_set
, METH_VARARGS
},
2300 { (char *)"Cursors_ul_angle_get", _wrap_Cursors_ul_angle_get
, METH_VARARGS
},
2301 { (char *)"Cursors_ur_angle_set", _wrap_Cursors_ur_angle_set
, METH_VARARGS
},
2302 { (char *)"Cursors_ur_angle_get", _wrap_Cursors_ur_angle_get
, METH_VARARGS
},
2303 { (char *)"Cursors_swigregister", Cursors_swigregister
, METH_VARARGS
},
2304 { (char *)"Openbox_state", _wrap_Openbox_state
, METH_VARARGS
},
2305 { (char *)"Openbox_timerManager", _wrap_Openbox_timerManager
, METH_VARARGS
},
2306 { (char *)"Openbox_property", _wrap_Openbox_property
, METH_VARARGS
},
2307 { (char *)"Openbox_screen", _wrap_Openbox_screen
, METH_VARARGS
},
2308 { (char *)"Openbox_cursors", _wrap_Openbox_cursors
, METH_VARARGS
},
2309 { (char *)"Openbox_addClient", _wrap_Openbox_addClient
, METH_VARARGS
},
2310 { (char *)"Openbox_removeClient", _wrap_Openbox_removeClient
, METH_VARARGS
},
2311 { (char *)"Openbox_findClient", _wrap_Openbox_findClient
, METH_VARARGS
},
2312 { (char *)"Openbox_shutdown", _wrap_Openbox_shutdown
, METH_VARARGS
},
2313 { (char *)"Openbox_swigregister", Openbox_swigregister
, METH_VARARGS
},
2314 { (char *)"OBScreen_managed", _wrap_OBScreen_managed
, METH_VARARGS
},
2315 { (char *)"OBScreen_imageControl", _wrap_OBScreen_imageControl
, METH_VARARGS
},
2316 { (char *)"OBScreen_area", _wrap_OBScreen_area
, METH_VARARGS
},
2317 { (char *)"OBScreen_style", _wrap_OBScreen_style
, METH_VARARGS
},
2318 { (char *)"OBScreen_addStrut", _wrap_OBScreen_addStrut
, METH_VARARGS
},
2319 { (char *)"OBScreen_removeStrut", _wrap_OBScreen_removeStrut
, METH_VARARGS
},
2320 { (char *)"OBScreen_loadStyle", _wrap_OBScreen_loadStyle
, METH_VARARGS
},
2321 { (char *)"OBScreen_manageExisting", _wrap_OBScreen_manageExisting
, METH_VARARGS
},
2322 { (char *)"OBScreen_manageWindow", _wrap_OBScreen_manageWindow
, METH_VARARGS
},
2323 { (char *)"OBScreen_unmanageWindow", _wrap_OBScreen_unmanageWindow
, METH_VARARGS
},
2324 { (char *)"OBScreen_client", _wrap_OBScreen_client
, METH_VARARGS
},
2325 { (char *)"OBScreen_clientCount", _wrap_OBScreen_clientCount
, METH_VARARGS
},
2326 { (char *)"OBScreen_swigregister", OBScreen_swigregister
, METH_VARARGS
},
2327 { (char *)"MwmHints_flags_set", _wrap_MwmHints_flags_set
, METH_VARARGS
},
2328 { (char *)"MwmHints_flags_get", _wrap_MwmHints_flags_get
, METH_VARARGS
},
2329 { (char *)"MwmHints_functions_set", _wrap_MwmHints_functions_set
, METH_VARARGS
},
2330 { (char *)"MwmHints_functions_get", _wrap_MwmHints_functions_get
, METH_VARARGS
},
2331 { (char *)"MwmHints_decorations_set", _wrap_MwmHints_decorations_set
, METH_VARARGS
},
2332 { (char *)"MwmHints_decorations_get", _wrap_MwmHints_decorations_get
, METH_VARARGS
},
2333 { (char *)"MwmHints_swigregister", MwmHints_swigregister
, METH_VARARGS
},
2334 { (char *)"OBClient_frame_set", _wrap_OBClient_frame_set
, METH_VARARGS
},
2335 { (char *)"OBClient_frame_get", _wrap_OBClient_frame_get
, METH_VARARGS
},
2336 { (char *)"OBClient_ignore_unmaps_set", _wrap_OBClient_ignore_unmaps_set
, METH_VARARGS
},
2337 { (char *)"OBClient_ignore_unmaps_get", _wrap_OBClient_ignore_unmaps_get
, METH_VARARGS
},
2338 { (char *)"OBClient_screen", _wrap_OBClient_screen
, METH_VARARGS
},
2339 { (char *)"OBClient_window", _wrap_OBClient_window
, METH_VARARGS
},
2340 { (char *)"OBClient_type", _wrap_OBClient_type
, METH_VARARGS
},
2341 { (char *)"OBClient_desktop", _wrap_OBClient_desktop
, METH_VARARGS
},
2342 { (char *)"OBClient_title", _wrap_OBClient_title
, METH_VARARGS
},
2343 { (char *)"OBClient_iconTitle", _wrap_OBClient_iconTitle
, METH_VARARGS
},
2344 { (char *)"OBClient_appName", _wrap_OBClient_appName
, METH_VARARGS
},
2345 { (char *)"OBClient_appClass", _wrap_OBClient_appClass
, METH_VARARGS
},
2346 { (char *)"OBClient_canFocus", _wrap_OBClient_canFocus
, METH_VARARGS
},
2347 { (char *)"OBClient_urgent", _wrap_OBClient_urgent
, METH_VARARGS
},
2348 { (char *)"OBClient_focusNotify", _wrap_OBClient_focusNotify
, METH_VARARGS
},
2349 { (char *)"OBClient_shaped", _wrap_OBClient_shaped
, METH_VARARGS
},
2350 { (char *)"OBClient_gravity", _wrap_OBClient_gravity
, METH_VARARGS
},
2351 { (char *)"OBClient_positionRequested", _wrap_OBClient_positionRequested
, METH_VARARGS
},
2352 { (char *)"OBClient_decorations", _wrap_OBClient_decorations
, METH_VARARGS
},
2353 { (char *)"OBClient_funtions", _wrap_OBClient_funtions
, METH_VARARGS
},
2354 { (char *)"OBClient_modal", _wrap_OBClient_modal
, METH_VARARGS
},
2355 { (char *)"OBClient_shaded", _wrap_OBClient_shaded
, METH_VARARGS
},
2356 { (char *)"OBClient_iconic", _wrap_OBClient_iconic
, METH_VARARGS
},
2357 { (char *)"OBClient_maxVert", _wrap_OBClient_maxVert
, METH_VARARGS
},
2358 { (char *)"OBClient_maxHorz", _wrap_OBClient_maxHorz
, METH_VARARGS
},
2359 { (char *)"OBClient_fullscreen", _wrap_OBClient_fullscreen
, METH_VARARGS
},
2360 { (char *)"OBClient_floating", _wrap_OBClient_floating
, METH_VARARGS
},
2361 { (char *)"OBClient_toggleClientBorder", _wrap_OBClient_toggleClientBorder
, METH_VARARGS
},
2362 { (char *)"OBClient_area", _wrap_OBClient_area
, METH_VARARGS
},
2363 { (char *)"OBClient_move", _wrap_OBClient_move
, METH_VARARGS
},
2364 { (char *)"OBClient_resize", _wrap_OBClient_resize
, METH_VARARGS
},
2365 { (char *)"OBClient_propertyHandler", _wrap_OBClient_propertyHandler
, METH_VARARGS
},
2366 { (char *)"OBClient_clientMessageHandler", _wrap_OBClient_clientMessageHandler
, METH_VARARGS
},
2367 { (char *)"OBClient_shapeHandler", _wrap_OBClient_shapeHandler
, METH_VARARGS
},
2368 { (char *)"OBClient_configureRequestHandler", _wrap_OBClient_configureRequestHandler
, METH_VARARGS
},
2369 { (char *)"OBClient_unmapHandler", _wrap_OBClient_unmapHandler
, METH_VARARGS
},
2370 { (char *)"OBClient_destroyHandler", _wrap_OBClient_destroyHandler
, METH_VARARGS
},
2371 { (char *)"OBClient_swigregister", OBClient_swigregister
, METH_VARARGS
},
2372 { (char *)"Openbox_instance", _wrap_Openbox_instance
, METH_VARARGS
},
2377 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2379 static void *_p_ob__OpenboxTo_p_otk__OtkEventHandler(void *x
) {
2380 return (void *)((otk::OtkEventHandler
*) ((ob::Openbox
*) x
));
2382 static void *_p_ob__OBClientTo_p_otk__OtkEventHandler(void *x
) {
2383 return (void *)((otk::OtkEventHandler
*) ((ob::OBClient
*) x
));
2385 static void *_p_ob__OBClientTo_p_ob__OBWidget(void *x
) {
2386 return (void *)((ob::OBWidget
*) ((ob::OBClient
*) x
));
2388 static void *_p_ob__OpenboxTo_p_otk__OtkEventDispatcher(void *x
) {
2389 return (void *)((otk::OtkEventDispatcher
*) ((ob::Openbox
*) x
));
2391 static swig_type_info _swigt__p_Window
[] = {{"_p_Window", 0, "Window *", 0},{"_p_Window"},{0}};
2392 static swig_type_info _swigt__p_otk__OBTimerQueueManager
[] = {{"_p_otk__OBTimerQueueManager", 0, "otk::OBTimerQueueManager *", 0},{"_p_otk__OBTimerQueueManager"},{0}};
2393 static swig_type_info _swigt__p_ob__Cursors
[] = {{"_p_ob__Cursors", 0, "ob::Cursors *", 0},{"_p_ob__Cursors"},{0}};
2394 static swig_type_info _swigt__p_ob__OBScreen
[] = {{"_p_ob__OBScreen", 0, "ob::OBScreen *", 0},{"_p_ob__OBScreen"},{0}};
2395 static swig_type_info _swigt__p_otk__Style
[] = {{"_p_otk__Style", 0, "otk::Style *", 0},{"_p_otk__Style"},{0}};
2396 static swig_type_info _swigt__p_ob__OBFrame
[] = {{"_p_ob__OBFrame", 0, "ob::OBFrame *", 0},{"_p_ob__OBFrame"},{0}};
2397 static swig_type_info _swigt__p_ob__OBClient
[] = {{"_p_ob__OBClient", 0, "ob::OBClient *", 0},{"_p_ob__OBClient"},{0}};
2398 static swig_type_info _swigt__p_ob__Openbox
[] = {{"_p_ob__Openbox", 0, "ob::Openbox *", 0},{"_p_ob__Openbox"},{0}};
2399 static swig_type_info _swigt__p_Cursor
[] = {{"_p_Cursor", 0, "Cursor *", 0},{"_p_Cursor"},{0}};
2400 static swig_type_info _swigt__p_otk__Strut
[] = {{"_p_otk__Strut", 0, "otk::Strut *", 0},{"_p_otk__Strut"},{0}};
2401 static swig_type_info _swigt__p_XShapeEvent
[] = {{"_p_XShapeEvent", 0, "XShapeEvent *", 0},{"_p_XShapeEvent"},{0}};
2402 static swig_type_info _swigt__p_XConfigureRequestEvent
[] = {{"_p_XConfigureRequestEvent", 0, "XConfigureRequestEvent *", 0},{"_p_XConfigureRequestEvent"},{0}};
2403 static swig_type_info _swigt__p_otk__OtkEventHandler
[] = {{"_p_otk__OtkEventHandler", 0, "otk::OtkEventHandler *", 0},{"_p_otk__OtkEventHandler"},{"_p_ob__Openbox", _p_ob__OpenboxTo_p_otk__OtkEventHandler
},{"_p_ob__OBClient", _p_ob__OBClientTo_p_otk__OtkEventHandler
},{0}};
2404 static swig_type_info _swigt__p_otk__Rect
[] = {{"_p_otk__Rect", 0, "otk::Rect *", 0},{"_p_otk__Rect"},{0}};
2405 static swig_type_info _swigt__p_ob__OBWidget
[] = {{"_p_ob__OBWidget", 0, "ob::OBWidget *", 0},{"_p_ob__OBWidget"},{"_p_ob__OBClient", _p_ob__OBClientTo_p_ob__OBWidget
},{0}};
2406 static swig_type_info _swigt__p_XClientMessageEvent
[] = {{"_p_XClientMessageEvent", 0, "XClientMessageEvent *", 0},{"_p_XClientMessageEvent"},{0}};
2407 static swig_type_info _swigt__p_otk__OBProperty
[] = {{"_p_otk__OBProperty", 0, "otk::OBProperty *", 0},{"_p_otk__OBProperty"},{0}};
2408 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}};
2409 static swig_type_info _swigt__p_XPropertyEvent
[] = {{"_p_XPropertyEvent", 0, "XPropertyEvent *", 0},{"_p_XPropertyEvent"},{0}};
2410 static swig_type_info _swigt__p_XDestroyWindowEvent
[] = {{"_p_XDestroyWindowEvent", 0, "XDestroyWindowEvent *", 0},{"_p_XDestroyWindowEvent"},{0}};
2411 static swig_type_info _swigt__p_otk__BImageControl
[] = {{"_p_otk__BImageControl", 0, "otk::BImageControl *", 0},{"_p_otk__BImageControl"},{0}};
2412 static swig_type_info _swigt__p_ob__MwmHints
[] = {{"_p_ob__MwmHints", 0, "ob::MwmHints *", 0},{"_p_ob__MwmHints"},{0}};
2413 static swig_type_info _swigt__p_otk__Configuration
[] = {{"_p_otk__Configuration", 0, "otk::Configuration *", 0},{"_p_otk__Configuration"},{0}};
2414 static swig_type_info _swigt__p_XUnmapEvent
[] = {{"_p_XUnmapEvent", 0, "XUnmapEvent *", 0},{"_p_XUnmapEvent"},{0}};
2416 static swig_type_info
*swig_types_initial
[] = {
2418 _swigt__p_otk__OBTimerQueueManager
,
2419 _swigt__p_ob__Cursors
,
2420 _swigt__p_ob__OBScreen
,
2421 _swigt__p_otk__Style
,
2422 _swigt__p_ob__OBFrame
,
2423 _swigt__p_ob__OBClient
,
2424 _swigt__p_ob__Openbox
,
2426 _swigt__p_otk__Strut
,
2427 _swigt__p_XShapeEvent
,
2428 _swigt__p_XConfigureRequestEvent
,
2429 _swigt__p_otk__OtkEventHandler
,
2430 _swigt__p_otk__Rect
,
2431 _swigt__p_ob__OBWidget
,
2432 _swigt__p_XClientMessageEvent
,
2433 _swigt__p_otk__OBProperty
,
2434 _swigt__p_otk__OtkEventDispatcher
,
2435 _swigt__p_XPropertyEvent
,
2436 _swigt__p_XDestroyWindowEvent
,
2437 _swigt__p_otk__BImageControl
,
2438 _swigt__p_ob__MwmHints
,
2439 _swigt__p_otk__Configuration
,
2440 _swigt__p_XUnmapEvent
,
2445 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2447 static swig_const_info swig_const_table
[] = {
2448 { SWIG_PY_INT
, (char *)"Openbox_State_Starting", (long) ob::Openbox::State_Starting
, 0, 0, 0},
2449 { SWIG_PY_INT
, (char *)"Openbox_State_Normal", (long) ob::Openbox::State_Normal
, 0, 0, 0},
2450 { SWIG_PY_INT
, (char *)"Openbox_State_Exiting", (long) ob::Openbox::State_Exiting
, 0, 0, 0},
2451 { SWIG_PY_INT
, (char *)"OBScreen_event_mask", (long) ob::OBScreen::event_mask
, 0, 0, 0},
2452 { SWIG_PY_INT
, (char *)"MwmHints_elements", (long) ob::MwmHints::elements
, 0, 0, 0},
2453 { SWIG_PY_INT
, (char *)"OBClient_TopLeft", (long) ob::OBClient::TopLeft
, 0, 0, 0},
2454 { SWIG_PY_INT
, (char *)"OBClient_TopRight", (long) ob::OBClient::TopRight
, 0, 0, 0},
2455 { SWIG_PY_INT
, (char *)"OBClient_BottomLeft", (long) ob::OBClient::BottomLeft
, 0, 0, 0},
2456 { SWIG_PY_INT
, (char *)"OBClient_BottomRight", (long) ob::OBClient::BottomRight
, 0, 0, 0},
2457 { SWIG_PY_INT
, (char *)"OBClient_Type_Desktop", (long) ob::OBClient::Type_Desktop
, 0, 0, 0},
2458 { SWIG_PY_INT
, (char *)"OBClient_Type_Dock", (long) ob::OBClient::Type_Dock
, 0, 0, 0},
2459 { SWIG_PY_INT
, (char *)"OBClient_Type_Toolbar", (long) ob::OBClient::Type_Toolbar
, 0, 0, 0},
2460 { SWIG_PY_INT
, (char *)"OBClient_Type_Menu", (long) ob::OBClient::Type_Menu
, 0, 0, 0},
2461 { SWIG_PY_INT
, (char *)"OBClient_Type_Utility", (long) ob::OBClient::Type_Utility
, 0, 0, 0},
2462 { SWIG_PY_INT
, (char *)"OBClient_Type_Splash", (long) ob::OBClient::Type_Splash
, 0, 0, 0},
2463 { SWIG_PY_INT
, (char *)"OBClient_Type_Dialog", (long) ob::OBClient::Type_Dialog
, 0, 0, 0},
2464 { SWIG_PY_INT
, (char *)"OBClient_Type_Normal", (long) ob::OBClient::Type_Normal
, 0, 0, 0},
2465 { SWIG_PY_INT
, (char *)"OBClient_MwmFlag_Functions", (long) ob::OBClient::MwmFlag_Functions
, 0, 0, 0},
2466 { SWIG_PY_INT
, (char *)"OBClient_MwmFlag_Decorations", (long) ob::OBClient::MwmFlag_Decorations
, 0, 0, 0},
2467 { SWIG_PY_INT
, (char *)"OBClient_MwmFunc_All", (long) ob::OBClient::MwmFunc_All
, 0, 0, 0},
2468 { SWIG_PY_INT
, (char *)"OBClient_MwmFunc_Resize", (long) ob::OBClient::MwmFunc_Resize
, 0, 0, 0},
2469 { SWIG_PY_INT
, (char *)"OBClient_MwmFunc_Move", (long) ob::OBClient::MwmFunc_Move
, 0, 0, 0},
2470 { SWIG_PY_INT
, (char *)"OBClient_MwmFunc_Iconify", (long) ob::OBClient::MwmFunc_Iconify
, 0, 0, 0},
2471 { SWIG_PY_INT
, (char *)"OBClient_MwmFunc_Maximize", (long) ob::OBClient::MwmFunc_Maximize
, 0, 0, 0},
2472 { SWIG_PY_INT
, (char *)"OBClient_MwmDecor_All", (long) ob::OBClient::MwmDecor_All
, 0, 0, 0},
2473 { SWIG_PY_INT
, (char *)"OBClient_MwmDecor_Border", (long) ob::OBClient::MwmDecor_Border
, 0, 0, 0},
2474 { SWIG_PY_INT
, (char *)"OBClient_MwmDecor_Handle", (long) ob::OBClient::MwmDecor_Handle
, 0, 0, 0},
2475 { SWIG_PY_INT
, (char *)"OBClient_MwmDecor_Title", (long) ob::OBClient::MwmDecor_Title
, 0, 0, 0},
2476 { SWIG_PY_INT
, (char *)"OBClient_MwmDecor_Iconify", (long) ob::OBClient::MwmDecor_Iconify
, 0, 0, 0},
2477 { SWIG_PY_INT
, (char *)"OBClient_MwmDecor_Maximize", (long) ob::OBClient::MwmDecor_Maximize
, 0, 0, 0},
2478 { SWIG_PY_INT
, (char *)"OBClient_Func_Resize", (long) ob::OBClient::Func_Resize
, 0, 0, 0},
2479 { SWIG_PY_INT
, (char *)"OBClient_Func_Move", (long) ob::OBClient::Func_Move
, 0, 0, 0},
2480 { SWIG_PY_INT
, (char *)"OBClient_Func_Iconify", (long) ob::OBClient::Func_Iconify
, 0, 0, 0},
2481 { SWIG_PY_INT
, (char *)"OBClient_Func_Maximize", (long) ob::OBClient::Func_Maximize
, 0, 0, 0},
2482 { SWIG_PY_INT
, (char *)"OBClient_Func_Close", (long) ob::OBClient::Func_Close
, 0, 0, 0},
2483 { SWIG_PY_INT
, (char *)"OBClient_Decor_Titlebar", (long) ob::OBClient::Decor_Titlebar
, 0, 0, 0},
2484 { SWIG_PY_INT
, (char *)"OBClient_Decor_Handle", (long) ob::OBClient::Decor_Handle
, 0, 0, 0},
2485 { SWIG_PY_INT
, (char *)"OBClient_Decor_Border", (long) ob::OBClient::Decor_Border
, 0, 0, 0},
2486 { SWIG_PY_INT
, (char *)"OBClient_Decor_Iconify", (long) ob::OBClient::Decor_Iconify
, 0, 0, 0},
2487 { SWIG_PY_INT
, (char *)"OBClient_Decor_Maximize", (long) ob::OBClient::Decor_Maximize
, 0, 0, 0},
2488 { SWIG_PY_INT
, (char *)"OBClient_Decor_Sticky", (long) ob::OBClient::Decor_Sticky
, 0, 0, 0},
2489 { SWIG_PY_INT
, (char *)"OBClient_Decor_Close", (long) ob::OBClient::Decor_Close
, 0, 0, 0},
2490 { SWIG_PY_INT
, (char *)"OBClient_State_Remove", (long) ob::OBClient::State_Remove
, 0, 0, 0},
2491 { SWIG_PY_INT
, (char *)"OBClient_State_Add", (long) ob::OBClient::State_Add
, 0, 0, 0},
2492 { SWIG_PY_INT
, (char *)"OBClient_State_Toggle", (long) ob::OBClient::State_Toggle
, 0, 0, 0},
2493 { SWIG_PY_INT
, (char *)"OBClient_event_mask", (long) ob::OBClient::event_mask
, 0, 0, 0},
2494 { SWIG_PY_INT
, (char *)"OBClient_no_propagate_mask", (long) ob::OBClient::no_propagate_mask
, 0, 0, 0},
2504 SWIGEXPORT(void) SWIG_init(void) {
2505 static PyObject
*SWIG_globals
= 0;
2506 static int typeinit
= 0;
2509 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
2510 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
2511 d
= PyModule_GetDict(m
);
2514 for (i
= 0; swig_types_initial
[i
]; i
++) {
2515 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
2519 SWIG_InstallConstants(d
,swig_const_table
);