]> icculus.org git repositories - mikachu/openbox.git/blob - src/openbox_wrap.cc
handle reparent events..hopefully :>
[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_otk__OBTimerQueueManager swig_types[0] 
649 #define  SWIGTYPE_p_ob__Cursors swig_types[1] 
650 #define  SWIGTYPE_p_ob__OBScreen swig_types[2] 
651 #define  SWIGTYPE_p_otk__Style swig_types[3] 
652 #define  SWIGTYPE_p_ob__OBFrame swig_types[4] 
653 #define  SWIGTYPE_p_XReparentEvent swig_types[5] 
654 #define  SWIGTYPE_p_ob__OBClient swig_types[6] 
655 #define  SWIGTYPE_p_ob__Openbox swig_types[7] 
656 #define  SWIGTYPE_p_otk__Strut swig_types[8] 
657 #define  SWIGTYPE_p_XShapeEvent swig_types[9] 
658 #define  SWIGTYPE_p_XConfigureRequestEvent swig_types[10] 
659 #define  SWIGTYPE_p_otk__OtkEventHandler swig_types[11] 
660 #define  SWIGTYPE_p_otk__Rect swig_types[12] 
661 #define  SWIGTYPE_p_ob__OBWidget swig_types[13] 
662 #define  SWIGTYPE_p_XFocusChangeEvent swig_types[14] 
663 #define  SWIGTYPE_p_XClientMessageEvent swig_types[15] 
664 #define  SWIGTYPE_p_otk__OBProperty swig_types[16] 
665 #define  SWIGTYPE_p_otk__OtkEventDispatcher swig_types[17] 
666 #define  SWIGTYPE_p_XPropertyEvent swig_types[18] 
667 #define  SWIGTYPE_p_XDestroyWindowEvent swig_types[19] 
668 #define  SWIGTYPE_p_otk__BImageControl swig_types[20] 
669 #define  SWIGTYPE_p_PyObject swig_types[21] 
670 #define  SWIGTYPE_p_ob__MwmHints swig_types[22] 
671 #define  SWIGTYPE_p_otk__Configuration swig_types[23] 
672 #define  SWIGTYPE_p_XUnmapEvent swig_types[24] 
673 static swig_type_info *swig_types[26];
674
675 /* -------- TYPES TABLE (END) -------- */
676
677
678 /*-----------------------------------------------
679               @(target):= _openbox.so
680   ------------------------------------------------*/
681 #define SWIG_init    init_openbox
682
683 #define SWIG_name    "_openbox"
684
685 #ifdef HAVE_CONFIG_H
686 #  include "../config.h"
687 #endif
688
689 #include "openbox.hh"
690 #include "screen.hh"
691 #include "client.hh"
692 #include "python.hh"
693
694
695 #define  SWIG_MemoryError    1
696 #define  SWIG_IOError        2
697 #define  SWIG_RuntimeError   3
698 #define  SWIG_IndexError     4
699 #define  SWIG_TypeError      5
700 #define  SWIG_DivisionByZero 6
701 #define  SWIG_OverflowError  7
702 #define  SWIG_SyntaxError    8
703 #define  SWIG_ValueError     9
704 #define  SWIG_SystemError   10
705 #define  SWIG_UnknownError  99
706
707
708 static void _SWIG_exception(int code, const char *msg) {
709   switch(code) {
710   case SWIG_MemoryError:
711     PyErr_SetString(PyExc_MemoryError,msg);
712     break;
713   case SWIG_IOError:
714     PyErr_SetString(PyExc_IOError,msg);
715     break;
716   case SWIG_RuntimeError:
717     PyErr_SetString(PyExc_RuntimeError,msg);
718     break;
719   case SWIG_IndexError:
720     PyErr_SetString(PyExc_IndexError,msg);
721     break;
722   case SWIG_TypeError:
723     PyErr_SetString(PyExc_TypeError,msg);
724     break;
725   case SWIG_DivisionByZero:
726     PyErr_SetString(PyExc_ZeroDivisionError,msg);
727     break;
728   case SWIG_OverflowError:
729     PyErr_SetString(PyExc_OverflowError,msg);
730     break;
731   case SWIG_SyntaxError:
732     PyErr_SetString(PyExc_SyntaxError,msg);
733     break;
734   case SWIG_ValueError:
735     PyErr_SetString(PyExc_ValueError,msg);
736     break;
737   case SWIG_SystemError:
738     PyErr_SetString(PyExc_SystemError,msg);
739     break;
740   default:
741     PyErr_SetString(PyExc_RuntimeError,msg);
742     break;
743   }
744 }
745
746 #define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
747
748
749 #include <string>
750
751
752 #include <string>
753
754 static PyObject* SwigInt_FromBool(bool b) {
755     return PyInt_FromLong(b ? 1L : 0L);
756 }
757 static double SwigNumber_Check(PyObject* o) {
758     return PyFloat_Check(o) || PyInt_Check(o);
759 }
760 static double SwigNumber_AsDouble(PyObject* o) {
761     return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o)));
762 }
763 static PyObject* SwigString_FromString(const std::string& s) {
764     return PyString_FromString(s.c_str());
765 }
766 static std::string SwigString_AsString(PyObject* o) {
767     return std::string(PyString_AsString(o));
768 }
769
770
771 #include <vector>
772 #include <algorithm>
773 #include <stdexcept>
774
775
776   ob::Openbox *Openbox_instance() { return ob::Openbox::instance; }
777
778
779   enum ActionType {
780     Action_ButtonPress,
781     Action_ButtonRelease,
782     Action_Click,
783     Action_DoubleClick,
784     Action_EnterWindow,
785     Action_LeaveWindow,
786     Action_KeyPress,
787     Action_MouseMotion
788   };
789   enum WidgetType {
790     Type_Frame,
791     Type_Titlebar,
792     Type_Handle,
793     Type_Plate,
794     Type_Label,
795     Type_MaximizeButton,
796     Type_CloseButton,
797     Type_IconifyButton,
798     Type_StickyButton,
799     Type_LeftGrip,
800     Type_RightGrip,
801     Type_Client,
802     Type_Root
803   };
804
805
806   #include <iterator>
807
808 ob::OBClient *ob_OBScreen_client(ob::OBScreen *self,int i){
809     if (i >= (int)self->clients.size())
810       return NULL;
811     ob::OBScreen::ClientList::iterator it = self->clients.begin();
812     std::advance(it,i);
813     return *it;
814   }
815 int ob_OBScreen_clientCount(ob::OBScreen const *self){
816     return (int) self->clients.size();
817   }
818 #ifdef __cplusplus
819 extern "C" {
820 #endif
821 static PyObject *_wrap_Openbox_instance(PyObject *self, PyObject *args) {
822     PyObject *resultobj;
823     ob::Openbox *result;
824     
825     if(!PyArg_ParseTuple(args,(char *)":Openbox_instance")) goto fail;
826     result = (ob::Openbox *)Openbox_instance();
827     
828     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Openbox, 0);
829     return resultobj;
830     fail:
831     return NULL;
832 }
833
834
835 static PyObject *_wrap_Cursors_session_set(PyObject *self, PyObject *args) {
836     PyObject *resultobj;
837     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
838     Cursor arg2 ;
839     PyObject * obj0  = 0 ;
840     PyObject * obj1  = 0 ;
841     
842     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_session_set",&obj0,&obj1)) goto fail;
843     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
844     arg2 = (Cursor) PyInt_AsLong(obj1);
845     if (PyErr_Occurred()) SWIG_fail;
846     if (arg1) (arg1)->session = arg2;
847     
848     Py_INCREF(Py_None); resultobj = Py_None;
849     return resultobj;
850     fail:
851     return NULL;
852 }
853
854
855 static PyObject *_wrap_Cursors_session_get(PyObject *self, PyObject *args) {
856     PyObject *resultobj;
857     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
858     Cursor result;
859     PyObject * obj0  = 0 ;
860     
861     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_session_get",&obj0)) goto fail;
862     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
863     result = (Cursor) ((arg1)->session);
864     
865     resultobj = PyInt_FromLong((long)result);
866     return resultobj;
867     fail:
868     return NULL;
869 }
870
871
872 static PyObject *_wrap_Cursors_move_set(PyObject *self, PyObject *args) {
873     PyObject *resultobj;
874     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
875     Cursor arg2 ;
876     PyObject * obj0  = 0 ;
877     PyObject * obj1  = 0 ;
878     
879     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_move_set",&obj0,&obj1)) goto fail;
880     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
881     arg2 = (Cursor) PyInt_AsLong(obj1);
882     if (PyErr_Occurred()) SWIG_fail;
883     if (arg1) (arg1)->move = arg2;
884     
885     Py_INCREF(Py_None); resultobj = Py_None;
886     return resultobj;
887     fail:
888     return NULL;
889 }
890
891
892 static PyObject *_wrap_Cursors_move_get(PyObject *self, PyObject *args) {
893     PyObject *resultobj;
894     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
895     Cursor result;
896     PyObject * obj0  = 0 ;
897     
898     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_move_get",&obj0)) goto fail;
899     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
900     result = (Cursor) ((arg1)->move);
901     
902     resultobj = PyInt_FromLong((long)result);
903     return resultobj;
904     fail:
905     return NULL;
906 }
907
908
909 static PyObject *_wrap_Cursors_ll_angle_set(PyObject *self, PyObject *args) {
910     PyObject *resultobj;
911     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
912     Cursor arg2 ;
913     PyObject * obj0  = 0 ;
914     PyObject * obj1  = 0 ;
915     
916     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ll_angle_set",&obj0,&obj1)) goto fail;
917     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
918     arg2 = (Cursor) PyInt_AsLong(obj1);
919     if (PyErr_Occurred()) SWIG_fail;
920     if (arg1) (arg1)->ll_angle = arg2;
921     
922     Py_INCREF(Py_None); resultobj = Py_None;
923     return resultobj;
924     fail:
925     return NULL;
926 }
927
928
929 static PyObject *_wrap_Cursors_ll_angle_get(PyObject *self, PyObject *args) {
930     PyObject *resultobj;
931     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
932     Cursor result;
933     PyObject * obj0  = 0 ;
934     
935     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ll_angle_get",&obj0)) goto fail;
936     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
937     result = (Cursor) ((arg1)->ll_angle);
938     
939     resultobj = PyInt_FromLong((long)result);
940     return resultobj;
941     fail:
942     return NULL;
943 }
944
945
946 static PyObject *_wrap_Cursors_lr_angle_set(PyObject *self, PyObject *args) {
947     PyObject *resultobj;
948     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
949     Cursor arg2 ;
950     PyObject * obj0  = 0 ;
951     PyObject * obj1  = 0 ;
952     
953     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_lr_angle_set",&obj0,&obj1)) goto fail;
954     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
955     arg2 = (Cursor) PyInt_AsLong(obj1);
956     if (PyErr_Occurred()) SWIG_fail;
957     if (arg1) (arg1)->lr_angle = arg2;
958     
959     Py_INCREF(Py_None); resultobj = Py_None;
960     return resultobj;
961     fail:
962     return NULL;
963 }
964
965
966 static PyObject *_wrap_Cursors_lr_angle_get(PyObject *self, PyObject *args) {
967     PyObject *resultobj;
968     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
969     Cursor result;
970     PyObject * obj0  = 0 ;
971     
972     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_lr_angle_get",&obj0)) goto fail;
973     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
974     result = (Cursor) ((arg1)->lr_angle);
975     
976     resultobj = PyInt_FromLong((long)result);
977     return resultobj;
978     fail:
979     return NULL;
980 }
981
982
983 static PyObject *_wrap_Cursors_ul_angle_set(PyObject *self, PyObject *args) {
984     PyObject *resultobj;
985     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
986     Cursor arg2 ;
987     PyObject * obj0  = 0 ;
988     PyObject * obj1  = 0 ;
989     
990     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ul_angle_set",&obj0,&obj1)) goto fail;
991     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
992     arg2 = (Cursor) PyInt_AsLong(obj1);
993     if (PyErr_Occurred()) SWIG_fail;
994     if (arg1) (arg1)->ul_angle = arg2;
995     
996     Py_INCREF(Py_None); resultobj = Py_None;
997     return resultobj;
998     fail:
999     return NULL;
1000 }
1001
1002
1003 static PyObject *_wrap_Cursors_ul_angle_get(PyObject *self, PyObject *args) {
1004     PyObject *resultobj;
1005     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
1006     Cursor result;
1007     PyObject * obj0  = 0 ;
1008     
1009     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ul_angle_get",&obj0)) goto fail;
1010     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1011     result = (Cursor) ((arg1)->ul_angle);
1012     
1013     resultobj = PyInt_FromLong((long)result);
1014     return resultobj;
1015     fail:
1016     return NULL;
1017 }
1018
1019
1020 static PyObject *_wrap_Cursors_ur_angle_set(PyObject *self, PyObject *args) {
1021     PyObject *resultobj;
1022     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
1023     Cursor arg2 ;
1024     PyObject * obj0  = 0 ;
1025     PyObject * obj1  = 0 ;
1026     
1027     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ur_angle_set",&obj0,&obj1)) goto fail;
1028     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1029     arg2 = (Cursor) PyInt_AsLong(obj1);
1030     if (PyErr_Occurred()) SWIG_fail;
1031     if (arg1) (arg1)->ur_angle = arg2;
1032     
1033     Py_INCREF(Py_None); resultobj = Py_None;
1034     return resultobj;
1035     fail:
1036     return NULL;
1037 }
1038
1039
1040 static PyObject *_wrap_Cursors_ur_angle_get(PyObject *self, PyObject *args) {
1041     PyObject *resultobj;
1042     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
1043     Cursor result;
1044     PyObject * obj0  = 0 ;
1045     
1046     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ur_angle_get",&obj0)) goto fail;
1047     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1048     result = (Cursor) ((arg1)->ur_angle);
1049     
1050     resultobj = PyInt_FromLong((long)result);
1051     return resultobj;
1052     fail:
1053     return NULL;
1054 }
1055
1056
1057 static PyObject * Cursors_swigregister(PyObject *self, PyObject *args) {
1058     PyObject *obj;
1059     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1060     SWIG_TypeClientData(SWIGTYPE_p_ob__Cursors, obj);
1061     Py_INCREF(obj);
1062     return Py_BuildValue((char *)"");
1063 }
1064 static PyObject *_wrap_Openbox_state(PyObject *self, PyObject *args) {
1065     PyObject *resultobj;
1066     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1067     int result;
1068     PyObject * obj0  = 0 ;
1069     
1070     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_state",&obj0)) goto fail;
1071     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1072     result = (int)((ob::Openbox const *)arg1)->state();
1073     
1074     resultobj = PyInt_FromLong((long)result);
1075     return resultobj;
1076     fail:
1077     return NULL;
1078 }
1079
1080
1081 static PyObject *_wrap_Openbox_timerManager(PyObject *self, PyObject *args) {
1082     PyObject *resultobj;
1083     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1084     otk::OBTimerQueueManager *result;
1085     PyObject * obj0  = 0 ;
1086     
1087     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_timerManager",&obj0)) goto fail;
1088     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1089     result = (otk::OBTimerQueueManager *)(arg1)->timerManager();
1090     
1091     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimerQueueManager, 0);
1092     return resultobj;
1093     fail:
1094     return NULL;
1095 }
1096
1097
1098 static PyObject *_wrap_Openbox_property(PyObject *self, PyObject *args) {
1099     PyObject *resultobj;
1100     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1101     otk::OBProperty *result;
1102     PyObject * obj0  = 0 ;
1103     
1104     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_property",&obj0)) goto fail;
1105     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1106     result = (otk::OBProperty *)((ob::Openbox const *)arg1)->property();
1107     
1108     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBProperty, 0);
1109     return resultobj;
1110     fail:
1111     return NULL;
1112 }
1113
1114
1115 static PyObject *_wrap_Openbox_screen(PyObject *self, PyObject *args) {
1116     PyObject *resultobj;
1117     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1118     int arg2 ;
1119     ob::OBScreen *result;
1120     PyObject * obj0  = 0 ;
1121     
1122     if(!PyArg_ParseTuple(args,(char *)"Oi:Openbox_screen",&obj0,&arg2)) goto fail;
1123     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1124     result = (ob::OBScreen *)(arg1)->screen(arg2);
1125     
1126     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
1127     return resultobj;
1128     fail:
1129     return NULL;
1130 }
1131
1132
1133 static PyObject *_wrap_Openbox_screenCount(PyObject *self, PyObject *args) {
1134     PyObject *resultobj;
1135     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1136     int result;
1137     PyObject * obj0  = 0 ;
1138     
1139     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_screenCount",&obj0)) goto fail;
1140     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1141     result = (int)((ob::Openbox const *)arg1)->screenCount();
1142     
1143     resultobj = PyInt_FromLong((long)result);
1144     return resultobj;
1145     fail:
1146     return NULL;
1147 }
1148
1149
1150 static PyObject *_wrap_Openbox_cursors(PyObject *self, PyObject *args) {
1151     PyObject *resultobj;
1152     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1153     ob::Cursors *result;
1154     PyObject * obj0  = 0 ;
1155     
1156     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_cursors",&obj0)) goto fail;
1157     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1158     {
1159         ob::Cursors const &_result_ref = ((ob::Openbox const *)arg1)->cursors();
1160         result = (ob::Cursors *) &_result_ref;
1161     }
1162     
1163     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Cursors, 0);
1164     return resultobj;
1165     fail:
1166     return NULL;
1167 }
1168
1169
1170 static PyObject *_wrap_Openbox_addClient(PyObject *self, PyObject *args) {
1171     PyObject *resultobj;
1172     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1173     Window arg2 ;
1174     ob::OBClient *arg3 = (ob::OBClient *) 0 ;
1175     PyObject * obj0  = 0 ;
1176     PyObject * obj1  = 0 ;
1177     PyObject * obj2  = 0 ;
1178     
1179     if(!PyArg_ParseTuple(args,(char *)"OOO:Openbox_addClient",&obj0,&obj1,&obj2)) goto fail;
1180     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1181     arg2 = (Window) PyInt_AsLong(obj1);
1182     if (PyErr_Occurred()) SWIG_fail;
1183     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1184     (arg1)->addClient(arg2,arg3);
1185     
1186     Py_INCREF(Py_None); resultobj = Py_None;
1187     return resultobj;
1188     fail:
1189     return NULL;
1190 }
1191
1192
1193 static PyObject *_wrap_Openbox_removeClient(PyObject *self, PyObject *args) {
1194     PyObject *resultobj;
1195     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1196     Window arg2 ;
1197     PyObject * obj0  = 0 ;
1198     PyObject * obj1  = 0 ;
1199     
1200     if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_removeClient",&obj0,&obj1)) goto fail;
1201     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1202     arg2 = (Window) PyInt_AsLong(obj1);
1203     if (PyErr_Occurred()) SWIG_fail;
1204     (arg1)->removeClient(arg2);
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_findClient(PyObject *self, PyObject *args) {
1214     PyObject *resultobj;
1215     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1216     Window arg2 ;
1217     ob::OBClient *result;
1218     PyObject * obj0  = 0 ;
1219     PyObject * obj1  = 0 ;
1220     
1221     if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_findClient",&obj0,&obj1)) goto fail;
1222     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1223     arg2 = (Window) PyInt_AsLong(obj1);
1224     if (PyErr_Occurred()) SWIG_fail;
1225     result = (ob::OBClient *)(arg1)->findClient(arg2);
1226     
1227     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1228     return resultobj;
1229     fail:
1230     return NULL;
1231 }
1232
1233
1234 static PyObject *_wrap_Openbox_focusedClient(PyObject *self, PyObject *args) {
1235     PyObject *resultobj;
1236     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1237     ob::OBClient *result;
1238     PyObject * obj0  = 0 ;
1239     
1240     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedClient",&obj0)) goto fail;
1241     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1242     result = (ob::OBClient *)(arg1)->focusedClient();
1243     
1244     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1245     return resultobj;
1246     fail:
1247     return NULL;
1248 }
1249
1250
1251 static PyObject *_wrap_Openbox_setFocusedClient(PyObject *self, PyObject *args) {
1252     PyObject *resultobj;
1253     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1254     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
1255     PyObject * obj0  = 0 ;
1256     PyObject * obj1  = 0 ;
1257     
1258     if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_setFocusedClient",&obj0,&obj1)) goto fail;
1259     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1260     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1261     (arg1)->setFocusedClient(arg2);
1262     
1263     Py_INCREF(Py_None); resultobj = Py_None;
1264     return resultobj;
1265     fail:
1266     return NULL;
1267 }
1268
1269
1270 static PyObject *_wrap_Openbox_focusedScreen(PyObject *self, PyObject *args) {
1271     PyObject *resultobj;
1272     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1273     ob::OBScreen *result;
1274     PyObject * obj0  = 0 ;
1275     
1276     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedScreen",&obj0)) goto fail;
1277     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1278     result = (ob::OBScreen *)(arg1)->focusedScreen();
1279     
1280     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
1281     return resultobj;
1282     fail:
1283     return NULL;
1284 }
1285
1286
1287 static PyObject *_wrap_Openbox_shutdown(PyObject *self, PyObject *args) {
1288     PyObject *resultobj;
1289     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1290     PyObject * obj0  = 0 ;
1291     
1292     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_shutdown",&obj0)) goto fail;
1293     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1294     (arg1)->shutdown();
1295     
1296     Py_INCREF(Py_None); resultobj = Py_None;
1297     return resultobj;
1298     fail:
1299     return NULL;
1300 }
1301
1302
1303 static PyObject * Openbox_swigregister(PyObject *self, PyObject *args) {
1304     PyObject *obj;
1305     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1306     SWIG_TypeClientData(SWIGTYPE_p_ob__Openbox, obj);
1307     Py_INCREF(obj);
1308     return Py_BuildValue((char *)"");
1309 }
1310 static PyObject *_wrap_OBScreen_client(PyObject *self, PyObject *args) {
1311     PyObject *resultobj;
1312     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1313     int arg2 ;
1314     ob::OBClient *result;
1315     PyObject * obj0  = 0 ;
1316     
1317     if(!PyArg_ParseTuple(args,(char *)"Oi:OBScreen_client",&obj0,&arg2)) goto fail;
1318     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1319     result = (ob::OBClient *)ob_OBScreen_client(arg1,arg2);
1320     
1321     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1322     return resultobj;
1323     fail:
1324     return NULL;
1325 }
1326
1327
1328 static PyObject *_wrap_OBScreen_clientCount(PyObject *self, PyObject *args) {
1329     PyObject *resultobj;
1330     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1331     int result;
1332     PyObject * obj0  = 0 ;
1333     
1334     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_clientCount",&obj0)) goto fail;
1335     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1336     result = (int)ob_OBScreen_clientCount((ob::OBScreen const *)arg1);
1337     
1338     resultobj = PyInt_FromLong((long)result);
1339     return resultobj;
1340     fail:
1341     return NULL;
1342 }
1343
1344
1345 static PyObject *_wrap_OBScreen_managed(PyObject *self, PyObject *args) {
1346     PyObject *resultobj;
1347     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1348     bool result;
1349     PyObject * obj0  = 0 ;
1350     
1351     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_managed",&obj0)) goto fail;
1352     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1353     result = (bool)((ob::OBScreen const *)arg1)->managed();
1354     
1355     resultobj = PyInt_FromLong((long)result);
1356     return resultobj;
1357     fail:
1358     return NULL;
1359 }
1360
1361
1362 static PyObject *_wrap_OBScreen_imageControl(PyObject *self, PyObject *args) {
1363     PyObject *resultobj;
1364     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1365     otk::BImageControl *result;
1366     PyObject * obj0  = 0 ;
1367     
1368     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_imageControl",&obj0)) goto fail;
1369     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1370     result = (otk::BImageControl *)(arg1)->imageControl();
1371     
1372     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 0);
1373     return resultobj;
1374     fail:
1375     return NULL;
1376 }
1377
1378
1379 static PyObject *_wrap_OBScreen_area(PyObject *self, PyObject *args) {
1380     PyObject *resultobj;
1381     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1382     otk::Rect *result;
1383     PyObject * obj0  = 0 ;
1384     
1385     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_area",&obj0)) goto fail;
1386     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1387     {
1388         otk::Rect const &_result_ref = ((ob::OBScreen const *)arg1)->area();
1389         result = (otk::Rect *) &_result_ref;
1390     }
1391     
1392     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
1393     return resultobj;
1394     fail:
1395     return NULL;
1396 }
1397
1398
1399 static PyObject *_wrap_OBScreen_style(PyObject *self, PyObject *args) {
1400     PyObject *resultobj;
1401     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1402     otk::Style *result;
1403     PyObject * obj0  = 0 ;
1404     
1405     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_style",&obj0)) goto fail;
1406     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1407     result = (otk::Style *)((ob::OBScreen const *)arg1)->style();
1408     
1409     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
1410     return resultobj;
1411     fail:
1412     return NULL;
1413 }
1414
1415
1416 static PyObject *_wrap_OBScreen_focuswindow(PyObject *self, PyObject *args) {
1417     PyObject *resultobj;
1418     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1419     Window result;
1420     PyObject * obj0  = 0 ;
1421     
1422     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_focuswindow",&obj0)) goto fail;
1423     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1424     result = (Window)((ob::OBScreen const *)arg1)->focuswindow();
1425     
1426     resultobj = PyInt_FromLong((long)result);
1427     return resultobj;
1428     fail:
1429     return NULL;
1430 }
1431
1432
1433 static PyObject *_wrap_OBScreen_addStrut(PyObject *self, PyObject *args) {
1434     PyObject *resultobj;
1435     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1436     otk::Strut *arg2 = (otk::Strut *) 0 ;
1437     PyObject * obj0  = 0 ;
1438     PyObject * obj1  = 0 ;
1439     
1440     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_addStrut",&obj0,&obj1)) goto fail;
1441     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1442     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1443     (arg1)->addStrut(arg2);
1444     
1445     Py_INCREF(Py_None); resultobj = Py_None;
1446     return resultobj;
1447     fail:
1448     return NULL;
1449 }
1450
1451
1452 static PyObject *_wrap_OBScreen_removeStrut(PyObject *self, PyObject *args) {
1453     PyObject *resultobj;
1454     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1455     otk::Strut *arg2 = (otk::Strut *) 0 ;
1456     PyObject * obj0  = 0 ;
1457     PyObject * obj1  = 0 ;
1458     
1459     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_removeStrut",&obj0,&obj1)) goto fail;
1460     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1461     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1462     (arg1)->removeStrut(arg2);
1463     
1464     Py_INCREF(Py_None); resultobj = Py_None;
1465     return resultobj;
1466     fail:
1467     return NULL;
1468 }
1469
1470
1471 static PyObject *_wrap_OBScreen_loadStyle(PyObject *self, PyObject *args) {
1472     PyObject *resultobj;
1473     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1474     otk::Configuration *arg2 = 0 ;
1475     PyObject * obj0  = 0 ;
1476     PyObject * obj1  = 0 ;
1477     
1478     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_loadStyle",&obj0,&obj1)) goto fail;
1479     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1480     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1481     if (arg2 == NULL) {
1482         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
1483     }
1484     (arg1)->loadStyle((otk::Configuration const &)*arg2);
1485     
1486     Py_INCREF(Py_None); resultobj = Py_None;
1487     return resultobj;
1488     fail:
1489     return NULL;
1490 }
1491
1492
1493 static PyObject *_wrap_OBScreen_manageExisting(PyObject *self, PyObject *args) {
1494     PyObject *resultobj;
1495     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1496     PyObject * obj0  = 0 ;
1497     
1498     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_manageExisting",&obj0)) goto fail;
1499     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1500     (arg1)->manageExisting();
1501     
1502     Py_INCREF(Py_None); resultobj = Py_None;
1503     return resultobj;
1504     fail:
1505     return NULL;
1506 }
1507
1508
1509 static PyObject *_wrap_OBScreen_manageWindow(PyObject *self, PyObject *args) {
1510     PyObject *resultobj;
1511     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1512     Window arg2 ;
1513     PyObject * obj0  = 0 ;
1514     PyObject * obj1  = 0 ;
1515     
1516     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_manageWindow",&obj0,&obj1)) goto fail;
1517     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1518     arg2 = (Window) PyInt_AsLong(obj1);
1519     if (PyErr_Occurred()) SWIG_fail;
1520     (arg1)->manageWindow(arg2);
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_unmanageWindow(PyObject *self, PyObject *args) {
1530     PyObject *resultobj;
1531     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1532     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
1533     PyObject * obj0  = 0 ;
1534     PyObject * obj1  = 0 ;
1535     
1536     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_unmanageWindow",&obj0,&obj1)) goto fail;
1537     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1538     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1539     (arg1)->unmanageWindow(arg2);
1540     
1541     Py_INCREF(Py_None); resultobj = Py_None;
1542     return resultobj;
1543     fail:
1544     return NULL;
1545 }
1546
1547
1548 static PyObject * OBScreen_swigregister(PyObject *self, PyObject *args) {
1549     PyObject *obj;
1550     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1551     SWIG_TypeClientData(SWIGTYPE_p_ob__OBScreen, obj);
1552     Py_INCREF(obj);
1553     return Py_BuildValue((char *)"");
1554 }
1555 static PyObject *_wrap_MwmHints_flags_set(PyObject *self, PyObject *args) {
1556     PyObject *resultobj;
1557     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1558     unsigned long arg2 ;
1559     PyObject * obj0  = 0 ;
1560     PyObject * obj1  = 0 ;
1561     
1562     if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_flags_set",&obj0,&obj1)) goto fail;
1563     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1564     arg2 = (unsigned long) PyInt_AsLong(obj1);
1565     if (PyErr_Occurred()) SWIG_fail;
1566     if (arg1) (arg1)->flags = arg2;
1567     
1568     Py_INCREF(Py_None); resultobj = Py_None;
1569     return resultobj;
1570     fail:
1571     return NULL;
1572 }
1573
1574
1575 static PyObject *_wrap_MwmHints_flags_get(PyObject *self, PyObject *args) {
1576     PyObject *resultobj;
1577     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1578     unsigned long result;
1579     PyObject * obj0  = 0 ;
1580     
1581     if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_flags_get",&obj0)) goto fail;
1582     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1583     result = (unsigned long) ((arg1)->flags);
1584     
1585     resultobj = PyInt_FromLong((long)result);
1586     return resultobj;
1587     fail:
1588     return NULL;
1589 }
1590
1591
1592 static PyObject *_wrap_MwmHints_functions_set(PyObject *self, PyObject *args) {
1593     PyObject *resultobj;
1594     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1595     unsigned long arg2 ;
1596     PyObject * obj0  = 0 ;
1597     PyObject * obj1  = 0 ;
1598     
1599     if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_functions_set",&obj0,&obj1)) goto fail;
1600     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1601     arg2 = (unsigned long) PyInt_AsLong(obj1);
1602     if (PyErr_Occurred()) SWIG_fail;
1603     if (arg1) (arg1)->functions = arg2;
1604     
1605     Py_INCREF(Py_None); resultobj = Py_None;
1606     return resultobj;
1607     fail:
1608     return NULL;
1609 }
1610
1611
1612 static PyObject *_wrap_MwmHints_functions_get(PyObject *self, PyObject *args) {
1613     PyObject *resultobj;
1614     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1615     unsigned long result;
1616     PyObject * obj0  = 0 ;
1617     
1618     if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_functions_get",&obj0)) goto fail;
1619     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1620     result = (unsigned long) ((arg1)->functions);
1621     
1622     resultobj = PyInt_FromLong((long)result);
1623     return resultobj;
1624     fail:
1625     return NULL;
1626 }
1627
1628
1629 static PyObject *_wrap_MwmHints_decorations_set(PyObject *self, PyObject *args) {
1630     PyObject *resultobj;
1631     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1632     unsigned long arg2 ;
1633     PyObject * obj0  = 0 ;
1634     PyObject * obj1  = 0 ;
1635     
1636     if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_decorations_set",&obj0,&obj1)) goto fail;
1637     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1638     arg2 = (unsigned long) PyInt_AsLong(obj1);
1639     if (PyErr_Occurred()) SWIG_fail;
1640     if (arg1) (arg1)->decorations = arg2;
1641     
1642     Py_INCREF(Py_None); resultobj = Py_None;
1643     return resultobj;
1644     fail:
1645     return NULL;
1646 }
1647
1648
1649 static PyObject *_wrap_MwmHints_decorations_get(PyObject *self, PyObject *args) {
1650     PyObject *resultobj;
1651     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1652     unsigned long result;
1653     PyObject * obj0  = 0 ;
1654     
1655     if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_decorations_get",&obj0)) goto fail;
1656     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1657     result = (unsigned long) ((arg1)->decorations);
1658     
1659     resultobj = PyInt_FromLong((long)result);
1660     return resultobj;
1661     fail:
1662     return NULL;
1663 }
1664
1665
1666 static PyObject * MwmHints_swigregister(PyObject *self, PyObject *args) {
1667     PyObject *obj;
1668     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1669     SWIG_TypeClientData(SWIGTYPE_p_ob__MwmHints, obj);
1670     Py_INCREF(obj);
1671     return Py_BuildValue((char *)"");
1672 }
1673 static PyObject *_wrap_OBClient_frame_set(PyObject *self, PyObject *args) {
1674     PyObject *resultobj;
1675     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1676     ob::OBFrame *arg2 = (ob::OBFrame *) 0 ;
1677     PyObject * obj0  = 0 ;
1678     PyObject * obj1  = 0 ;
1679     
1680     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_frame_set",&obj0,&obj1)) goto fail;
1681     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1682     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBFrame,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
1683     if (arg1) (arg1)->frame = arg2;
1684     
1685     Py_INCREF(Py_None); resultobj = Py_None;
1686     return resultobj;
1687     fail:
1688     return NULL;
1689 }
1690
1691
1692 static PyObject *_wrap_OBClient_frame_get(PyObject *self, PyObject *args) {
1693     PyObject *resultobj;
1694     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1695     ob::OBFrame *result;
1696     PyObject * obj0  = 0 ;
1697     
1698     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_frame_get",&obj0)) goto fail;
1699     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1700     result = (ob::OBFrame *) ((arg1)->frame);
1701     
1702     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBFrame, 0);
1703     return resultobj;
1704     fail:
1705     return NULL;
1706 }
1707
1708
1709 static PyObject *_wrap_OBClient_ignore_unmaps_set(PyObject *self, PyObject *args) {
1710     PyObject *resultobj;
1711     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1712     int arg2 ;
1713     PyObject * obj0  = 0 ;
1714     
1715     if(!PyArg_ParseTuple(args,(char *)"Oi:OBClient_ignore_unmaps_set",&obj0,&arg2)) goto fail;
1716     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1717     if (arg1) (arg1)->ignore_unmaps = arg2;
1718     
1719     Py_INCREF(Py_None); resultobj = Py_None;
1720     return resultobj;
1721     fail:
1722     return NULL;
1723 }
1724
1725
1726 static PyObject *_wrap_OBClient_ignore_unmaps_get(PyObject *self, PyObject *args) {
1727     PyObject *resultobj;
1728     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1729     int result;
1730     PyObject * obj0  = 0 ;
1731     
1732     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_ignore_unmaps_get",&obj0)) goto fail;
1733     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1734     result = (int) ((arg1)->ignore_unmaps);
1735     
1736     resultobj = PyInt_FromLong((long)result);
1737     return resultobj;
1738     fail:
1739     return NULL;
1740 }
1741
1742
1743 static PyObject *_wrap_OBClient_screen(PyObject *self, PyObject *args) {
1744     PyObject *resultobj;
1745     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1746     int result;
1747     PyObject * obj0  = 0 ;
1748     
1749     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_screen",&obj0)) goto fail;
1750     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1751     result = (int)((ob::OBClient const *)arg1)->screen();
1752     
1753     resultobj = PyInt_FromLong((long)result);
1754     return resultobj;
1755     fail:
1756     return NULL;
1757 }
1758
1759
1760 static PyObject *_wrap_OBClient_window(PyObject *self, PyObject *args) {
1761     PyObject *resultobj;
1762     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1763     Window result;
1764     PyObject * obj0  = 0 ;
1765     
1766     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_window",&obj0)) goto fail;
1767     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1768     result = (Window)((ob::OBClient const *)arg1)->window();
1769     
1770     resultobj = PyInt_FromLong((long)result);
1771     return resultobj;
1772     fail:
1773     return NULL;
1774 }
1775
1776
1777 static PyObject *_wrap_OBClient_type(PyObject *self, PyObject *args) {
1778     PyObject *resultobj;
1779     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1780     int result;
1781     PyObject * obj0  = 0 ;
1782     
1783     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_type",&obj0)) goto fail;
1784     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1785     result = (int)((ob::OBClient const *)arg1)->type();
1786     
1787     resultobj = PyInt_FromLong((long)result);
1788     return resultobj;
1789     fail:
1790     return NULL;
1791 }
1792
1793
1794 static PyObject *_wrap_OBClient_desktop(PyObject *self, PyObject *args) {
1795     PyObject *resultobj;
1796     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1797     unsigned long result;
1798     PyObject * obj0  = 0 ;
1799     
1800     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_desktop",&obj0)) goto fail;
1801     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1802     result = (unsigned long)((ob::OBClient const *)arg1)->desktop();
1803     
1804     resultobj = PyInt_FromLong((long)result);
1805     return resultobj;
1806     fail:
1807     return NULL;
1808 }
1809
1810
1811 static PyObject *_wrap_OBClient_title(PyObject *self, PyObject *args) {
1812     PyObject *resultobj;
1813     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1814     std::string *result;
1815     PyObject * obj0  = 0 ;
1816     
1817     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_title",&obj0)) goto fail;
1818     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1819     {
1820         std::string const &_result_ref = ((ob::OBClient const *)arg1)->title();
1821         result = (std::string *) &_result_ref;
1822     }
1823     
1824     {
1825         resultobj = PyString_FromString(result->c_str());
1826     }
1827     return resultobj;
1828     fail:
1829     return NULL;
1830 }
1831
1832
1833 static PyObject *_wrap_OBClient_iconTitle(PyObject *self, PyObject *args) {
1834     PyObject *resultobj;
1835     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1836     std::string *result;
1837     PyObject * obj0  = 0 ;
1838     
1839     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconTitle",&obj0)) goto fail;
1840     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1841     {
1842         std::string const &_result_ref = ((ob::OBClient const *)arg1)->iconTitle();
1843         result = (std::string *) &_result_ref;
1844     }
1845     
1846     {
1847         resultobj = PyString_FromString(result->c_str());
1848     }
1849     return resultobj;
1850     fail:
1851     return NULL;
1852 }
1853
1854
1855 static PyObject *_wrap_OBClient_appName(PyObject *self, PyObject *args) {
1856     PyObject *resultobj;
1857     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1858     std::string *result;
1859     PyObject * obj0  = 0 ;
1860     
1861     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appName",&obj0)) goto fail;
1862     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1863     {
1864         std::string const &_result_ref = ((ob::OBClient const *)arg1)->appName();
1865         result = (std::string *) &_result_ref;
1866     }
1867     
1868     {
1869         resultobj = PyString_FromString(result->c_str());
1870     }
1871     return resultobj;
1872     fail:
1873     return NULL;
1874 }
1875
1876
1877 static PyObject *_wrap_OBClient_appClass(PyObject *self, PyObject *args) {
1878     PyObject *resultobj;
1879     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1880     std::string *result;
1881     PyObject * obj0  = 0 ;
1882     
1883     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appClass",&obj0)) goto fail;
1884     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1885     {
1886         std::string const &_result_ref = ((ob::OBClient const *)arg1)->appClass();
1887         result = (std::string *) &_result_ref;
1888     }
1889     
1890     {
1891         resultobj = PyString_FromString(result->c_str());
1892     }
1893     return resultobj;
1894     fail:
1895     return NULL;
1896 }
1897
1898
1899 static PyObject *_wrap_OBClient_canFocus(PyObject *self, PyObject *args) {
1900     PyObject *resultobj;
1901     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1902     bool result;
1903     PyObject * obj0  = 0 ;
1904     
1905     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_canFocus",&obj0)) goto fail;
1906     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1907     result = (bool)((ob::OBClient const *)arg1)->canFocus();
1908     
1909     resultobj = PyInt_FromLong((long)result);
1910     return resultobj;
1911     fail:
1912     return NULL;
1913 }
1914
1915
1916 static PyObject *_wrap_OBClient_urgent(PyObject *self, PyObject *args) {
1917     PyObject *resultobj;
1918     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1919     bool result;
1920     PyObject * obj0  = 0 ;
1921     
1922     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_urgent",&obj0)) goto fail;
1923     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1924     result = (bool)((ob::OBClient const *)arg1)->urgent();
1925     
1926     resultobj = PyInt_FromLong((long)result);
1927     return resultobj;
1928     fail:
1929     return NULL;
1930 }
1931
1932
1933 static PyObject *_wrap_OBClient_focusNotify(PyObject *self, PyObject *args) {
1934     PyObject *resultobj;
1935     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1936     bool result;
1937     PyObject * obj0  = 0 ;
1938     
1939     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focusNotify",&obj0)) goto fail;
1940     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1941     result = (bool)((ob::OBClient const *)arg1)->focusNotify();
1942     
1943     resultobj = PyInt_FromLong((long)result);
1944     return resultobj;
1945     fail:
1946     return NULL;
1947 }
1948
1949
1950 static PyObject *_wrap_OBClient_shaped(PyObject *self, PyObject *args) {
1951     PyObject *resultobj;
1952     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1953     bool result;
1954     PyObject * obj0  = 0 ;
1955     
1956     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaped",&obj0)) goto fail;
1957     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1958     result = (bool)((ob::OBClient const *)arg1)->shaped();
1959     
1960     resultobj = PyInt_FromLong((long)result);
1961     return resultobj;
1962     fail:
1963     return NULL;
1964 }
1965
1966
1967 static PyObject *_wrap_OBClient_gravity(PyObject *self, PyObject *args) {
1968     PyObject *resultobj;
1969     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1970     int result;
1971     PyObject * obj0  = 0 ;
1972     
1973     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_gravity",&obj0)) goto fail;
1974     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1975     result = (int)((ob::OBClient const *)arg1)->gravity();
1976     
1977     resultobj = PyInt_FromLong((long)result);
1978     return resultobj;
1979     fail:
1980     return NULL;
1981 }
1982
1983
1984 static PyObject *_wrap_OBClient_positionRequested(PyObject *self, PyObject *args) {
1985     PyObject *resultobj;
1986     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1987     bool result;
1988     PyObject * obj0  = 0 ;
1989     
1990     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_positionRequested",&obj0)) goto fail;
1991     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1992     result = (bool)((ob::OBClient const *)arg1)->positionRequested();
1993     
1994     resultobj = PyInt_FromLong((long)result);
1995     return resultobj;
1996     fail:
1997     return NULL;
1998 }
1999
2000
2001 static PyObject *_wrap_OBClient_decorations(PyObject *self, PyObject *args) {
2002     PyObject *resultobj;
2003     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2004     ob::OBClient::DecorationFlags result;
2005     PyObject * obj0  = 0 ;
2006     
2007     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_decorations",&obj0)) goto fail;
2008     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2009     result = (ob::OBClient::DecorationFlags)((ob::OBClient const *)arg1)->decorations();
2010     
2011     resultobj = PyInt_FromLong((long)result);
2012     return resultobj;
2013     fail:
2014     return NULL;
2015 }
2016
2017
2018 static PyObject *_wrap_OBClient_funtions(PyObject *self, PyObject *args) {
2019     PyObject *resultobj;
2020     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2021     ob::OBClient::FunctionFlags result;
2022     PyObject * obj0  = 0 ;
2023     
2024     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_funtions",&obj0)) goto fail;
2025     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2026     result = (ob::OBClient::FunctionFlags)((ob::OBClient const *)arg1)->funtions();
2027     
2028     resultobj = PyInt_FromLong((long)result);
2029     return resultobj;
2030     fail:
2031     return NULL;
2032 }
2033
2034
2035 static PyObject *_wrap_OBClient_modal(PyObject *self, PyObject *args) {
2036     PyObject *resultobj;
2037     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2038     bool result;
2039     PyObject * obj0  = 0 ;
2040     
2041     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_modal",&obj0)) goto fail;
2042     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2043     result = (bool)((ob::OBClient const *)arg1)->modal();
2044     
2045     resultobj = PyInt_FromLong((long)result);
2046     return resultobj;
2047     fail:
2048     return NULL;
2049 }
2050
2051
2052 static PyObject *_wrap_OBClient_shaded(PyObject *self, PyObject *args) {
2053     PyObject *resultobj;
2054     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2055     bool result;
2056     PyObject * obj0  = 0 ;
2057     
2058     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaded",&obj0)) goto fail;
2059     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2060     result = (bool)((ob::OBClient const *)arg1)->shaded();
2061     
2062     resultobj = PyInt_FromLong((long)result);
2063     return resultobj;
2064     fail:
2065     return NULL;
2066 }
2067
2068
2069 static PyObject *_wrap_OBClient_iconic(PyObject *self, PyObject *args) {
2070     PyObject *resultobj;
2071     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2072     bool result;
2073     PyObject * obj0  = 0 ;
2074     
2075     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconic",&obj0)) goto fail;
2076     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2077     result = (bool)((ob::OBClient const *)arg1)->iconic();
2078     
2079     resultobj = PyInt_FromLong((long)result);
2080     return resultobj;
2081     fail:
2082     return NULL;
2083 }
2084
2085
2086 static PyObject *_wrap_OBClient_maxVert(PyObject *self, PyObject *args) {
2087     PyObject *resultobj;
2088     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2089     bool result;
2090     PyObject * obj0  = 0 ;
2091     
2092     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxVert",&obj0)) goto fail;
2093     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2094     result = (bool)((ob::OBClient const *)arg1)->maxVert();
2095     
2096     resultobj = PyInt_FromLong((long)result);
2097     return resultobj;
2098     fail:
2099     return NULL;
2100 }
2101
2102
2103 static PyObject *_wrap_OBClient_maxHorz(PyObject *self, PyObject *args) {
2104     PyObject *resultobj;
2105     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2106     bool result;
2107     PyObject * obj0  = 0 ;
2108     
2109     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxHorz",&obj0)) goto fail;
2110     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2111     result = (bool)((ob::OBClient const *)arg1)->maxHorz();
2112     
2113     resultobj = PyInt_FromLong((long)result);
2114     return resultobj;
2115     fail:
2116     return NULL;
2117 }
2118
2119
2120 static PyObject *_wrap_OBClient_fullscreen(PyObject *self, PyObject *args) {
2121     PyObject *resultobj;
2122     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2123     bool result;
2124     PyObject * obj0  = 0 ;
2125     
2126     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_fullscreen",&obj0)) goto fail;
2127     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2128     result = (bool)((ob::OBClient const *)arg1)->fullscreen();
2129     
2130     resultobj = PyInt_FromLong((long)result);
2131     return resultobj;
2132     fail:
2133     return NULL;
2134 }
2135
2136
2137 static PyObject *_wrap_OBClient_floating(PyObject *self, PyObject *args) {
2138     PyObject *resultobj;
2139     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2140     bool result;
2141     PyObject * obj0  = 0 ;
2142     
2143     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_floating",&obj0)) goto fail;
2144     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2145     result = (bool)((ob::OBClient const *)arg1)->floating();
2146     
2147     resultobj = PyInt_FromLong((long)result);
2148     return resultobj;
2149     fail:
2150     return NULL;
2151 }
2152
2153
2154 static PyObject *_wrap_OBClient_toggleClientBorder(PyObject *self, PyObject *args) {
2155     PyObject *resultobj;
2156     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2157     bool arg2 ;
2158     PyObject * obj0  = 0 ;
2159     PyObject * obj1  = 0 ;
2160     
2161     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_toggleClientBorder",&obj0,&obj1)) goto fail;
2162     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2163     arg2 = (bool) PyInt_AsLong(obj1);
2164     if (PyErr_Occurred()) SWIG_fail;
2165     (arg1)->toggleClientBorder(arg2);
2166     
2167     Py_INCREF(Py_None); resultobj = Py_None;
2168     return resultobj;
2169     fail:
2170     return NULL;
2171 }
2172
2173
2174 static PyObject *_wrap_OBClient_area(PyObject *self, PyObject *args) {
2175     PyObject *resultobj;
2176     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2177     otk::Rect *result;
2178     PyObject * obj0  = 0 ;
2179     
2180     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_area",&obj0)) goto fail;
2181     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2182     {
2183         otk::Rect const &_result_ref = ((ob::OBClient const *)arg1)->area();
2184         result = (otk::Rect *) &_result_ref;
2185     }
2186     
2187     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
2188     return resultobj;
2189     fail:
2190     return NULL;
2191 }
2192
2193
2194 static PyObject *_wrap_OBClient_move(PyObject *self, PyObject *args) {
2195     PyObject *resultobj;
2196     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2197     int arg2 ;
2198     int arg3 ;
2199     PyObject * obj0  = 0 ;
2200     
2201     if(!PyArg_ParseTuple(args,(char *)"Oii:OBClient_move",&obj0,&arg2,&arg3)) goto fail;
2202     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2203     (arg1)->move(arg2,arg3);
2204     
2205     Py_INCREF(Py_None); resultobj = Py_None;
2206     return resultobj;
2207     fail:
2208     return NULL;
2209 }
2210
2211
2212 static PyObject *_wrap_OBClient_resize(PyObject *self, PyObject *args) {
2213     PyObject *resultobj;
2214     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2215     int arg2 ;
2216     int arg3 ;
2217     int arg4 ;
2218     PyObject * obj0  = 0 ;
2219     
2220     if(!PyArg_ParseTuple(args,(char *)"Oiii:OBClient_resize",&obj0,&arg2,&arg3,&arg4)) goto fail;
2221     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2222     (arg1)->resize((ob::OBClient::Corner )arg2,arg3,arg4);
2223     
2224     Py_INCREF(Py_None); resultobj = Py_None;
2225     return resultobj;
2226     fail:
2227     return NULL;
2228 }
2229
2230
2231 static PyObject *_wrap_OBClient_close(PyObject *self, PyObject *args) {
2232     PyObject *resultobj;
2233     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2234     PyObject * obj0  = 0 ;
2235     
2236     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_close",&obj0)) goto fail;
2237     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2238     (arg1)->close();
2239     
2240     Py_INCREF(Py_None); resultobj = Py_None;
2241     return resultobj;
2242     fail:
2243     return NULL;
2244 }
2245
2246
2247 static PyObject *_wrap_OBClient_focus(PyObject *self, PyObject *args) {
2248     PyObject *resultobj;
2249     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2250     bool result;
2251     PyObject * obj0  = 0 ;
2252     
2253     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focus",&obj0)) goto fail;
2254     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2255     result = (bool)(arg1)->focus();
2256     
2257     resultobj = PyInt_FromLong((long)result);
2258     return resultobj;
2259     fail:
2260     return NULL;
2261 }
2262
2263
2264 static PyObject *_wrap_OBClient_unfocus(PyObject *self, PyObject *args) {
2265     PyObject *resultobj;
2266     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2267     PyObject * obj0  = 0 ;
2268     
2269     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_unfocus",&obj0)) goto fail;
2270     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2271     (arg1)->unfocus();
2272     
2273     Py_INCREF(Py_None); resultobj = Py_None;
2274     return resultobj;
2275     fail:
2276     return NULL;
2277 }
2278
2279
2280 static PyObject *_wrap_OBClient_focusHandler(PyObject *self, PyObject *args) {
2281     PyObject *resultobj;
2282     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2283     XFocusChangeEvent *arg2 = 0 ;
2284     PyObject * obj0  = 0 ;
2285     PyObject * obj1  = 0 ;
2286     
2287     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_focusHandler",&obj0,&obj1)) goto fail;
2288     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2289     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2290     if (arg2 == NULL) {
2291         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2292     }
2293     (arg1)->focusHandler((XFocusChangeEvent const &)*arg2);
2294     
2295     Py_INCREF(Py_None); resultobj = Py_None;
2296     return resultobj;
2297     fail:
2298     return NULL;
2299 }
2300
2301
2302 static PyObject *_wrap_OBClient_unfocusHandler(PyObject *self, PyObject *args) {
2303     PyObject *resultobj;
2304     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2305     XFocusChangeEvent *arg2 = 0 ;
2306     PyObject * obj0  = 0 ;
2307     PyObject * obj1  = 0 ;
2308     
2309     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unfocusHandler",&obj0,&obj1)) goto fail;
2310     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2311     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2312     if (arg2 == NULL) {
2313         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2314     }
2315     (arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2);
2316     
2317     Py_INCREF(Py_None); resultobj = Py_None;
2318     return resultobj;
2319     fail:
2320     return NULL;
2321 }
2322
2323
2324 static PyObject *_wrap_OBClient_propertyHandler(PyObject *self, PyObject *args) {
2325     PyObject *resultobj;
2326     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2327     XPropertyEvent *arg2 = 0 ;
2328     PyObject * obj0  = 0 ;
2329     PyObject * obj1  = 0 ;
2330     
2331     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_propertyHandler",&obj0,&obj1)) goto fail;
2332     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2333     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2334     if (arg2 == NULL) {
2335         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2336     }
2337     (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
2338     
2339     Py_INCREF(Py_None); resultobj = Py_None;
2340     return resultobj;
2341     fail:
2342     return NULL;
2343 }
2344
2345
2346 static PyObject *_wrap_OBClient_clientMessageHandler(PyObject *self, PyObject *args) {
2347     PyObject *resultobj;
2348     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2349     XClientMessageEvent *arg2 = 0 ;
2350     PyObject * obj0  = 0 ;
2351     PyObject * obj1  = 0 ;
2352     
2353     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_clientMessageHandler",&obj0,&obj1)) goto fail;
2354     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2355     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2356     if (arg2 == NULL) {
2357         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2358     }
2359     (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
2360     
2361     Py_INCREF(Py_None); resultobj = Py_None;
2362     return resultobj;
2363     fail:
2364     return NULL;
2365 }
2366
2367
2368 static PyObject *_wrap_OBClient_shapeHandler(PyObject *self, PyObject *args) {
2369     PyObject *resultobj;
2370     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2371     XShapeEvent *arg2 = 0 ;
2372     PyObject * obj0  = 0 ;
2373     PyObject * obj1  = 0 ;
2374     
2375     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_shapeHandler",&obj0,&obj1)) goto fail;
2376     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2377     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XShapeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2378     if (arg2 == NULL) {
2379         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2380     }
2381     (arg1)->shapeHandler((XShapeEvent const &)*arg2);
2382     
2383     Py_INCREF(Py_None); resultobj = Py_None;
2384     return resultobj;
2385     fail:
2386     return NULL;
2387 }
2388
2389
2390 static PyObject *_wrap_OBClient_configureRequestHandler(PyObject *self, PyObject *args) {
2391     PyObject *resultobj;
2392     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2393     XConfigureRequestEvent *arg2 = 0 ;
2394     PyObject * obj0  = 0 ;
2395     PyObject * obj1  = 0 ;
2396     
2397     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_configureRequestHandler",&obj0,&obj1)) goto fail;
2398     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2399     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2400     if (arg2 == NULL) {
2401         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2402     }
2403     (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2);
2404     
2405     Py_INCREF(Py_None); resultobj = Py_None;
2406     return resultobj;
2407     fail:
2408     return NULL;
2409 }
2410
2411
2412 static PyObject *_wrap_OBClient_unmapHandler(PyObject *self, PyObject *args) {
2413     PyObject *resultobj;
2414     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2415     XUnmapEvent *arg2 = 0 ;
2416     PyObject * obj0  = 0 ;
2417     PyObject * obj1  = 0 ;
2418     
2419     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unmapHandler",&obj0,&obj1)) goto fail;
2420     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2421     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2422     if (arg2 == NULL) {
2423         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2424     }
2425     (arg1)->unmapHandler((XUnmapEvent const &)*arg2);
2426     
2427     Py_INCREF(Py_None); resultobj = Py_None;
2428     return resultobj;
2429     fail:
2430     return NULL;
2431 }
2432
2433
2434 static PyObject *_wrap_OBClient_destroyHandler(PyObject *self, PyObject *args) {
2435     PyObject *resultobj;
2436     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2437     XDestroyWindowEvent *arg2 = 0 ;
2438     PyObject * obj0  = 0 ;
2439     PyObject * obj1  = 0 ;
2440     
2441     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_destroyHandler",&obj0,&obj1)) goto fail;
2442     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2443     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2444     if (arg2 == NULL) {
2445         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2446     }
2447     (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2);
2448     
2449     Py_INCREF(Py_None); resultobj = Py_None;
2450     return resultobj;
2451     fail:
2452     return NULL;
2453 }
2454
2455
2456 static PyObject *_wrap_OBClient_reparentHandler(PyObject *self, PyObject *args) {
2457     PyObject *resultobj;
2458     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2459     XReparentEvent *arg2 = 0 ;
2460     PyObject * obj0  = 0 ;
2461     PyObject * obj1  = 0 ;
2462     
2463     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_reparentHandler",&obj0,&obj1)) goto fail;
2464     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2465     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2466     if (arg2 == NULL) {
2467         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2468     }
2469     (arg1)->reparentHandler((XReparentEvent const &)*arg2);
2470     
2471     Py_INCREF(Py_None); resultobj = Py_None;
2472     return resultobj;
2473     fail:
2474     return NULL;
2475 }
2476
2477
2478 static PyObject * OBClient_swigregister(PyObject *self, PyObject *args) {
2479     PyObject *obj;
2480     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2481     SWIG_TypeClientData(SWIGTYPE_p_ob__OBClient, obj);
2482     Py_INCREF(obj);
2483     return Py_BuildValue((char *)"");
2484 }
2485 static PyObject *_wrap_register(PyObject *self, PyObject *args) {
2486     PyObject *resultobj;
2487     int arg1 ;
2488     PyObject *arg2 = (PyObject *) 0 ;
2489     bool result;
2490     PyObject * obj1  = 0 ;
2491     
2492     if(!PyArg_ParseTuple(args,(char *)"iO:register",&arg1,&obj1)) goto fail;
2493     arg2 = obj1;
2494     result = (bool)ob::python_register(arg1,arg2);
2495     
2496     resultobj = PyInt_FromLong((long)result);
2497     return resultobj;
2498     fail:
2499     return NULL;
2500 }
2501
2502
2503 static PyObject *_wrap_preregister(PyObject *self, PyObject *args) {
2504     PyObject *resultobj;
2505     int arg1 ;
2506     PyObject *arg2 = (PyObject *) 0 ;
2507     bool result;
2508     PyObject * obj1  = 0 ;
2509     
2510     if(!PyArg_ParseTuple(args,(char *)"iO:preregister",&arg1,&obj1)) goto fail;
2511     arg2 = obj1;
2512     result = (bool)ob::python_preregister(arg1,arg2);
2513     
2514     resultobj = PyInt_FromLong((long)result);
2515     return resultobj;
2516     fail:
2517     return NULL;
2518 }
2519
2520
2521 static PyObject *_wrap_unregister(PyObject *self, PyObject *args) {
2522     PyObject *resultobj;
2523     int arg1 ;
2524     PyObject *arg2 = (PyObject *) 0 ;
2525     bool result;
2526     PyObject * obj1  = 0 ;
2527     
2528     if(!PyArg_ParseTuple(args,(char *)"iO:unregister",&arg1,&obj1)) goto fail;
2529     arg2 = obj1;
2530     result = (bool)ob::python_unregister(arg1,arg2);
2531     
2532     resultobj = PyInt_FromLong((long)result);
2533     return resultobj;
2534     fail:
2535     return NULL;
2536 }
2537
2538
2539 static PyObject *_wrap_unregister_all(PyObject *self, PyObject *args) {
2540     PyObject *resultobj;
2541     int arg1 ;
2542     bool result;
2543     
2544     if(!PyArg_ParseTuple(args,(char *)"i:unregister_all",&arg1)) goto fail;
2545     result = (bool)ob::python_unregister_all(arg1);
2546     
2547     resultobj = PyInt_FromLong((long)result);
2548     return resultobj;
2549     fail:
2550     return NULL;
2551 }
2552
2553
2554 static PyMethodDef SwigMethods[] = {
2555          { (char *)"Openbox_instance", _wrap_Openbox_instance, METH_VARARGS },
2556          { (char *)"Cursors_session_set", _wrap_Cursors_session_set, METH_VARARGS },
2557          { (char *)"Cursors_session_get", _wrap_Cursors_session_get, METH_VARARGS },
2558          { (char *)"Cursors_move_set", _wrap_Cursors_move_set, METH_VARARGS },
2559          { (char *)"Cursors_move_get", _wrap_Cursors_move_get, METH_VARARGS },
2560          { (char *)"Cursors_ll_angle_set", _wrap_Cursors_ll_angle_set, METH_VARARGS },
2561          { (char *)"Cursors_ll_angle_get", _wrap_Cursors_ll_angle_get, METH_VARARGS },
2562          { (char *)"Cursors_lr_angle_set", _wrap_Cursors_lr_angle_set, METH_VARARGS },
2563          { (char *)"Cursors_lr_angle_get", _wrap_Cursors_lr_angle_get, METH_VARARGS },
2564          { (char *)"Cursors_ul_angle_set", _wrap_Cursors_ul_angle_set, METH_VARARGS },
2565          { (char *)"Cursors_ul_angle_get", _wrap_Cursors_ul_angle_get, METH_VARARGS },
2566          { (char *)"Cursors_ur_angle_set", _wrap_Cursors_ur_angle_set, METH_VARARGS },
2567          { (char *)"Cursors_ur_angle_get", _wrap_Cursors_ur_angle_get, METH_VARARGS },
2568          { (char *)"Cursors_swigregister", Cursors_swigregister, METH_VARARGS },
2569          { (char *)"Openbox_state", _wrap_Openbox_state, METH_VARARGS },
2570          { (char *)"Openbox_timerManager", _wrap_Openbox_timerManager, METH_VARARGS },
2571          { (char *)"Openbox_property", _wrap_Openbox_property, METH_VARARGS },
2572          { (char *)"Openbox_screen", _wrap_Openbox_screen, METH_VARARGS },
2573          { (char *)"Openbox_screenCount", _wrap_Openbox_screenCount, METH_VARARGS },
2574          { (char *)"Openbox_cursors", _wrap_Openbox_cursors, METH_VARARGS },
2575          { (char *)"Openbox_addClient", _wrap_Openbox_addClient, METH_VARARGS },
2576          { (char *)"Openbox_removeClient", _wrap_Openbox_removeClient, METH_VARARGS },
2577          { (char *)"Openbox_findClient", _wrap_Openbox_findClient, METH_VARARGS },
2578          { (char *)"Openbox_focusedClient", _wrap_Openbox_focusedClient, METH_VARARGS },
2579          { (char *)"Openbox_setFocusedClient", _wrap_Openbox_setFocusedClient, METH_VARARGS },
2580          { (char *)"Openbox_focusedScreen", _wrap_Openbox_focusedScreen, METH_VARARGS },
2581          { (char *)"Openbox_shutdown", _wrap_Openbox_shutdown, METH_VARARGS },
2582          { (char *)"Openbox_swigregister", Openbox_swigregister, METH_VARARGS },
2583          { (char *)"OBScreen_client", _wrap_OBScreen_client, METH_VARARGS },
2584          { (char *)"OBScreen_clientCount", _wrap_OBScreen_clientCount, METH_VARARGS },
2585          { (char *)"OBScreen_managed", _wrap_OBScreen_managed, METH_VARARGS },
2586          { (char *)"OBScreen_imageControl", _wrap_OBScreen_imageControl, METH_VARARGS },
2587          { (char *)"OBScreen_area", _wrap_OBScreen_area, METH_VARARGS },
2588          { (char *)"OBScreen_style", _wrap_OBScreen_style, METH_VARARGS },
2589          { (char *)"OBScreen_focuswindow", _wrap_OBScreen_focuswindow, METH_VARARGS },
2590          { (char *)"OBScreen_addStrut", _wrap_OBScreen_addStrut, METH_VARARGS },
2591          { (char *)"OBScreen_removeStrut", _wrap_OBScreen_removeStrut, METH_VARARGS },
2592          { (char *)"OBScreen_loadStyle", _wrap_OBScreen_loadStyle, METH_VARARGS },
2593          { (char *)"OBScreen_manageExisting", _wrap_OBScreen_manageExisting, METH_VARARGS },
2594          { (char *)"OBScreen_manageWindow", _wrap_OBScreen_manageWindow, METH_VARARGS },
2595          { (char *)"OBScreen_unmanageWindow", _wrap_OBScreen_unmanageWindow, METH_VARARGS },
2596          { (char *)"OBScreen_swigregister", OBScreen_swigregister, METH_VARARGS },
2597          { (char *)"MwmHints_flags_set", _wrap_MwmHints_flags_set, METH_VARARGS },
2598          { (char *)"MwmHints_flags_get", _wrap_MwmHints_flags_get, METH_VARARGS },
2599          { (char *)"MwmHints_functions_set", _wrap_MwmHints_functions_set, METH_VARARGS },
2600          { (char *)"MwmHints_functions_get", _wrap_MwmHints_functions_get, METH_VARARGS },
2601          { (char *)"MwmHints_decorations_set", _wrap_MwmHints_decorations_set, METH_VARARGS },
2602          { (char *)"MwmHints_decorations_get", _wrap_MwmHints_decorations_get, METH_VARARGS },
2603          { (char *)"MwmHints_swigregister", MwmHints_swigregister, METH_VARARGS },
2604          { (char *)"OBClient_frame_set", _wrap_OBClient_frame_set, METH_VARARGS },
2605          { (char *)"OBClient_frame_get", _wrap_OBClient_frame_get, METH_VARARGS },
2606          { (char *)"OBClient_ignore_unmaps_set", _wrap_OBClient_ignore_unmaps_set, METH_VARARGS },
2607          { (char *)"OBClient_ignore_unmaps_get", _wrap_OBClient_ignore_unmaps_get, METH_VARARGS },
2608          { (char *)"OBClient_screen", _wrap_OBClient_screen, METH_VARARGS },
2609          { (char *)"OBClient_window", _wrap_OBClient_window, METH_VARARGS },
2610          { (char *)"OBClient_type", _wrap_OBClient_type, METH_VARARGS },
2611          { (char *)"OBClient_desktop", _wrap_OBClient_desktop, METH_VARARGS },
2612          { (char *)"OBClient_title", _wrap_OBClient_title, METH_VARARGS },
2613          { (char *)"OBClient_iconTitle", _wrap_OBClient_iconTitle, METH_VARARGS },
2614          { (char *)"OBClient_appName", _wrap_OBClient_appName, METH_VARARGS },
2615          { (char *)"OBClient_appClass", _wrap_OBClient_appClass, METH_VARARGS },
2616          { (char *)"OBClient_canFocus", _wrap_OBClient_canFocus, METH_VARARGS },
2617          { (char *)"OBClient_urgent", _wrap_OBClient_urgent, METH_VARARGS },
2618          { (char *)"OBClient_focusNotify", _wrap_OBClient_focusNotify, METH_VARARGS },
2619          { (char *)"OBClient_shaped", _wrap_OBClient_shaped, METH_VARARGS },
2620          { (char *)"OBClient_gravity", _wrap_OBClient_gravity, METH_VARARGS },
2621          { (char *)"OBClient_positionRequested", _wrap_OBClient_positionRequested, METH_VARARGS },
2622          { (char *)"OBClient_decorations", _wrap_OBClient_decorations, METH_VARARGS },
2623          { (char *)"OBClient_funtions", _wrap_OBClient_funtions, METH_VARARGS },
2624          { (char *)"OBClient_modal", _wrap_OBClient_modal, METH_VARARGS },
2625          { (char *)"OBClient_shaded", _wrap_OBClient_shaded, METH_VARARGS },
2626          { (char *)"OBClient_iconic", _wrap_OBClient_iconic, METH_VARARGS },
2627          { (char *)"OBClient_maxVert", _wrap_OBClient_maxVert, METH_VARARGS },
2628          { (char *)"OBClient_maxHorz", _wrap_OBClient_maxHorz, METH_VARARGS },
2629          { (char *)"OBClient_fullscreen", _wrap_OBClient_fullscreen, METH_VARARGS },
2630          { (char *)"OBClient_floating", _wrap_OBClient_floating, METH_VARARGS },
2631          { (char *)"OBClient_toggleClientBorder", _wrap_OBClient_toggleClientBorder, METH_VARARGS },
2632          { (char *)"OBClient_area", _wrap_OBClient_area, METH_VARARGS },
2633          { (char *)"OBClient_move", _wrap_OBClient_move, METH_VARARGS },
2634          { (char *)"OBClient_resize", _wrap_OBClient_resize, METH_VARARGS },
2635          { (char *)"OBClient_close", _wrap_OBClient_close, METH_VARARGS },
2636          { (char *)"OBClient_focus", _wrap_OBClient_focus, METH_VARARGS },
2637          { (char *)"OBClient_unfocus", _wrap_OBClient_unfocus, METH_VARARGS },
2638          { (char *)"OBClient_focusHandler", _wrap_OBClient_focusHandler, METH_VARARGS },
2639          { (char *)"OBClient_unfocusHandler", _wrap_OBClient_unfocusHandler, METH_VARARGS },
2640          { (char *)"OBClient_propertyHandler", _wrap_OBClient_propertyHandler, METH_VARARGS },
2641          { (char *)"OBClient_clientMessageHandler", _wrap_OBClient_clientMessageHandler, METH_VARARGS },
2642          { (char *)"OBClient_shapeHandler", _wrap_OBClient_shapeHandler, METH_VARARGS },
2643          { (char *)"OBClient_configureRequestHandler", _wrap_OBClient_configureRequestHandler, METH_VARARGS },
2644          { (char *)"OBClient_unmapHandler", _wrap_OBClient_unmapHandler, METH_VARARGS },
2645          { (char *)"OBClient_destroyHandler", _wrap_OBClient_destroyHandler, METH_VARARGS },
2646          { (char *)"OBClient_reparentHandler", _wrap_OBClient_reparentHandler, METH_VARARGS },
2647          { (char *)"OBClient_swigregister", OBClient_swigregister, METH_VARARGS },
2648          { (char *)"register", _wrap_register, METH_VARARGS },
2649          { (char *)"preregister", _wrap_preregister, METH_VARARGS },
2650          { (char *)"unregister", _wrap_unregister, METH_VARARGS },
2651          { (char *)"unregister_all", _wrap_unregister_all, METH_VARARGS },
2652          { NULL, NULL }
2653 };
2654
2655
2656 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2657
2658 static void *_p_ob__OpenboxTo_p_otk__OtkEventHandler(void *x) {
2659     return (void *)((otk::OtkEventHandler *)  ((ob::Openbox *) x));
2660 }
2661 static void *_p_ob__OBClientTo_p_otk__OtkEventHandler(void *x) {
2662     return (void *)((otk::OtkEventHandler *)  ((ob::OBClient *) x));
2663 }
2664 static void *_p_ob__OBClientTo_p_ob__OBWidget(void *x) {
2665     return (void *)((ob::OBWidget *)  ((ob::OBClient *) x));
2666 }
2667 static void *_p_ob__OpenboxTo_p_otk__OtkEventDispatcher(void *x) {
2668     return (void *)((otk::OtkEventDispatcher *)  ((ob::Openbox *) x));
2669 }
2670 static swig_type_info _swigt__p_otk__OBTimerQueueManager[] = {{"_p_otk__OBTimerQueueManager", 0, "otk::OBTimerQueueManager *", 0},{"_p_otk__OBTimerQueueManager"},{0}};
2671 static swig_type_info _swigt__p_ob__Cursors[] = {{"_p_ob__Cursors", 0, "ob::Cursors *", 0},{"_p_ob__Cursors"},{0}};
2672 static swig_type_info _swigt__p_ob__OBScreen[] = {{"_p_ob__OBScreen", 0, "ob::OBScreen *", 0},{"_p_ob__OBScreen"},{0}};
2673 static swig_type_info _swigt__p_otk__Style[] = {{"_p_otk__Style", 0, "otk::Style *", 0},{"_p_otk__Style"},{0}};
2674 static swig_type_info _swigt__p_ob__OBFrame[] = {{"_p_ob__OBFrame", 0, "ob::OBFrame *", 0},{"_p_ob__OBFrame"},{0}};
2675 static swig_type_info _swigt__p_XReparentEvent[] = {{"_p_XReparentEvent", 0, "XReparentEvent *", 0},{"_p_XReparentEvent"},{0}};
2676 static swig_type_info _swigt__p_ob__OBClient[] = {{"_p_ob__OBClient", 0, "ob::OBClient *", 0},{"_p_ob__OBClient"},{0}};
2677 static swig_type_info _swigt__p_ob__Openbox[] = {{"_p_ob__Openbox", 0, "ob::Openbox *", 0},{"_p_ob__Openbox"},{0}};
2678 static swig_type_info _swigt__p_otk__Strut[] = {{"_p_otk__Strut", 0, "otk::Strut *", 0},{"_p_otk__Strut"},{0}};
2679 static swig_type_info _swigt__p_XShapeEvent[] = {{"_p_XShapeEvent", 0, "XShapeEvent *", 0},{"_p_XShapeEvent"},{0}};
2680 static swig_type_info _swigt__p_XConfigureRequestEvent[] = {{"_p_XConfigureRequestEvent", 0, "XConfigureRequestEvent *", 0},{"_p_XConfigureRequestEvent"},{0}};
2681 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}};
2682 static swig_type_info _swigt__p_otk__Rect[] = {{"_p_otk__Rect", 0, "otk::Rect *", 0},{"_p_otk__Rect"},{0}};
2683 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}};
2684 static swig_type_info _swigt__p_XFocusChangeEvent[] = {{"_p_XFocusChangeEvent", 0, "XFocusChangeEvent *", 0},{"_p_XFocusChangeEvent"},{0}};
2685 static swig_type_info _swigt__p_XClientMessageEvent[] = {{"_p_XClientMessageEvent", 0, "XClientMessageEvent *", 0},{"_p_XClientMessageEvent"},{0}};
2686 static swig_type_info _swigt__p_otk__OBProperty[] = {{"_p_otk__OBProperty", 0, "otk::OBProperty *", 0},{"_p_otk__OBProperty"},{0}};
2687 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}};
2688 static swig_type_info _swigt__p_XPropertyEvent[] = {{"_p_XPropertyEvent", 0, "XPropertyEvent *", 0},{"_p_XPropertyEvent"},{0}};
2689 static swig_type_info _swigt__p_XDestroyWindowEvent[] = {{"_p_XDestroyWindowEvent", 0, "XDestroyWindowEvent *", 0},{"_p_XDestroyWindowEvent"},{0}};
2690 static swig_type_info _swigt__p_otk__BImageControl[] = {{"_p_otk__BImageControl", 0, "otk::BImageControl *", 0},{"_p_otk__BImageControl"},{0}};
2691 static swig_type_info _swigt__p_PyObject[] = {{"_p_PyObject", 0, "PyObject *", 0},{"_p_PyObject"},{0}};
2692 static swig_type_info _swigt__p_ob__MwmHints[] = {{"_p_ob__MwmHints", 0, "ob::MwmHints *", 0},{"_p_ob__MwmHints"},{0}};
2693 static swig_type_info _swigt__p_otk__Configuration[] = {{"_p_otk__Configuration", 0, "otk::Configuration *", 0},{"_p_otk__Configuration"},{0}};
2694 static swig_type_info _swigt__p_XUnmapEvent[] = {{"_p_XUnmapEvent", 0, "XUnmapEvent *", 0},{"_p_XUnmapEvent"},{0}};
2695
2696 static swig_type_info *swig_types_initial[] = {
2697 _swigt__p_otk__OBTimerQueueManager, 
2698 _swigt__p_ob__Cursors, 
2699 _swigt__p_ob__OBScreen, 
2700 _swigt__p_otk__Style, 
2701 _swigt__p_ob__OBFrame, 
2702 _swigt__p_XReparentEvent, 
2703 _swigt__p_ob__OBClient, 
2704 _swigt__p_ob__Openbox, 
2705 _swigt__p_otk__Strut, 
2706 _swigt__p_XShapeEvent, 
2707 _swigt__p_XConfigureRequestEvent, 
2708 _swigt__p_otk__OtkEventHandler, 
2709 _swigt__p_otk__Rect, 
2710 _swigt__p_ob__OBWidget, 
2711 _swigt__p_XFocusChangeEvent, 
2712 _swigt__p_XClientMessageEvent, 
2713 _swigt__p_otk__OBProperty, 
2714 _swigt__p_otk__OtkEventDispatcher, 
2715 _swigt__p_XPropertyEvent, 
2716 _swigt__p_XDestroyWindowEvent, 
2717 _swigt__p_otk__BImageControl, 
2718 _swigt__p_PyObject, 
2719 _swigt__p_ob__MwmHints, 
2720 _swigt__p_otk__Configuration, 
2721 _swigt__p_XUnmapEvent, 
2722 0
2723 };
2724
2725
2726 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2727
2728 static swig_const_info swig_const_table[] = {
2729 { SWIG_PY_INT,     (char *)"Action_ButtonPress", (long) Action_ButtonPress, 0, 0, 0},
2730 { SWIG_PY_INT,     (char *)"Action_ButtonRelease", (long) Action_ButtonRelease, 0, 0, 0},
2731 { SWIG_PY_INT,     (char *)"Action_Click", (long) Action_Click, 0, 0, 0},
2732 { SWIG_PY_INT,     (char *)"Action_DoubleClick", (long) Action_DoubleClick, 0, 0, 0},
2733 { SWIG_PY_INT,     (char *)"Action_EnterWindow", (long) Action_EnterWindow, 0, 0, 0},
2734 { SWIG_PY_INT,     (char *)"Action_LeaveWindow", (long) Action_LeaveWindow, 0, 0, 0},
2735 { SWIG_PY_INT,     (char *)"Action_KeyPress", (long) Action_KeyPress, 0, 0, 0},
2736 { SWIG_PY_INT,     (char *)"Action_MouseMotion", (long) Action_MouseMotion, 0, 0, 0},
2737 { SWIG_PY_INT,     (char *)"Type_Frame", (long) Type_Frame, 0, 0, 0},
2738 { SWIG_PY_INT,     (char *)"Type_Titlebar", (long) Type_Titlebar, 0, 0, 0},
2739 { SWIG_PY_INT,     (char *)"Type_Handle", (long) Type_Handle, 0, 0, 0},
2740 { SWIG_PY_INT,     (char *)"Type_Plate", (long) Type_Plate, 0, 0, 0},
2741 { SWIG_PY_INT,     (char *)"Type_Label", (long) Type_Label, 0, 0, 0},
2742 { SWIG_PY_INT,     (char *)"Type_MaximizeButton", (long) Type_MaximizeButton, 0, 0, 0},
2743 { SWIG_PY_INT,     (char *)"Type_CloseButton", (long) Type_CloseButton, 0, 0, 0},
2744 { SWIG_PY_INT,     (char *)"Type_IconifyButton", (long) Type_IconifyButton, 0, 0, 0},
2745 { SWIG_PY_INT,     (char *)"Type_StickyButton", (long) Type_StickyButton, 0, 0, 0},
2746 { SWIG_PY_INT,     (char *)"Type_LeftGrip", (long) Type_LeftGrip, 0, 0, 0},
2747 { SWIG_PY_INT,     (char *)"Type_RightGrip", (long) Type_RightGrip, 0, 0, 0},
2748 { SWIG_PY_INT,     (char *)"Type_Client", (long) Type_Client, 0, 0, 0},
2749 { SWIG_PY_INT,     (char *)"Type_Root", (long) Type_Root, 0, 0, 0},
2750 { SWIG_PY_INT,     (char *)"Openbox_State_Starting", (long) ob::Openbox::State_Starting, 0, 0, 0},
2751 { SWIG_PY_INT,     (char *)"Openbox_State_Normal", (long) ob::Openbox::State_Normal, 0, 0, 0},
2752 { SWIG_PY_INT,     (char *)"Openbox_State_Exiting", (long) ob::Openbox::State_Exiting, 0, 0, 0},
2753 { SWIG_PY_INT,     (char *)"OBScreen_event_mask", (long) ob::OBScreen::event_mask, 0, 0, 0},
2754 { SWIG_PY_INT,     (char *)"MwmHints_elements", (long) ob::MwmHints::elements, 0, 0, 0},
2755 { SWIG_PY_INT,     (char *)"OBClient_TopLeft", (long) ob::OBClient::TopLeft, 0, 0, 0},
2756 { SWIG_PY_INT,     (char *)"OBClient_TopRight", (long) ob::OBClient::TopRight, 0, 0, 0},
2757 { SWIG_PY_INT,     (char *)"OBClient_BottomLeft", (long) ob::OBClient::BottomLeft, 0, 0, 0},
2758 { SWIG_PY_INT,     (char *)"OBClient_BottomRight", (long) ob::OBClient::BottomRight, 0, 0, 0},
2759 { SWIG_PY_INT,     (char *)"OBClient_Type_Desktop", (long) ob::OBClient::Type_Desktop, 0, 0, 0},
2760 { SWIG_PY_INT,     (char *)"OBClient_Type_Dock", (long) ob::OBClient::Type_Dock, 0, 0, 0},
2761 { SWIG_PY_INT,     (char *)"OBClient_Type_Toolbar", (long) ob::OBClient::Type_Toolbar, 0, 0, 0},
2762 { SWIG_PY_INT,     (char *)"OBClient_Type_Menu", (long) ob::OBClient::Type_Menu, 0, 0, 0},
2763 { SWIG_PY_INT,     (char *)"OBClient_Type_Utility", (long) ob::OBClient::Type_Utility, 0, 0, 0},
2764 { SWIG_PY_INT,     (char *)"OBClient_Type_Splash", (long) ob::OBClient::Type_Splash, 0, 0, 0},
2765 { SWIG_PY_INT,     (char *)"OBClient_Type_Dialog", (long) ob::OBClient::Type_Dialog, 0, 0, 0},
2766 { SWIG_PY_INT,     (char *)"OBClient_Type_Normal", (long) ob::OBClient::Type_Normal, 0, 0, 0},
2767 { SWIG_PY_INT,     (char *)"OBClient_MwmFlag_Functions", (long) ob::OBClient::MwmFlag_Functions, 0, 0, 0},
2768 { SWIG_PY_INT,     (char *)"OBClient_MwmFlag_Decorations", (long) ob::OBClient::MwmFlag_Decorations, 0, 0, 0},
2769 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_All", (long) ob::OBClient::MwmFunc_All, 0, 0, 0},
2770 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Resize", (long) ob::OBClient::MwmFunc_Resize, 0, 0, 0},
2771 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Move", (long) ob::OBClient::MwmFunc_Move, 0, 0, 0},
2772 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Iconify", (long) ob::OBClient::MwmFunc_Iconify, 0, 0, 0},
2773 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Maximize", (long) ob::OBClient::MwmFunc_Maximize, 0, 0, 0},
2774 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_All", (long) ob::OBClient::MwmDecor_All, 0, 0, 0},
2775 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Border", (long) ob::OBClient::MwmDecor_Border, 0, 0, 0},
2776 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Handle", (long) ob::OBClient::MwmDecor_Handle, 0, 0, 0},
2777 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Title", (long) ob::OBClient::MwmDecor_Title, 0, 0, 0},
2778 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Iconify", (long) ob::OBClient::MwmDecor_Iconify, 0, 0, 0},
2779 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Maximize", (long) ob::OBClient::MwmDecor_Maximize, 0, 0, 0},
2780 { SWIG_PY_INT,     (char *)"OBClient_Func_Resize", (long) ob::OBClient::Func_Resize, 0, 0, 0},
2781 { SWIG_PY_INT,     (char *)"OBClient_Func_Move", (long) ob::OBClient::Func_Move, 0, 0, 0},
2782 { SWIG_PY_INT,     (char *)"OBClient_Func_Iconify", (long) ob::OBClient::Func_Iconify, 0, 0, 0},
2783 { SWIG_PY_INT,     (char *)"OBClient_Func_Maximize", (long) ob::OBClient::Func_Maximize, 0, 0, 0},
2784 { SWIG_PY_INT,     (char *)"OBClient_Func_Close", (long) ob::OBClient::Func_Close, 0, 0, 0},
2785 { SWIG_PY_INT,     (char *)"OBClient_Decor_Titlebar", (long) ob::OBClient::Decor_Titlebar, 0, 0, 0},
2786 { SWIG_PY_INT,     (char *)"OBClient_Decor_Handle", (long) ob::OBClient::Decor_Handle, 0, 0, 0},
2787 { SWIG_PY_INT,     (char *)"OBClient_Decor_Border", (long) ob::OBClient::Decor_Border, 0, 0, 0},
2788 { SWIG_PY_INT,     (char *)"OBClient_Decor_Iconify", (long) ob::OBClient::Decor_Iconify, 0, 0, 0},
2789 { SWIG_PY_INT,     (char *)"OBClient_Decor_Maximize", (long) ob::OBClient::Decor_Maximize, 0, 0, 0},
2790 { SWIG_PY_INT,     (char *)"OBClient_Decor_Sticky", (long) ob::OBClient::Decor_Sticky, 0, 0, 0},
2791 { SWIG_PY_INT,     (char *)"OBClient_Decor_Close", (long) ob::OBClient::Decor_Close, 0, 0, 0},
2792 { SWIG_PY_INT,     (char *)"OBClient_State_Remove", (long) ob::OBClient::State_Remove, 0, 0, 0},
2793 { SWIG_PY_INT,     (char *)"OBClient_State_Add", (long) ob::OBClient::State_Add, 0, 0, 0},
2794 { SWIG_PY_INT,     (char *)"OBClient_State_Toggle", (long) ob::OBClient::State_Toggle, 0, 0, 0},
2795 { SWIG_PY_INT,     (char *)"OBClient_event_mask", (long) ob::OBClient::event_mask, 0, 0, 0},
2796 { SWIG_PY_INT,     (char *)"OBClient_no_propagate_mask", (long) ob::OBClient::no_propagate_mask, 0, 0, 0},
2797 { SWIG_PY_INT,     (char *)"X_PROTOCOL", (long) 11, 0, 0, 0},
2798 { SWIG_PY_INT,     (char *)"X_PROTOCOL_REVISION", (long) 0, 0, 0, 0},
2799 { SWIG_PY_INT,     (char *)"None", (long) 0L, 0, 0, 0},
2800 { SWIG_PY_INT,     (char *)"ParentRelative", (long) 1L, 0, 0, 0},
2801 { SWIG_PY_INT,     (char *)"CopyFromParent", (long) 0L, 0, 0, 0},
2802 { SWIG_PY_INT,     (char *)"PointerWindow", (long) 0L, 0, 0, 0},
2803 { SWIG_PY_INT,     (char *)"InputFocus", (long) 1L, 0, 0, 0},
2804 { SWIG_PY_INT,     (char *)"PointerRoot", (long) 1L, 0, 0, 0},
2805 { SWIG_PY_INT,     (char *)"AnyPropertyType", (long) 0L, 0, 0, 0},
2806 { SWIG_PY_INT,     (char *)"AnyKey", (long) 0L, 0, 0, 0},
2807 { SWIG_PY_INT,     (char *)"AnyButton", (long) 0L, 0, 0, 0},
2808 { SWIG_PY_INT,     (char *)"AllTemporary", (long) 0L, 0, 0, 0},
2809 { SWIG_PY_INT,     (char *)"CurrentTime", (long) 0L, 0, 0, 0},
2810 { SWIG_PY_INT,     (char *)"NoSymbol", (long) 0L, 0, 0, 0},
2811 { SWIG_PY_INT,     (char *)"NoEventMask", (long) 0L, 0, 0, 0},
2812 { SWIG_PY_INT,     (char *)"KeyPressMask", (long) (1L<<0), 0, 0, 0},
2813 { SWIG_PY_INT,     (char *)"KeyReleaseMask", (long) (1L<<1), 0, 0, 0},
2814 { SWIG_PY_INT,     (char *)"ButtonPressMask", (long) (1L<<2), 0, 0, 0},
2815 { SWIG_PY_INT,     (char *)"ButtonReleaseMask", (long) (1L<<3), 0, 0, 0},
2816 { SWIG_PY_INT,     (char *)"EnterWindowMask", (long) (1L<<4), 0, 0, 0},
2817 { SWIG_PY_INT,     (char *)"LeaveWindowMask", (long) (1L<<5), 0, 0, 0},
2818 { SWIG_PY_INT,     (char *)"PointerMotionMask", (long) (1L<<6), 0, 0, 0},
2819 { SWIG_PY_INT,     (char *)"PointerMotionHintMask", (long) (1L<<7), 0, 0, 0},
2820 { SWIG_PY_INT,     (char *)"Button1MotionMask", (long) (1L<<8), 0, 0, 0},
2821 { SWIG_PY_INT,     (char *)"Button2MotionMask", (long) (1L<<9), 0, 0, 0},
2822 { SWIG_PY_INT,     (char *)"Button3MotionMask", (long) (1L<<10), 0, 0, 0},
2823 { SWIG_PY_INT,     (char *)"Button4MotionMask", (long) (1L<<11), 0, 0, 0},
2824 { SWIG_PY_INT,     (char *)"Button5MotionMask", (long) (1L<<12), 0, 0, 0},
2825 { SWIG_PY_INT,     (char *)"ButtonMotionMask", (long) (1L<<13), 0, 0, 0},
2826 { SWIG_PY_INT,     (char *)"KeymapStateMask", (long) (1L<<14), 0, 0, 0},
2827 { SWIG_PY_INT,     (char *)"ExposureMask", (long) (1L<<15), 0, 0, 0},
2828 { SWIG_PY_INT,     (char *)"VisibilityChangeMask", (long) (1L<<16), 0, 0, 0},
2829 { SWIG_PY_INT,     (char *)"StructureNotifyMask", (long) (1L<<17), 0, 0, 0},
2830 { SWIG_PY_INT,     (char *)"ResizeRedirectMask", (long) (1L<<18), 0, 0, 0},
2831 { SWIG_PY_INT,     (char *)"SubstructureNotifyMask", (long) (1L<<19), 0, 0, 0},
2832 { SWIG_PY_INT,     (char *)"SubstructureRedirectMask", (long) (1L<<20), 0, 0, 0},
2833 { SWIG_PY_INT,     (char *)"FocusChangeMask", (long) (1L<<21), 0, 0, 0},
2834 { SWIG_PY_INT,     (char *)"PropertyChangeMask", (long) (1L<<22), 0, 0, 0},
2835 { SWIG_PY_INT,     (char *)"ColormapChangeMask", (long) (1L<<23), 0, 0, 0},
2836 { SWIG_PY_INT,     (char *)"OwnerGrabButtonMask", (long) (1L<<24), 0, 0, 0},
2837 { SWIG_PY_INT,     (char *)"KeyPress", (long) 2, 0, 0, 0},
2838 { SWIG_PY_INT,     (char *)"KeyRelease", (long) 3, 0, 0, 0},
2839 { SWIG_PY_INT,     (char *)"ButtonPress", (long) 4, 0, 0, 0},
2840 { SWIG_PY_INT,     (char *)"ButtonRelease", (long) 5, 0, 0, 0},
2841 { SWIG_PY_INT,     (char *)"MotionNotify", (long) 6, 0, 0, 0},
2842 { SWIG_PY_INT,     (char *)"EnterNotify", (long) 7, 0, 0, 0},
2843 { SWIG_PY_INT,     (char *)"LeaveNotify", (long) 8, 0, 0, 0},
2844 { SWIG_PY_INT,     (char *)"FocusIn", (long) 9, 0, 0, 0},
2845 { SWIG_PY_INT,     (char *)"FocusOut", (long) 10, 0, 0, 0},
2846 { SWIG_PY_INT,     (char *)"KeymapNotify", (long) 11, 0, 0, 0},
2847 { SWIG_PY_INT,     (char *)"Expose", (long) 12, 0, 0, 0},
2848 { SWIG_PY_INT,     (char *)"GraphicsExpose", (long) 13, 0, 0, 0},
2849 { SWIG_PY_INT,     (char *)"NoExpose", (long) 14, 0, 0, 0},
2850 { SWIG_PY_INT,     (char *)"VisibilityNotify", (long) 15, 0, 0, 0},
2851 { SWIG_PY_INT,     (char *)"CreateNotify", (long) 16, 0, 0, 0},
2852 { SWIG_PY_INT,     (char *)"DestroyNotify", (long) 17, 0, 0, 0},
2853 { SWIG_PY_INT,     (char *)"UnmapNotify", (long) 18, 0, 0, 0},
2854 { SWIG_PY_INT,     (char *)"MapNotify", (long) 19, 0, 0, 0},
2855 { SWIG_PY_INT,     (char *)"MapRequest", (long) 20, 0, 0, 0},
2856 { SWIG_PY_INT,     (char *)"ReparentNotify", (long) 21, 0, 0, 0},
2857 { SWIG_PY_INT,     (char *)"ConfigureNotify", (long) 22, 0, 0, 0},
2858 { SWIG_PY_INT,     (char *)"ConfigureRequest", (long) 23, 0, 0, 0},
2859 { SWIG_PY_INT,     (char *)"GravityNotify", (long) 24, 0, 0, 0},
2860 { SWIG_PY_INT,     (char *)"ResizeRequest", (long) 25, 0, 0, 0},
2861 { SWIG_PY_INT,     (char *)"CirculateNotify", (long) 26, 0, 0, 0},
2862 { SWIG_PY_INT,     (char *)"CirculateRequest", (long) 27, 0, 0, 0},
2863 { SWIG_PY_INT,     (char *)"PropertyNotify", (long) 28, 0, 0, 0},
2864 { SWIG_PY_INT,     (char *)"SelectionClear", (long) 29, 0, 0, 0},
2865 { SWIG_PY_INT,     (char *)"SelectionRequest", (long) 30, 0, 0, 0},
2866 { SWIG_PY_INT,     (char *)"SelectionNotify", (long) 31, 0, 0, 0},
2867 { SWIG_PY_INT,     (char *)"ColormapNotify", (long) 32, 0, 0, 0},
2868 { SWIG_PY_INT,     (char *)"ClientMessage", (long) 33, 0, 0, 0},
2869 { SWIG_PY_INT,     (char *)"MappingNotify", (long) 34, 0, 0, 0},
2870 { SWIG_PY_INT,     (char *)"LASTEvent", (long) 35, 0, 0, 0},
2871 { SWIG_PY_INT,     (char *)"ShiftMask", (long) (1<<0), 0, 0, 0},
2872 { SWIG_PY_INT,     (char *)"LockMask", (long) (1<<1), 0, 0, 0},
2873 { SWIG_PY_INT,     (char *)"ControlMask", (long) (1<<2), 0, 0, 0},
2874 { SWIG_PY_INT,     (char *)"Mod1Mask", (long) (1<<3), 0, 0, 0},
2875 { SWIG_PY_INT,     (char *)"Mod2Mask", (long) (1<<4), 0, 0, 0},
2876 { SWIG_PY_INT,     (char *)"Mod3Mask", (long) (1<<5), 0, 0, 0},
2877 { SWIG_PY_INT,     (char *)"Mod4Mask", (long) (1<<6), 0, 0, 0},
2878 { SWIG_PY_INT,     (char *)"Mod5Mask", (long) (1<<7), 0, 0, 0},
2879 { SWIG_PY_INT,     (char *)"ShiftMapIndex", (long) 0, 0, 0, 0},
2880 { SWIG_PY_INT,     (char *)"LockMapIndex", (long) 1, 0, 0, 0},
2881 { SWIG_PY_INT,     (char *)"ControlMapIndex", (long) 2, 0, 0, 0},
2882 { SWIG_PY_INT,     (char *)"Mod1MapIndex", (long) 3, 0, 0, 0},
2883 { SWIG_PY_INT,     (char *)"Mod2MapIndex", (long) 4, 0, 0, 0},
2884 { SWIG_PY_INT,     (char *)"Mod3MapIndex", (long) 5, 0, 0, 0},
2885 { SWIG_PY_INT,     (char *)"Mod4MapIndex", (long) 6, 0, 0, 0},
2886 { SWIG_PY_INT,     (char *)"Mod5MapIndex", (long) 7, 0, 0, 0},
2887 { SWIG_PY_INT,     (char *)"Button1Mask", (long) (1<<8), 0, 0, 0},
2888 { SWIG_PY_INT,     (char *)"Button2Mask", (long) (1<<9), 0, 0, 0},
2889 { SWIG_PY_INT,     (char *)"Button3Mask", (long) (1<<10), 0, 0, 0},
2890 { SWIG_PY_INT,     (char *)"Button4Mask", (long) (1<<11), 0, 0, 0},
2891 { SWIG_PY_INT,     (char *)"Button5Mask", (long) (1<<12), 0, 0, 0},
2892 { SWIG_PY_INT,     (char *)"AnyModifier", (long) (1<<15), 0, 0, 0},
2893 { SWIG_PY_INT,     (char *)"Button1", (long) 1, 0, 0, 0},
2894 { SWIG_PY_INT,     (char *)"Button2", (long) 2, 0, 0, 0},
2895 { SWIG_PY_INT,     (char *)"Button3", (long) 3, 0, 0, 0},
2896 { SWIG_PY_INT,     (char *)"Button4", (long) 4, 0, 0, 0},
2897 { SWIG_PY_INT,     (char *)"Button5", (long) 5, 0, 0, 0},
2898 { SWIG_PY_INT,     (char *)"NotifyNormal", (long) 0, 0, 0, 0},
2899 { SWIG_PY_INT,     (char *)"NotifyGrab", (long) 1, 0, 0, 0},
2900 { SWIG_PY_INT,     (char *)"NotifyUngrab", (long) 2, 0, 0, 0},
2901 { SWIG_PY_INT,     (char *)"NotifyWhileGrabbed", (long) 3, 0, 0, 0},
2902 { SWIG_PY_INT,     (char *)"NotifyHint", (long) 1, 0, 0, 0},
2903 { SWIG_PY_INT,     (char *)"NotifyAncestor", (long) 0, 0, 0, 0},
2904 { SWIG_PY_INT,     (char *)"NotifyVirtual", (long) 1, 0, 0, 0},
2905 { SWIG_PY_INT,     (char *)"NotifyInferior", (long) 2, 0, 0, 0},
2906 { SWIG_PY_INT,     (char *)"NotifyNonlinear", (long) 3, 0, 0, 0},
2907 { SWIG_PY_INT,     (char *)"NotifyNonlinearVirtual", (long) 4, 0, 0, 0},
2908 { SWIG_PY_INT,     (char *)"NotifyPointer", (long) 5, 0, 0, 0},
2909 { SWIG_PY_INT,     (char *)"NotifyPointerRoot", (long) 6, 0, 0, 0},
2910 { SWIG_PY_INT,     (char *)"NotifyDetailNone", (long) 7, 0, 0, 0},
2911 { SWIG_PY_INT,     (char *)"VisibilityUnobscured", (long) 0, 0, 0, 0},
2912 { SWIG_PY_INT,     (char *)"VisibilityPartiallyObscured", (long) 1, 0, 0, 0},
2913 { SWIG_PY_INT,     (char *)"VisibilityFullyObscured", (long) 2, 0, 0, 0},
2914 { SWIG_PY_INT,     (char *)"PlaceOnTop", (long) 0, 0, 0, 0},
2915 { SWIG_PY_INT,     (char *)"PlaceOnBottom", (long) 1, 0, 0, 0},
2916 { SWIG_PY_INT,     (char *)"FamilyInternet", (long) 0, 0, 0, 0},
2917 { SWIG_PY_INT,     (char *)"FamilyDECnet", (long) 1, 0, 0, 0},
2918 { SWIG_PY_INT,     (char *)"FamilyChaos", (long) 2, 0, 0, 0},
2919 { SWIG_PY_INT,     (char *)"PropertyNewValue", (long) 0, 0, 0, 0},
2920 { SWIG_PY_INT,     (char *)"PropertyDelete", (long) 1, 0, 0, 0},
2921 { SWIG_PY_INT,     (char *)"ColormapUninstalled", (long) 0, 0, 0, 0},
2922 { SWIG_PY_INT,     (char *)"ColormapInstalled", (long) 1, 0, 0, 0},
2923 { SWIG_PY_INT,     (char *)"GrabModeSync", (long) 0, 0, 0, 0},
2924 { SWIG_PY_INT,     (char *)"GrabModeAsync", (long) 1, 0, 0, 0},
2925 { SWIG_PY_INT,     (char *)"GrabSuccess", (long) 0, 0, 0, 0},
2926 { SWIG_PY_INT,     (char *)"AlreadyGrabbed", (long) 1, 0, 0, 0},
2927 { SWIG_PY_INT,     (char *)"GrabInvalidTime", (long) 2, 0, 0, 0},
2928 { SWIG_PY_INT,     (char *)"GrabNotViewable", (long) 3, 0, 0, 0},
2929 { SWIG_PY_INT,     (char *)"GrabFrozen", (long) 4, 0, 0, 0},
2930 { SWIG_PY_INT,     (char *)"AsyncPointer", (long) 0, 0, 0, 0},
2931 { SWIG_PY_INT,     (char *)"SyncPointer", (long) 1, 0, 0, 0},
2932 { SWIG_PY_INT,     (char *)"ReplayPointer", (long) 2, 0, 0, 0},
2933 { SWIG_PY_INT,     (char *)"AsyncKeyboard", (long) 3, 0, 0, 0},
2934 { SWIG_PY_INT,     (char *)"SyncKeyboard", (long) 4, 0, 0, 0},
2935 { SWIG_PY_INT,     (char *)"ReplayKeyboard", (long) 5, 0, 0, 0},
2936 { SWIG_PY_INT,     (char *)"AsyncBoth", (long) 6, 0, 0, 0},
2937 { SWIG_PY_INT,     (char *)"SyncBoth", (long) 7, 0, 0, 0},
2938 { SWIG_PY_INT,     (char *)"RevertToParent", (long) 2, 0, 0, 0},
2939 { SWIG_PY_INT,     (char *)"Success", (long) 0, 0, 0, 0},
2940 { SWIG_PY_INT,     (char *)"BadRequest", (long) 1, 0, 0, 0},
2941 { SWIG_PY_INT,     (char *)"BadValue", (long) 2, 0, 0, 0},
2942 { SWIG_PY_INT,     (char *)"BadWindow", (long) 3, 0, 0, 0},
2943 { SWIG_PY_INT,     (char *)"BadPixmap", (long) 4, 0, 0, 0},
2944 { SWIG_PY_INT,     (char *)"BadAtom", (long) 5, 0, 0, 0},
2945 { SWIG_PY_INT,     (char *)"BadCursor", (long) 6, 0, 0, 0},
2946 { SWIG_PY_INT,     (char *)"BadFont", (long) 7, 0, 0, 0},
2947 { SWIG_PY_INT,     (char *)"BadMatch", (long) 8, 0, 0, 0},
2948 { SWIG_PY_INT,     (char *)"BadDrawable", (long) 9, 0, 0, 0},
2949 { SWIG_PY_INT,     (char *)"BadAccess", (long) 10, 0, 0, 0},
2950 { SWIG_PY_INT,     (char *)"BadAlloc", (long) 11, 0, 0, 0},
2951 { SWIG_PY_INT,     (char *)"BadColor", (long) 12, 0, 0, 0},
2952 { SWIG_PY_INT,     (char *)"BadGC", (long) 13, 0, 0, 0},
2953 { SWIG_PY_INT,     (char *)"BadIDChoice", (long) 14, 0, 0, 0},
2954 { SWIG_PY_INT,     (char *)"BadName", (long) 15, 0, 0, 0},
2955 { SWIG_PY_INT,     (char *)"BadLength", (long) 16, 0, 0, 0},
2956 { SWIG_PY_INT,     (char *)"BadImplementation", (long) 17, 0, 0, 0},
2957 { SWIG_PY_INT,     (char *)"FirstExtensionError", (long) 128, 0, 0, 0},
2958 { SWIG_PY_INT,     (char *)"LastExtensionError", (long) 255, 0, 0, 0},
2959 { SWIG_PY_INT,     (char *)"InputOutput", (long) 1, 0, 0, 0},
2960 { SWIG_PY_INT,     (char *)"InputOnly", (long) 2, 0, 0, 0},
2961 { SWIG_PY_INT,     (char *)"CWBackPixmap", (long) (1L<<0), 0, 0, 0},
2962 { SWIG_PY_INT,     (char *)"CWBackPixel", (long) (1L<<1), 0, 0, 0},
2963 { SWIG_PY_INT,     (char *)"CWBorderPixmap", (long) (1L<<2), 0, 0, 0},
2964 { SWIG_PY_INT,     (char *)"CWBorderPixel", (long) (1L<<3), 0, 0, 0},
2965 { SWIG_PY_INT,     (char *)"CWBitGravity", (long) (1L<<4), 0, 0, 0},
2966 { SWIG_PY_INT,     (char *)"CWWinGravity", (long) (1L<<5), 0, 0, 0},
2967 { SWIG_PY_INT,     (char *)"CWBackingStore", (long) (1L<<6), 0, 0, 0},
2968 { SWIG_PY_INT,     (char *)"CWBackingPlanes", (long) (1L<<7), 0, 0, 0},
2969 { SWIG_PY_INT,     (char *)"CWBackingPixel", (long) (1L<<8), 0, 0, 0},
2970 { SWIG_PY_INT,     (char *)"CWOverrideRedirect", (long) (1L<<9), 0, 0, 0},
2971 { SWIG_PY_INT,     (char *)"CWSaveUnder", (long) (1L<<10), 0, 0, 0},
2972 { SWIG_PY_INT,     (char *)"CWEventMask", (long) (1L<<11), 0, 0, 0},
2973 { SWIG_PY_INT,     (char *)"CWDontPropagate", (long) (1L<<12), 0, 0, 0},
2974 { SWIG_PY_INT,     (char *)"CWColormap", (long) (1L<<13), 0, 0, 0},
2975 { SWIG_PY_INT,     (char *)"CWCursor", (long) (1L<<14), 0, 0, 0},
2976 { SWIG_PY_INT,     (char *)"CWX", (long) (1<<0), 0, 0, 0},
2977 { SWIG_PY_INT,     (char *)"CWY", (long) (1<<1), 0, 0, 0},
2978 { SWIG_PY_INT,     (char *)"CWWidth", (long) (1<<2), 0, 0, 0},
2979 { SWIG_PY_INT,     (char *)"CWHeight", (long) (1<<3), 0, 0, 0},
2980 { SWIG_PY_INT,     (char *)"CWBorderWidth", (long) (1<<4), 0, 0, 0},
2981 { SWIG_PY_INT,     (char *)"CWSibling", (long) (1<<5), 0, 0, 0},
2982 { SWIG_PY_INT,     (char *)"CWStackMode", (long) (1<<6), 0, 0, 0},
2983 { SWIG_PY_INT,     (char *)"ForgetGravity", (long) 0, 0, 0, 0},
2984 { SWIG_PY_INT,     (char *)"NorthWestGravity", (long) 1, 0, 0, 0},
2985 { SWIG_PY_INT,     (char *)"NorthGravity", (long) 2, 0, 0, 0},
2986 { SWIG_PY_INT,     (char *)"NorthEastGravity", (long) 3, 0, 0, 0},
2987 { SWIG_PY_INT,     (char *)"WestGravity", (long) 4, 0, 0, 0},
2988 { SWIG_PY_INT,     (char *)"CenterGravity", (long) 5, 0, 0, 0},
2989 { SWIG_PY_INT,     (char *)"EastGravity", (long) 6, 0, 0, 0},
2990 { SWIG_PY_INT,     (char *)"SouthWestGravity", (long) 7, 0, 0, 0},
2991 { SWIG_PY_INT,     (char *)"SouthGravity", (long) 8, 0, 0, 0},
2992 { SWIG_PY_INT,     (char *)"SouthEastGravity", (long) 9, 0, 0, 0},
2993 { SWIG_PY_INT,     (char *)"StaticGravity", (long) 10, 0, 0, 0},
2994 { SWIG_PY_INT,     (char *)"UnmapGravity", (long) 0, 0, 0, 0},
2995 { SWIG_PY_INT,     (char *)"NotUseful", (long) 0, 0, 0, 0},
2996 { SWIG_PY_INT,     (char *)"WhenMapped", (long) 1, 0, 0, 0},
2997 { SWIG_PY_INT,     (char *)"Always", (long) 2, 0, 0, 0},
2998 { SWIG_PY_INT,     (char *)"IsUnmapped", (long) 0, 0, 0, 0},
2999 { SWIG_PY_INT,     (char *)"IsUnviewable", (long) 1, 0, 0, 0},
3000 { SWIG_PY_INT,     (char *)"IsViewable", (long) 2, 0, 0, 0},
3001 { SWIG_PY_INT,     (char *)"SetModeInsert", (long) 0, 0, 0, 0},
3002 { SWIG_PY_INT,     (char *)"SetModeDelete", (long) 1, 0, 0, 0},
3003 { SWIG_PY_INT,     (char *)"DestroyAll", (long) 0, 0, 0, 0},
3004 { SWIG_PY_INT,     (char *)"RetainPermanent", (long) 1, 0, 0, 0},
3005 { SWIG_PY_INT,     (char *)"RetainTemporary", (long) 2, 0, 0, 0},
3006 { SWIG_PY_INT,     (char *)"Above", (long) 0, 0, 0, 0},
3007 { SWIG_PY_INT,     (char *)"Below", (long) 1, 0, 0, 0},
3008 { SWIG_PY_INT,     (char *)"TopIf", (long) 2, 0, 0, 0},
3009 { SWIG_PY_INT,     (char *)"BottomIf", (long) 3, 0, 0, 0},
3010 { SWIG_PY_INT,     (char *)"Opposite", (long) 4, 0, 0, 0},
3011 { SWIG_PY_INT,     (char *)"RaiseLowest", (long) 0, 0, 0, 0},
3012 { SWIG_PY_INT,     (char *)"LowerHighest", (long) 1, 0, 0, 0},
3013 { SWIG_PY_INT,     (char *)"PropModeReplace", (long) 0, 0, 0, 0},
3014 { SWIG_PY_INT,     (char *)"PropModePrepend", (long) 1, 0, 0, 0},
3015 { SWIG_PY_INT,     (char *)"PropModeAppend", (long) 2, 0, 0, 0},
3016 { SWIG_PY_INT,     (char *)"GXclear", (long) 0x0, 0, 0, 0},
3017 { SWIG_PY_INT,     (char *)"GXand", (long) 0x1, 0, 0, 0},
3018 { SWIG_PY_INT,     (char *)"GXandReverse", (long) 0x2, 0, 0, 0},
3019 { SWIG_PY_INT,     (char *)"GXcopy", (long) 0x3, 0, 0, 0},
3020 { SWIG_PY_INT,     (char *)"GXandInverted", (long) 0x4, 0, 0, 0},
3021 { SWIG_PY_INT,     (char *)"GXnoop", (long) 0x5, 0, 0, 0},
3022 { SWIG_PY_INT,     (char *)"GXxor", (long) 0x6, 0, 0, 0},
3023 { SWIG_PY_INT,     (char *)"GXor", (long) 0x7, 0, 0, 0},
3024 { SWIG_PY_INT,     (char *)"GXnor", (long) 0x8, 0, 0, 0},
3025 { SWIG_PY_INT,     (char *)"GXequiv", (long) 0x9, 0, 0, 0},
3026 { SWIG_PY_INT,     (char *)"GXinvert", (long) 0xa, 0, 0, 0},
3027 { SWIG_PY_INT,     (char *)"GXorReverse", (long) 0xb, 0, 0, 0},
3028 { SWIG_PY_INT,     (char *)"GXcopyInverted", (long) 0xc, 0, 0, 0},
3029 { SWIG_PY_INT,     (char *)"GXorInverted", (long) 0xd, 0, 0, 0},
3030 { SWIG_PY_INT,     (char *)"GXnand", (long) 0xe, 0, 0, 0},
3031 { SWIG_PY_INT,     (char *)"GXset", (long) 0xf, 0, 0, 0},
3032 { SWIG_PY_INT,     (char *)"LineSolid", (long) 0, 0, 0, 0},
3033 { SWIG_PY_INT,     (char *)"LineOnOffDash", (long) 1, 0, 0, 0},
3034 { SWIG_PY_INT,     (char *)"LineDoubleDash", (long) 2, 0, 0, 0},
3035 { SWIG_PY_INT,     (char *)"CapNotLast", (long) 0, 0, 0, 0},
3036 { SWIG_PY_INT,     (char *)"CapButt", (long) 1, 0, 0, 0},
3037 { SWIG_PY_INT,     (char *)"CapRound", (long) 2, 0, 0, 0},
3038 { SWIG_PY_INT,     (char *)"CapProjecting", (long) 3, 0, 0, 0},
3039 { SWIG_PY_INT,     (char *)"JoinMiter", (long) 0, 0, 0, 0},
3040 { SWIG_PY_INT,     (char *)"JoinRound", (long) 1, 0, 0, 0},
3041 { SWIG_PY_INT,     (char *)"JoinBevel", (long) 2, 0, 0, 0},
3042 { SWIG_PY_INT,     (char *)"FillSolid", (long) 0, 0, 0, 0},
3043 { SWIG_PY_INT,     (char *)"FillTiled", (long) 1, 0, 0, 0},
3044 { SWIG_PY_INT,     (char *)"FillStippled", (long) 2, 0, 0, 0},
3045 { SWIG_PY_INT,     (char *)"FillOpaqueStippled", (long) 3, 0, 0, 0},
3046 { SWIG_PY_INT,     (char *)"EvenOddRule", (long) 0, 0, 0, 0},
3047 { SWIG_PY_INT,     (char *)"WindingRule", (long) 1, 0, 0, 0},
3048 { SWIG_PY_INT,     (char *)"ClipByChildren", (long) 0, 0, 0, 0},
3049 { SWIG_PY_INT,     (char *)"IncludeInferiors", (long) 1, 0, 0, 0},
3050 { SWIG_PY_INT,     (char *)"Unsorted", (long) 0, 0, 0, 0},
3051 { SWIG_PY_INT,     (char *)"YSorted", (long) 1, 0, 0, 0},
3052 { SWIG_PY_INT,     (char *)"YXSorted", (long) 2, 0, 0, 0},
3053 { SWIG_PY_INT,     (char *)"YXBanded", (long) 3, 0, 0, 0},
3054 { SWIG_PY_INT,     (char *)"CoordModeOrigin", (long) 0, 0, 0, 0},
3055 { SWIG_PY_INT,     (char *)"CoordModePrevious", (long) 1, 0, 0, 0},
3056 { SWIG_PY_INT,     (char *)"Complex", (long) 0, 0, 0, 0},
3057 { SWIG_PY_INT,     (char *)"Nonconvex", (long) 1, 0, 0, 0},
3058 { SWIG_PY_INT,     (char *)"Convex", (long) 2, 0, 0, 0},
3059 { SWIG_PY_INT,     (char *)"ArcChord", (long) 0, 0, 0, 0},
3060 { SWIG_PY_INT,     (char *)"ArcPieSlice", (long) 1, 0, 0, 0},
3061 { SWIG_PY_INT,     (char *)"GCFunction", (long) (1L<<0), 0, 0, 0},
3062 { SWIG_PY_INT,     (char *)"GCPlaneMask", (long) (1L<<1), 0, 0, 0},
3063 { SWIG_PY_INT,     (char *)"GCForeground", (long) (1L<<2), 0, 0, 0},
3064 { SWIG_PY_INT,     (char *)"GCBackground", (long) (1L<<3), 0, 0, 0},
3065 { SWIG_PY_INT,     (char *)"GCLineWidth", (long) (1L<<4), 0, 0, 0},
3066 { SWIG_PY_INT,     (char *)"GCLineStyle", (long) (1L<<5), 0, 0, 0},
3067 { SWIG_PY_INT,     (char *)"GCCapStyle", (long) (1L<<6), 0, 0, 0},
3068 { SWIG_PY_INT,     (char *)"GCJoinStyle", (long) (1L<<7), 0, 0, 0},
3069 { SWIG_PY_INT,     (char *)"GCFillStyle", (long) (1L<<8), 0, 0, 0},
3070 { SWIG_PY_INT,     (char *)"GCFillRule", (long) (1L<<9), 0, 0, 0},
3071 { SWIG_PY_INT,     (char *)"GCTile", (long) (1L<<10), 0, 0, 0},
3072 { SWIG_PY_INT,     (char *)"GCStipple", (long) (1L<<11), 0, 0, 0},
3073 { SWIG_PY_INT,     (char *)"GCTileStipXOrigin", (long) (1L<<12), 0, 0, 0},
3074 { SWIG_PY_INT,     (char *)"GCTileStipYOrigin", (long) (1L<<13), 0, 0, 0},
3075 { SWIG_PY_INT,     (char *)"GCFont", (long) (1L<<14), 0, 0, 0},
3076 { SWIG_PY_INT,     (char *)"GCSubwindowMode", (long) (1L<<15), 0, 0, 0},
3077 { SWIG_PY_INT,     (char *)"GCGraphicsExposures", (long) (1L<<16), 0, 0, 0},
3078 { SWIG_PY_INT,     (char *)"GCClipXOrigin", (long) (1L<<17), 0, 0, 0},
3079 { SWIG_PY_INT,     (char *)"GCClipYOrigin", (long) (1L<<18), 0, 0, 0},
3080 { SWIG_PY_INT,     (char *)"GCClipMask", (long) (1L<<19), 0, 0, 0},
3081 { SWIG_PY_INT,     (char *)"GCDashOffset", (long) (1L<<20), 0, 0, 0},
3082 { SWIG_PY_INT,     (char *)"GCDashList", (long) (1L<<21), 0, 0, 0},
3083 { SWIG_PY_INT,     (char *)"GCArcMode", (long) (1L<<22), 0, 0, 0},
3084 { SWIG_PY_INT,     (char *)"GCLastBit", (long) 22, 0, 0, 0},
3085 { SWIG_PY_INT,     (char *)"FontLeftToRight", (long) 0, 0, 0, 0},
3086 { SWIG_PY_INT,     (char *)"FontRightToLeft", (long) 1, 0, 0, 0},
3087 { SWIG_PY_INT,     (char *)"FontChange", (long) 255, 0, 0, 0},
3088 { SWIG_PY_INT,     (char *)"XYBitmap", (long) 0, 0, 0, 0},
3089 { SWIG_PY_INT,     (char *)"XYPixmap", (long) 1, 0, 0, 0},
3090 { SWIG_PY_INT,     (char *)"ZPixmap", (long) 2, 0, 0, 0},
3091 { SWIG_PY_INT,     (char *)"AllocNone", (long) 0, 0, 0, 0},
3092 { SWIG_PY_INT,     (char *)"AllocAll", (long) 1, 0, 0, 0},
3093 { SWIG_PY_INT,     (char *)"DoRed", (long) (1<<0), 0, 0, 0},
3094 { SWIG_PY_INT,     (char *)"DoGreen", (long) (1<<1), 0, 0, 0},
3095 { SWIG_PY_INT,     (char *)"DoBlue", (long) (1<<2), 0, 0, 0},
3096 { SWIG_PY_INT,     (char *)"CursorShape", (long) 0, 0, 0, 0},
3097 { SWIG_PY_INT,     (char *)"TileShape", (long) 1, 0, 0, 0},
3098 { SWIG_PY_INT,     (char *)"StippleShape", (long) 2, 0, 0, 0},
3099 { SWIG_PY_INT,     (char *)"AutoRepeatModeOff", (long) 0, 0, 0, 0},
3100 { SWIG_PY_INT,     (char *)"AutoRepeatModeOn", (long) 1, 0, 0, 0},
3101 { SWIG_PY_INT,     (char *)"AutoRepeatModeDefault", (long) 2, 0, 0, 0},
3102 { SWIG_PY_INT,     (char *)"LedModeOff", (long) 0, 0, 0, 0},
3103 { SWIG_PY_INT,     (char *)"LedModeOn", (long) 1, 0, 0, 0},
3104 { SWIG_PY_INT,     (char *)"KBKeyClickPercent", (long) (1L<<0), 0, 0, 0},
3105 { SWIG_PY_INT,     (char *)"KBBellPercent", (long) (1L<<1), 0, 0, 0},
3106 { SWIG_PY_INT,     (char *)"KBBellPitch", (long) (1L<<2), 0, 0, 0},
3107 { SWIG_PY_INT,     (char *)"KBBellDuration", (long) (1L<<3), 0, 0, 0},
3108 { SWIG_PY_INT,     (char *)"KBLed", (long) (1L<<4), 0, 0, 0},
3109 { SWIG_PY_INT,     (char *)"KBLedMode", (long) (1L<<5), 0, 0, 0},
3110 { SWIG_PY_INT,     (char *)"KBKey", (long) (1L<<6), 0, 0, 0},
3111 { SWIG_PY_INT,     (char *)"KBAutoRepeatMode", (long) (1L<<7), 0, 0, 0},
3112 { SWIG_PY_INT,     (char *)"MappingSuccess", (long) 0, 0, 0, 0},
3113 { SWIG_PY_INT,     (char *)"MappingBusy", (long) 1, 0, 0, 0},
3114 { SWIG_PY_INT,     (char *)"MappingFailed", (long) 2, 0, 0, 0},
3115 { SWIG_PY_INT,     (char *)"MappingModifier", (long) 0, 0, 0, 0},
3116 { SWIG_PY_INT,     (char *)"MappingKeyboard", (long) 1, 0, 0, 0},
3117 { SWIG_PY_INT,     (char *)"MappingPointer", (long) 2, 0, 0, 0},
3118 { SWIG_PY_INT,     (char *)"DontPreferBlanking", (long) 0, 0, 0, 0},
3119 { SWIG_PY_INT,     (char *)"PreferBlanking", (long) 1, 0, 0, 0},
3120 { SWIG_PY_INT,     (char *)"DefaultBlanking", (long) 2, 0, 0, 0},
3121 { SWIG_PY_INT,     (char *)"DisableScreenSaver", (long) 0, 0, 0, 0},
3122 { SWIG_PY_INT,     (char *)"DisableScreenInterval", (long) 0, 0, 0, 0},
3123 { SWIG_PY_INT,     (char *)"DontAllowExposures", (long) 0, 0, 0, 0},
3124 { SWIG_PY_INT,     (char *)"AllowExposures", (long) 1, 0, 0, 0},
3125 { SWIG_PY_INT,     (char *)"DefaultExposures", (long) 2, 0, 0, 0},
3126 { SWIG_PY_INT,     (char *)"ScreenSaverReset", (long) 0, 0, 0, 0},
3127 { SWIG_PY_INT,     (char *)"ScreenSaverActive", (long) 1, 0, 0, 0},
3128 { SWIG_PY_INT,     (char *)"HostInsert", (long) 0, 0, 0, 0},
3129 { SWIG_PY_INT,     (char *)"HostDelete", (long) 1, 0, 0, 0},
3130 { SWIG_PY_INT,     (char *)"EnableAccess", (long) 1, 0, 0, 0},
3131 { SWIG_PY_INT,     (char *)"DisableAccess", (long) 0, 0, 0, 0},
3132 { SWIG_PY_INT,     (char *)"StaticGray", (long) 0, 0, 0, 0},
3133 { SWIG_PY_INT,     (char *)"GrayScale", (long) 1, 0, 0, 0},
3134 { SWIG_PY_INT,     (char *)"StaticColor", (long) 2, 0, 0, 0},
3135 { SWIG_PY_INT,     (char *)"PseudoColor", (long) 3, 0, 0, 0},
3136 { SWIG_PY_INT,     (char *)"TrueColor", (long) 4, 0, 0, 0},
3137 { SWIG_PY_INT,     (char *)"DirectColor", (long) 5, 0, 0, 0},
3138 { SWIG_PY_INT,     (char *)"LSBFirst", (long) 0, 0, 0, 0},
3139 { SWIG_PY_INT,     (char *)"MSBFirst", (long) 1, 0, 0, 0},
3140 {0}};
3141
3142 #ifdef __cplusplus
3143 }
3144 #endif
3145
3146 #ifdef __cplusplus
3147 extern "C"
3148 #endif
3149 SWIGEXPORT(void) SWIG_init(void) {
3150     static PyObject *SWIG_globals = 0; 
3151     static int       typeinit = 0;
3152     PyObject *m, *d;
3153     int       i;
3154     if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
3155     m = Py_InitModule((char *) SWIG_name, SwigMethods);
3156     d = PyModule_GetDict(m);
3157     
3158     if (!typeinit) {
3159         for (i = 0; swig_types_initial[i]; i++) {
3160             swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
3161         }
3162         typeinit = 1;
3163     }
3164     SWIG_InstallConstants(d,swig_const_table);
3165     
3166 }
3167