]> icculus.org git repositories - mikachu/openbox.git/blob - src/openbox_wrap.cc
bindings work. now they have a reset key too.
[mikachu/openbox.git] / src / openbox_wrap.cc
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 1.3.17u-20021226-0459
4  * 
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  * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12
13 #ifdef __cplusplus
14 template<class T> class SwigValueWrapper {
15     T *tt;
16 public:
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; }
22 };                                                    
23 #endif
24
25
26 #include "Python.h"
27
28 /***********************************************************************
29  * common.swg
30  *
31  *     This file contains generic SWIG runtime support for pointer
32  *     type checking as well as a few commonly used macros to control
33  *     external linkage.
34  *
35  * Author : David Beazley (beazley@cs.uchicago.edu)
36  *
37  * Copyright (c) 1999-2000, The University of Chicago
38  * 
39  * This file may be freely redistributed without license or fee provided
40  * this copyright message remains intact.
41  ************************************************************************/
42
43 #include <string.h>
44
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
50 #               else
51 #                       define SWIGEXPORT(a) __declspec(dllexport) a
52 #                       define SWIGIMPORT(a) extern a
53 #               endif
54 #       else
55 #               if defined(__BORLANDC__)
56 #                       define SWIGEXPORT(a) a _export
57 #                       define SWIGIMPORT(a) a _export
58 #               else
59 #                       define SWIGEXPORT(a) a
60 #                       define SWIGIMPORT(a) a
61 #               endif
62 #       endif
63 #else
64 #       define SWIGEXPORT(a) a
65 #       define SWIGIMPORT(a) a
66 #endif
67
68 #ifdef SWIG_GLOBAL
69 #define SWIGRUNTIME(a) SWIGEXPORT(a)
70 #else
71 #define SWIGRUNTIME(a) static a
72 #endif
73
74 #ifdef __cplusplus
75 extern "C" {
76 #endif
77
78 typedef void *(*swig_converter_func)(void *);
79 typedef struct swig_type_info *(*swig_dycast_func)(void **);
80
81 typedef struct swig_type_info {
82   const char             *name;                 
83   swig_converter_func     converter;
84   const char             *str;
85   void                   *clientdata;   
86   swig_dycast_func        dcast;
87   struct swig_type_info  *next;
88   struct swig_type_info  *prev;
89 } swig_type_info;
90
91 #ifdef SWIG_NOINCLUDE
92
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 *);
99
100 #else
101
102 static swig_type_info *swig_type_list = 0;
103
104 /* Register a type mapping with the type-checking */
105 SWIGRUNTIME(swig_type_info *)
106 SWIG_TypeRegister(swig_type_info *ti)
107 {
108   swig_type_info *tc, *head, *ret, *next;
109   /* Check to see if this type has already been registered */
110   tc = swig_type_list;
111   while (tc) {
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;      
115       head = tc;
116       next = tc->next;
117       goto l1;
118     }
119     tc = tc->prev;
120   }
121   head = ti;
122   next = 0;
123
124   /* Place in list */
125   ti->prev = swig_type_list;
126   swig_type_list = ti;
127
128   /* Build linked lists */
129  l1:
130   ret = head;
131   tc = ti + 1;
132   /* Patch up the rest of the links */
133   while (tc->name) {
134     head->next = tc;
135     tc->prev = head;
136     head = tc;
137     tc++;
138   }
139   head->next = next;
140   return ret;
141 }
142
143 /* Check the typename */
144 SWIGRUNTIME(swig_type_info *) 
145 SWIG_TypeCheck(char *c, swig_type_info *ty)
146 {
147   swig_type_info *s;
148   if (!ty) return 0;        /* Void pointer */
149   s = ty->next;             /* First element always just a name */
150   do {
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;
155       if (s->next) {
156         s->next->prev = s->prev;
157       }
158       /* Insert s as second element in the list */
159       s->next = ty->next;
160       if (ty->next) ty->next->prev = s;
161       ty->next = s;
162       return s;
163     }
164     s = s->next;
165   } while (s && (s != ty->next));
166   return 0;
167 }
168
169 /* Cast a pointer up an inheritance hierarchy */
170 SWIGRUNTIME(void *) 
171 SWIG_TypeCast(swig_type_info *ty, void *ptr) 
172 {
173   if ((!ty) || (!ty->converter)) return ptr;
174   return (*ty->converter)(ptr);
175 }
176
177 /* Dynamic pointer casting. Down an inheritance hierarchy */
178 SWIGRUNTIME(swig_type_info *) 
179 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) 
180 {
181   swig_type_info *lastty = ty;
182   if (!ty || !ty->dcast) return ty;
183   while (ty && (ty->dcast)) {
184      ty = (*ty->dcast)(ptr);
185      if (ty) lastty = ty;
186   }
187   return lastty;
188 }
189
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;
194   while (ty) {
195     if (ty->str && (strcmp(name,ty->str) == 0)) return ty;
196     if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
197     ty = ty->prev;
198   }
199   return 0;
200 }
201
202 /* Set the clientdata field for a type */
203 SWIGRUNTIME(void)
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;
208   equiv = ti->next;
209   while (equiv) {
210     if (!equiv->converter) {
211       tc = swig_type_list;
212       while (tc) {
213         if ((strcmp(tc->name, equiv->name) == 0))
214           SWIG_TypeClientData(tc,clientdata);
215         tc = tc->prev;
216       }
217     }
218     equiv = equiv->next;
219   }
220 }
221 #endif
222
223 #ifdef __cplusplus
224 }
225
226 #endif
227
228 /***********************************************************************
229  * python.swg
230  *
231  *     This file contains the runtime support for Python modules
232  *     and includes code for managing global variables and pointer
233  *     type checking.
234  *
235  * Author : David Beazley (beazley@cs.uchicago.edu)
236  ************************************************************************/
237
238 #include "Python.h"
239
240 #ifdef __cplusplus
241 extern "C" {
242 #endif
243
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
249
250 /* Flags for pointer conversion */
251
252 #define SWIG_POINTER_EXCEPTION     0x1
253 #define SWIG_POINTER_DISOWN        0x2
254
255 /* Exception handling in wrappers */
256 #define SWIG_fail   goto fail
257
258 /* Constant information structure */
259 typedef struct swig_const_info {
260     int type;
261     char *name;
262     long lvalue;
263     double dvalue;
264     void   *pvalue;
265     swig_type_info **ptype;
266 } swig_const_info;
267
268 #ifdef SWIG_NOINCLUDE
269
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[]);
279 #else
280
281 /* -----------------------------------------------------------------------------
282  * global variable support code.
283  * ----------------------------------------------------------------------------- */
284
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;
290 } swig_globalvar;
291
292 typedef struct swig_varlinkobject {
293   PyObject_HEAD
294   swig_globalvar *vars;
295 } swig_varlinkobject;
296
297 static PyObject *
298 swig_varlink_repr(swig_varlinkobject *v) {
299   v = v;
300   return PyString_FromString("<Global variables>");
301 }
302
303 static int
304 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
305   swig_globalvar  *var;
306   flags = 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,", ");
311   }
312   fprintf(fp," }\n");
313   return 0;
314 }
315
316 static PyObject *
317 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
318   swig_globalvar *var = v->vars;
319   while (var) {
320     if (strcmp(var->name,n) == 0) {
321       return (*var->get_attr)();
322     }
323     var = var->next;
324   }
325   PyErr_SetString(PyExc_NameError,"Unknown C global variable");
326   return NULL;
327 }
328
329 static int
330 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
331   swig_globalvar *var = v->vars;
332   while (var) {
333     if (strcmp(var->name,n) == 0) {
334       return (*var->set_attr)(p);
335     }
336     var = var->next;
337   }
338   PyErr_SetString(PyExc_NameError,"Unknown C global variable");
339   return 1;
340 }
341
342 statichere PyTypeObject varlinktype = {
343   PyObject_HEAD_INIT(0)              
344   0,
345   (char *)"swigvarlink",                      /* Type name    */
346   sizeof(swig_varlinkobject),         /* Basic size   */
347   0,                                  /* Itemsize     */
348   0,                                  /* Deallocator  */ 
349   (printfunc) swig_varlink_print,     /* Print        */
350   (getattrfunc) swig_varlink_getattr, /* get attr     */
351   (setattrfunc) swig_varlink_setattr, /* Set attr     */
352   0,                                  /* tp_compare   */
353   (reprfunc) swig_varlink_repr,       /* tp_repr      */    
354   0,                                  /* tp_as_number */
355   0,                                  /* tp_as_mapping*/
356   0,                                  /* tp_hash      */
357 };
358
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;
366   result->vars = 0;
367   result->ob_refcnt = 0;
368   Py_XINCREF((PyObject *) result);
369   return ((PyObject*) result);
370 }
371
372 SWIGRUNTIME(void)
373 SWIG_addvarlink(PyObject *p, char *name,
374            PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
375   swig_varlinkobject *v;
376   swig_globalvar *gv;
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;
383   gv->next = v->vars;
384   v->vars = gv;
385 }
386
387 /* Pack binary data into a string */
388 SWIGRUNTIME(char *)
389 SWIG_PackData(char *c, void *ptr, int sz) {
390   static char hex[17] = "0123456789abcdef";
391   int i;
392   unsigned char *u = (unsigned char *) ptr;
393   register unsigned char uu;
394   for (i = 0; i < sz; i++,u++) {
395     uu = *u;
396     *(c++) = hex[(uu & 0xf0) >> 4];
397     *(c++) = hex[uu & 0xf];
398   }
399   return c;
400 }
401
402 /* Unpack binary data from a string */
403 SWIGRUNTIME(char *)
404 SWIG_UnpackData(char *c, void *ptr, int sz) {
405   register unsigned char uu = 0;
406   register int d;
407   unsigned char *u = (unsigned char *) ptr;
408   int i;
409   for (i = 0; i < sz; i++, u++) {
410     d = *(c++);
411     if ((d >= '0') && (d <= '9'))
412       uu = ((d - '0') << 4);
413     else if ((d >= 'a') && (d <= 'f'))
414       uu = ((d - ('a'-10)) << 4);
415     d = *(c++);
416     if ((d >= '0') && (d <= '9'))
417       uu |= (d - '0');
418     else if ((d >= 'a') && (d <= 'f'))
419       uu |= (d - ('a'-10));
420     *u = uu;
421   }
422   return c;
423 }
424
425 /* Convert a pointer value */
426 SWIGRUNTIME(int)
427 SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
428   swig_type_info *tc;
429   char  *c;
430   static PyObject *SWIG_this = 0;
431   int    newref = 0;
432   PyObject  *pyobj = 0;
433
434   if (!obj) return 0;
435   if (obj == Py_None) {
436     *ptr = 0;
437     return 0;
438   }
439 #ifdef SWIG_COBJECT_TYPES
440   if (!(PyCObject_Check(obj))) {
441     if (!SWIG_this)
442       SWIG_this = PyString_FromString("this");
443     pyobj = obj;
444     obj = PyObject_GetAttr(obj,SWIG_this);
445     newref = 1;
446     if (!obj) goto type_error;
447     if (!PyCObject_Check(obj)) {
448       Py_DECREF(obj);
449       goto type_error;
450     }
451   }  
452   *ptr = PyCObject_AsVoidPtr(obj);
453   c = (char *) PyCObject_GetDesc(obj);
454   if (newref) Py_DECREF(obj);
455   goto cobject;
456 #else
457   if (!(PyString_Check(obj))) {
458     if (!SWIG_this)
459       SWIG_this = PyString_FromString("this");
460     pyobj = obj;
461     obj = PyObject_GetAttr(obj,SWIG_this);
462     newref = 1;
463     if (!obj) goto type_error;
464     if (!PyString_Check(obj)) {
465       Py_DECREF(obj);
466       goto type_error;
467     }
468   } 
469   c = PyString_AsString(obj);
470   /* Pointer values must start with leading underscore */
471   if (*c != '_') {
472     *ptr = (void *) 0;
473     if (strcmp(c,"NULL") == 0) {
474       if (newref) { Py_DECREF(obj); }
475       return 0;
476     } else {
477       if (newref) { Py_DECREF(obj); }
478       goto type_error;
479     }
480   }
481   c++;
482   c = SWIG_UnpackData(c,ptr,sizeof(void *));
483   if (newref) { Py_DECREF(obj); }
484 #endif
485
486 #ifdef SWIG_COBJECT_TYPES
487 cobject:
488 #endif
489
490   if (ty) {
491     tc = SWIG_TypeCheck(c,ty);
492     if (!tc) goto type_error;
493     *ptr = SWIG_TypeCast(tc,(void*) *ptr);
494   }
495
496   if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
497       PyObject *zero = PyInt_FromLong(0);
498       PyObject_SetAttrString(pyobj,(char*)"thisown",zero);
499       Py_DECREF(zero);
500   }
501   return 0;
502
503 type_error:
504   if (flags & SWIG_POINTER_EXCEPTION) {
505     if (ty) {
506       char *temp = (char *) malloc(64+strlen(ty->name));
507       sprintf(temp,"Type error. Expected %s", ty->name);
508       PyErr_SetString(PyExc_TypeError, temp);
509       free((char *) temp);
510     } else {
511       PyErr_SetString(PyExc_TypeError,"Expected a pointer");
512     }
513   }
514   return -1;
515 }
516
517 /* Convert a packed value value */
518 SWIGRUNTIME(int)
519 SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
520   swig_type_info *tc;
521   char  *c;
522
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;
527   c++;
528   c = SWIG_UnpackData(c,ptr,sz);
529   if (ty) {
530     tc = SWIG_TypeCheck(c,ty);
531     if (!tc) goto type_error;
532   }
533   return 0;
534
535 type_error:
536
537   if (flags) {
538     if (ty) {
539       char *temp = (char *) malloc(64+strlen(ty->name));
540       sprintf(temp,"Type error. Expected %s", ty->name);
541       PyErr_SetString(PyExc_TypeError, temp);
542       free((char *) temp);
543     } else {
544       PyErr_SetString(PyExc_TypeError,"Expected a pointer");
545     }
546   }
547   return -1;
548 }
549
550 /* Create a new pointer object */
551 SWIGRUNTIME(PyObject *)
552 SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
553   PyObject *robj;
554   if (!ptr) {
555     Py_INCREF(Py_None);
556     return Py_None;
557   }
558 #ifdef SWIG_COBJECT_TYPES
559   robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) type->name, NULL);
560 #else
561   {
562     char result[1024];
563     char *r = result;
564     *(r++) = '_';
565     r = SWIG_PackData(r,&ptr,sizeof(void *));
566     strcpy(r,type->name);
567     robj = PyString_FromString(result);
568   }
569 #endif
570   if (!robj || (robj == Py_None)) return robj;
571   if (type->clientdata) {
572     PyObject *inst;
573     PyObject *args = Py_BuildValue((char*)"(O)", robj);
574     Py_DECREF(robj);
575     inst = PyObject_CallObject((PyObject *) type->clientdata, args);
576     Py_DECREF(args);
577     if (inst) {
578       if (own) {
579         PyObject *n = PyInt_FromLong(1);
580         PyObject_SetAttrString(inst,(char*)"thisown",n);
581         Py_DECREF(n);
582       }
583       robj = inst;
584     }
585   }
586   return robj;
587 }
588
589 SWIGRUNTIME(PyObject *)
590 SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
591   char result[1024];
592   char *r = result;
593   if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
594   *(r++) = '_';
595   r = SWIG_PackData(r,ptr,sz);
596   strcpy(r,type->name);
597   return PyString_FromString(result);
598 }
599
600 /* Install Constants */
601 SWIGRUNTIME(void)
602 SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
603   int i;
604   PyObject *obj;
605   for (i = 0; constants[i].type; i++) {
606     switch(constants[i].type) {
607     case SWIG_PY_INT:
608       obj = PyInt_FromLong(constants[i].lvalue);
609       break;
610     case SWIG_PY_FLOAT:
611       obj = PyFloat_FromDouble(constants[i].dvalue);
612       break;
613     case SWIG_PY_STRING:
614       obj = PyString_FromString((char *) constants[i].pvalue);
615       break;
616     case SWIG_PY_POINTER:
617       obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
618       break;
619     case SWIG_PY_BINARY:
620       obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
621       break;
622     default:
623       obj = 0;
624       break;
625     }
626     if (obj) {
627       PyDict_SetItemString(d,constants[i].name,obj);
628       Py_DECREF(obj);
629     }
630   }
631 }
632
633 #endif
634
635 #ifdef __cplusplus
636 }
637 #endif
638
639
640
641
642
643
644
645
646 /* -------- TYPES TABLE (BEGIN) -------- */
647
648 #define  SWIGTYPE_p_ob__OBActions__ActionType 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_XReparentEvent swig_types[6] 
655 #define  SWIGTYPE_p_ob__OBClient swig_types[7] 
656 #define  SWIGTYPE_p_ob__Openbox 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_XFocusChangeEvent swig_types[15] 
664 #define  SWIGTYPE_p_XClientMessageEvent swig_types[16] 
665 #define  SWIGTYPE_p_otk__OBProperty swig_types[17] 
666 #define  SWIGTYPE_p_otk__OtkEventDispatcher swig_types[18] 
667 #define  SWIGTYPE_p_XPropertyEvent swig_types[19] 
668 #define  SWIGTYPE_p_XDestroyWindowEvent swig_types[20] 
669 #define  SWIGTYPE_p_otk__BImageControl swig_types[21] 
670 #define  SWIGTYPE_p_PyObject swig_types[22] 
671 #define  SWIGTYPE_p_ob__OBBindings swig_types[23] 
672 #define  SWIGTYPE_p_ob__MwmHints swig_types[24] 
673 #define  SWIGTYPE_p_otk__Configuration swig_types[25] 
674 #define  SWIGTYPE_p_XUnmapEvent swig_types[26] 
675 static swig_type_info *swig_types[28];
676
677 /* -------- TYPES TABLE (END) -------- */
678
679
680 /*-----------------------------------------------
681               @(target):= _openbox.so
682   ------------------------------------------------*/
683 #define SWIG_init    init_openbox
684
685 #define SWIG_name    "_openbox"
686
687 #ifdef HAVE_CONFIG_H
688 #  include "../config.h"
689 #endif
690
691 #include "openbox.hh"
692 #include "screen.hh"
693 #include "client.hh"
694 #include "python.hh"
695 #include "bindings.hh"
696
697
698 #define  SWIG_MemoryError    1
699 #define  SWIG_IOError        2
700 #define  SWIG_RuntimeError   3
701 #define  SWIG_IndexError     4
702 #define  SWIG_TypeError      5
703 #define  SWIG_DivisionByZero 6
704 #define  SWIG_OverflowError  7
705 #define  SWIG_SyntaxError    8
706 #define  SWIG_ValueError     9
707 #define  SWIG_SystemError   10
708 #define  SWIG_UnknownError  99
709
710
711 static void _SWIG_exception(int code, const char *msg) {
712   switch(code) {
713   case SWIG_MemoryError:
714     PyErr_SetString(PyExc_MemoryError,msg);
715     break;
716   case SWIG_IOError:
717     PyErr_SetString(PyExc_IOError,msg);
718     break;
719   case SWIG_RuntimeError:
720     PyErr_SetString(PyExc_RuntimeError,msg);
721     break;
722   case SWIG_IndexError:
723     PyErr_SetString(PyExc_IndexError,msg);
724     break;
725   case SWIG_TypeError:
726     PyErr_SetString(PyExc_TypeError,msg);
727     break;
728   case SWIG_DivisionByZero:
729     PyErr_SetString(PyExc_ZeroDivisionError,msg);
730     break;
731   case SWIG_OverflowError:
732     PyErr_SetString(PyExc_OverflowError,msg);
733     break;
734   case SWIG_SyntaxError:
735     PyErr_SetString(PyExc_SyntaxError,msg);
736     break;
737   case SWIG_ValueError:
738     PyErr_SetString(PyExc_ValueError,msg);
739     break;
740   case SWIG_SystemError:
741     PyErr_SetString(PyExc_SystemError,msg);
742     break;
743   default:
744     PyErr_SetString(PyExc_RuntimeError,msg);
745     break;
746   }
747 }
748
749 #define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
750
751
752 #include <string>
753
754
755 #include <string>
756
757 static PyObject* SwigInt_FromBool(bool b) {
758     return PyInt_FromLong(b ? 1L : 0L);
759 }
760 static double SwigNumber_Check(PyObject* o) {
761     return PyFloat_Check(o) || PyInt_Check(o);
762 }
763 static double SwigNumber_AsDouble(PyObject* o) {
764     return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o)));
765 }
766 static PyObject* SwigString_FromString(const std::string& s) {
767     return PyString_FromString(s.c_str());
768 }
769 static std::string SwigString_AsString(PyObject* o) {
770     return std::string(PyString_AsString(o));
771 }
772
773
774 #include <vector>
775 #include <algorithm>
776 #include <stdexcept>
777
778
779   ob::Openbox *Openbox_instance() { return ob::Openbox::instance; }
780
781
782   enum ActionType {
783     Action_ButtonPress,
784     Action_ButtonRelease,
785     Action_Click,
786     Action_DoubleClick,
787     Action_EnterWindow,
788     Action_LeaveWindow,
789     Action_KeyPress,
790     Action_MouseMotion
791   };
792   enum WidgetType {
793     Type_Frame,
794     Type_Titlebar,
795     Type_Handle,
796     Type_Plate,
797     Type_Label,
798     Type_MaximizeButton,
799     Type_CloseButton,
800     Type_IconifyButton,
801     Type_StickyButton,
802     Type_LeftGrip,
803     Type_RightGrip,
804     Type_Client,
805     Type_Root
806   };
807
808
809   #include <iterator>
810
811 ob::OBClient *ob_OBScreen_client(ob::OBScreen *self,int i){
812     if (i >= (int)self->clients.size())
813       return NULL;
814     ob::OBScreen::ClientList::iterator it = self->clients.begin();
815     std::advance(it,i);
816     return *it;
817   }
818 int ob_OBScreen_clientCount(ob::OBScreen const *self){
819     return (int) self->clients.size();
820   }
821 #ifdef __cplusplus
822 extern "C" {
823 #endif
824 static PyObject *_wrap_Openbox_instance(PyObject *self, PyObject *args) {
825     PyObject *resultobj;
826     ob::Openbox *result;
827     
828     if(!PyArg_ParseTuple(args,(char *)":Openbox_instance")) goto fail;
829     result = (ob::Openbox *)Openbox_instance();
830     
831     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Openbox, 0);
832     return resultobj;
833     fail:
834     return NULL;
835 }
836
837
838 static PyObject *_wrap_Cursors_session_set(PyObject *self, PyObject *args) {
839     PyObject *resultobj;
840     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
841     Cursor arg2 ;
842     PyObject * obj0  = 0 ;
843     PyObject * obj1  = 0 ;
844     
845     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_session_set",&obj0,&obj1)) goto fail;
846     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
847     arg2 = (Cursor) PyInt_AsLong(obj1);
848     if (PyErr_Occurred()) SWIG_fail;
849     if (arg1) (arg1)->session = arg2;
850     
851     Py_INCREF(Py_None); resultobj = Py_None;
852     return resultobj;
853     fail:
854     return NULL;
855 }
856
857
858 static PyObject *_wrap_Cursors_session_get(PyObject *self, PyObject *args) {
859     PyObject *resultobj;
860     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
861     Cursor result;
862     PyObject * obj0  = 0 ;
863     
864     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_session_get",&obj0)) goto fail;
865     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
866     result = (Cursor) ((arg1)->session);
867     
868     resultobj = PyInt_FromLong((long)result);
869     return resultobj;
870     fail:
871     return NULL;
872 }
873
874
875 static PyObject *_wrap_Cursors_move_set(PyObject *self, PyObject *args) {
876     PyObject *resultobj;
877     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
878     Cursor arg2 ;
879     PyObject * obj0  = 0 ;
880     PyObject * obj1  = 0 ;
881     
882     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_move_set",&obj0,&obj1)) goto fail;
883     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
884     arg2 = (Cursor) PyInt_AsLong(obj1);
885     if (PyErr_Occurred()) SWIG_fail;
886     if (arg1) (arg1)->move = arg2;
887     
888     Py_INCREF(Py_None); resultobj = Py_None;
889     return resultobj;
890     fail:
891     return NULL;
892 }
893
894
895 static PyObject *_wrap_Cursors_move_get(PyObject *self, PyObject *args) {
896     PyObject *resultobj;
897     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
898     Cursor result;
899     PyObject * obj0  = 0 ;
900     
901     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_move_get",&obj0)) goto fail;
902     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
903     result = (Cursor) ((arg1)->move);
904     
905     resultobj = PyInt_FromLong((long)result);
906     return resultobj;
907     fail:
908     return NULL;
909 }
910
911
912 static PyObject *_wrap_Cursors_ll_angle_set(PyObject *self, PyObject *args) {
913     PyObject *resultobj;
914     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
915     Cursor arg2 ;
916     PyObject * obj0  = 0 ;
917     PyObject * obj1  = 0 ;
918     
919     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ll_angle_set",&obj0,&obj1)) goto fail;
920     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
921     arg2 = (Cursor) PyInt_AsLong(obj1);
922     if (PyErr_Occurred()) SWIG_fail;
923     if (arg1) (arg1)->ll_angle = arg2;
924     
925     Py_INCREF(Py_None); resultobj = Py_None;
926     return resultobj;
927     fail:
928     return NULL;
929 }
930
931
932 static PyObject *_wrap_Cursors_ll_angle_get(PyObject *self, PyObject *args) {
933     PyObject *resultobj;
934     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
935     Cursor result;
936     PyObject * obj0  = 0 ;
937     
938     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ll_angle_get",&obj0)) goto fail;
939     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
940     result = (Cursor) ((arg1)->ll_angle);
941     
942     resultobj = PyInt_FromLong((long)result);
943     return resultobj;
944     fail:
945     return NULL;
946 }
947
948
949 static PyObject *_wrap_Cursors_lr_angle_set(PyObject *self, PyObject *args) {
950     PyObject *resultobj;
951     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
952     Cursor arg2 ;
953     PyObject * obj0  = 0 ;
954     PyObject * obj1  = 0 ;
955     
956     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_lr_angle_set",&obj0,&obj1)) goto fail;
957     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
958     arg2 = (Cursor) PyInt_AsLong(obj1);
959     if (PyErr_Occurred()) SWIG_fail;
960     if (arg1) (arg1)->lr_angle = arg2;
961     
962     Py_INCREF(Py_None); resultobj = Py_None;
963     return resultobj;
964     fail:
965     return NULL;
966 }
967
968
969 static PyObject *_wrap_Cursors_lr_angle_get(PyObject *self, PyObject *args) {
970     PyObject *resultobj;
971     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
972     Cursor result;
973     PyObject * obj0  = 0 ;
974     
975     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_lr_angle_get",&obj0)) goto fail;
976     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
977     result = (Cursor) ((arg1)->lr_angle);
978     
979     resultobj = PyInt_FromLong((long)result);
980     return resultobj;
981     fail:
982     return NULL;
983 }
984
985
986 static PyObject *_wrap_Cursors_ul_angle_set(PyObject *self, PyObject *args) {
987     PyObject *resultobj;
988     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
989     Cursor arg2 ;
990     PyObject * obj0  = 0 ;
991     PyObject * obj1  = 0 ;
992     
993     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ul_angle_set",&obj0,&obj1)) goto fail;
994     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
995     arg2 = (Cursor) PyInt_AsLong(obj1);
996     if (PyErr_Occurred()) SWIG_fail;
997     if (arg1) (arg1)->ul_angle = arg2;
998     
999     Py_INCREF(Py_None); resultobj = Py_None;
1000     return resultobj;
1001     fail:
1002     return NULL;
1003 }
1004
1005
1006 static PyObject *_wrap_Cursors_ul_angle_get(PyObject *self, PyObject *args) {
1007     PyObject *resultobj;
1008     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
1009     Cursor result;
1010     PyObject * obj0  = 0 ;
1011     
1012     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ul_angle_get",&obj0)) goto fail;
1013     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1014     result = (Cursor) ((arg1)->ul_angle);
1015     
1016     resultobj = PyInt_FromLong((long)result);
1017     return resultobj;
1018     fail:
1019     return NULL;
1020 }
1021
1022
1023 static PyObject *_wrap_Cursors_ur_angle_set(PyObject *self, PyObject *args) {
1024     PyObject *resultobj;
1025     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
1026     Cursor arg2 ;
1027     PyObject * obj0  = 0 ;
1028     PyObject * obj1  = 0 ;
1029     
1030     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ur_angle_set",&obj0,&obj1)) goto fail;
1031     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1032     arg2 = (Cursor) PyInt_AsLong(obj1);
1033     if (PyErr_Occurred()) SWIG_fail;
1034     if (arg1) (arg1)->ur_angle = arg2;
1035     
1036     Py_INCREF(Py_None); resultobj = Py_None;
1037     return resultobj;
1038     fail:
1039     return NULL;
1040 }
1041
1042
1043 static PyObject *_wrap_Cursors_ur_angle_get(PyObject *self, PyObject *args) {
1044     PyObject *resultobj;
1045     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
1046     Cursor result;
1047     PyObject * obj0  = 0 ;
1048     
1049     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ur_angle_get",&obj0)) goto fail;
1050     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1051     result = (Cursor) ((arg1)->ur_angle);
1052     
1053     resultobj = PyInt_FromLong((long)result);
1054     return resultobj;
1055     fail:
1056     return NULL;
1057 }
1058
1059
1060 static PyObject * Cursors_swigregister(PyObject *self, PyObject *args) {
1061     PyObject *obj;
1062     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1063     SWIG_TypeClientData(SWIGTYPE_p_ob__Cursors, obj);
1064     Py_INCREF(obj);
1065     return Py_BuildValue((char *)"");
1066 }
1067 static PyObject *_wrap_Openbox_state(PyObject *self, PyObject *args) {
1068     PyObject *resultobj;
1069     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1070     int result;
1071     PyObject * obj0  = 0 ;
1072     
1073     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_state",&obj0)) goto fail;
1074     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1075     result = (int)((ob::Openbox const *)arg1)->state();
1076     
1077     resultobj = PyInt_FromLong((long)result);
1078     return resultobj;
1079     fail:
1080     return NULL;
1081 }
1082
1083
1084 static PyObject *_wrap_Openbox_timerManager(PyObject *self, PyObject *args) {
1085     PyObject *resultobj;
1086     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1087     otk::OBTimerQueueManager *result;
1088     PyObject * obj0  = 0 ;
1089     
1090     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_timerManager",&obj0)) goto fail;
1091     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1092     result = (otk::OBTimerQueueManager *)(arg1)->timerManager();
1093     
1094     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimerQueueManager, 0);
1095     return resultobj;
1096     fail:
1097     return NULL;
1098 }
1099
1100
1101 static PyObject *_wrap_Openbox_property(PyObject *self, PyObject *args) {
1102     PyObject *resultobj;
1103     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1104     otk::OBProperty *result;
1105     PyObject * obj0  = 0 ;
1106     
1107     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_property",&obj0)) goto fail;
1108     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1109     result = (otk::OBProperty *)((ob::Openbox const *)arg1)->property();
1110     
1111     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBProperty, 0);
1112     return resultobj;
1113     fail:
1114     return NULL;
1115 }
1116
1117
1118 static PyObject *_wrap_Openbox_bindings(PyObject *self, PyObject *args) {
1119     PyObject *resultobj;
1120     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1121     ob::OBBindings *result;
1122     PyObject * obj0  = 0 ;
1123     
1124     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_bindings",&obj0)) goto fail;
1125     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1126     result = (ob::OBBindings *)((ob::Openbox const *)arg1)->bindings();
1127     
1128     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBBindings, 0);
1129     return resultobj;
1130     fail:
1131     return NULL;
1132 }
1133
1134
1135 static PyObject *_wrap_Openbox_screen(PyObject *self, PyObject *args) {
1136     PyObject *resultobj;
1137     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1138     int arg2 ;
1139     ob::OBScreen *result;
1140     PyObject * obj0  = 0 ;
1141     
1142     if(!PyArg_ParseTuple(args,(char *)"Oi:Openbox_screen",&obj0,&arg2)) goto fail;
1143     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1144     result = (ob::OBScreen *)(arg1)->screen(arg2);
1145     
1146     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
1147     return resultobj;
1148     fail:
1149     return NULL;
1150 }
1151
1152
1153 static PyObject *_wrap_Openbox_screenCount(PyObject *self, PyObject *args) {
1154     PyObject *resultobj;
1155     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1156     int result;
1157     PyObject * obj0  = 0 ;
1158     
1159     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_screenCount",&obj0)) goto fail;
1160     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1161     result = (int)((ob::Openbox const *)arg1)->screenCount();
1162     
1163     resultobj = PyInt_FromLong((long)result);
1164     return resultobj;
1165     fail:
1166     return NULL;
1167 }
1168
1169
1170 static PyObject *_wrap_Openbox_cursors(PyObject *self, PyObject *args) {
1171     PyObject *resultobj;
1172     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1173     ob::Cursors *result;
1174     PyObject * obj0  = 0 ;
1175     
1176     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_cursors",&obj0)) goto fail;
1177     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1178     {
1179         ob::Cursors const &_result_ref = ((ob::Openbox const *)arg1)->cursors();
1180         result = (ob::Cursors *) &_result_ref;
1181     }
1182     
1183     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Cursors, 0);
1184     return resultobj;
1185     fail:
1186     return NULL;
1187 }
1188
1189
1190 static PyObject *_wrap_Openbox_addClient(PyObject *self, PyObject *args) {
1191     PyObject *resultobj;
1192     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1193     Window arg2 ;
1194     ob::OBClient *arg3 = (ob::OBClient *) 0 ;
1195     PyObject * obj0  = 0 ;
1196     PyObject * obj1  = 0 ;
1197     PyObject * obj2  = 0 ;
1198     
1199     if(!PyArg_ParseTuple(args,(char *)"OOO:Openbox_addClient",&obj0,&obj1,&obj2)) goto fail;
1200     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1201     arg2 = (Window) PyInt_AsLong(obj1);
1202     if (PyErr_Occurred()) SWIG_fail;
1203     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1204     (arg1)->addClient(arg2,arg3);
1205     
1206     Py_INCREF(Py_None); resultobj = Py_None;
1207     return resultobj;
1208     fail:
1209     return NULL;
1210 }
1211
1212
1213 static PyObject *_wrap_Openbox_removeClient(PyObject *self, PyObject *args) {
1214     PyObject *resultobj;
1215     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1216     Window arg2 ;
1217     PyObject * obj0  = 0 ;
1218     PyObject * obj1  = 0 ;
1219     
1220     if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_removeClient",&obj0,&obj1)) goto fail;
1221     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1222     arg2 = (Window) PyInt_AsLong(obj1);
1223     if (PyErr_Occurred()) SWIG_fail;
1224     (arg1)->removeClient(arg2);
1225     
1226     Py_INCREF(Py_None); resultobj = Py_None;
1227     return resultobj;
1228     fail:
1229     return NULL;
1230 }
1231
1232
1233 static PyObject *_wrap_Openbox_findClient(PyObject *self, PyObject *args) {
1234     PyObject *resultobj;
1235     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1236     Window arg2 ;
1237     ob::OBClient *result;
1238     PyObject * obj0  = 0 ;
1239     PyObject * obj1  = 0 ;
1240     
1241     if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_findClient",&obj0,&obj1)) goto fail;
1242     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1243     arg2 = (Window) PyInt_AsLong(obj1);
1244     if (PyErr_Occurred()) SWIG_fail;
1245     result = (ob::OBClient *)(arg1)->findClient(arg2);
1246     
1247     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1248     return resultobj;
1249     fail:
1250     return NULL;
1251 }
1252
1253
1254 static PyObject *_wrap_Openbox_focusedClient(PyObject *self, PyObject *args) {
1255     PyObject *resultobj;
1256     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1257     ob::OBClient *result;
1258     PyObject * obj0  = 0 ;
1259     
1260     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedClient",&obj0)) goto fail;
1261     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1262     result = (ob::OBClient *)(arg1)->focusedClient();
1263     
1264     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1265     return resultobj;
1266     fail:
1267     return NULL;
1268 }
1269
1270
1271 static PyObject *_wrap_Openbox_setFocusedClient(PyObject *self, PyObject *args) {
1272     PyObject *resultobj;
1273     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1274     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
1275     PyObject * obj0  = 0 ;
1276     PyObject * obj1  = 0 ;
1277     
1278     if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_setFocusedClient",&obj0,&obj1)) goto fail;
1279     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1280     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1281     (arg1)->setFocusedClient(arg2);
1282     
1283     Py_INCREF(Py_None); resultobj = Py_None;
1284     return resultobj;
1285     fail:
1286     return NULL;
1287 }
1288
1289
1290 static PyObject *_wrap_Openbox_focusedScreen(PyObject *self, PyObject *args) {
1291     PyObject *resultobj;
1292     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1293     ob::OBScreen *result;
1294     PyObject * obj0  = 0 ;
1295     
1296     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedScreen",&obj0)) goto fail;
1297     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1298     result = (ob::OBScreen *)(arg1)->focusedScreen();
1299     
1300     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
1301     return resultobj;
1302     fail:
1303     return NULL;
1304 }
1305
1306
1307 static PyObject *_wrap_Openbox_shutdown(PyObject *self, PyObject *args) {
1308     PyObject *resultobj;
1309     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1310     PyObject * obj0  = 0 ;
1311     
1312     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_shutdown",&obj0)) goto fail;
1313     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1314     (arg1)->shutdown();
1315     
1316     Py_INCREF(Py_None); resultobj = Py_None;
1317     return resultobj;
1318     fail:
1319     return NULL;
1320 }
1321
1322
1323 static PyObject * Openbox_swigregister(PyObject *self, PyObject *args) {
1324     PyObject *obj;
1325     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1326     SWIG_TypeClientData(SWIGTYPE_p_ob__Openbox, obj);
1327     Py_INCREF(obj);
1328     return Py_BuildValue((char *)"");
1329 }
1330 static PyObject *_wrap_OBScreen_client(PyObject *self, PyObject *args) {
1331     PyObject *resultobj;
1332     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1333     int arg2 ;
1334     ob::OBClient *result;
1335     PyObject * obj0  = 0 ;
1336     
1337     if(!PyArg_ParseTuple(args,(char *)"Oi:OBScreen_client",&obj0,&arg2)) goto fail;
1338     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1339     result = (ob::OBClient *)ob_OBScreen_client(arg1,arg2);
1340     
1341     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1342     return resultobj;
1343     fail:
1344     return NULL;
1345 }
1346
1347
1348 static PyObject *_wrap_OBScreen_clientCount(PyObject *self, PyObject *args) {
1349     PyObject *resultobj;
1350     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1351     int result;
1352     PyObject * obj0  = 0 ;
1353     
1354     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_clientCount",&obj0)) goto fail;
1355     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1356     result = (int)ob_OBScreen_clientCount((ob::OBScreen const *)arg1);
1357     
1358     resultobj = PyInt_FromLong((long)result);
1359     return resultobj;
1360     fail:
1361     return NULL;
1362 }
1363
1364
1365 static PyObject *_wrap_OBScreen_managed(PyObject *self, PyObject *args) {
1366     PyObject *resultobj;
1367     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1368     bool result;
1369     PyObject * obj0  = 0 ;
1370     
1371     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_managed",&obj0)) goto fail;
1372     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1373     result = (bool)((ob::OBScreen const *)arg1)->managed();
1374     
1375     resultobj = PyInt_FromLong((long)result);
1376     return resultobj;
1377     fail:
1378     return NULL;
1379 }
1380
1381
1382 static PyObject *_wrap_OBScreen_imageControl(PyObject *self, PyObject *args) {
1383     PyObject *resultobj;
1384     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1385     otk::BImageControl *result;
1386     PyObject * obj0  = 0 ;
1387     
1388     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_imageControl",&obj0)) goto fail;
1389     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1390     result = (otk::BImageControl *)(arg1)->imageControl();
1391     
1392     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 0);
1393     return resultobj;
1394     fail:
1395     return NULL;
1396 }
1397
1398
1399 static PyObject *_wrap_OBScreen_area(PyObject *self, PyObject *args) {
1400     PyObject *resultobj;
1401     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1402     otk::Rect *result;
1403     PyObject * obj0  = 0 ;
1404     
1405     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_area",&obj0)) goto fail;
1406     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1407     {
1408         otk::Rect const &_result_ref = ((ob::OBScreen const *)arg1)->area();
1409         result = (otk::Rect *) &_result_ref;
1410     }
1411     
1412     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
1413     return resultobj;
1414     fail:
1415     return NULL;
1416 }
1417
1418
1419 static PyObject *_wrap_OBScreen_style(PyObject *self, PyObject *args) {
1420     PyObject *resultobj;
1421     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1422     otk::Style *result;
1423     PyObject * obj0  = 0 ;
1424     
1425     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_style",&obj0)) goto fail;
1426     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1427     result = (otk::Style *)((ob::OBScreen const *)arg1)->style();
1428     
1429     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
1430     return resultobj;
1431     fail:
1432     return NULL;
1433 }
1434
1435
1436 static PyObject *_wrap_OBScreen_focuswindow(PyObject *self, PyObject *args) {
1437     PyObject *resultobj;
1438     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1439     Window result;
1440     PyObject * obj0  = 0 ;
1441     
1442     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_focuswindow",&obj0)) goto fail;
1443     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1444     result = (Window)((ob::OBScreen const *)arg1)->focuswindow();
1445     
1446     resultobj = PyInt_FromLong((long)result);
1447     return resultobj;
1448     fail:
1449     return NULL;
1450 }
1451
1452
1453 static PyObject *_wrap_OBScreen_addStrut(PyObject *self, PyObject *args) {
1454     PyObject *resultobj;
1455     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1456     otk::Strut *arg2 = (otk::Strut *) 0 ;
1457     PyObject * obj0  = 0 ;
1458     PyObject * obj1  = 0 ;
1459     
1460     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_addStrut",&obj0,&obj1)) goto fail;
1461     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1462     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1463     (arg1)->addStrut(arg2);
1464     
1465     Py_INCREF(Py_None); resultobj = Py_None;
1466     return resultobj;
1467     fail:
1468     return NULL;
1469 }
1470
1471
1472 static PyObject *_wrap_OBScreen_removeStrut(PyObject *self, PyObject *args) {
1473     PyObject *resultobj;
1474     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1475     otk::Strut *arg2 = (otk::Strut *) 0 ;
1476     PyObject * obj0  = 0 ;
1477     PyObject * obj1  = 0 ;
1478     
1479     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_removeStrut",&obj0,&obj1)) goto fail;
1480     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1481     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1482     (arg1)->removeStrut(arg2);
1483     
1484     Py_INCREF(Py_None); resultobj = Py_None;
1485     return resultobj;
1486     fail:
1487     return NULL;
1488 }
1489
1490
1491 static PyObject *_wrap_OBScreen_loadStyle(PyObject *self, PyObject *args) {
1492     PyObject *resultobj;
1493     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1494     otk::Configuration *arg2 = 0 ;
1495     PyObject * obj0  = 0 ;
1496     PyObject * obj1  = 0 ;
1497     
1498     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_loadStyle",&obj0,&obj1)) goto fail;
1499     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1500     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1501     if (arg2 == NULL) {
1502         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
1503     }
1504     (arg1)->loadStyle((otk::Configuration const &)*arg2);
1505     
1506     Py_INCREF(Py_None); resultobj = Py_None;
1507     return resultobj;
1508     fail:
1509     return NULL;
1510 }
1511
1512
1513 static PyObject *_wrap_OBScreen_manageExisting(PyObject *self, PyObject *args) {
1514     PyObject *resultobj;
1515     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1516     PyObject * obj0  = 0 ;
1517     
1518     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_manageExisting",&obj0)) goto fail;
1519     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1520     (arg1)->manageExisting();
1521     
1522     Py_INCREF(Py_None); resultobj = Py_None;
1523     return resultobj;
1524     fail:
1525     return NULL;
1526 }
1527
1528
1529 static PyObject *_wrap_OBScreen_manageWindow(PyObject *self, PyObject *args) {
1530     PyObject *resultobj;
1531     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1532     Window arg2 ;
1533     PyObject * obj0  = 0 ;
1534     PyObject * obj1  = 0 ;
1535     
1536     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_manageWindow",&obj0,&obj1)) goto fail;
1537     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1538     arg2 = (Window) PyInt_AsLong(obj1);
1539     if (PyErr_Occurred()) SWIG_fail;
1540     (arg1)->manageWindow(arg2);
1541     
1542     Py_INCREF(Py_None); resultobj = Py_None;
1543     return resultobj;
1544     fail:
1545     return NULL;
1546 }
1547
1548
1549 static PyObject *_wrap_OBScreen_unmanageWindow(PyObject *self, PyObject *args) {
1550     PyObject *resultobj;
1551     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1552     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
1553     PyObject * obj0  = 0 ;
1554     PyObject * obj1  = 0 ;
1555     
1556     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_unmanageWindow",&obj0,&obj1)) goto fail;
1557     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1558     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1559     (arg1)->unmanageWindow(arg2);
1560     
1561     Py_INCREF(Py_None); resultobj = Py_None;
1562     return resultobj;
1563     fail:
1564     return NULL;
1565 }
1566
1567
1568 static PyObject * OBScreen_swigregister(PyObject *self, PyObject *args) {
1569     PyObject *obj;
1570     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1571     SWIG_TypeClientData(SWIGTYPE_p_ob__OBScreen, obj);
1572     Py_INCREF(obj);
1573     return Py_BuildValue((char *)"");
1574 }
1575 static PyObject *_wrap_MwmHints_flags_set(PyObject *self, PyObject *args) {
1576     PyObject *resultobj;
1577     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1578     unsigned long arg2 ;
1579     PyObject * obj0  = 0 ;
1580     PyObject * obj1  = 0 ;
1581     
1582     if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_flags_set",&obj0,&obj1)) goto fail;
1583     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1584     arg2 = (unsigned long) PyInt_AsLong(obj1);
1585     if (PyErr_Occurred()) SWIG_fail;
1586     if (arg1) (arg1)->flags = arg2;
1587     
1588     Py_INCREF(Py_None); resultobj = Py_None;
1589     return resultobj;
1590     fail:
1591     return NULL;
1592 }
1593
1594
1595 static PyObject *_wrap_MwmHints_flags_get(PyObject *self, PyObject *args) {
1596     PyObject *resultobj;
1597     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1598     unsigned long result;
1599     PyObject * obj0  = 0 ;
1600     
1601     if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_flags_get",&obj0)) goto fail;
1602     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1603     result = (unsigned long) ((arg1)->flags);
1604     
1605     resultobj = PyInt_FromLong((long)result);
1606     return resultobj;
1607     fail:
1608     return NULL;
1609 }
1610
1611
1612 static PyObject *_wrap_MwmHints_functions_set(PyObject *self, PyObject *args) {
1613     PyObject *resultobj;
1614     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1615     unsigned long arg2 ;
1616     PyObject * obj0  = 0 ;
1617     PyObject * obj1  = 0 ;
1618     
1619     if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_functions_set",&obj0,&obj1)) goto fail;
1620     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1621     arg2 = (unsigned long) PyInt_AsLong(obj1);
1622     if (PyErr_Occurred()) SWIG_fail;
1623     if (arg1) (arg1)->functions = arg2;
1624     
1625     Py_INCREF(Py_None); resultobj = Py_None;
1626     return resultobj;
1627     fail:
1628     return NULL;
1629 }
1630
1631
1632 static PyObject *_wrap_MwmHints_functions_get(PyObject *self, PyObject *args) {
1633     PyObject *resultobj;
1634     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1635     unsigned long result;
1636     PyObject * obj0  = 0 ;
1637     
1638     if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_functions_get",&obj0)) goto fail;
1639     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1640     result = (unsigned long) ((arg1)->functions);
1641     
1642     resultobj = PyInt_FromLong((long)result);
1643     return resultobj;
1644     fail:
1645     return NULL;
1646 }
1647
1648
1649 static PyObject *_wrap_MwmHints_decorations_set(PyObject *self, PyObject *args) {
1650     PyObject *resultobj;
1651     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1652     unsigned long arg2 ;
1653     PyObject * obj0  = 0 ;
1654     PyObject * obj1  = 0 ;
1655     
1656     if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_decorations_set",&obj0,&obj1)) goto fail;
1657     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1658     arg2 = (unsigned long) PyInt_AsLong(obj1);
1659     if (PyErr_Occurred()) SWIG_fail;
1660     if (arg1) (arg1)->decorations = arg2;
1661     
1662     Py_INCREF(Py_None); resultobj = Py_None;
1663     return resultobj;
1664     fail:
1665     return NULL;
1666 }
1667
1668
1669 static PyObject *_wrap_MwmHints_decorations_get(PyObject *self, PyObject *args) {
1670     PyObject *resultobj;
1671     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1672     unsigned long result;
1673     PyObject * obj0  = 0 ;
1674     
1675     if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_decorations_get",&obj0)) goto fail;
1676     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1677     result = (unsigned long) ((arg1)->decorations);
1678     
1679     resultobj = PyInt_FromLong((long)result);
1680     return resultobj;
1681     fail:
1682     return NULL;
1683 }
1684
1685
1686 static PyObject * MwmHints_swigregister(PyObject *self, PyObject *args) {
1687     PyObject *obj;
1688     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1689     SWIG_TypeClientData(SWIGTYPE_p_ob__MwmHints, obj);
1690     Py_INCREF(obj);
1691     return Py_BuildValue((char *)"");
1692 }
1693 static PyObject *_wrap_OBClient_frame_set(PyObject *self, PyObject *args) {
1694     PyObject *resultobj;
1695     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1696     ob::OBFrame *arg2 = (ob::OBFrame *) 0 ;
1697     PyObject * obj0  = 0 ;
1698     PyObject * obj1  = 0 ;
1699     
1700     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_frame_set",&obj0,&obj1)) goto fail;
1701     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1702     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBFrame,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
1703     if (arg1) (arg1)->frame = arg2;
1704     
1705     Py_INCREF(Py_None); resultobj = Py_None;
1706     return resultobj;
1707     fail:
1708     return NULL;
1709 }
1710
1711
1712 static PyObject *_wrap_OBClient_frame_get(PyObject *self, PyObject *args) {
1713     PyObject *resultobj;
1714     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1715     ob::OBFrame *result;
1716     PyObject * obj0  = 0 ;
1717     
1718     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_frame_get",&obj0)) goto fail;
1719     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1720     result = (ob::OBFrame *) ((arg1)->frame);
1721     
1722     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBFrame, 0);
1723     return resultobj;
1724     fail:
1725     return NULL;
1726 }
1727
1728
1729 static PyObject *_wrap_OBClient_ignore_unmaps_set(PyObject *self, PyObject *args) {
1730     PyObject *resultobj;
1731     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1732     int arg2 ;
1733     PyObject * obj0  = 0 ;
1734     
1735     if(!PyArg_ParseTuple(args,(char *)"Oi:OBClient_ignore_unmaps_set",&obj0,&arg2)) goto fail;
1736     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1737     if (arg1) (arg1)->ignore_unmaps = arg2;
1738     
1739     Py_INCREF(Py_None); resultobj = Py_None;
1740     return resultobj;
1741     fail:
1742     return NULL;
1743 }
1744
1745
1746 static PyObject *_wrap_OBClient_ignore_unmaps_get(PyObject *self, PyObject *args) {
1747     PyObject *resultobj;
1748     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1749     int result;
1750     PyObject * obj0  = 0 ;
1751     
1752     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_ignore_unmaps_get",&obj0)) goto fail;
1753     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1754     result = (int) ((arg1)->ignore_unmaps);
1755     
1756     resultobj = PyInt_FromLong((long)result);
1757     return resultobj;
1758     fail:
1759     return NULL;
1760 }
1761
1762
1763 static PyObject *_wrap_OBClient_screen(PyObject *self, PyObject *args) {
1764     PyObject *resultobj;
1765     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1766     int result;
1767     PyObject * obj0  = 0 ;
1768     
1769     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_screen",&obj0)) goto fail;
1770     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1771     result = (int)((ob::OBClient const *)arg1)->screen();
1772     
1773     resultobj = PyInt_FromLong((long)result);
1774     return resultobj;
1775     fail:
1776     return NULL;
1777 }
1778
1779
1780 static PyObject *_wrap_OBClient_window(PyObject *self, PyObject *args) {
1781     PyObject *resultobj;
1782     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1783     Window result;
1784     PyObject * obj0  = 0 ;
1785     
1786     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_window",&obj0)) goto fail;
1787     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1788     result = (Window)((ob::OBClient const *)arg1)->window();
1789     
1790     resultobj = PyInt_FromLong((long)result);
1791     return resultobj;
1792     fail:
1793     return NULL;
1794 }
1795
1796
1797 static PyObject *_wrap_OBClient_type(PyObject *self, PyObject *args) {
1798     PyObject *resultobj;
1799     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1800     int result;
1801     PyObject * obj0  = 0 ;
1802     
1803     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_type",&obj0)) goto fail;
1804     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1805     result = (int)((ob::OBClient const *)arg1)->type();
1806     
1807     resultobj = PyInt_FromLong((long)result);
1808     return resultobj;
1809     fail:
1810     return NULL;
1811 }
1812
1813
1814 static PyObject *_wrap_OBClient_desktop(PyObject *self, PyObject *args) {
1815     PyObject *resultobj;
1816     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1817     unsigned long result;
1818     PyObject * obj0  = 0 ;
1819     
1820     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_desktop",&obj0)) goto fail;
1821     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1822     result = (unsigned long)((ob::OBClient const *)arg1)->desktop();
1823     
1824     resultobj = PyInt_FromLong((long)result);
1825     return resultobj;
1826     fail:
1827     return NULL;
1828 }
1829
1830
1831 static PyObject *_wrap_OBClient_title(PyObject *self, PyObject *args) {
1832     PyObject *resultobj;
1833     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1834     std::string *result;
1835     PyObject * obj0  = 0 ;
1836     
1837     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_title",&obj0)) goto fail;
1838     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1839     {
1840         std::string const &_result_ref = ((ob::OBClient const *)arg1)->title();
1841         result = (std::string *) &_result_ref;
1842     }
1843     
1844     {
1845         resultobj = PyString_FromString(result->c_str());
1846     }
1847     return resultobj;
1848     fail:
1849     return NULL;
1850 }
1851
1852
1853 static PyObject *_wrap_OBClient_iconTitle(PyObject *self, PyObject *args) {
1854     PyObject *resultobj;
1855     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1856     std::string *result;
1857     PyObject * obj0  = 0 ;
1858     
1859     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconTitle",&obj0)) goto fail;
1860     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1861     {
1862         std::string const &_result_ref = ((ob::OBClient const *)arg1)->iconTitle();
1863         result = (std::string *) &_result_ref;
1864     }
1865     
1866     {
1867         resultobj = PyString_FromString(result->c_str());
1868     }
1869     return resultobj;
1870     fail:
1871     return NULL;
1872 }
1873
1874
1875 static PyObject *_wrap_OBClient_appName(PyObject *self, PyObject *args) {
1876     PyObject *resultobj;
1877     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1878     std::string *result;
1879     PyObject * obj0  = 0 ;
1880     
1881     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appName",&obj0)) goto fail;
1882     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1883     {
1884         std::string const &_result_ref = ((ob::OBClient const *)arg1)->appName();
1885         result = (std::string *) &_result_ref;
1886     }
1887     
1888     {
1889         resultobj = PyString_FromString(result->c_str());
1890     }
1891     return resultobj;
1892     fail:
1893     return NULL;
1894 }
1895
1896
1897 static PyObject *_wrap_OBClient_appClass(PyObject *self, PyObject *args) {
1898     PyObject *resultobj;
1899     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1900     std::string *result;
1901     PyObject * obj0  = 0 ;
1902     
1903     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appClass",&obj0)) goto fail;
1904     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1905     {
1906         std::string const &_result_ref = ((ob::OBClient const *)arg1)->appClass();
1907         result = (std::string *) &_result_ref;
1908     }
1909     
1910     {
1911         resultobj = PyString_FromString(result->c_str());
1912     }
1913     return resultobj;
1914     fail:
1915     return NULL;
1916 }
1917
1918
1919 static PyObject *_wrap_OBClient_canFocus(PyObject *self, PyObject *args) {
1920     PyObject *resultobj;
1921     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1922     bool result;
1923     PyObject * obj0  = 0 ;
1924     
1925     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_canFocus",&obj0)) goto fail;
1926     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1927     result = (bool)((ob::OBClient const *)arg1)->canFocus();
1928     
1929     resultobj = PyInt_FromLong((long)result);
1930     return resultobj;
1931     fail:
1932     return NULL;
1933 }
1934
1935
1936 static PyObject *_wrap_OBClient_urgent(PyObject *self, PyObject *args) {
1937     PyObject *resultobj;
1938     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1939     bool result;
1940     PyObject * obj0  = 0 ;
1941     
1942     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_urgent",&obj0)) goto fail;
1943     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1944     result = (bool)((ob::OBClient const *)arg1)->urgent();
1945     
1946     resultobj = PyInt_FromLong((long)result);
1947     return resultobj;
1948     fail:
1949     return NULL;
1950 }
1951
1952
1953 static PyObject *_wrap_OBClient_focusNotify(PyObject *self, PyObject *args) {
1954     PyObject *resultobj;
1955     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1956     bool result;
1957     PyObject * obj0  = 0 ;
1958     
1959     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focusNotify",&obj0)) goto fail;
1960     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1961     result = (bool)((ob::OBClient const *)arg1)->focusNotify();
1962     
1963     resultobj = PyInt_FromLong((long)result);
1964     return resultobj;
1965     fail:
1966     return NULL;
1967 }
1968
1969
1970 static PyObject *_wrap_OBClient_shaped(PyObject *self, PyObject *args) {
1971     PyObject *resultobj;
1972     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1973     bool result;
1974     PyObject * obj0  = 0 ;
1975     
1976     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaped",&obj0)) goto fail;
1977     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1978     result = (bool)((ob::OBClient const *)arg1)->shaped();
1979     
1980     resultobj = PyInt_FromLong((long)result);
1981     return resultobj;
1982     fail:
1983     return NULL;
1984 }
1985
1986
1987 static PyObject *_wrap_OBClient_gravity(PyObject *self, PyObject *args) {
1988     PyObject *resultobj;
1989     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1990     int result;
1991     PyObject * obj0  = 0 ;
1992     
1993     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_gravity",&obj0)) goto fail;
1994     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1995     result = (int)((ob::OBClient const *)arg1)->gravity();
1996     
1997     resultobj = PyInt_FromLong((long)result);
1998     return resultobj;
1999     fail:
2000     return NULL;
2001 }
2002
2003
2004 static PyObject *_wrap_OBClient_positionRequested(PyObject *self, PyObject *args) {
2005     PyObject *resultobj;
2006     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2007     bool result;
2008     PyObject * obj0  = 0 ;
2009     
2010     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_positionRequested",&obj0)) goto fail;
2011     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2012     result = (bool)((ob::OBClient const *)arg1)->positionRequested();
2013     
2014     resultobj = PyInt_FromLong((long)result);
2015     return resultobj;
2016     fail:
2017     return NULL;
2018 }
2019
2020
2021 static PyObject *_wrap_OBClient_decorations(PyObject *self, PyObject *args) {
2022     PyObject *resultobj;
2023     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2024     ob::OBClient::DecorationFlags result;
2025     PyObject * obj0  = 0 ;
2026     
2027     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_decorations",&obj0)) goto fail;
2028     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2029     result = (ob::OBClient::DecorationFlags)((ob::OBClient const *)arg1)->decorations();
2030     
2031     resultobj = PyInt_FromLong((long)result);
2032     return resultobj;
2033     fail:
2034     return NULL;
2035 }
2036
2037
2038 static PyObject *_wrap_OBClient_funtions(PyObject *self, PyObject *args) {
2039     PyObject *resultobj;
2040     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2041     ob::OBClient::FunctionFlags result;
2042     PyObject * obj0  = 0 ;
2043     
2044     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_funtions",&obj0)) goto fail;
2045     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2046     result = (ob::OBClient::FunctionFlags)((ob::OBClient const *)arg1)->funtions();
2047     
2048     resultobj = PyInt_FromLong((long)result);
2049     return resultobj;
2050     fail:
2051     return NULL;
2052 }
2053
2054
2055 static PyObject *_wrap_OBClient_modal(PyObject *self, PyObject *args) {
2056     PyObject *resultobj;
2057     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2058     bool result;
2059     PyObject * obj0  = 0 ;
2060     
2061     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_modal",&obj0)) goto fail;
2062     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2063     result = (bool)((ob::OBClient const *)arg1)->modal();
2064     
2065     resultobj = PyInt_FromLong((long)result);
2066     return resultobj;
2067     fail:
2068     return NULL;
2069 }
2070
2071
2072 static PyObject *_wrap_OBClient_shaded(PyObject *self, PyObject *args) {
2073     PyObject *resultobj;
2074     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2075     bool result;
2076     PyObject * obj0  = 0 ;
2077     
2078     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaded",&obj0)) goto fail;
2079     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2080     result = (bool)((ob::OBClient const *)arg1)->shaded();
2081     
2082     resultobj = PyInt_FromLong((long)result);
2083     return resultobj;
2084     fail:
2085     return NULL;
2086 }
2087
2088
2089 static PyObject *_wrap_OBClient_iconic(PyObject *self, PyObject *args) {
2090     PyObject *resultobj;
2091     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2092     bool result;
2093     PyObject * obj0  = 0 ;
2094     
2095     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconic",&obj0)) goto fail;
2096     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2097     result = (bool)((ob::OBClient const *)arg1)->iconic();
2098     
2099     resultobj = PyInt_FromLong((long)result);
2100     return resultobj;
2101     fail:
2102     return NULL;
2103 }
2104
2105
2106 static PyObject *_wrap_OBClient_maxVert(PyObject *self, PyObject *args) {
2107     PyObject *resultobj;
2108     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2109     bool result;
2110     PyObject * obj0  = 0 ;
2111     
2112     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxVert",&obj0)) goto fail;
2113     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2114     result = (bool)((ob::OBClient const *)arg1)->maxVert();
2115     
2116     resultobj = PyInt_FromLong((long)result);
2117     return resultobj;
2118     fail:
2119     return NULL;
2120 }
2121
2122
2123 static PyObject *_wrap_OBClient_maxHorz(PyObject *self, PyObject *args) {
2124     PyObject *resultobj;
2125     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2126     bool result;
2127     PyObject * obj0  = 0 ;
2128     
2129     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxHorz",&obj0)) goto fail;
2130     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2131     result = (bool)((ob::OBClient const *)arg1)->maxHorz();
2132     
2133     resultobj = PyInt_FromLong((long)result);
2134     return resultobj;
2135     fail:
2136     return NULL;
2137 }
2138
2139
2140 static PyObject *_wrap_OBClient_fullscreen(PyObject *self, PyObject *args) {
2141     PyObject *resultobj;
2142     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2143     bool result;
2144     PyObject * obj0  = 0 ;
2145     
2146     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_fullscreen",&obj0)) goto fail;
2147     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2148     result = (bool)((ob::OBClient const *)arg1)->fullscreen();
2149     
2150     resultobj = PyInt_FromLong((long)result);
2151     return resultobj;
2152     fail:
2153     return NULL;
2154 }
2155
2156
2157 static PyObject *_wrap_OBClient_floating(PyObject *self, PyObject *args) {
2158     PyObject *resultobj;
2159     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2160     bool result;
2161     PyObject * obj0  = 0 ;
2162     
2163     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_floating",&obj0)) goto fail;
2164     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2165     result = (bool)((ob::OBClient const *)arg1)->floating();
2166     
2167     resultobj = PyInt_FromLong((long)result);
2168     return resultobj;
2169     fail:
2170     return NULL;
2171 }
2172
2173
2174 static PyObject *_wrap_OBClient_toggleClientBorder(PyObject *self, PyObject *args) {
2175     PyObject *resultobj;
2176     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2177     bool arg2 ;
2178     PyObject * obj0  = 0 ;
2179     PyObject * obj1  = 0 ;
2180     
2181     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_toggleClientBorder",&obj0,&obj1)) goto fail;
2182     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2183     arg2 = (bool) PyInt_AsLong(obj1);
2184     if (PyErr_Occurred()) SWIG_fail;
2185     (arg1)->toggleClientBorder(arg2);
2186     
2187     Py_INCREF(Py_None); resultobj = Py_None;
2188     return resultobj;
2189     fail:
2190     return NULL;
2191 }
2192
2193
2194 static PyObject *_wrap_OBClient_area(PyObject *self, PyObject *args) {
2195     PyObject *resultobj;
2196     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2197     otk::Rect *result;
2198     PyObject * obj0  = 0 ;
2199     
2200     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_area",&obj0)) goto fail;
2201     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2202     {
2203         otk::Rect const &_result_ref = ((ob::OBClient const *)arg1)->area();
2204         result = (otk::Rect *) &_result_ref;
2205     }
2206     
2207     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
2208     return resultobj;
2209     fail:
2210     return NULL;
2211 }
2212
2213
2214 static PyObject *_wrap_OBClient_move(PyObject *self, PyObject *args) {
2215     PyObject *resultobj;
2216     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2217     int arg2 ;
2218     int arg3 ;
2219     PyObject * obj0  = 0 ;
2220     
2221     if(!PyArg_ParseTuple(args,(char *)"Oii:OBClient_move",&obj0,&arg2,&arg3)) goto fail;
2222     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2223     (arg1)->move(arg2,arg3);
2224     
2225     Py_INCREF(Py_None); resultobj = Py_None;
2226     return resultobj;
2227     fail:
2228     return NULL;
2229 }
2230
2231
2232 static PyObject *_wrap_OBClient_resize(PyObject *self, PyObject *args) {
2233     PyObject *resultobj;
2234     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2235     int arg2 ;
2236     int arg3 ;
2237     int arg4 ;
2238     PyObject * obj0  = 0 ;
2239     
2240     if(!PyArg_ParseTuple(args,(char *)"Oiii:OBClient_resize",&obj0,&arg2,&arg3,&arg4)) goto fail;
2241     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2242     (arg1)->resize((ob::OBClient::Corner )arg2,arg3,arg4);
2243     
2244     Py_INCREF(Py_None); resultobj = Py_None;
2245     return resultobj;
2246     fail:
2247     return NULL;
2248 }
2249
2250
2251 static PyObject *_wrap_OBClient_close(PyObject *self, PyObject *args) {
2252     PyObject *resultobj;
2253     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2254     PyObject * obj0  = 0 ;
2255     
2256     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_close",&obj0)) goto fail;
2257     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2258     (arg1)->close();
2259     
2260     Py_INCREF(Py_None); resultobj = Py_None;
2261     return resultobj;
2262     fail:
2263     return NULL;
2264 }
2265
2266
2267 static PyObject *_wrap_OBClient_focus(PyObject *self, PyObject *args) {
2268     PyObject *resultobj;
2269     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2270     bool result;
2271     PyObject * obj0  = 0 ;
2272     
2273     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focus",&obj0)) goto fail;
2274     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2275     result = (bool)(arg1)->focus();
2276     
2277     resultobj = PyInt_FromLong((long)result);
2278     return resultobj;
2279     fail:
2280     return NULL;
2281 }
2282
2283
2284 static PyObject *_wrap_OBClient_unfocus(PyObject *self, PyObject *args) {
2285     PyObject *resultobj;
2286     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2287     PyObject * obj0  = 0 ;
2288     
2289     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_unfocus",&obj0)) goto fail;
2290     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2291     (arg1)->unfocus();
2292     
2293     Py_INCREF(Py_None); resultobj = Py_None;
2294     return resultobj;
2295     fail:
2296     return NULL;
2297 }
2298
2299
2300 static PyObject *_wrap_OBClient_focusHandler(PyObject *self, PyObject *args) {
2301     PyObject *resultobj;
2302     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2303     XFocusChangeEvent *arg2 = 0 ;
2304     PyObject * obj0  = 0 ;
2305     PyObject * obj1  = 0 ;
2306     
2307     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_focusHandler",&obj0,&obj1)) goto fail;
2308     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2309     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2310     if (arg2 == NULL) {
2311         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2312     }
2313     (arg1)->focusHandler((XFocusChangeEvent const &)*arg2);
2314     
2315     Py_INCREF(Py_None); resultobj = Py_None;
2316     return resultobj;
2317     fail:
2318     return NULL;
2319 }
2320
2321
2322 static PyObject *_wrap_OBClient_unfocusHandler(PyObject *self, PyObject *args) {
2323     PyObject *resultobj;
2324     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2325     XFocusChangeEvent *arg2 = 0 ;
2326     PyObject * obj0  = 0 ;
2327     PyObject * obj1  = 0 ;
2328     
2329     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unfocusHandler",&obj0,&obj1)) goto fail;
2330     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2331     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2332     if (arg2 == NULL) {
2333         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2334     }
2335     (arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2);
2336     
2337     Py_INCREF(Py_None); resultobj = Py_None;
2338     return resultobj;
2339     fail:
2340     return NULL;
2341 }
2342
2343
2344 static PyObject *_wrap_OBClient_propertyHandler(PyObject *self, PyObject *args) {
2345     PyObject *resultobj;
2346     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2347     XPropertyEvent *arg2 = 0 ;
2348     PyObject * obj0  = 0 ;
2349     PyObject * obj1  = 0 ;
2350     
2351     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_propertyHandler",&obj0,&obj1)) goto fail;
2352     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2353     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2354     if (arg2 == NULL) {
2355         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2356     }
2357     (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
2358     
2359     Py_INCREF(Py_None); resultobj = Py_None;
2360     return resultobj;
2361     fail:
2362     return NULL;
2363 }
2364
2365
2366 static PyObject *_wrap_OBClient_clientMessageHandler(PyObject *self, PyObject *args) {
2367     PyObject *resultobj;
2368     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2369     XClientMessageEvent *arg2 = 0 ;
2370     PyObject * obj0  = 0 ;
2371     PyObject * obj1  = 0 ;
2372     
2373     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_clientMessageHandler",&obj0,&obj1)) goto fail;
2374     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2375     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2376     if (arg2 == NULL) {
2377         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2378     }
2379     (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
2380     
2381     Py_INCREF(Py_None); resultobj = Py_None;
2382     return resultobj;
2383     fail:
2384     return NULL;
2385 }
2386
2387
2388 static PyObject *_wrap_OBClient_shapeHandler(PyObject *self, PyObject *args) {
2389     PyObject *resultobj;
2390     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2391     XShapeEvent *arg2 = 0 ;
2392     PyObject * obj0  = 0 ;
2393     PyObject * obj1  = 0 ;
2394     
2395     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_shapeHandler",&obj0,&obj1)) goto fail;
2396     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2397     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XShapeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2398     if (arg2 == NULL) {
2399         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2400     }
2401     (arg1)->shapeHandler((XShapeEvent const &)*arg2);
2402     
2403     Py_INCREF(Py_None); resultobj = Py_None;
2404     return resultobj;
2405     fail:
2406     return NULL;
2407 }
2408
2409
2410 static PyObject *_wrap_OBClient_configureRequestHandler(PyObject *self, PyObject *args) {
2411     PyObject *resultobj;
2412     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2413     XConfigureRequestEvent *arg2 = 0 ;
2414     PyObject * obj0  = 0 ;
2415     PyObject * obj1  = 0 ;
2416     
2417     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_configureRequestHandler",&obj0,&obj1)) goto fail;
2418     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2419     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2420     if (arg2 == NULL) {
2421         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2422     }
2423     (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2);
2424     
2425     Py_INCREF(Py_None); resultobj = Py_None;
2426     return resultobj;
2427     fail:
2428     return NULL;
2429 }
2430
2431
2432 static PyObject *_wrap_OBClient_unmapHandler(PyObject *self, PyObject *args) {
2433     PyObject *resultobj;
2434     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2435     XUnmapEvent *arg2 = 0 ;
2436     PyObject * obj0  = 0 ;
2437     PyObject * obj1  = 0 ;
2438     
2439     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unmapHandler",&obj0,&obj1)) goto fail;
2440     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2441     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2442     if (arg2 == NULL) {
2443         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2444     }
2445     (arg1)->unmapHandler((XUnmapEvent const &)*arg2);
2446     
2447     Py_INCREF(Py_None); resultobj = Py_None;
2448     return resultobj;
2449     fail:
2450     return NULL;
2451 }
2452
2453
2454 static PyObject *_wrap_OBClient_destroyHandler(PyObject *self, PyObject *args) {
2455     PyObject *resultobj;
2456     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2457     XDestroyWindowEvent *arg2 = 0 ;
2458     PyObject * obj0  = 0 ;
2459     PyObject * obj1  = 0 ;
2460     
2461     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_destroyHandler",&obj0,&obj1)) goto fail;
2462     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2463     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2464     if (arg2 == NULL) {
2465         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2466     }
2467     (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2);
2468     
2469     Py_INCREF(Py_None); resultobj = Py_None;
2470     return resultobj;
2471     fail:
2472     return NULL;
2473 }
2474
2475
2476 static PyObject *_wrap_OBClient_reparentHandler(PyObject *self, PyObject *args) {
2477     PyObject *resultobj;
2478     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2479     XReparentEvent *arg2 = 0 ;
2480     PyObject * obj0  = 0 ;
2481     PyObject * obj1  = 0 ;
2482     
2483     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_reparentHandler",&obj0,&obj1)) goto fail;
2484     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2485     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2486     if (arg2 == NULL) {
2487         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2488     }
2489     (arg1)->reparentHandler((XReparentEvent const &)*arg2);
2490     
2491     Py_INCREF(Py_None); resultobj = Py_None;
2492     return resultobj;
2493     fail:
2494     return NULL;
2495 }
2496
2497
2498 static PyObject * OBClient_swigregister(PyObject *self, PyObject *args) {
2499     PyObject *obj;
2500     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2501     SWIG_TypeClientData(SWIGTYPE_p_ob__OBClient, obj);
2502     Py_INCREF(obj);
2503     return Py_BuildValue((char *)"");
2504 }
2505 static PyObject *_wrap_register(PyObject *self, PyObject *args) {
2506     PyObject *resultobj;
2507     int arg1 ;
2508     PyObject *arg2 = (PyObject *) 0 ;
2509     bool result;
2510     PyObject * obj1  = 0 ;
2511     
2512     if(!PyArg_ParseTuple(args,(char *)"iO:register",&arg1,&obj1)) goto fail;
2513     arg2 = obj1;
2514     result = (bool)ob::python_register(arg1,arg2);
2515     
2516     resultobj = PyInt_FromLong((long)result);
2517     return resultobj;
2518     fail:
2519     return NULL;
2520 }
2521
2522
2523 static PyObject *_wrap_preregister(PyObject *self, PyObject *args) {
2524     PyObject *resultobj;
2525     int arg1 ;
2526     PyObject *arg2 = (PyObject *) 0 ;
2527     bool result;
2528     PyObject * obj1  = 0 ;
2529     
2530     if(!PyArg_ParseTuple(args,(char *)"iO:preregister",&arg1,&obj1)) goto fail;
2531     arg2 = obj1;
2532     result = (bool)ob::python_preregister(arg1,arg2);
2533     
2534     resultobj = PyInt_FromLong((long)result);
2535     return resultobj;
2536     fail:
2537     return NULL;
2538 }
2539
2540
2541 static PyObject *_wrap_unregister(PyObject *self, PyObject *args) {
2542     PyObject *resultobj;
2543     int arg1 ;
2544     PyObject *arg2 = (PyObject *) 0 ;
2545     bool result;
2546     PyObject * obj1  = 0 ;
2547     
2548     if(!PyArg_ParseTuple(args,(char *)"iO:unregister",&arg1,&obj1)) goto fail;
2549     arg2 = obj1;
2550     result = (bool)ob::python_unregister(arg1,arg2);
2551     
2552     resultobj = PyInt_FromLong((long)result);
2553     return resultobj;
2554     fail:
2555     return NULL;
2556 }
2557
2558
2559 static PyObject *_wrap_unregister_all(PyObject *self, PyObject *args) {
2560     PyObject *resultobj;
2561     int arg1 ;
2562     bool result;
2563     
2564     if(!PyArg_ParseTuple(args,(char *)"i:unregister_all",&arg1)) goto fail;
2565     result = (bool)ob::python_unregister_all(arg1);
2566     
2567     resultobj = PyInt_FromLong((long)result);
2568     return resultobj;
2569     fail:
2570     return NULL;
2571 }
2572
2573
2574 static PyObject *_wrap_bind_key(PyObject *self, PyObject *args) {
2575     PyObject *resultobj;
2576     PyObject *arg1 = (PyObject *) 0 ;
2577     PyObject *arg2 = (PyObject *) 0 ;
2578     bool result;
2579     PyObject * obj0  = 0 ;
2580     PyObject * obj1  = 0 ;
2581     
2582     if(!PyArg_ParseTuple(args,(char *)"OO:bind_key",&obj0,&obj1)) goto fail;
2583     arg1 = obj0;
2584     arg2 = obj1;
2585     result = (bool)ob::python_bind_key(arg1,arg2);
2586     
2587     resultobj = PyInt_FromLong((long)result);
2588     return resultobj;
2589     fail:
2590     return NULL;
2591 }
2592
2593
2594 static PyObject *_wrap_unbind_key(PyObject *self, PyObject *args) {
2595     PyObject *resultobj;
2596     PyObject *arg1 = (PyObject *) 0 ;
2597     bool result;
2598     PyObject * obj0  = 0 ;
2599     
2600     if(!PyArg_ParseTuple(args,(char *)"O:unbind_key",&obj0)) goto fail;
2601     arg1 = obj0;
2602     result = (bool)ob::python_unbind_key(arg1);
2603     
2604     resultobj = PyInt_FromLong((long)result);
2605     return resultobj;
2606     fail:
2607     return NULL;
2608 }
2609
2610
2611 static PyObject *_wrap_set_reset_key(PyObject *self, PyObject *args) {
2612     PyObject *resultobj;
2613     std::string *arg1 = 0 ;
2614     std::string temp1 ;
2615     PyObject * obj0  = 0 ;
2616     
2617     if(!PyArg_ParseTuple(args,(char *)"O:set_reset_key",&obj0)) goto fail;
2618     {
2619         if (PyString_Check(obj0)) {
2620             temp1 = std::string(PyString_AsString(obj0));
2621             arg1 = &temp1;
2622         }else {
2623             SWIG_exception(SWIG_TypeError, "string expected");
2624         }
2625     }
2626     ob::python_set_reset_key((std::string const &)*arg1);
2627     
2628     Py_INCREF(Py_None); resultobj = Py_None;
2629     return resultobj;
2630     fail:
2631     return NULL;
2632 }
2633
2634
2635 static PyObject *_wrap_bind_mouse(PyObject *self, PyObject *args) {
2636     PyObject *resultobj;
2637     std::string *arg1 = 0 ;
2638     PyObject *arg2 = (PyObject *) 0 ;
2639     bool result;
2640     std::string temp1 ;
2641     PyObject * obj0  = 0 ;
2642     PyObject * obj1  = 0 ;
2643     
2644     if(!PyArg_ParseTuple(args,(char *)"OO:bind_mouse",&obj0,&obj1)) goto fail;
2645     {
2646         if (PyString_Check(obj0)) {
2647             temp1 = std::string(PyString_AsString(obj0));
2648             arg1 = &temp1;
2649         }else {
2650             SWIG_exception(SWIG_TypeError, "string expected");
2651         }
2652     }
2653     arg2 = obj1;
2654     result = (bool)ob::python_bind_mouse((std::string const &)*arg1,arg2);
2655     
2656     resultobj = PyInt_FromLong((long)result);
2657     return resultobj;
2658     fail:
2659     return NULL;
2660 }
2661
2662
2663 static PyObject *_wrap_unbind_mouse(PyObject *self, PyObject *args) {
2664     PyObject *resultobj;
2665     std::string *arg1 = 0 ;
2666     bool result;
2667     std::string temp1 ;
2668     PyObject * obj0  = 0 ;
2669     
2670     if(!PyArg_ParseTuple(args,(char *)"O:unbind_mouse",&obj0)) goto fail;
2671     {
2672         if (PyString_Check(obj0)) {
2673             temp1 = std::string(PyString_AsString(obj0));
2674             arg1 = &temp1;
2675         }else {
2676             SWIG_exception(SWIG_TypeError, "string expected");
2677         }
2678     }
2679     result = (bool)ob::python_unbind_mouse((std::string const &)*arg1);
2680     
2681     resultobj = PyInt_FromLong((long)result);
2682     return resultobj;
2683     fail:
2684     return NULL;
2685 }
2686
2687
2688 static PyObject *_wrap_unbind_all(PyObject *self, PyObject *args) {
2689     PyObject *resultobj;
2690     
2691     if(!PyArg_ParseTuple(args,(char *)":unbind_all")) goto fail;
2692     ob::python_unbind_all();
2693     
2694     Py_INCREF(Py_None); resultobj = Py_None;
2695     return resultobj;
2696     fail:
2697     return NULL;
2698 }
2699
2700
2701 static PyObject *_wrap_python_callback_binding(PyObject *self, PyObject *args) {
2702     PyObject *resultobj;
2703     int arg1 ;
2704     ob::OBActions::ActionType arg2 ;
2705     Window arg3 ;
2706     unsigned int arg4 ;
2707     unsigned int arg5 ;
2708     Time arg6 ;
2709     ob::OBActions::ActionType *argp2 ;
2710     PyObject * obj1  = 0 ;
2711     PyObject * obj2  = 0 ;
2712     PyObject * obj3  = 0 ;
2713     PyObject * obj4  = 0 ;
2714     PyObject * obj5  = 0 ;
2715     
2716     if(!PyArg_ParseTuple(args,(char *)"iOOOOO:python_callback_binding",&arg1,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
2717     if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_ob__OBActions__ActionType,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
2718     arg2 = *argp2; 
2719     arg3 = (Window) PyInt_AsLong(obj2);
2720     if (PyErr_Occurred()) SWIG_fail;
2721     arg4 = (unsigned int) PyInt_AsLong(obj3);
2722     if (PyErr_Occurred()) SWIG_fail;
2723     arg5 = (unsigned int) PyInt_AsLong(obj4);
2724     if (PyErr_Occurred()) SWIG_fail;
2725     arg6 = (Time) PyInt_AsLong(obj5);
2726     if (PyErr_Occurred()) SWIG_fail;
2727     ob::python_callback_binding(arg1,arg2,arg3,arg4,arg5,arg6);
2728     
2729     Py_INCREF(Py_None); resultobj = Py_None;
2730     return resultobj;
2731     fail:
2732     return NULL;
2733 }
2734
2735
2736 static PyMethodDef SwigMethods[] = {
2737          { (char *)"Openbox_instance", _wrap_Openbox_instance, METH_VARARGS },
2738          { (char *)"Cursors_session_set", _wrap_Cursors_session_set, METH_VARARGS },
2739          { (char *)"Cursors_session_get", _wrap_Cursors_session_get, METH_VARARGS },
2740          { (char *)"Cursors_move_set", _wrap_Cursors_move_set, METH_VARARGS },
2741          { (char *)"Cursors_move_get", _wrap_Cursors_move_get, METH_VARARGS },
2742          { (char *)"Cursors_ll_angle_set", _wrap_Cursors_ll_angle_set, METH_VARARGS },
2743          { (char *)"Cursors_ll_angle_get", _wrap_Cursors_ll_angle_get, METH_VARARGS },
2744          { (char *)"Cursors_lr_angle_set", _wrap_Cursors_lr_angle_set, METH_VARARGS },
2745          { (char *)"Cursors_lr_angle_get", _wrap_Cursors_lr_angle_get, METH_VARARGS },
2746          { (char *)"Cursors_ul_angle_set", _wrap_Cursors_ul_angle_set, METH_VARARGS },
2747          { (char *)"Cursors_ul_angle_get", _wrap_Cursors_ul_angle_get, METH_VARARGS },
2748          { (char *)"Cursors_ur_angle_set", _wrap_Cursors_ur_angle_set, METH_VARARGS },
2749          { (char *)"Cursors_ur_angle_get", _wrap_Cursors_ur_angle_get, METH_VARARGS },
2750          { (char *)"Cursors_swigregister", Cursors_swigregister, METH_VARARGS },
2751          { (char *)"Openbox_state", _wrap_Openbox_state, METH_VARARGS },
2752          { (char *)"Openbox_timerManager", _wrap_Openbox_timerManager, METH_VARARGS },
2753          { (char *)"Openbox_property", _wrap_Openbox_property, METH_VARARGS },
2754          { (char *)"Openbox_bindings", _wrap_Openbox_bindings, METH_VARARGS },
2755          { (char *)"Openbox_screen", _wrap_Openbox_screen, METH_VARARGS },
2756          { (char *)"Openbox_screenCount", _wrap_Openbox_screenCount, METH_VARARGS },
2757          { (char *)"Openbox_cursors", _wrap_Openbox_cursors, METH_VARARGS },
2758          { (char *)"Openbox_addClient", _wrap_Openbox_addClient, METH_VARARGS },
2759          { (char *)"Openbox_removeClient", _wrap_Openbox_removeClient, METH_VARARGS },
2760          { (char *)"Openbox_findClient", _wrap_Openbox_findClient, METH_VARARGS },
2761          { (char *)"Openbox_focusedClient", _wrap_Openbox_focusedClient, METH_VARARGS },
2762          { (char *)"Openbox_setFocusedClient", _wrap_Openbox_setFocusedClient, METH_VARARGS },
2763          { (char *)"Openbox_focusedScreen", _wrap_Openbox_focusedScreen, METH_VARARGS },
2764          { (char *)"Openbox_shutdown", _wrap_Openbox_shutdown, METH_VARARGS },
2765          { (char *)"Openbox_swigregister", Openbox_swigregister, METH_VARARGS },
2766          { (char *)"OBScreen_client", _wrap_OBScreen_client, METH_VARARGS },
2767          { (char *)"OBScreen_clientCount", _wrap_OBScreen_clientCount, METH_VARARGS },
2768          { (char *)"OBScreen_managed", _wrap_OBScreen_managed, METH_VARARGS },
2769          { (char *)"OBScreen_imageControl", _wrap_OBScreen_imageControl, METH_VARARGS },
2770          { (char *)"OBScreen_area", _wrap_OBScreen_area, METH_VARARGS },
2771          { (char *)"OBScreen_style", _wrap_OBScreen_style, METH_VARARGS },
2772          { (char *)"OBScreen_focuswindow", _wrap_OBScreen_focuswindow, METH_VARARGS },
2773          { (char *)"OBScreen_addStrut", _wrap_OBScreen_addStrut, METH_VARARGS },
2774          { (char *)"OBScreen_removeStrut", _wrap_OBScreen_removeStrut, METH_VARARGS },
2775          { (char *)"OBScreen_loadStyle", _wrap_OBScreen_loadStyle, METH_VARARGS },
2776          { (char *)"OBScreen_manageExisting", _wrap_OBScreen_manageExisting, METH_VARARGS },
2777          { (char *)"OBScreen_manageWindow", _wrap_OBScreen_manageWindow, METH_VARARGS },
2778          { (char *)"OBScreen_unmanageWindow", _wrap_OBScreen_unmanageWindow, METH_VARARGS },
2779          { (char *)"OBScreen_swigregister", OBScreen_swigregister, METH_VARARGS },
2780          { (char *)"MwmHints_flags_set", _wrap_MwmHints_flags_set, METH_VARARGS },
2781          { (char *)"MwmHints_flags_get", _wrap_MwmHints_flags_get, METH_VARARGS },
2782          { (char *)"MwmHints_functions_set", _wrap_MwmHints_functions_set, METH_VARARGS },
2783          { (char *)"MwmHints_functions_get", _wrap_MwmHints_functions_get, METH_VARARGS },
2784          { (char *)"MwmHints_decorations_set", _wrap_MwmHints_decorations_set, METH_VARARGS },
2785          { (char *)"MwmHints_decorations_get", _wrap_MwmHints_decorations_get, METH_VARARGS },
2786          { (char *)"MwmHints_swigregister", MwmHints_swigregister, METH_VARARGS },
2787          { (char *)"OBClient_frame_set", _wrap_OBClient_frame_set, METH_VARARGS },
2788          { (char *)"OBClient_frame_get", _wrap_OBClient_frame_get, METH_VARARGS },
2789          { (char *)"OBClient_ignore_unmaps_set", _wrap_OBClient_ignore_unmaps_set, METH_VARARGS },
2790          { (char *)"OBClient_ignore_unmaps_get", _wrap_OBClient_ignore_unmaps_get, METH_VARARGS },
2791          { (char *)"OBClient_screen", _wrap_OBClient_screen, METH_VARARGS },
2792          { (char *)"OBClient_window", _wrap_OBClient_window, METH_VARARGS },
2793          { (char *)"OBClient_type", _wrap_OBClient_type, METH_VARARGS },
2794          { (char *)"OBClient_desktop", _wrap_OBClient_desktop, METH_VARARGS },
2795          { (char *)"OBClient_title", _wrap_OBClient_title, METH_VARARGS },
2796          { (char *)"OBClient_iconTitle", _wrap_OBClient_iconTitle, METH_VARARGS },
2797          { (char *)"OBClient_appName", _wrap_OBClient_appName, METH_VARARGS },
2798          { (char *)"OBClient_appClass", _wrap_OBClient_appClass, METH_VARARGS },
2799          { (char *)"OBClient_canFocus", _wrap_OBClient_canFocus, METH_VARARGS },
2800          { (char *)"OBClient_urgent", _wrap_OBClient_urgent, METH_VARARGS },
2801          { (char *)"OBClient_focusNotify", _wrap_OBClient_focusNotify, METH_VARARGS },
2802          { (char *)"OBClient_shaped", _wrap_OBClient_shaped, METH_VARARGS },
2803          { (char *)"OBClient_gravity", _wrap_OBClient_gravity, METH_VARARGS },
2804          { (char *)"OBClient_positionRequested", _wrap_OBClient_positionRequested, METH_VARARGS },
2805          { (char *)"OBClient_decorations", _wrap_OBClient_decorations, METH_VARARGS },
2806          { (char *)"OBClient_funtions", _wrap_OBClient_funtions, METH_VARARGS },
2807          { (char *)"OBClient_modal", _wrap_OBClient_modal, METH_VARARGS },
2808          { (char *)"OBClient_shaded", _wrap_OBClient_shaded, METH_VARARGS },
2809          { (char *)"OBClient_iconic", _wrap_OBClient_iconic, METH_VARARGS },
2810          { (char *)"OBClient_maxVert", _wrap_OBClient_maxVert, METH_VARARGS },
2811          { (char *)"OBClient_maxHorz", _wrap_OBClient_maxHorz, METH_VARARGS },
2812          { (char *)"OBClient_fullscreen", _wrap_OBClient_fullscreen, METH_VARARGS },
2813          { (char *)"OBClient_floating", _wrap_OBClient_floating, METH_VARARGS },
2814          { (char *)"OBClient_toggleClientBorder", _wrap_OBClient_toggleClientBorder, METH_VARARGS },
2815          { (char *)"OBClient_area", _wrap_OBClient_area, METH_VARARGS },
2816          { (char *)"OBClient_move", _wrap_OBClient_move, METH_VARARGS },
2817          { (char *)"OBClient_resize", _wrap_OBClient_resize, METH_VARARGS },
2818          { (char *)"OBClient_close", _wrap_OBClient_close, METH_VARARGS },
2819          { (char *)"OBClient_focus", _wrap_OBClient_focus, METH_VARARGS },
2820          { (char *)"OBClient_unfocus", _wrap_OBClient_unfocus, METH_VARARGS },
2821          { (char *)"OBClient_focusHandler", _wrap_OBClient_focusHandler, METH_VARARGS },
2822          { (char *)"OBClient_unfocusHandler", _wrap_OBClient_unfocusHandler, METH_VARARGS },
2823          { (char *)"OBClient_propertyHandler", _wrap_OBClient_propertyHandler, METH_VARARGS },
2824          { (char *)"OBClient_clientMessageHandler", _wrap_OBClient_clientMessageHandler, METH_VARARGS },
2825          { (char *)"OBClient_shapeHandler", _wrap_OBClient_shapeHandler, METH_VARARGS },
2826          { (char *)"OBClient_configureRequestHandler", _wrap_OBClient_configureRequestHandler, METH_VARARGS },
2827          { (char *)"OBClient_unmapHandler", _wrap_OBClient_unmapHandler, METH_VARARGS },
2828          { (char *)"OBClient_destroyHandler", _wrap_OBClient_destroyHandler, METH_VARARGS },
2829          { (char *)"OBClient_reparentHandler", _wrap_OBClient_reparentHandler, METH_VARARGS },
2830          { (char *)"OBClient_swigregister", OBClient_swigregister, METH_VARARGS },
2831          { (char *)"register", _wrap_register, METH_VARARGS },
2832          { (char *)"preregister", _wrap_preregister, METH_VARARGS },
2833          { (char *)"unregister", _wrap_unregister, METH_VARARGS },
2834          { (char *)"unregister_all", _wrap_unregister_all, METH_VARARGS },
2835          { (char *)"bind_key", _wrap_bind_key, METH_VARARGS },
2836          { (char *)"unbind_key", _wrap_unbind_key, METH_VARARGS },
2837          { (char *)"set_reset_key", _wrap_set_reset_key, METH_VARARGS },
2838          { (char *)"bind_mouse", _wrap_bind_mouse, METH_VARARGS },
2839          { (char *)"unbind_mouse", _wrap_unbind_mouse, METH_VARARGS },
2840          { (char *)"unbind_all", _wrap_unbind_all, METH_VARARGS },
2841          { (char *)"python_callback_binding", _wrap_python_callback_binding, METH_VARARGS },
2842          { NULL, NULL }
2843 };
2844
2845
2846 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2847
2848 static void *_p_ob__OpenboxTo_p_otk__OtkEventHandler(void *x) {
2849     return (void *)((otk::OtkEventHandler *)  ((ob::Openbox *) x));
2850 }
2851 static void *_p_ob__OBClientTo_p_otk__OtkEventHandler(void *x) {
2852     return (void *)((otk::OtkEventHandler *)  ((ob::OBClient *) x));
2853 }
2854 static void *_p_ob__OBClientTo_p_ob__OBWidget(void *x) {
2855     return (void *)((ob::OBWidget *)  ((ob::OBClient *) x));
2856 }
2857 static void *_p_ob__OpenboxTo_p_otk__OtkEventDispatcher(void *x) {
2858     return (void *)((otk::OtkEventDispatcher *)  ((ob::Openbox *) x));
2859 }
2860 static swig_type_info _swigt__p_ob__OBActions__ActionType[] = {{"_p_ob__OBActions__ActionType", 0, "ob::OBActions::ActionType *", 0},{"_p_ob__OBActions__ActionType"},{0}};
2861 static swig_type_info _swigt__p_otk__OBTimerQueueManager[] = {{"_p_otk__OBTimerQueueManager", 0, "otk::OBTimerQueueManager *", 0},{"_p_otk__OBTimerQueueManager"},{0}};
2862 static swig_type_info _swigt__p_ob__Cursors[] = {{"_p_ob__Cursors", 0, "ob::Cursors *", 0},{"_p_ob__Cursors"},{0}};
2863 static swig_type_info _swigt__p_ob__OBScreen[] = {{"_p_ob__OBScreen", 0, "ob::OBScreen *", 0},{"_p_ob__OBScreen"},{0}};
2864 static swig_type_info _swigt__p_otk__Style[] = {{"_p_otk__Style", 0, "otk::Style *", 0},{"_p_otk__Style"},{0}};
2865 static swig_type_info _swigt__p_ob__OBFrame[] = {{"_p_ob__OBFrame", 0, "ob::OBFrame *", 0},{"_p_ob__OBFrame"},{0}};
2866 static swig_type_info _swigt__p_XReparentEvent[] = {{"_p_XReparentEvent", 0, "XReparentEvent *", 0},{"_p_XReparentEvent"},{0}};
2867 static swig_type_info _swigt__p_ob__OBClient[] = {{"_p_ob__OBClient", 0, "ob::OBClient *", 0},{"_p_ob__OBClient"},{0}};
2868 static swig_type_info _swigt__p_ob__Openbox[] = {{"_p_ob__Openbox", 0, "ob::Openbox *", 0},{"_p_ob__Openbox"},{0}};
2869 static swig_type_info _swigt__p_otk__Strut[] = {{"_p_otk__Strut", 0, "otk::Strut *", 0},{"_p_otk__Strut"},{0}};
2870 static swig_type_info _swigt__p_XShapeEvent[] = {{"_p_XShapeEvent", 0, "XShapeEvent *", 0},{"_p_XShapeEvent"},{0}};
2871 static swig_type_info _swigt__p_XConfigureRequestEvent[] = {{"_p_XConfigureRequestEvent", 0, "XConfigureRequestEvent *", 0},{"_p_XConfigureRequestEvent"},{0}};
2872 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}};
2873 static swig_type_info _swigt__p_otk__Rect[] = {{"_p_otk__Rect", 0, "otk::Rect *", 0},{"_p_otk__Rect"},{0}};
2874 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}};
2875 static swig_type_info _swigt__p_XFocusChangeEvent[] = {{"_p_XFocusChangeEvent", 0, "XFocusChangeEvent *", 0},{"_p_XFocusChangeEvent"},{0}};
2876 static swig_type_info _swigt__p_XClientMessageEvent[] = {{"_p_XClientMessageEvent", 0, "XClientMessageEvent *", 0},{"_p_XClientMessageEvent"},{0}};
2877 static swig_type_info _swigt__p_otk__OBProperty[] = {{"_p_otk__OBProperty", 0, "otk::OBProperty *", 0},{"_p_otk__OBProperty"},{0}};
2878 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}};
2879 static swig_type_info _swigt__p_XPropertyEvent[] = {{"_p_XPropertyEvent", 0, "XPropertyEvent *", 0},{"_p_XPropertyEvent"},{0}};
2880 static swig_type_info _swigt__p_XDestroyWindowEvent[] = {{"_p_XDestroyWindowEvent", 0, "XDestroyWindowEvent *", 0},{"_p_XDestroyWindowEvent"},{0}};
2881 static swig_type_info _swigt__p_otk__BImageControl[] = {{"_p_otk__BImageControl", 0, "otk::BImageControl *", 0},{"_p_otk__BImageControl"},{0}};
2882 static swig_type_info _swigt__p_PyObject[] = {{"_p_PyObject", 0, "PyObject *", 0},{"_p_PyObject"},{0}};
2883 static swig_type_info _swigt__p_ob__OBBindings[] = {{"_p_ob__OBBindings", 0, "ob::OBBindings *", 0},{"_p_ob__OBBindings"},{0}};
2884 static swig_type_info _swigt__p_ob__MwmHints[] = {{"_p_ob__MwmHints", 0, "ob::MwmHints *", 0},{"_p_ob__MwmHints"},{0}};
2885 static swig_type_info _swigt__p_otk__Configuration[] = {{"_p_otk__Configuration", 0, "otk::Configuration *", 0},{"_p_otk__Configuration"},{0}};
2886 static swig_type_info _swigt__p_XUnmapEvent[] = {{"_p_XUnmapEvent", 0, "XUnmapEvent *", 0},{"_p_XUnmapEvent"},{0}};
2887
2888 static swig_type_info *swig_types_initial[] = {
2889 _swigt__p_ob__OBActions__ActionType, 
2890 _swigt__p_otk__OBTimerQueueManager, 
2891 _swigt__p_ob__Cursors, 
2892 _swigt__p_ob__OBScreen, 
2893 _swigt__p_otk__Style, 
2894 _swigt__p_ob__OBFrame, 
2895 _swigt__p_XReparentEvent, 
2896 _swigt__p_ob__OBClient, 
2897 _swigt__p_ob__Openbox, 
2898 _swigt__p_otk__Strut, 
2899 _swigt__p_XShapeEvent, 
2900 _swigt__p_XConfigureRequestEvent, 
2901 _swigt__p_otk__OtkEventHandler, 
2902 _swigt__p_otk__Rect, 
2903 _swigt__p_ob__OBWidget, 
2904 _swigt__p_XFocusChangeEvent, 
2905 _swigt__p_XClientMessageEvent, 
2906 _swigt__p_otk__OBProperty, 
2907 _swigt__p_otk__OtkEventDispatcher, 
2908 _swigt__p_XPropertyEvent, 
2909 _swigt__p_XDestroyWindowEvent, 
2910 _swigt__p_otk__BImageControl, 
2911 _swigt__p_PyObject, 
2912 _swigt__p_ob__OBBindings, 
2913 _swigt__p_ob__MwmHints, 
2914 _swigt__p_otk__Configuration, 
2915 _swigt__p_XUnmapEvent, 
2916 0
2917 };
2918
2919
2920 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2921
2922 static swig_const_info swig_const_table[] = {
2923 { SWIG_PY_INT,     (char *)"Action_ButtonPress", (long) Action_ButtonPress, 0, 0, 0},
2924 { SWIG_PY_INT,     (char *)"Action_ButtonRelease", (long) Action_ButtonRelease, 0, 0, 0},
2925 { SWIG_PY_INT,     (char *)"Action_Click", (long) Action_Click, 0, 0, 0},
2926 { SWIG_PY_INT,     (char *)"Action_DoubleClick", (long) Action_DoubleClick, 0, 0, 0},
2927 { SWIG_PY_INT,     (char *)"Action_EnterWindow", (long) Action_EnterWindow, 0, 0, 0},
2928 { SWIG_PY_INT,     (char *)"Action_LeaveWindow", (long) Action_LeaveWindow, 0, 0, 0},
2929 { SWIG_PY_INT,     (char *)"Action_KeyPress", (long) Action_KeyPress, 0, 0, 0},
2930 { SWIG_PY_INT,     (char *)"Action_MouseMotion", (long) Action_MouseMotion, 0, 0, 0},
2931 { SWIG_PY_INT,     (char *)"Type_Frame", (long) Type_Frame, 0, 0, 0},
2932 { SWIG_PY_INT,     (char *)"Type_Titlebar", (long) Type_Titlebar, 0, 0, 0},
2933 { SWIG_PY_INT,     (char *)"Type_Handle", (long) Type_Handle, 0, 0, 0},
2934 { SWIG_PY_INT,     (char *)"Type_Plate", (long) Type_Plate, 0, 0, 0},
2935 { SWIG_PY_INT,     (char *)"Type_Label", (long) Type_Label, 0, 0, 0},
2936 { SWIG_PY_INT,     (char *)"Type_MaximizeButton", (long) Type_MaximizeButton, 0, 0, 0},
2937 { SWIG_PY_INT,     (char *)"Type_CloseButton", (long) Type_CloseButton, 0, 0, 0},
2938 { SWIG_PY_INT,     (char *)"Type_IconifyButton", (long) Type_IconifyButton, 0, 0, 0},
2939 { SWIG_PY_INT,     (char *)"Type_StickyButton", (long) Type_StickyButton, 0, 0, 0},
2940 { SWIG_PY_INT,     (char *)"Type_LeftGrip", (long) Type_LeftGrip, 0, 0, 0},
2941 { SWIG_PY_INT,     (char *)"Type_RightGrip", (long) Type_RightGrip, 0, 0, 0},
2942 { SWIG_PY_INT,     (char *)"Type_Client", (long) Type_Client, 0, 0, 0},
2943 { SWIG_PY_INT,     (char *)"Type_Root", (long) Type_Root, 0, 0, 0},
2944 { SWIG_PY_INT,     (char *)"Openbox_State_Starting", (long) ob::Openbox::State_Starting, 0, 0, 0},
2945 { SWIG_PY_INT,     (char *)"Openbox_State_Normal", (long) ob::Openbox::State_Normal, 0, 0, 0},
2946 { SWIG_PY_INT,     (char *)"Openbox_State_Exiting", (long) ob::Openbox::State_Exiting, 0, 0, 0},
2947 { SWIG_PY_INT,     (char *)"OBScreen_event_mask", (long) ob::OBScreen::event_mask, 0, 0, 0},
2948 { SWIG_PY_INT,     (char *)"MwmHints_elements", (long) ob::MwmHints::elements, 0, 0, 0},
2949 { SWIG_PY_INT,     (char *)"OBClient_TopLeft", (long) ob::OBClient::TopLeft, 0, 0, 0},
2950 { SWIG_PY_INT,     (char *)"OBClient_TopRight", (long) ob::OBClient::TopRight, 0, 0, 0},
2951 { SWIG_PY_INT,     (char *)"OBClient_BottomLeft", (long) ob::OBClient::BottomLeft, 0, 0, 0},
2952 { SWIG_PY_INT,     (char *)"OBClient_BottomRight", (long) ob::OBClient::BottomRight, 0, 0, 0},
2953 { SWIG_PY_INT,     (char *)"OBClient_Type_Desktop", (long) ob::OBClient::Type_Desktop, 0, 0, 0},
2954 { SWIG_PY_INT,     (char *)"OBClient_Type_Dock", (long) ob::OBClient::Type_Dock, 0, 0, 0},
2955 { SWIG_PY_INT,     (char *)"OBClient_Type_Toolbar", (long) ob::OBClient::Type_Toolbar, 0, 0, 0},
2956 { SWIG_PY_INT,     (char *)"OBClient_Type_Menu", (long) ob::OBClient::Type_Menu, 0, 0, 0},
2957 { SWIG_PY_INT,     (char *)"OBClient_Type_Utility", (long) ob::OBClient::Type_Utility, 0, 0, 0},
2958 { SWIG_PY_INT,     (char *)"OBClient_Type_Splash", (long) ob::OBClient::Type_Splash, 0, 0, 0},
2959 { SWIG_PY_INT,     (char *)"OBClient_Type_Dialog", (long) ob::OBClient::Type_Dialog, 0, 0, 0},
2960 { SWIG_PY_INT,     (char *)"OBClient_Type_Normal", (long) ob::OBClient::Type_Normal, 0, 0, 0},
2961 { SWIG_PY_INT,     (char *)"OBClient_MwmFlag_Functions", (long) ob::OBClient::MwmFlag_Functions, 0, 0, 0},
2962 { SWIG_PY_INT,     (char *)"OBClient_MwmFlag_Decorations", (long) ob::OBClient::MwmFlag_Decorations, 0, 0, 0},
2963 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_All", (long) ob::OBClient::MwmFunc_All, 0, 0, 0},
2964 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Resize", (long) ob::OBClient::MwmFunc_Resize, 0, 0, 0},
2965 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Move", (long) ob::OBClient::MwmFunc_Move, 0, 0, 0},
2966 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Iconify", (long) ob::OBClient::MwmFunc_Iconify, 0, 0, 0},
2967 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Maximize", (long) ob::OBClient::MwmFunc_Maximize, 0, 0, 0},
2968 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_All", (long) ob::OBClient::MwmDecor_All, 0, 0, 0},
2969 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Border", (long) ob::OBClient::MwmDecor_Border, 0, 0, 0},
2970 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Handle", (long) ob::OBClient::MwmDecor_Handle, 0, 0, 0},
2971 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Title", (long) ob::OBClient::MwmDecor_Title, 0, 0, 0},
2972 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Iconify", (long) ob::OBClient::MwmDecor_Iconify, 0, 0, 0},
2973 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Maximize", (long) ob::OBClient::MwmDecor_Maximize, 0, 0, 0},
2974 { SWIG_PY_INT,     (char *)"OBClient_Func_Resize", (long) ob::OBClient::Func_Resize, 0, 0, 0},
2975 { SWIG_PY_INT,     (char *)"OBClient_Func_Move", (long) ob::OBClient::Func_Move, 0, 0, 0},
2976 { SWIG_PY_INT,     (char *)"OBClient_Func_Iconify", (long) ob::OBClient::Func_Iconify, 0, 0, 0},
2977 { SWIG_PY_INT,     (char *)"OBClient_Func_Maximize", (long) ob::OBClient::Func_Maximize, 0, 0, 0},
2978 { SWIG_PY_INT,     (char *)"OBClient_Func_Close", (long) ob::OBClient::Func_Close, 0, 0, 0},
2979 { SWIG_PY_INT,     (char *)"OBClient_Decor_Titlebar", (long) ob::OBClient::Decor_Titlebar, 0, 0, 0},
2980 { SWIG_PY_INT,     (char *)"OBClient_Decor_Handle", (long) ob::OBClient::Decor_Handle, 0, 0, 0},
2981 { SWIG_PY_INT,     (char *)"OBClient_Decor_Border", (long) ob::OBClient::Decor_Border, 0, 0, 0},
2982 { SWIG_PY_INT,     (char *)"OBClient_Decor_Iconify", (long) ob::OBClient::Decor_Iconify, 0, 0, 0},
2983 { SWIG_PY_INT,     (char *)"OBClient_Decor_Maximize", (long) ob::OBClient::Decor_Maximize, 0, 0, 0},
2984 { SWIG_PY_INT,     (char *)"OBClient_Decor_Sticky", (long) ob::OBClient::Decor_Sticky, 0, 0, 0},
2985 { SWIG_PY_INT,     (char *)"OBClient_Decor_Close", (long) ob::OBClient::Decor_Close, 0, 0, 0},
2986 { SWIG_PY_INT,     (char *)"OBClient_State_Remove", (long) ob::OBClient::State_Remove, 0, 0, 0},
2987 { SWIG_PY_INT,     (char *)"OBClient_State_Add", (long) ob::OBClient::State_Add, 0, 0, 0},
2988 { SWIG_PY_INT,     (char *)"OBClient_State_Toggle", (long) ob::OBClient::State_Toggle, 0, 0, 0},
2989 { SWIG_PY_INT,     (char *)"OBClient_event_mask", (long) ob::OBClient::event_mask, 0, 0, 0},
2990 { SWIG_PY_INT,     (char *)"OBClient_no_propagate_mask", (long) ob::OBClient::no_propagate_mask, 0, 0, 0},
2991 { SWIG_PY_INT,     (char *)"X_PROTOCOL", (long) 11, 0, 0, 0},
2992 { SWIG_PY_INT,     (char *)"X_PROTOCOL_REVISION", (long) 0, 0, 0, 0},
2993 { SWIG_PY_INT,     (char *)"None", (long) 0L, 0, 0, 0},
2994 { SWIG_PY_INT,     (char *)"ParentRelative", (long) 1L, 0, 0, 0},
2995 { SWIG_PY_INT,     (char *)"CopyFromParent", (long) 0L, 0, 0, 0},
2996 { SWIG_PY_INT,     (char *)"PointerWindow", (long) 0L, 0, 0, 0},
2997 { SWIG_PY_INT,     (char *)"InputFocus", (long) 1L, 0, 0, 0},
2998 { SWIG_PY_INT,     (char *)"PointerRoot", (long) 1L, 0, 0, 0},
2999 { SWIG_PY_INT,     (char *)"AnyPropertyType", (long) 0L, 0, 0, 0},
3000 { SWIG_PY_INT,     (char *)"AnyKey", (long) 0L, 0, 0, 0},
3001 { SWIG_PY_INT,     (char *)"AnyButton", (long) 0L, 0, 0, 0},
3002 { SWIG_PY_INT,     (char *)"AllTemporary", (long) 0L, 0, 0, 0},
3003 { SWIG_PY_INT,     (char *)"CurrentTime", (long) 0L, 0, 0, 0},
3004 { SWIG_PY_INT,     (char *)"NoSymbol", (long) 0L, 0, 0, 0},
3005 { SWIG_PY_INT,     (char *)"NoEventMask", (long) 0L, 0, 0, 0},
3006 { SWIG_PY_INT,     (char *)"KeyPressMask", (long) (1L<<0), 0, 0, 0},
3007 { SWIG_PY_INT,     (char *)"KeyReleaseMask", (long) (1L<<1), 0, 0, 0},
3008 { SWIG_PY_INT,     (char *)"ButtonPressMask", (long) (1L<<2), 0, 0, 0},
3009 { SWIG_PY_INT,     (char *)"ButtonReleaseMask", (long) (1L<<3), 0, 0, 0},
3010 { SWIG_PY_INT,     (char *)"EnterWindowMask", (long) (1L<<4), 0, 0, 0},
3011 { SWIG_PY_INT,     (char *)"LeaveWindowMask", (long) (1L<<5), 0, 0, 0},
3012 { SWIG_PY_INT,     (char *)"PointerMotionMask", (long) (1L<<6), 0, 0, 0},
3013 { SWIG_PY_INT,     (char *)"PointerMotionHintMask", (long) (1L<<7), 0, 0, 0},
3014 { SWIG_PY_INT,     (char *)"Button1MotionMask", (long) (1L<<8), 0, 0, 0},
3015 { SWIG_PY_INT,     (char *)"Button2MotionMask", (long) (1L<<9), 0, 0, 0},
3016 { SWIG_PY_INT,     (char *)"Button3MotionMask", (long) (1L<<10), 0, 0, 0},
3017 { SWIG_PY_INT,     (char *)"Button4MotionMask", (long) (1L<<11), 0, 0, 0},
3018 { SWIG_PY_INT,     (char *)"Button5MotionMask", (long) (1L<<12), 0, 0, 0},
3019 { SWIG_PY_INT,     (char *)"ButtonMotionMask", (long) (1L<<13), 0, 0, 0},
3020 { SWIG_PY_INT,     (char *)"KeymapStateMask", (long) (1L<<14), 0, 0, 0},
3021 { SWIG_PY_INT,     (char *)"ExposureMask", (long) (1L<<15), 0, 0, 0},
3022 { SWIG_PY_INT,     (char *)"VisibilityChangeMask", (long) (1L<<16), 0, 0, 0},
3023 { SWIG_PY_INT,     (char *)"StructureNotifyMask", (long) (1L<<17), 0, 0, 0},
3024 { SWIG_PY_INT,     (char *)"ResizeRedirectMask", (long) (1L<<18), 0, 0, 0},
3025 { SWIG_PY_INT,     (char *)"SubstructureNotifyMask", (long) (1L<<19), 0, 0, 0},
3026 { SWIG_PY_INT,     (char *)"SubstructureRedirectMask", (long) (1L<<20), 0, 0, 0},
3027 { SWIG_PY_INT,     (char *)"FocusChangeMask", (long) (1L<<21), 0, 0, 0},
3028 { SWIG_PY_INT,     (char *)"PropertyChangeMask", (long) (1L<<22), 0, 0, 0},
3029 { SWIG_PY_INT,     (char *)"ColormapChangeMask", (long) (1L<<23), 0, 0, 0},
3030 { SWIG_PY_INT,     (char *)"OwnerGrabButtonMask", (long) (1L<<24), 0, 0, 0},
3031 { SWIG_PY_INT,     (char *)"KeyPress", (long) 2, 0, 0, 0},
3032 { SWIG_PY_INT,     (char *)"KeyRelease", (long) 3, 0, 0, 0},
3033 { SWIG_PY_INT,     (char *)"ButtonPress", (long) 4, 0, 0, 0},
3034 { SWIG_PY_INT,     (char *)"ButtonRelease", (long) 5, 0, 0, 0},
3035 { SWIG_PY_INT,     (char *)"MotionNotify", (long) 6, 0, 0, 0},
3036 { SWIG_PY_INT,     (char *)"EnterNotify", (long) 7, 0, 0, 0},
3037 { SWIG_PY_INT,     (char *)"LeaveNotify", (long) 8, 0, 0, 0},
3038 { SWIG_PY_INT,     (char *)"FocusIn", (long) 9, 0, 0, 0},
3039 { SWIG_PY_INT,     (char *)"FocusOut", (long) 10, 0, 0, 0},
3040 { SWIG_PY_INT,     (char *)"KeymapNotify", (long) 11, 0, 0, 0},
3041 { SWIG_PY_INT,     (char *)"Expose", (long) 12, 0, 0, 0},
3042 { SWIG_PY_INT,     (char *)"GraphicsExpose", (long) 13, 0, 0, 0},
3043 { SWIG_PY_INT,     (char *)"NoExpose", (long) 14, 0, 0, 0},
3044 { SWIG_PY_INT,     (char *)"VisibilityNotify", (long) 15, 0, 0, 0},
3045 { SWIG_PY_INT,     (char *)"CreateNotify", (long) 16, 0, 0, 0},
3046 { SWIG_PY_INT,     (char *)"DestroyNotify", (long) 17, 0, 0, 0},
3047 { SWIG_PY_INT,     (char *)"UnmapNotify", (long) 18, 0, 0, 0},
3048 { SWIG_PY_INT,     (char *)"MapNotify", (long) 19, 0, 0, 0},
3049 { SWIG_PY_INT,     (char *)"MapRequest", (long) 20, 0, 0, 0},
3050 { SWIG_PY_INT,     (char *)"ReparentNotify", (long) 21, 0, 0, 0},
3051 { SWIG_PY_INT,     (char *)"ConfigureNotify", (long) 22, 0, 0, 0},
3052 { SWIG_PY_INT,     (char *)"ConfigureRequest", (long) 23, 0, 0, 0},
3053 { SWIG_PY_INT,     (char *)"GravityNotify", (long) 24, 0, 0, 0},
3054 { SWIG_PY_INT,     (char *)"ResizeRequest", (long) 25, 0, 0, 0},
3055 { SWIG_PY_INT,     (char *)"CirculateNotify", (long) 26, 0, 0, 0},
3056 { SWIG_PY_INT,     (char *)"CirculateRequest", (long) 27, 0, 0, 0},
3057 { SWIG_PY_INT,     (char *)"PropertyNotify", (long) 28, 0, 0, 0},
3058 { SWIG_PY_INT,     (char *)"SelectionClear", (long) 29, 0, 0, 0},
3059 { SWIG_PY_INT,     (char *)"SelectionRequest", (long) 30, 0, 0, 0},
3060 { SWIG_PY_INT,     (char *)"SelectionNotify", (long) 31, 0, 0, 0},
3061 { SWIG_PY_INT,     (char *)"ColormapNotify", (long) 32, 0, 0, 0},
3062 { SWIG_PY_INT,     (char *)"ClientMessage", (long) 33, 0, 0, 0},
3063 { SWIG_PY_INT,     (char *)"MappingNotify", (long) 34, 0, 0, 0},
3064 { SWIG_PY_INT,     (char *)"LASTEvent", (long) 35, 0, 0, 0},
3065 { SWIG_PY_INT,     (char *)"ShiftMask", (long) (1<<0), 0, 0, 0},
3066 { SWIG_PY_INT,     (char *)"LockMask", (long) (1<<1), 0, 0, 0},
3067 { SWIG_PY_INT,     (char *)"ControlMask", (long) (1<<2), 0, 0, 0},
3068 { SWIG_PY_INT,     (char *)"Mod1Mask", (long) (1<<3), 0, 0, 0},
3069 { SWIG_PY_INT,     (char *)"Mod2Mask", (long) (1<<4), 0, 0, 0},
3070 { SWIG_PY_INT,     (char *)"Mod3Mask", (long) (1<<5), 0, 0, 0},
3071 { SWIG_PY_INT,     (char *)"Mod4Mask", (long) (1<<6), 0, 0, 0},
3072 { SWIG_PY_INT,     (char *)"Mod5Mask", (long) (1<<7), 0, 0, 0},
3073 { SWIG_PY_INT,     (char *)"ShiftMapIndex", (long) 0, 0, 0, 0},
3074 { SWIG_PY_INT,     (char *)"LockMapIndex", (long) 1, 0, 0, 0},
3075 { SWIG_PY_INT,     (char *)"ControlMapIndex", (long) 2, 0, 0, 0},
3076 { SWIG_PY_INT,     (char *)"Mod1MapIndex", (long) 3, 0, 0, 0},
3077 { SWIG_PY_INT,     (char *)"Mod2MapIndex", (long) 4, 0, 0, 0},
3078 { SWIG_PY_INT,     (char *)"Mod3MapIndex", (long) 5, 0, 0, 0},
3079 { SWIG_PY_INT,     (char *)"Mod4MapIndex", (long) 6, 0, 0, 0},
3080 { SWIG_PY_INT,     (char *)"Mod5MapIndex", (long) 7, 0, 0, 0},
3081 { SWIG_PY_INT,     (char *)"Button1Mask", (long) (1<<8), 0, 0, 0},
3082 { SWIG_PY_INT,     (char *)"Button2Mask", (long) (1<<9), 0, 0, 0},
3083 { SWIG_PY_INT,     (char *)"Button3Mask", (long) (1<<10), 0, 0, 0},
3084 { SWIG_PY_INT,     (char *)"Button4Mask", (long) (1<<11), 0, 0, 0},
3085 { SWIG_PY_INT,     (char *)"Button5Mask", (long) (1<<12), 0, 0, 0},
3086 { SWIG_PY_INT,     (char *)"AnyModifier", (long) (1<<15), 0, 0, 0},
3087 { SWIG_PY_INT,     (char *)"Button1", (long) 1, 0, 0, 0},
3088 { SWIG_PY_INT,     (char *)"Button2", (long) 2, 0, 0, 0},
3089 { SWIG_PY_INT,     (char *)"Button3", (long) 3, 0, 0, 0},
3090 { SWIG_PY_INT,     (char *)"Button4", (long) 4, 0, 0, 0},
3091 { SWIG_PY_INT,     (char *)"Button5", (long) 5, 0, 0, 0},
3092 { SWIG_PY_INT,     (char *)"NotifyNormal", (long) 0, 0, 0, 0},
3093 { SWIG_PY_INT,     (char *)"NotifyGrab", (long) 1, 0, 0, 0},
3094 { SWIG_PY_INT,     (char *)"NotifyUngrab", (long) 2, 0, 0, 0},
3095 { SWIG_PY_INT,     (char *)"NotifyWhileGrabbed", (long) 3, 0, 0, 0},
3096 { SWIG_PY_INT,     (char *)"NotifyHint", (long) 1, 0, 0, 0},
3097 { SWIG_PY_INT,     (char *)"NotifyAncestor", (long) 0, 0, 0, 0},
3098 { SWIG_PY_INT,     (char *)"NotifyVirtual", (long) 1, 0, 0, 0},
3099 { SWIG_PY_INT,     (char *)"NotifyInferior", (long) 2, 0, 0, 0},
3100 { SWIG_PY_INT,     (char *)"NotifyNonlinear", (long) 3, 0, 0, 0},
3101 { SWIG_PY_INT,     (char *)"NotifyNonlinearVirtual", (long) 4, 0, 0, 0},
3102 { SWIG_PY_INT,     (char *)"NotifyPointer", (long) 5, 0, 0, 0},
3103 { SWIG_PY_INT,     (char *)"NotifyPointerRoot", (long) 6, 0, 0, 0},
3104 { SWIG_PY_INT,     (char *)"NotifyDetailNone", (long) 7, 0, 0, 0},
3105 { SWIG_PY_INT,     (char *)"VisibilityUnobscured", (long) 0, 0, 0, 0},
3106 { SWIG_PY_INT,     (char *)"VisibilityPartiallyObscured", (long) 1, 0, 0, 0},
3107 { SWIG_PY_INT,     (char *)"VisibilityFullyObscured", (long) 2, 0, 0, 0},
3108 { SWIG_PY_INT,     (char *)"PlaceOnTop", (long) 0, 0, 0, 0},
3109 { SWIG_PY_INT,     (char *)"PlaceOnBottom", (long) 1, 0, 0, 0},
3110 { SWIG_PY_INT,     (char *)"FamilyInternet", (long) 0, 0, 0, 0},
3111 { SWIG_PY_INT,     (char *)"FamilyDECnet", (long) 1, 0, 0, 0},
3112 { SWIG_PY_INT,     (char *)"FamilyChaos", (long) 2, 0, 0, 0},
3113 { SWIG_PY_INT,     (char *)"PropertyNewValue", (long) 0, 0, 0, 0},
3114 { SWIG_PY_INT,     (char *)"PropertyDelete", (long) 1, 0, 0, 0},
3115 { SWIG_PY_INT,     (char *)"ColormapUninstalled", (long) 0, 0, 0, 0},
3116 { SWIG_PY_INT,     (char *)"ColormapInstalled", (long) 1, 0, 0, 0},
3117 { SWIG_PY_INT,     (char *)"GrabModeSync", (long) 0, 0, 0, 0},
3118 { SWIG_PY_INT,     (char *)"GrabModeAsync", (long) 1, 0, 0, 0},
3119 { SWIG_PY_INT,     (char *)"GrabSuccess", (long) 0, 0, 0, 0},
3120 { SWIG_PY_INT,     (char *)"AlreadyGrabbed", (long) 1, 0, 0, 0},
3121 { SWIG_PY_INT,     (char *)"GrabInvalidTime", (long) 2, 0, 0, 0},
3122 { SWIG_PY_INT,     (char *)"GrabNotViewable", (long) 3, 0, 0, 0},
3123 { SWIG_PY_INT,     (char *)"GrabFrozen", (long) 4, 0, 0, 0},
3124 { SWIG_PY_INT,     (char *)"AsyncPointer", (long) 0, 0, 0, 0},
3125 { SWIG_PY_INT,     (char *)"SyncPointer", (long) 1, 0, 0, 0},
3126 { SWIG_PY_INT,     (char *)"ReplayPointer", (long) 2, 0, 0, 0},
3127 { SWIG_PY_INT,     (char *)"AsyncKeyboard", (long) 3, 0, 0, 0},
3128 { SWIG_PY_INT,     (char *)"SyncKeyboard", (long) 4, 0, 0, 0},
3129 { SWIG_PY_INT,     (char *)"ReplayKeyboard", (long) 5, 0, 0, 0},
3130 { SWIG_PY_INT,     (char *)"AsyncBoth", (long) 6, 0, 0, 0},
3131 { SWIG_PY_INT,     (char *)"SyncBoth", (long) 7, 0, 0, 0},
3132 { SWIG_PY_INT,     (char *)"RevertToParent", (long) 2, 0, 0, 0},
3133 { SWIG_PY_INT,     (char *)"Success", (long) 0, 0, 0, 0},
3134 { SWIG_PY_INT,     (char *)"BadRequest", (long) 1, 0, 0, 0},
3135 { SWIG_PY_INT,     (char *)"BadValue", (long) 2, 0, 0, 0},
3136 { SWIG_PY_INT,     (char *)"BadWindow", (long) 3, 0, 0, 0},
3137 { SWIG_PY_INT,     (char *)"BadPixmap", (long) 4, 0, 0, 0},
3138 { SWIG_PY_INT,     (char *)"BadAtom", (long) 5, 0, 0, 0},
3139 { SWIG_PY_INT,     (char *)"BadCursor", (long) 6, 0, 0, 0},
3140 { SWIG_PY_INT,     (char *)"BadFont", (long) 7, 0, 0, 0},
3141 { SWIG_PY_INT,     (char *)"BadMatch", (long) 8, 0, 0, 0},
3142 { SWIG_PY_INT,     (char *)"BadDrawable", (long) 9, 0, 0, 0},
3143 { SWIG_PY_INT,     (char *)"BadAccess", (long) 10, 0, 0, 0},
3144 { SWIG_PY_INT,     (char *)"BadAlloc", (long) 11, 0, 0, 0},
3145 { SWIG_PY_INT,     (char *)"BadColor", (long) 12, 0, 0, 0},
3146 { SWIG_PY_INT,     (char *)"BadGC", (long) 13, 0, 0, 0},
3147 { SWIG_PY_INT,     (char *)"BadIDChoice", (long) 14, 0, 0, 0},
3148 { SWIG_PY_INT,     (char *)"BadName", (long) 15, 0, 0, 0},
3149 { SWIG_PY_INT,     (char *)"BadLength", (long) 16, 0, 0, 0},
3150 { SWIG_PY_INT,     (char *)"BadImplementation", (long) 17, 0, 0, 0},
3151 { SWIG_PY_INT,     (char *)"FirstExtensionError", (long) 128, 0, 0, 0},
3152 { SWIG_PY_INT,     (char *)"LastExtensionError", (long) 255, 0, 0, 0},
3153 { SWIG_PY_INT,     (char *)"InputOutput", (long) 1, 0, 0, 0},
3154 { SWIG_PY_INT,     (char *)"InputOnly", (long) 2, 0, 0, 0},
3155 { SWIG_PY_INT,     (char *)"CWBackPixmap", (long) (1L<<0), 0, 0, 0},
3156 { SWIG_PY_INT,     (char *)"CWBackPixel", (long) (1L<<1), 0, 0, 0},
3157 { SWIG_PY_INT,     (char *)"CWBorderPixmap", (long) (1L<<2), 0, 0, 0},
3158 { SWIG_PY_INT,     (char *)"CWBorderPixel", (long) (1L<<3), 0, 0, 0},
3159 { SWIG_PY_INT,     (char *)"CWBitGravity", (long) (1L<<4), 0, 0, 0},
3160 { SWIG_PY_INT,     (char *)"CWWinGravity", (long) (1L<<5), 0, 0, 0},
3161 { SWIG_PY_INT,     (char *)"CWBackingStore", (long) (1L<<6), 0, 0, 0},
3162 { SWIG_PY_INT,     (char *)"CWBackingPlanes", (long) (1L<<7), 0, 0, 0},
3163 { SWIG_PY_INT,     (char *)"CWBackingPixel", (long) (1L<<8), 0, 0, 0},
3164 { SWIG_PY_INT,     (char *)"CWOverrideRedirect", (long) (1L<<9), 0, 0, 0},
3165 { SWIG_PY_INT,     (char *)"CWSaveUnder", (long) (1L<<10), 0, 0, 0},
3166 { SWIG_PY_INT,     (char *)"CWEventMask", (long) (1L<<11), 0, 0, 0},
3167 { SWIG_PY_INT,     (char *)"CWDontPropagate", (long) (1L<<12), 0, 0, 0},
3168 { SWIG_PY_INT,     (char *)"CWColormap", (long) (1L<<13), 0, 0, 0},
3169 { SWIG_PY_INT,     (char *)"CWCursor", (long) (1L<<14), 0, 0, 0},
3170 { SWIG_PY_INT,     (char *)"CWX", (long) (1<<0), 0, 0, 0},
3171 { SWIG_PY_INT,     (char *)"CWY", (long) (1<<1), 0, 0, 0},
3172 { SWIG_PY_INT,     (char *)"CWWidth", (long) (1<<2), 0, 0, 0},
3173 { SWIG_PY_INT,     (char *)"CWHeight", (long) (1<<3), 0, 0, 0},
3174 { SWIG_PY_INT,     (char *)"CWBorderWidth", (long) (1<<4), 0, 0, 0},
3175 { SWIG_PY_INT,     (char *)"CWSibling", (long) (1<<5), 0, 0, 0},
3176 { SWIG_PY_INT,     (char *)"CWStackMode", (long) (1<<6), 0, 0, 0},
3177 { SWIG_PY_INT,     (char *)"ForgetGravity", (long) 0, 0, 0, 0},
3178 { SWIG_PY_INT,     (char *)"NorthWestGravity", (long) 1, 0, 0, 0},
3179 { SWIG_PY_INT,     (char *)"NorthGravity", (long) 2, 0, 0, 0},
3180 { SWIG_PY_INT,     (char *)"NorthEastGravity", (long) 3, 0, 0, 0},
3181 { SWIG_PY_INT,     (char *)"WestGravity", (long) 4, 0, 0, 0},
3182 { SWIG_PY_INT,     (char *)"CenterGravity", (long) 5, 0, 0, 0},
3183 { SWIG_PY_INT,     (char *)"EastGravity", (long) 6, 0, 0, 0},
3184 { SWIG_PY_INT,     (char *)"SouthWestGravity", (long) 7, 0, 0, 0},
3185 { SWIG_PY_INT,     (char *)"SouthGravity", (long) 8, 0, 0, 0},
3186 { SWIG_PY_INT,     (char *)"SouthEastGravity", (long) 9, 0, 0, 0},
3187 { SWIG_PY_INT,     (char *)"StaticGravity", (long) 10, 0, 0, 0},
3188 { SWIG_PY_INT,     (char *)"UnmapGravity", (long) 0, 0, 0, 0},
3189 { SWIG_PY_INT,     (char *)"NotUseful", (long) 0, 0, 0, 0},
3190 { SWIG_PY_INT,     (char *)"WhenMapped", (long) 1, 0, 0, 0},
3191 { SWIG_PY_INT,     (char *)"Always", (long) 2, 0, 0, 0},
3192 { SWIG_PY_INT,     (char *)"IsUnmapped", (long) 0, 0, 0, 0},
3193 { SWIG_PY_INT,     (char *)"IsUnviewable", (long) 1, 0, 0, 0},
3194 { SWIG_PY_INT,     (char *)"IsViewable", (long) 2, 0, 0, 0},
3195 { SWIG_PY_INT,     (char *)"SetModeInsert", (long) 0, 0, 0, 0},
3196 { SWIG_PY_INT,     (char *)"SetModeDelete", (long) 1, 0, 0, 0},
3197 { SWIG_PY_INT,     (char *)"DestroyAll", (long) 0, 0, 0, 0},
3198 { SWIG_PY_INT,     (char *)"RetainPermanent", (long) 1, 0, 0, 0},
3199 { SWIG_PY_INT,     (char *)"RetainTemporary", (long) 2, 0, 0, 0},
3200 { SWIG_PY_INT,     (char *)"Above", (long) 0, 0, 0, 0},
3201 { SWIG_PY_INT,     (char *)"Below", (long) 1, 0, 0, 0},
3202 { SWIG_PY_INT,     (char *)"TopIf", (long) 2, 0, 0, 0},
3203 { SWIG_PY_INT,     (char *)"BottomIf", (long) 3, 0, 0, 0},
3204 { SWIG_PY_INT,     (char *)"Opposite", (long) 4, 0, 0, 0},
3205 { SWIG_PY_INT,     (char *)"RaiseLowest", (long) 0, 0, 0, 0},
3206 { SWIG_PY_INT,     (char *)"LowerHighest", (long) 1, 0, 0, 0},
3207 { SWIG_PY_INT,     (char *)"PropModeReplace", (long) 0, 0, 0, 0},
3208 { SWIG_PY_INT,     (char *)"PropModePrepend", (long) 1, 0, 0, 0},
3209 { SWIG_PY_INT,     (char *)"PropModeAppend", (long) 2, 0, 0, 0},
3210 { SWIG_PY_INT,     (char *)"GXclear", (long) 0x0, 0, 0, 0},
3211 { SWIG_PY_INT,     (char *)"GXand", (long) 0x1, 0, 0, 0},
3212 { SWIG_PY_INT,     (char *)"GXandReverse", (long) 0x2, 0, 0, 0},
3213 { SWIG_PY_INT,     (char *)"GXcopy", (long) 0x3, 0, 0, 0},
3214 { SWIG_PY_INT,     (char *)"GXandInverted", (long) 0x4, 0, 0, 0},
3215 { SWIG_PY_INT,     (char *)"GXnoop", (long) 0x5, 0, 0, 0},
3216 { SWIG_PY_INT,     (char *)"GXxor", (long) 0x6, 0, 0, 0},
3217 { SWIG_PY_INT,     (char *)"GXor", (long) 0x7, 0, 0, 0},
3218 { SWIG_PY_INT,     (char *)"GXnor", (long) 0x8, 0, 0, 0},
3219 { SWIG_PY_INT,     (char *)"GXequiv", (long) 0x9, 0, 0, 0},
3220 { SWIG_PY_INT,     (char *)"GXinvert", (long) 0xa, 0, 0, 0},
3221 { SWIG_PY_INT,     (char *)"GXorReverse", (long) 0xb, 0, 0, 0},
3222 { SWIG_PY_INT,     (char *)"GXcopyInverted", (long) 0xc, 0, 0, 0},
3223 { SWIG_PY_INT,     (char *)"GXorInverted", (long) 0xd, 0, 0, 0},
3224 { SWIG_PY_INT,     (char *)"GXnand", (long) 0xe, 0, 0, 0},
3225 { SWIG_PY_INT,     (char *)"GXset", (long) 0xf, 0, 0, 0},
3226 { SWIG_PY_INT,     (char *)"LineSolid", (long) 0, 0, 0, 0},
3227 { SWIG_PY_INT,     (char *)"LineOnOffDash", (long) 1, 0, 0, 0},
3228 { SWIG_PY_INT,     (char *)"LineDoubleDash", (long) 2, 0, 0, 0},
3229 { SWIG_PY_INT,     (char *)"CapNotLast", (long) 0, 0, 0, 0},
3230 { SWIG_PY_INT,     (char *)"CapButt", (long) 1, 0, 0, 0},
3231 { SWIG_PY_INT,     (char *)"CapRound", (long) 2, 0, 0, 0},
3232 { SWIG_PY_INT,     (char *)"CapProjecting", (long) 3, 0, 0, 0},
3233 { SWIG_PY_INT,     (char *)"JoinMiter", (long) 0, 0, 0, 0},
3234 { SWIG_PY_INT,     (char *)"JoinRound", (long) 1, 0, 0, 0},
3235 { SWIG_PY_INT,     (char *)"JoinBevel", (long) 2, 0, 0, 0},
3236 { SWIG_PY_INT,     (char *)"FillSolid", (long) 0, 0, 0, 0},
3237 { SWIG_PY_INT,     (char *)"FillTiled", (long) 1, 0, 0, 0},
3238 { SWIG_PY_INT,     (char *)"FillStippled", (long) 2, 0, 0, 0},
3239 { SWIG_PY_INT,     (char *)"FillOpaqueStippled", (long) 3, 0, 0, 0},
3240 { SWIG_PY_INT,     (char *)"EvenOddRule", (long) 0, 0, 0, 0},
3241 { SWIG_PY_INT,     (char *)"WindingRule", (long) 1, 0, 0, 0},
3242 { SWIG_PY_INT,     (char *)"ClipByChildren", (long) 0, 0, 0, 0},
3243 { SWIG_PY_INT,     (char *)"IncludeInferiors", (long) 1, 0, 0, 0},
3244 { SWIG_PY_INT,     (char *)"Unsorted", (long) 0, 0, 0, 0},
3245 { SWIG_PY_INT,     (char *)"YSorted", (long) 1, 0, 0, 0},
3246 { SWIG_PY_INT,     (char *)"YXSorted", (long) 2, 0, 0, 0},
3247 { SWIG_PY_INT,     (char *)"YXBanded", (long) 3, 0, 0, 0},
3248 { SWIG_PY_INT,     (char *)"CoordModeOrigin", (long) 0, 0, 0, 0},
3249 { SWIG_PY_INT,     (char *)"CoordModePrevious", (long) 1, 0, 0, 0},
3250 { SWIG_PY_INT,     (char *)"Complex", (long) 0, 0, 0, 0},
3251 { SWIG_PY_INT,     (char *)"Nonconvex", (long) 1, 0, 0, 0},
3252 { SWIG_PY_INT,     (char *)"Convex", (long) 2, 0, 0, 0},
3253 { SWIG_PY_INT,     (char *)"ArcChord", (long) 0, 0, 0, 0},
3254 { SWIG_PY_INT,     (char *)"ArcPieSlice", (long) 1, 0, 0, 0},
3255 { SWIG_PY_INT,     (char *)"GCFunction", (long) (1L<<0), 0, 0, 0},
3256 { SWIG_PY_INT,     (char *)"GCPlaneMask", (long) (1L<<1), 0, 0, 0},
3257 { SWIG_PY_INT,     (char *)"GCForeground", (long) (1L<<2), 0, 0, 0},
3258 { SWIG_PY_INT,     (char *)"GCBackground", (long) (1L<<3), 0, 0, 0},
3259 { SWIG_PY_INT,     (char *)"GCLineWidth", (long) (1L<<4), 0, 0, 0},
3260 { SWIG_PY_INT,     (char *)"GCLineStyle", (long) (1L<<5), 0, 0, 0},
3261 { SWIG_PY_INT,     (char *)"GCCapStyle", (long) (1L<<6), 0, 0, 0},
3262 { SWIG_PY_INT,     (char *)"GCJoinStyle", (long) (1L<<7), 0, 0, 0},
3263 { SWIG_PY_INT,     (char *)"GCFillStyle", (long) (1L<<8), 0, 0, 0},
3264 { SWIG_PY_INT,     (char *)"GCFillRule", (long) (1L<<9), 0, 0, 0},
3265 { SWIG_PY_INT,     (char *)"GCTile", (long) (1L<<10), 0, 0, 0},
3266 { SWIG_PY_INT,     (char *)"GCStipple", (long) (1L<<11), 0, 0, 0},
3267 { SWIG_PY_INT,     (char *)"GCTileStipXOrigin", (long) (1L<<12), 0, 0, 0},
3268 { SWIG_PY_INT,     (char *)"GCTileStipYOrigin", (long) (1L<<13), 0, 0, 0},
3269 { SWIG_PY_INT,     (char *)"GCFont", (long) (1L<<14), 0, 0, 0},
3270 { SWIG_PY_INT,     (char *)"GCSubwindowMode", (long) (1L<<15), 0, 0, 0},
3271 { SWIG_PY_INT,     (char *)"GCGraphicsExposures", (long) (1L<<16), 0, 0, 0},
3272 { SWIG_PY_INT,     (char *)"GCClipXOrigin", (long) (1L<<17), 0, 0, 0},
3273 { SWIG_PY_INT,     (char *)"GCClipYOrigin", (long) (1L<<18), 0, 0, 0},
3274 { SWIG_PY_INT,     (char *)"GCClipMask", (long) (1L<<19), 0, 0, 0},
3275 { SWIG_PY_INT,     (char *)"GCDashOffset", (long) (1L<<20), 0, 0, 0},
3276 { SWIG_PY_INT,     (char *)"GCDashList", (long) (1L<<21), 0, 0, 0},
3277 { SWIG_PY_INT,     (char *)"GCArcMode", (long) (1L<<22), 0, 0, 0},
3278 { SWIG_PY_INT,     (char *)"GCLastBit", (long) 22, 0, 0, 0},
3279 { SWIG_PY_INT,     (char *)"FontLeftToRight", (long) 0, 0, 0, 0},
3280 { SWIG_PY_INT,     (char *)"FontRightToLeft", (long) 1, 0, 0, 0},
3281 { SWIG_PY_INT,     (char *)"FontChange", (long) 255, 0, 0, 0},
3282 { SWIG_PY_INT,     (char *)"XYBitmap", (long) 0, 0, 0, 0},
3283 { SWIG_PY_INT,     (char *)"XYPixmap", (long) 1, 0, 0, 0},
3284 { SWIG_PY_INT,     (char *)"ZPixmap", (long) 2, 0, 0, 0},
3285 { SWIG_PY_INT,     (char *)"AllocNone", (long) 0, 0, 0, 0},
3286 { SWIG_PY_INT,     (char *)"AllocAll", (long) 1, 0, 0, 0},
3287 { SWIG_PY_INT,     (char *)"DoRed", (long) (1<<0), 0, 0, 0},
3288 { SWIG_PY_INT,     (char *)"DoGreen", (long) (1<<1), 0, 0, 0},
3289 { SWIG_PY_INT,     (char *)"DoBlue", (long) (1<<2), 0, 0, 0},
3290 { SWIG_PY_INT,     (char *)"CursorShape", (long) 0, 0, 0, 0},
3291 { SWIG_PY_INT,     (char *)"TileShape", (long) 1, 0, 0, 0},
3292 { SWIG_PY_INT,     (char *)"StippleShape", (long) 2, 0, 0, 0},
3293 { SWIG_PY_INT,     (char *)"AutoRepeatModeOff", (long) 0, 0, 0, 0},
3294 { SWIG_PY_INT,     (char *)"AutoRepeatModeOn", (long) 1, 0, 0, 0},
3295 { SWIG_PY_INT,     (char *)"AutoRepeatModeDefault", (long) 2, 0, 0, 0},
3296 { SWIG_PY_INT,     (char *)"LedModeOff", (long) 0, 0, 0, 0},
3297 { SWIG_PY_INT,     (char *)"LedModeOn", (long) 1, 0, 0, 0},
3298 { SWIG_PY_INT,     (char *)"KBKeyClickPercent", (long) (1L<<0), 0, 0, 0},
3299 { SWIG_PY_INT,     (char *)"KBBellPercent", (long) (1L<<1), 0, 0, 0},
3300 { SWIG_PY_INT,     (char *)"KBBellPitch", (long) (1L<<2), 0, 0, 0},
3301 { SWIG_PY_INT,     (char *)"KBBellDuration", (long) (1L<<3), 0, 0, 0},
3302 { SWIG_PY_INT,     (char *)"KBLed", (long) (1L<<4), 0, 0, 0},
3303 { SWIG_PY_INT,     (char *)"KBLedMode", (long) (1L<<5), 0, 0, 0},
3304 { SWIG_PY_INT,     (char *)"KBKey", (long) (1L<<6), 0, 0, 0},
3305 { SWIG_PY_INT,     (char *)"KBAutoRepeatMode", (long) (1L<<7), 0, 0, 0},
3306 { SWIG_PY_INT,     (char *)"MappingSuccess", (long) 0, 0, 0, 0},
3307 { SWIG_PY_INT,     (char *)"MappingBusy", (long) 1, 0, 0, 0},
3308 { SWIG_PY_INT,     (char *)"MappingFailed", (long) 2, 0, 0, 0},
3309 { SWIG_PY_INT,     (char *)"MappingModifier", (long) 0, 0, 0, 0},
3310 { SWIG_PY_INT,     (char *)"MappingKeyboard", (long) 1, 0, 0, 0},
3311 { SWIG_PY_INT,     (char *)"MappingPointer", (long) 2, 0, 0, 0},
3312 { SWIG_PY_INT,     (char *)"DontPreferBlanking", (long) 0, 0, 0, 0},
3313 { SWIG_PY_INT,     (char *)"PreferBlanking", (long) 1, 0, 0, 0},
3314 { SWIG_PY_INT,     (char *)"DefaultBlanking", (long) 2, 0, 0, 0},
3315 { SWIG_PY_INT,     (char *)"DisableScreenSaver", (long) 0, 0, 0, 0},
3316 { SWIG_PY_INT,     (char *)"DisableScreenInterval", (long) 0, 0, 0, 0},
3317 { SWIG_PY_INT,     (char *)"DontAllowExposures", (long) 0, 0, 0, 0},
3318 { SWIG_PY_INT,     (char *)"AllowExposures", (long) 1, 0, 0, 0},
3319 { SWIG_PY_INT,     (char *)"DefaultExposures", (long) 2, 0, 0, 0},
3320 { SWIG_PY_INT,     (char *)"ScreenSaverReset", (long) 0, 0, 0, 0},
3321 { SWIG_PY_INT,     (char *)"ScreenSaverActive", (long) 1, 0, 0, 0},
3322 { SWIG_PY_INT,     (char *)"HostInsert", (long) 0, 0, 0, 0},
3323 { SWIG_PY_INT,     (char *)"HostDelete", (long) 1, 0, 0, 0},
3324 { SWIG_PY_INT,     (char *)"EnableAccess", (long) 1, 0, 0, 0},
3325 { SWIG_PY_INT,     (char *)"DisableAccess", (long) 0, 0, 0, 0},
3326 { SWIG_PY_INT,     (char *)"StaticGray", (long) 0, 0, 0, 0},
3327 { SWIG_PY_INT,     (char *)"GrayScale", (long) 1, 0, 0, 0},
3328 { SWIG_PY_INT,     (char *)"StaticColor", (long) 2, 0, 0, 0},
3329 { SWIG_PY_INT,     (char *)"PseudoColor", (long) 3, 0, 0, 0},
3330 { SWIG_PY_INT,     (char *)"TrueColor", (long) 4, 0, 0, 0},
3331 { SWIG_PY_INT,     (char *)"DirectColor", (long) 5, 0, 0, 0},
3332 { SWIG_PY_INT,     (char *)"LSBFirst", (long) 0, 0, 0, 0},
3333 { SWIG_PY_INT,     (char *)"MSBFirst", (long) 1, 0, 0, 0},
3334 {0}};
3335
3336 #ifdef __cplusplus
3337 }
3338 #endif
3339
3340 #ifdef __cplusplus
3341 extern "C"
3342 #endif
3343 SWIGEXPORT(void) SWIG_init(void) {
3344     static PyObject *SWIG_globals = 0; 
3345     static int       typeinit = 0;
3346     PyObject *m, *d;
3347     int       i;
3348     if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
3349     m = Py_InitModule((char *) SWIG_name, SwigMethods);
3350     d = PyModule_GetDict(m);
3351     
3352     if (!typeinit) {
3353         for (i = 0; swig_types_initial[i]; i++) {
3354             swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
3355         }
3356         typeinit = 1;
3357     }
3358     SWIG_InstallConstants(d,swig_const_table);
3359     
3360 }
3361