]> icculus.org git repositories - mikachu/openbox.git/blob - src/openbox_wrap.cc
updated wrappers
[mikachu/openbox.git] / src / openbox_wrap.cc
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 1.3.17u-20021226-0459
4  * 
5  * This file is not intended to be easily readable and contains a number of 
6  * coding conventions designed to improve portability and efficiency. Do not make
7  * changes to this file unless you know what you are doing--modify the SWIG 
8  * interface file instead. 
9  * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12
13 #ifdef __cplusplus
14 template<class T> class SwigValueWrapper {
15     T *tt;
16 public:
17     inline SwigValueWrapper() : tt(0) { }
18     inline ~SwigValueWrapper() { if (tt) delete tt; } 
19     inline SwigValueWrapper& operator=(const T& t) { tt = new T(t); return *this; }
20     inline operator T&() const { return *tt; }
21     inline T *operator&() { return tt; }
22 };                                                    
23 #endif
24
25
26 #include "Python.h"
27
28 /***********************************************************************
29  * common.swg
30  *
31  *     This file contains generic SWIG runtime support for pointer
32  *     type checking as well as a few commonly used macros to control
33  *     external linkage.
34  *
35  * Author : David Beazley (beazley@cs.uchicago.edu)
36  *
37  * Copyright (c) 1999-2000, The University of Chicago
38  * 
39  * This file may be freely redistributed without license or fee provided
40  * this copyright message remains intact.
41  ************************************************************************/
42
43 #include <string.h>
44
45 #if defined(_WIN32) || defined(__WIN32__)
46 #       if defined(_MSC_VER)
47 #               if defined(STATIC_LINKED)
48 #                       define SWIGEXPORT(a) a
49 #                       define SWIGIMPORT(a) extern a
50 #               else
51 #                       define SWIGEXPORT(a) __declspec(dllexport) a
52 #                       define SWIGIMPORT(a) extern a
53 #               endif
54 #       else
55 #               if defined(__BORLANDC__)
56 #                       define SWIGEXPORT(a) a _export
57 #                       define SWIGIMPORT(a) a _export
58 #               else
59 #                       define SWIGEXPORT(a) a
60 #                       define SWIGIMPORT(a) a
61 #               endif
62 #       endif
63 #else
64 #       define SWIGEXPORT(a) a
65 #       define SWIGIMPORT(a) a
66 #endif
67
68 #ifdef SWIG_GLOBAL
69 #define SWIGRUNTIME(a) SWIGEXPORT(a)
70 #else
71 #define SWIGRUNTIME(a) static a
72 #endif
73
74 #ifdef __cplusplus
75 extern "C" {
76 #endif
77
78 typedef void *(*swig_converter_func)(void *);
79 typedef struct swig_type_info *(*swig_dycast_func)(void **);
80
81 typedef struct swig_type_info {
82   const char             *name;                 
83   swig_converter_func     converter;
84   const char             *str;
85   void                   *clientdata;   
86   swig_dycast_func        dcast;
87   struct swig_type_info  *next;
88   struct swig_type_info  *prev;
89 } swig_type_info;
90
91 #ifdef SWIG_NOINCLUDE
92
93 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
94 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
95 SWIGIMPORT(void *)           SWIG_TypeCast(swig_type_info *, void *);
96 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
97 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
98 SWIGIMPORT(void)             SWIG_TypeClientData(swig_type_info *, void *);
99
100 #else
101
102 static swig_type_info *swig_type_list = 0;
103
104 /* Register a type mapping with the type-checking */
105 SWIGRUNTIME(swig_type_info *)
106 SWIG_TypeRegister(swig_type_info *ti)
107 {
108   swig_type_info *tc, *head, *ret, *next;
109   /* Check to see if this type has already been registered */
110   tc = swig_type_list;
111   while (tc) {
112     if (strcmp(tc->name, ti->name) == 0) {
113       /* Already exists in the table.  Just add additional types to the list */
114       if (tc->clientdata) ti->clientdata = tc->clientdata;      
115       head = tc;
116       next = tc->next;
117       goto l1;
118     }
119     tc = tc->prev;
120   }
121   head = ti;
122   next = 0;
123
124   /* Place in list */
125   ti->prev = swig_type_list;
126   swig_type_list = ti;
127
128   /* Build linked lists */
129  l1:
130   ret = head;
131   tc = ti + 1;
132   /* Patch up the rest of the links */
133   while (tc->name) {
134     head->next = tc;
135     tc->prev = head;
136     head = tc;
137     tc++;
138   }
139   head->next = next;
140   return ret;
141 }
142
143 /* Check the typename */
144 SWIGRUNTIME(swig_type_info *) 
145 SWIG_TypeCheck(char *c, swig_type_info *ty)
146 {
147   swig_type_info *s;
148   if (!ty) return 0;        /* Void pointer */
149   s = ty->next;             /* First element always just a name */
150   do {
151     if (strcmp(s->name,c) == 0) {
152       if (s == ty->next) return s;
153       /* Move s to the top of the linked list */
154       s->prev->next = s->next;
155       if (s->next) {
156         s->next->prev = s->prev;
157       }
158       /* Insert s as second element in the list */
159       s->next = ty->next;
160       if (ty->next) ty->next->prev = s;
161       ty->next = s;
162       return s;
163     }
164     s = s->next;
165   } while (s && (s != ty->next));
166   return 0;
167 }
168
169 /* Cast a pointer up an inheritance hierarchy */
170 SWIGRUNTIME(void *) 
171 SWIG_TypeCast(swig_type_info *ty, void *ptr) 
172 {
173   if ((!ty) || (!ty->converter)) return ptr;
174   return (*ty->converter)(ptr);
175 }
176
177 /* Dynamic pointer casting. Down an inheritance hierarchy */
178 SWIGRUNTIME(swig_type_info *) 
179 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) 
180 {
181   swig_type_info *lastty = ty;
182   if (!ty || !ty->dcast) return ty;
183   while (ty && (ty->dcast)) {
184      ty = (*ty->dcast)(ptr);
185      if (ty) lastty = ty;
186   }
187   return lastty;
188 }
189
190 /* Search for a swig_type_info structure */
191 SWIGRUNTIME(swig_type_info *)
192 SWIG_TypeQuery(const char *name) {
193   swig_type_info *ty = swig_type_list;
194   while (ty) {
195     if (ty->str && (strcmp(name,ty->str) == 0)) return ty;
196     if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
197     ty = ty->prev;
198   }
199   return 0;
200 }
201
202 /* Set the clientdata field for a type */
203 SWIGRUNTIME(void)
204 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
205   swig_type_info *tc, *equiv;
206   if (ti->clientdata == clientdata) return;
207   ti->clientdata = clientdata;
208   equiv = ti->next;
209   while (equiv) {
210     if (!equiv->converter) {
211       tc = swig_type_list;
212       while (tc) {
213         if ((strcmp(tc->name, equiv->name) == 0))
214           SWIG_TypeClientData(tc,clientdata);
215         tc = tc->prev;
216       }
217     }
218     equiv = equiv->next;
219   }
220 }
221 #endif
222
223 #ifdef __cplusplus
224 }
225
226 #endif
227
228 /***********************************************************************
229  * python.swg
230  *
231  *     This file contains the runtime support for Python modules
232  *     and includes code for managing global variables and pointer
233  *     type checking.
234  *
235  * Author : David Beazley (beazley@cs.uchicago.edu)
236  ************************************************************************/
237
238 #include "Python.h"
239
240 #ifdef __cplusplus
241 extern "C" {
242 #endif
243
244 #define SWIG_PY_INT     1
245 #define SWIG_PY_FLOAT   2
246 #define SWIG_PY_STRING  3
247 #define SWIG_PY_POINTER 4
248 #define SWIG_PY_BINARY  5
249
250 /* Flags for pointer conversion */
251
252 #define SWIG_POINTER_EXCEPTION     0x1
253 #define SWIG_POINTER_DISOWN        0x2
254
255 /* Exception handling in wrappers */
256 #define SWIG_fail   goto fail
257
258 /* Constant information structure */
259 typedef struct swig_const_info {
260     int type;
261     char *name;
262     long lvalue;
263     double dvalue;
264     void   *pvalue;
265     swig_type_info **ptype;
266 } swig_const_info;
267
268 #ifdef SWIG_NOINCLUDE
269
270 SWIGEXPORT(PyObject *)        SWIG_newvarlink();
271 SWIGEXPORT(void)              SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
272 SWIGEXPORT(int)               SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int);
273 SWIGEXPORT(int)               SWIG_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
274 SWIGEXPORT(char *)            SWIG_PackData(char *c, void *, int);
275 SWIGEXPORT(char *)            SWIG_UnpackData(char *c, void *, int);
276 SWIGEXPORT(PyObject *)        SWIG_NewPointerObj(void *, swig_type_info *,int own);
277 SWIGEXPORT(PyObject *)        SWIG_NewPackedObj(void *, int sz, swig_type_info *);
278 SWIGEXPORT(void)              SWIG_InstallConstants(PyObject *d, swig_const_info constants[]);
279 #else
280
281 /* -----------------------------------------------------------------------------
282  * global variable support code.
283  * ----------------------------------------------------------------------------- */
284
285 typedef struct swig_globalvar {   
286   char       *name;                  /* Name of global variable */
287   PyObject *(*get_attr)(void);       /* Return the current value */
288   int       (*set_attr)(PyObject *); /* Set the value */
289   struct swig_globalvar *next;
290 } swig_globalvar;
291
292 typedef struct swig_varlinkobject {
293   PyObject_HEAD
294   swig_globalvar *vars;
295 } swig_varlinkobject;
296
297 static PyObject *
298 swig_varlink_repr(swig_varlinkobject *v) {
299   v = v;
300   return PyString_FromString("<Global variables>");
301 }
302
303 static int
304 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
305   swig_globalvar  *var;
306   flags = flags;
307   fprintf(fp,"Global variables { ");
308   for (var = v->vars; var; var=var->next) {
309     fprintf(fp,"%s", var->name);
310     if (var->next) fprintf(fp,", ");
311   }
312   fprintf(fp," }\n");
313   return 0;
314 }
315
316 static PyObject *
317 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
318   swig_globalvar *var = v->vars;
319   while (var) {
320     if (strcmp(var->name,n) == 0) {
321       return (*var->get_attr)();
322     }
323     var = var->next;
324   }
325   PyErr_SetString(PyExc_NameError,"Unknown C global variable");
326   return NULL;
327 }
328
329 static int
330 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
331   swig_globalvar *var = v->vars;
332   while (var) {
333     if (strcmp(var->name,n) == 0) {
334       return (*var->set_attr)(p);
335     }
336     var = var->next;
337   }
338   PyErr_SetString(PyExc_NameError,"Unknown C global variable");
339   return 1;
340 }
341
342 statichere PyTypeObject varlinktype = {
343   PyObject_HEAD_INIT(0)              
344   0,
345   (char *)"swigvarlink",                      /* Type name    */
346   sizeof(swig_varlinkobject),         /* Basic size   */
347   0,                                  /* Itemsize     */
348   0,                                  /* Deallocator  */ 
349   (printfunc) swig_varlink_print,     /* Print        */
350   (getattrfunc) swig_varlink_getattr, /* get attr     */
351   (setattrfunc) swig_varlink_setattr, /* Set attr     */
352   0,                                  /* tp_compare   */
353   (reprfunc) swig_varlink_repr,       /* tp_repr      */    
354   0,                                  /* tp_as_number */
355   0,                                  /* tp_as_mapping*/
356   0,                                  /* tp_hash      */
357 };
358
359 /* Create a variable linking object for use later */
360 SWIGRUNTIME(PyObject *)
361 SWIG_newvarlink(void) {
362   swig_varlinkobject *result = 0;
363   result = PyMem_NEW(swig_varlinkobject,1);
364   varlinktype.ob_type = &PyType_Type;    /* Patch varlinktype into a PyType */
365   result->ob_type = &varlinktype;
366   result->vars = 0;
367   result->ob_refcnt = 0;
368   Py_XINCREF((PyObject *) result);
369   return ((PyObject*) result);
370 }
371
372 SWIGRUNTIME(void)
373 SWIG_addvarlink(PyObject *p, char *name,
374            PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
375   swig_varlinkobject *v;
376   swig_globalvar *gv;
377   v= (swig_varlinkobject *) p;
378   gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
379   gv->name = (char *) malloc(strlen(name)+1);
380   strcpy(gv->name,name);
381   gv->get_attr = get_attr;
382   gv->set_attr = set_attr;
383   gv->next = v->vars;
384   v->vars = gv;
385 }
386
387 /* Pack binary data into a string */
388 SWIGRUNTIME(char *)
389 SWIG_PackData(char *c, void *ptr, int sz) {
390   static char hex[17] = "0123456789abcdef";
391   int i;
392   unsigned char *u = (unsigned char *) ptr;
393   register unsigned char uu;
394   for (i = 0; i < sz; i++,u++) {
395     uu = *u;
396     *(c++) = hex[(uu & 0xf0) >> 4];
397     *(c++) = hex[uu & 0xf];
398   }
399   return c;
400 }
401
402 /* Unpack binary data from a string */
403 SWIGRUNTIME(char *)
404 SWIG_UnpackData(char *c, void *ptr, int sz) {
405   register unsigned char uu = 0;
406   register int d;
407   unsigned char *u = (unsigned char *) ptr;
408   int i;
409   for (i = 0; i < sz; i++, u++) {
410     d = *(c++);
411     if ((d >= '0') && (d <= '9'))
412       uu = ((d - '0') << 4);
413     else if ((d >= 'a') && (d <= 'f'))
414       uu = ((d - ('a'-10)) << 4);
415     d = *(c++);
416     if ((d >= '0') && (d <= '9'))
417       uu |= (d - '0');
418     else if ((d >= 'a') && (d <= 'f'))
419       uu |= (d - ('a'-10));
420     *u = uu;
421   }
422   return c;
423 }
424
425 /* Convert a pointer value */
426 SWIGRUNTIME(int)
427 SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
428   swig_type_info *tc;
429   char  *c;
430   static PyObject *SWIG_this = 0;
431   int    newref = 0;
432   PyObject  *pyobj = 0;
433
434   if (!obj) return 0;
435   if (obj == Py_None) {
436     *ptr = 0;
437     return 0;
438   }
439 #ifdef SWIG_COBJECT_TYPES
440   if (!(PyCObject_Check(obj))) {
441     if (!SWIG_this)
442       SWIG_this = PyString_FromString("this");
443     pyobj = obj;
444     obj = PyObject_GetAttr(obj,SWIG_this);
445     newref = 1;
446     if (!obj) goto type_error;
447     if (!PyCObject_Check(obj)) {
448       Py_DECREF(obj);
449       goto type_error;
450     }
451   }  
452   *ptr = PyCObject_AsVoidPtr(obj);
453   c = (char *) PyCObject_GetDesc(obj);
454   if (newref) Py_DECREF(obj);
455   goto cobject;
456 #else
457   if (!(PyString_Check(obj))) {
458     if (!SWIG_this)
459       SWIG_this = PyString_FromString("this");
460     pyobj = obj;
461     obj = PyObject_GetAttr(obj,SWIG_this);
462     newref = 1;
463     if (!obj) goto type_error;
464     if (!PyString_Check(obj)) {
465       Py_DECREF(obj);
466       goto type_error;
467     }
468   } 
469   c = PyString_AsString(obj);
470   /* Pointer values must start with leading underscore */
471   if (*c != '_') {
472     *ptr = (void *) 0;
473     if (strcmp(c,"NULL") == 0) {
474       if (newref) { Py_DECREF(obj); }
475       return 0;
476     } else {
477       if (newref) { Py_DECREF(obj); }
478       goto type_error;
479     }
480   }
481   c++;
482   c = SWIG_UnpackData(c,ptr,sizeof(void *));
483   if (newref) { Py_DECREF(obj); }
484 #endif
485
486 #ifdef SWIG_COBJECT_TYPES
487 cobject:
488 #endif
489
490   if (ty) {
491     tc = SWIG_TypeCheck(c,ty);
492     if (!tc) goto type_error;
493     *ptr = SWIG_TypeCast(tc,(void*) *ptr);
494   }
495
496   if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
497       PyObject *zero = PyInt_FromLong(0);
498       PyObject_SetAttrString(pyobj,(char*)"thisown",zero);
499       Py_DECREF(zero);
500   }
501   return 0;
502
503 type_error:
504   if (flags & SWIG_POINTER_EXCEPTION) {
505     if (ty) {
506       char *temp = (char *) malloc(64+strlen(ty->name));
507       sprintf(temp,"Type error. Expected %s", ty->name);
508       PyErr_SetString(PyExc_TypeError, temp);
509       free((char *) temp);
510     } else {
511       PyErr_SetString(PyExc_TypeError,"Expected a pointer");
512     }
513   }
514   return -1;
515 }
516
517 /* Convert a packed value value */
518 SWIGRUNTIME(int)
519 SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
520   swig_type_info *tc;
521   char  *c;
522
523   if ((!obj) || (!PyString_Check(obj))) goto type_error;
524   c = PyString_AsString(obj);
525   /* Pointer values must start with leading underscore */
526   if (*c != '_') goto type_error;
527   c++;
528   c = SWIG_UnpackData(c,ptr,sz);
529   if (ty) {
530     tc = SWIG_TypeCheck(c,ty);
531     if (!tc) goto type_error;
532   }
533   return 0;
534
535 type_error:
536
537   if (flags) {
538     if (ty) {
539       char *temp = (char *) malloc(64+strlen(ty->name));
540       sprintf(temp,"Type error. Expected %s", ty->name);
541       PyErr_SetString(PyExc_TypeError, temp);
542       free((char *) temp);
543     } else {
544       PyErr_SetString(PyExc_TypeError,"Expected a pointer");
545     }
546   }
547   return -1;
548 }
549
550 /* Create a new pointer object */
551 SWIGRUNTIME(PyObject *)
552 SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
553   PyObject *robj;
554   if (!ptr) {
555     Py_INCREF(Py_None);
556     return Py_None;
557   }
558 #ifdef SWIG_COBJECT_TYPES
559   robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) type->name, NULL);
560 #else
561   {
562     char result[1024];
563     char *r = result;
564     *(r++) = '_';
565     r = SWIG_PackData(r,&ptr,sizeof(void *));
566     strcpy(r,type->name);
567     robj = PyString_FromString(result);
568   }
569 #endif
570   if (!robj || (robj == Py_None)) return robj;
571   if (type->clientdata) {
572     PyObject *inst;
573     PyObject *args = Py_BuildValue((char*)"(O)", robj);
574     Py_DECREF(robj);
575     inst = PyObject_CallObject((PyObject *) type->clientdata, args);
576     Py_DECREF(args);
577     if (inst) {
578       if (own) {
579         PyObject *n = PyInt_FromLong(1);
580         PyObject_SetAttrString(inst,(char*)"thisown",n);
581         Py_DECREF(n);
582       }
583       robj = inst;
584     }
585   }
586   return robj;
587 }
588
589 SWIGRUNTIME(PyObject *)
590 SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
591   char result[1024];
592   char *r = result;
593   if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
594   *(r++) = '_';
595   r = SWIG_PackData(r,ptr,sz);
596   strcpy(r,type->name);
597   return PyString_FromString(result);
598 }
599
600 /* Install Constants */
601 SWIGRUNTIME(void)
602 SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
603   int i;
604   PyObject *obj;
605   for (i = 0; constants[i].type; i++) {
606     switch(constants[i].type) {
607     case SWIG_PY_INT:
608       obj = PyInt_FromLong(constants[i].lvalue);
609       break;
610     case SWIG_PY_FLOAT:
611       obj = PyFloat_FromDouble(constants[i].dvalue);
612       break;
613     case SWIG_PY_STRING:
614       obj = PyString_FromString((char *) constants[i].pvalue);
615       break;
616     case SWIG_PY_POINTER:
617       obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
618       break;
619     case SWIG_PY_BINARY:
620       obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
621       break;
622     default:
623       obj = 0;
624       break;
625     }
626     if (obj) {
627       PyDict_SetItemString(d,constants[i].name,obj);
628       Py_DECREF(obj);
629     }
630   }
631 }
632
633 #endif
634
635 #ifdef __cplusplus
636 }
637 #endif
638
639
640
641
642
643
644
645
646 /* -------- TYPES TABLE (BEGIN) -------- */
647
648 #define  SWIGTYPE_p_ob__OBScreen swig_types[0] 
649 #define  SWIGTYPE_p_otk__Point swig_types[1] 
650 #define  SWIGTYPE_p_XMapEvent swig_types[2] 
651 #define  SWIGTYPE_p_XUnmapEvent swig_types[3] 
652 #define  SWIGTYPE_p_XColormapEvent swig_types[4] 
653 #define  SWIGTYPE_p_XNoExposeEvent swig_types[5] 
654 #define  SWIGTYPE_p_XGraphicsExposeEvent swig_types[6] 
655 #define  SWIGTYPE_p_XExposeEvent swig_types[7] 
656 #define  SWIGTYPE_p_XFocusChangeEvent swig_types[8] 
657 #define  SWIGTYPE_p_XClientMessageEvent swig_types[9] 
658 #define  SWIGTYPE_p_ob__MouseData swig_types[10] 
659 #define  SWIGTYPE_p_XSelectionClearEvent swig_types[11] 
660 #define  SWIGTYPE_p_otk__Rect swig_types[12] 
661 #define  SWIGTYPE_p_Visual swig_types[13] 
662 #define  SWIGTYPE_p_XResizeRequestEvent swig_types[14] 
663 #define  SWIGTYPE_p_XMapRequestEvent swig_types[15] 
664 #define  SWIGTYPE_p_XConfigureRequestEvent swig_types[16] 
665 #define  SWIGTYPE_p_XCirculateRequestEvent swig_types[17] 
666 #define  SWIGTYPE_p_XGravityEvent swig_types[18] 
667 #define  SWIGTYPE_p_XVisibilityEvent swig_types[19] 
668 #define  SWIGTYPE_p_XPropertyEvent swig_types[20] 
669 #define  SWIGTYPE_p_XSelectionRequestEvent swig_types[21] 
670 #define  SWIGTYPE_p_ob__Cursors swig_types[22] 
671 #define  SWIGTYPE_p_ob__OBFrame swig_types[23] 
672 #define  SWIGTYPE_p_otk__BImageControl swig_types[24] 
673 #define  SWIGTYPE_p_ob__MwmHints swig_types[25] 
674 #define  SWIGTYPE_p_ob__OBWidget swig_types[26] 
675 #define  SWIGTYPE_p_ob__KeyData swig_types[27] 
676 #define  SWIGTYPE_p_XConfigureEvent swig_types[28] 
677 #define  SWIGTYPE_p_XCirculateEvent swig_types[29] 
678 #define  SWIGTYPE_p_XRectangle swig_types[30] 
679 #define  SWIGTYPE_p_std__string swig_types[31] 
680 #define  SWIGTYPE_p_XCrossingEvent swig_types[32] 
681 #define  SWIGTYPE_p_Display swig_types[33] 
682 #define  SWIGTYPE_p_otk__OBDisplay swig_types[34] 
683 #define  SWIGTYPE_p_XMappingEvent swig_types[35] 
684 #define  SWIGTYPE_p_otk__Style swig_types[36] 
685 #define  SWIGTYPE_p_otk__OtkEventHandler swig_types[37] 
686 #define  SWIGTYPE_p_XReparentEvent swig_types[38] 
687 #define  SWIGTYPE_p_otk__OtkEventDispatcher swig_types[39] 
688 #define  SWIGTYPE_p_otk__BGCCache swig_types[40] 
689 #define  SWIGTYPE_p_ob__OBBindings swig_types[41] 
690 #define  SWIGTYPE_p_ob__Openbox swig_types[42] 
691 #define  SWIGTYPE_p_ob__OBActions swig_types[43] 
692 #define  SWIGTYPE_p_XEvent swig_types[44] 
693 #define  SWIGTYPE_p_XTextProperty swig_types[45] 
694 #define  SWIGTYPE_p_otk__OBProperty swig_types[46] 
695 #define  SWIGTYPE_p_PyObject swig_types[47] 
696 #define  SWIGTYPE_p_otk__ScreenInfo swig_types[48] 
697 #define  SWIGTYPE_p_ob__OBClient swig_types[49] 
698 #define  SWIGTYPE_p_ob__EventData swig_types[50] 
699 #define  SWIGTYPE_p_XCreateWindowEvent swig_types[51] 
700 #define  SWIGTYPE_p_XDestroyWindowEvent swig_types[52] 
701 #define  SWIGTYPE_p_otk__OBProperty__StringVect swig_types[53] 
702 #define  SWIGTYPE_p_XKeyEvent swig_types[54] 
703 #define  SWIGTYPE_p_otk__Strut swig_types[55] 
704 #define  SWIGTYPE_p_unsigned_long swig_types[56] 
705 #define  SWIGTYPE_p_p_unsigned_long swig_types[57] 
706 #define  SWIGTYPE_p_XMotionEvent swig_types[58] 
707 #define  SWIGTYPE_p_XButtonEvent swig_types[59] 
708 #define  SWIGTYPE_p_XSelectionEvent swig_types[60] 
709 #define  SWIGTYPE_p_otk__OBTimerQueueManager swig_types[61] 
710 static swig_type_info *swig_types[63];
711
712 /* -------- TYPES TABLE (END) -------- */
713
714
715 /*-----------------------------------------------
716               @(target):= _openbox.so
717   ------------------------------------------------*/
718 #define SWIG_init    init_openbox
719
720 #define SWIG_name    "_openbox"
721
722 #ifdef HAVE_CONFIG_H
723 #  include "../config.h"
724 #endif
725
726 #include "openbox.hh"
727 #include "screen.hh"
728 #include "client.hh"
729 #include "bindings.hh"
730 #include "actions.hh"
731 #include "python.hh"
732 #include "otk/otk.hh"
733
734
735 #define  SWIG_MemoryError    1
736 #define  SWIG_IOError        2
737 #define  SWIG_RuntimeError   3
738 #define  SWIG_IndexError     4
739 #define  SWIG_TypeError      5
740 #define  SWIG_DivisionByZero 6
741 #define  SWIG_OverflowError  7
742 #define  SWIG_SyntaxError    8
743 #define  SWIG_ValueError     9
744 #define  SWIG_SystemError   10
745 #define  SWIG_UnknownError  99
746
747
748 static void _SWIG_exception(int code, const char *msg) {
749   switch(code) {
750   case SWIG_MemoryError:
751     PyErr_SetString(PyExc_MemoryError,msg);
752     break;
753   case SWIG_IOError:
754     PyErr_SetString(PyExc_IOError,msg);
755     break;
756   case SWIG_RuntimeError:
757     PyErr_SetString(PyExc_RuntimeError,msg);
758     break;
759   case SWIG_IndexError:
760     PyErr_SetString(PyExc_IndexError,msg);
761     break;
762   case SWIG_TypeError:
763     PyErr_SetString(PyExc_TypeError,msg);
764     break;
765   case SWIG_DivisionByZero:
766     PyErr_SetString(PyExc_ZeroDivisionError,msg);
767     break;
768   case SWIG_OverflowError:
769     PyErr_SetString(PyExc_OverflowError,msg);
770     break;
771   case SWIG_SyntaxError:
772     PyErr_SetString(PyExc_SyntaxError,msg);
773     break;
774   case SWIG_ValueError:
775     PyErr_SetString(PyExc_ValueError,msg);
776     break;
777   case SWIG_SystemError:
778     PyErr_SetString(PyExc_SystemError,msg);
779     break;
780   default:
781     PyErr_SetString(PyExc_RuntimeError,msg);
782     break;
783   }
784 }
785
786 #define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
787
788
789 #include <string>
790
791
792 #include <string>
793
794 static PyObject* SwigInt_FromBool(bool b) {
795     return PyInt_FromLong(b ? 1L : 0L);
796 }
797 static double SwigNumber_Check(PyObject* o) {
798     return PyFloat_Check(o) || PyInt_Check(o);
799 }
800 static double SwigNumber_AsDouble(PyObject* o) {
801     return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o)));
802 }
803 static PyObject* SwigString_FromString(const std::string& s) {
804     return PyString_FromString(s.c_str());
805 }
806 static std::string SwigString_AsString(PyObject* o) {
807     return std::string(PyString_AsString(o));
808 }
809
810
811 #include <vector>
812 #include <algorithm>
813 #include <stdexcept>
814
815
816   ob::Openbox *Openbox_instance() { return ob::Openbox::instance; }
817
818
819 namespace ob {
820 void python_callback(PyObject *func, MouseData *data)
821 {
822   PyObject *arglist;
823   PyObject *result;
824
825   arglist = Py_BuildValue("(O)", SWIG_NewPointerObj((void *) data,
826                                                     SWIGTYPE_p_ob__MouseData,
827                                                     0));
828   
829   // call the callback
830   result = PyEval_CallObject(func, arglist);
831   if (!result || PyErr_Occurred()) {
832     // an exception occured in the script, display it
833     PyErr_Print();
834   }
835
836   Py_XDECREF(result);
837   Py_DECREF(arglist);
838 }
839
840 void python_callback(PyObject *func, EventData *data)
841 {
842   PyObject *arglist;
843   PyObject *result;
844
845   arglist = Py_BuildValue("(O)", SWIG_NewPointerObj((void *) data,
846                                                     SWIGTYPE_p_ob__EventData,
847                                                     0));
848   
849   // call the callback
850   result = PyEval_CallObject(func, arglist);
851   if (!result || PyErr_Occurred()) {
852     // an exception occured in the script, display it
853     PyErr_Print();
854   }
855
856   Py_XDECREF(result);
857   Py_DECREF(arglist);
858 }
859
860 void python_callback(PyObject *func, KeyData *data)
861 {
862   PyObject *arglist;
863   PyObject *result;
864
865   arglist = Py_BuildValue("(O)", SWIG_NewPointerObj((void *) data,
866                                                     SWIGTYPE_p_ob__KeyData,
867                                                     0));
868   
869   // call the callback
870   result = PyEval_CallObject(func, arglist);
871   if (!result || PyErr_Occurred()) {
872     // an exception occured in the script, display it
873     PyErr_Print();
874   }
875
876   Py_XDECREF(result);
877   Py_DECREF(arglist);
878 }
879
880 }
881
882
883   #include <iterator>
884
885
886   Display *OBDisplay_display() { return otk::OBDisplay::display; }
887
888 ob::OBClient *ob_OBScreen_client(ob::OBScreen *self,int i){
889     if (i >= (int)self->clients.size())
890       return NULL;
891     ob::OBClient::List::iterator it = self->clients.begin();
892     std::advance(it,i);
893     return *it;
894   }
895 int ob_OBScreen_clientCount(ob::OBScreen const *self){
896     return (int) self->clients.size();
897   }
898 #ifdef __cplusplus
899 extern "C" {
900 #endif
901 static PyObject *_wrap_Openbox_instance(PyObject *self, PyObject *args) {
902     PyObject *resultobj;
903     ob::Openbox *result;
904     
905     if(!PyArg_ParseTuple(args,(char *)":Openbox_instance")) goto fail;
906     result = (ob::Openbox *)Openbox_instance();
907     
908     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Openbox, 0);
909     return resultobj;
910     fail:
911     return NULL;
912 }
913
914
915 static PyObject *_wrap_OBDisplay_display(PyObject *self, PyObject *args) {
916     PyObject *resultobj;
917     Display *result;
918     
919     if(!PyArg_ParseTuple(args,(char *)":OBDisplay_display")) goto fail;
920     result = (Display *)OBDisplay_display();
921     
922     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Display, 0);
923     return resultobj;
924     fail:
925     return NULL;
926 }
927
928
929 static PyObject *_wrap_OBDisplay_initialize(PyObject *self, PyObject *args) {
930     PyObject *resultobj;
931     char *arg1 ;
932     
933     if(!PyArg_ParseTuple(args,(char *)"s:OBDisplay_initialize",&arg1)) goto fail;
934     otk::OBDisplay::initialize(arg1);
935     
936     Py_INCREF(Py_None); resultobj = Py_None;
937     return resultobj;
938     fail:
939     return NULL;
940 }
941
942
943 static PyObject *_wrap_OBDisplay_destroy(PyObject *self, PyObject *args) {
944     PyObject *resultobj;
945     
946     if(!PyArg_ParseTuple(args,(char *)":OBDisplay_destroy")) goto fail;
947     otk::OBDisplay::destroy();
948     
949     Py_INCREF(Py_None); resultobj = Py_None;
950     return resultobj;
951     fail:
952     return NULL;
953 }
954
955
956 static PyObject *_wrap_OBDisplay_gcCache(PyObject *self, PyObject *args) {
957     PyObject *resultobj;
958     otk::BGCCache *result;
959     
960     if(!PyArg_ParseTuple(args,(char *)":OBDisplay_gcCache")) goto fail;
961     result = (otk::BGCCache *)otk::OBDisplay::gcCache();
962     
963     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BGCCache, 0);
964     return resultobj;
965     fail:
966     return NULL;
967 }
968
969
970 static PyObject *_wrap_OBDisplay_screenInfo(PyObject *self, PyObject *args) {
971     PyObject *resultobj;
972     int arg1 ;
973     otk::ScreenInfo *result;
974     
975     if(!PyArg_ParseTuple(args,(char *)"i:OBDisplay_screenInfo",&arg1)) goto fail;
976     result = (otk::ScreenInfo *)otk::OBDisplay::screenInfo(arg1);
977     
978     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0);
979     return resultobj;
980     fail:
981     return NULL;
982 }
983
984
985 static PyObject *_wrap_OBDisplay_findScreen(PyObject *self, PyObject *args) {
986     PyObject *resultobj;
987     Window arg1 ;
988     otk::ScreenInfo *result;
989     PyObject * obj0  = 0 ;
990     
991     if(!PyArg_ParseTuple(args,(char *)"O:OBDisplay_findScreen",&obj0)) goto fail;
992     arg1 = (Window) PyInt_AsLong(obj0);
993     if (PyErr_Occurred()) SWIG_fail;
994     result = (otk::ScreenInfo *)otk::OBDisplay::findScreen(arg1);
995     
996     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0);
997     return resultobj;
998     fail:
999     return NULL;
1000 }
1001
1002
1003 static PyObject *_wrap_OBDisplay_xkb(PyObject *self, PyObject *args) {
1004     PyObject *resultobj;
1005     bool result;
1006     
1007     if(!PyArg_ParseTuple(args,(char *)":OBDisplay_xkb")) goto fail;
1008     result = (bool)otk::OBDisplay::xkb();
1009     
1010     resultobj = PyInt_FromLong((long)result);
1011     return resultobj;
1012     fail:
1013     return NULL;
1014 }
1015
1016
1017 static PyObject *_wrap_OBDisplay_xkbEventBase(PyObject *self, PyObject *args) {
1018     PyObject *resultobj;
1019     int result;
1020     
1021     if(!PyArg_ParseTuple(args,(char *)":OBDisplay_xkbEventBase")) goto fail;
1022     result = (int)otk::OBDisplay::xkbEventBase();
1023     
1024     resultobj = PyInt_FromLong((long)result);
1025     return resultobj;
1026     fail:
1027     return NULL;
1028 }
1029
1030
1031 static PyObject *_wrap_OBDisplay_shape(PyObject *self, PyObject *args) {
1032     PyObject *resultobj;
1033     bool result;
1034     
1035     if(!PyArg_ParseTuple(args,(char *)":OBDisplay_shape")) goto fail;
1036     result = (bool)otk::OBDisplay::shape();
1037     
1038     resultobj = PyInt_FromLong((long)result);
1039     return resultobj;
1040     fail:
1041     return NULL;
1042 }
1043
1044
1045 static PyObject *_wrap_OBDisplay_shapeEventBase(PyObject *self, PyObject *args) {
1046     PyObject *resultobj;
1047     int result;
1048     
1049     if(!PyArg_ParseTuple(args,(char *)":OBDisplay_shapeEventBase")) goto fail;
1050     result = (int)otk::OBDisplay::shapeEventBase();
1051     
1052     resultobj = PyInt_FromLong((long)result);
1053     return resultobj;
1054     fail:
1055     return NULL;
1056 }
1057
1058
1059 static PyObject *_wrap_OBDisplay_xinerama(PyObject *self, PyObject *args) {
1060     PyObject *resultobj;
1061     bool result;
1062     
1063     if(!PyArg_ParseTuple(args,(char *)":OBDisplay_xinerama")) goto fail;
1064     result = (bool)otk::OBDisplay::xinerama();
1065     
1066     resultobj = PyInt_FromLong((long)result);
1067     return resultobj;
1068     fail:
1069     return NULL;
1070 }
1071
1072
1073 static PyObject *_wrap_OBDisplay_numLockMask(PyObject *self, PyObject *args) {
1074     PyObject *resultobj;
1075     unsigned int result;
1076     
1077     if(!PyArg_ParseTuple(args,(char *)":OBDisplay_numLockMask")) goto fail;
1078     result = (unsigned int)otk::OBDisplay::numLockMask();
1079     
1080     resultobj = PyInt_FromLong((long)result);
1081     return resultobj;
1082     fail:
1083     return NULL;
1084 }
1085
1086
1087 static PyObject *_wrap_OBDisplay_scrollLockMask(PyObject *self, PyObject *args) {
1088     PyObject *resultobj;
1089     unsigned int result;
1090     
1091     if(!PyArg_ParseTuple(args,(char *)":OBDisplay_scrollLockMask")) goto fail;
1092     result = (unsigned int)otk::OBDisplay::scrollLockMask();
1093     
1094     resultobj = PyInt_FromLong((long)result);
1095     return resultobj;
1096     fail:
1097     return NULL;
1098 }
1099
1100
1101 static PyObject *_wrap_OBDisplay_grab(PyObject *self, PyObject *args) {
1102     PyObject *resultobj;
1103     
1104     if(!PyArg_ParseTuple(args,(char *)":OBDisplay_grab")) goto fail;
1105     otk::OBDisplay::grab();
1106     
1107     Py_INCREF(Py_None); resultobj = Py_None;
1108     return resultobj;
1109     fail:
1110     return NULL;
1111 }
1112
1113
1114 static PyObject *_wrap_OBDisplay_ungrab(PyObject *self, PyObject *args) {
1115     PyObject *resultobj;
1116     
1117     if(!PyArg_ParseTuple(args,(char *)":OBDisplay_ungrab")) goto fail;
1118     otk::OBDisplay::ungrab();
1119     
1120     Py_INCREF(Py_None); resultobj = Py_None;
1121     return resultobj;
1122     fail:
1123     return NULL;
1124 }
1125
1126
1127 static PyObject *_wrap_OBDisplay_grabButton(PyObject *self, PyObject *args) {
1128     PyObject *resultobj;
1129     unsigned int arg1 ;
1130     unsigned int arg2 ;
1131     Window arg3 ;
1132     bool arg4 ;
1133     unsigned int arg5 ;
1134     int arg6 ;
1135     int arg7 ;
1136     Window arg8 ;
1137     Cursor arg9 ;
1138     bool arg10 ;
1139     PyObject * obj0  = 0 ;
1140     PyObject * obj1  = 0 ;
1141     PyObject * obj2  = 0 ;
1142     PyObject * obj3  = 0 ;
1143     PyObject * obj4  = 0 ;
1144     PyObject * obj7  = 0 ;
1145     PyObject * obj8  = 0 ;
1146     PyObject * obj9  = 0 ;
1147     
1148     if(!PyArg_ParseTuple(args,(char *)"OOOOOiiOOO:OBDisplay_grabButton",&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7,&obj7,&obj8,&obj9)) goto fail;
1149     arg1 = (unsigned int) PyInt_AsLong(obj0);
1150     if (PyErr_Occurred()) SWIG_fail;
1151     arg2 = (unsigned int) PyInt_AsLong(obj1);
1152     if (PyErr_Occurred()) SWIG_fail;
1153     arg3 = (Window) PyInt_AsLong(obj2);
1154     if (PyErr_Occurred()) SWIG_fail;
1155     arg4 = (bool) PyInt_AsLong(obj3);
1156     if (PyErr_Occurred()) SWIG_fail;
1157     arg5 = (unsigned int) PyInt_AsLong(obj4);
1158     if (PyErr_Occurred()) SWIG_fail;
1159     arg8 = (Window) PyInt_AsLong(obj7);
1160     if (PyErr_Occurred()) SWIG_fail;
1161     arg9 = (Cursor) PyInt_AsLong(obj8);
1162     if (PyErr_Occurred()) SWIG_fail;
1163     arg10 = (bool) PyInt_AsLong(obj9);
1164     if (PyErr_Occurred()) SWIG_fail;
1165     otk::OBDisplay::grabButton(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
1166     
1167     Py_INCREF(Py_None); resultobj = Py_None;
1168     return resultobj;
1169     fail:
1170     return NULL;
1171 }
1172
1173
1174 static PyObject *_wrap_OBDisplay_ungrabButton(PyObject *self, PyObject *args) {
1175     PyObject *resultobj;
1176     unsigned int arg1 ;
1177     unsigned int arg2 ;
1178     Window arg3 ;
1179     PyObject * obj0  = 0 ;
1180     PyObject * obj1  = 0 ;
1181     PyObject * obj2  = 0 ;
1182     
1183     if(!PyArg_ParseTuple(args,(char *)"OOO:OBDisplay_ungrabButton",&obj0,&obj1,&obj2)) goto fail;
1184     arg1 = (unsigned int) PyInt_AsLong(obj0);
1185     if (PyErr_Occurred()) SWIG_fail;
1186     arg2 = (unsigned int) PyInt_AsLong(obj1);
1187     if (PyErr_Occurred()) SWIG_fail;
1188     arg3 = (Window) PyInt_AsLong(obj2);
1189     if (PyErr_Occurred()) SWIG_fail;
1190     otk::OBDisplay::ungrabButton(arg1,arg2,arg3);
1191     
1192     Py_INCREF(Py_None); resultobj = Py_None;
1193     return resultobj;
1194     fail:
1195     return NULL;
1196 }
1197
1198
1199 static PyObject *_wrap_OBDisplay_grabKey(PyObject *self, PyObject *args) {
1200     PyObject *resultobj;
1201     unsigned int arg1 ;
1202     unsigned int arg2 ;
1203     Window arg3 ;
1204     bool arg4 ;
1205     int arg5 ;
1206     int arg6 ;
1207     bool arg7 ;
1208     PyObject * obj0  = 0 ;
1209     PyObject * obj1  = 0 ;
1210     PyObject * obj2  = 0 ;
1211     PyObject * obj3  = 0 ;
1212     PyObject * obj6  = 0 ;
1213     
1214     if(!PyArg_ParseTuple(args,(char *)"OOOOiiO:OBDisplay_grabKey",&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail;
1215     arg1 = (unsigned int) PyInt_AsLong(obj0);
1216     if (PyErr_Occurred()) SWIG_fail;
1217     arg2 = (unsigned int) PyInt_AsLong(obj1);
1218     if (PyErr_Occurred()) SWIG_fail;
1219     arg3 = (Window) PyInt_AsLong(obj2);
1220     if (PyErr_Occurred()) SWIG_fail;
1221     arg4 = (bool) PyInt_AsLong(obj3);
1222     if (PyErr_Occurred()) SWIG_fail;
1223     arg7 = (bool) PyInt_AsLong(obj6);
1224     if (PyErr_Occurred()) SWIG_fail;
1225     otk::OBDisplay::grabKey(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
1226     
1227     Py_INCREF(Py_None); resultobj = Py_None;
1228     return resultobj;
1229     fail:
1230     return NULL;
1231 }
1232
1233
1234 static PyObject *_wrap_OBDisplay_ungrabKey(PyObject *self, PyObject *args) {
1235     PyObject *resultobj;
1236     unsigned int arg1 ;
1237     unsigned int arg2 ;
1238     Window arg3 ;
1239     PyObject * obj0  = 0 ;
1240     PyObject * obj1  = 0 ;
1241     PyObject * obj2  = 0 ;
1242     
1243     if(!PyArg_ParseTuple(args,(char *)"OOO:OBDisplay_ungrabKey",&obj0,&obj1,&obj2)) goto fail;
1244     arg1 = (unsigned int) PyInt_AsLong(obj0);
1245     if (PyErr_Occurred()) SWIG_fail;
1246     arg2 = (unsigned int) PyInt_AsLong(obj1);
1247     if (PyErr_Occurred()) SWIG_fail;
1248     arg3 = (Window) PyInt_AsLong(obj2);
1249     if (PyErr_Occurred()) SWIG_fail;
1250     otk::OBDisplay::ungrabKey(arg1,arg2,arg3);
1251     
1252     Py_INCREF(Py_None); resultobj = Py_None;
1253     return resultobj;
1254     fail:
1255     return NULL;
1256 }
1257
1258
1259 static PyObject * OBDisplay_swigregister(PyObject *self, PyObject *args) {
1260     PyObject *obj;
1261     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1262     SWIG_TypeClientData(SWIGTYPE_p_otk__OBDisplay, obj);
1263     Py_INCREF(obj);
1264     return Py_BuildValue((char *)"");
1265 }
1266 static PyObject *_wrap_new_Point__SWIG_0(PyObject *self, PyObject *args) {
1267     PyObject *resultobj;
1268     otk::Point *result;
1269     
1270     if(!PyArg_ParseTuple(args,(char *)":new_Point")) goto fail;
1271     result = (otk::Point *)new otk::Point();
1272     
1273     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Point, 1);
1274     return resultobj;
1275     fail:
1276     return NULL;
1277 }
1278
1279
1280 static PyObject *_wrap_new_Point__SWIG_1(PyObject *self, PyObject *args) {
1281     PyObject *resultobj;
1282     int arg1 ;
1283     int arg2 ;
1284     otk::Point *result;
1285     
1286     if(!PyArg_ParseTuple(args,(char *)"ii:new_Point",&arg1,&arg2)) goto fail;
1287     result = (otk::Point *)new otk::Point(arg1,arg2);
1288     
1289     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Point, 1);
1290     return resultobj;
1291     fail:
1292     return NULL;
1293 }
1294
1295
1296 static PyObject *_wrap_new_Point(PyObject *self, PyObject *args) {
1297     int argc;
1298     PyObject *argv[3];
1299     int ii;
1300     
1301     argc = PyObject_Length(args);
1302     for (ii = 0; (ii < argc) && (ii < 2); ii++) {
1303         argv[ii] = PyTuple_GetItem(args,ii);
1304     }
1305     if (argc == 0) {
1306         return _wrap_new_Point__SWIG_0(self,args);
1307     }
1308     if (argc == 2) {
1309         int _v;
1310         {
1311             _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
1312         }
1313         if (_v) {
1314             {
1315                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1316             }
1317             if (_v) {
1318                 return _wrap_new_Point__SWIG_1(self,args);
1319             }
1320         }
1321     }
1322     
1323     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Point'");
1324     return NULL;
1325 }
1326
1327
1328 static PyObject *_wrap_Point_setX(PyObject *self, PyObject *args) {
1329     PyObject *resultobj;
1330     otk::Point *arg1 = (otk::Point *) 0 ;
1331     int arg2 ;
1332     PyObject * obj0  = 0 ;
1333     
1334     if(!PyArg_ParseTuple(args,(char *)"Oi:Point_setX",&obj0,&arg2)) goto fail;
1335     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1336     (arg1)->setX(arg2);
1337     
1338     Py_INCREF(Py_None); resultobj = Py_None;
1339     return resultobj;
1340     fail:
1341     return NULL;
1342 }
1343
1344
1345 static PyObject *_wrap_Point_x(PyObject *self, PyObject *args) {
1346     PyObject *resultobj;
1347     otk::Point *arg1 = (otk::Point *) 0 ;
1348     int result;
1349     PyObject * obj0  = 0 ;
1350     
1351     if(!PyArg_ParseTuple(args,(char *)"O:Point_x",&obj0)) goto fail;
1352     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1353     result = (int)((otk::Point const *)arg1)->x();
1354     
1355     resultobj = PyInt_FromLong((long)result);
1356     return resultobj;
1357     fail:
1358     return NULL;
1359 }
1360
1361
1362 static PyObject *_wrap_Point_setY(PyObject *self, PyObject *args) {
1363     PyObject *resultobj;
1364     otk::Point *arg1 = (otk::Point *) 0 ;
1365     int arg2 ;
1366     PyObject * obj0  = 0 ;
1367     
1368     if(!PyArg_ParseTuple(args,(char *)"Oi:Point_setY",&obj0,&arg2)) goto fail;
1369     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1370     (arg1)->setY(arg2);
1371     
1372     Py_INCREF(Py_None); resultobj = Py_None;
1373     return resultobj;
1374     fail:
1375     return NULL;
1376 }
1377
1378
1379 static PyObject *_wrap_Point_y(PyObject *self, PyObject *args) {
1380     PyObject *resultobj;
1381     otk::Point *arg1 = (otk::Point *) 0 ;
1382     int result;
1383     PyObject * obj0  = 0 ;
1384     
1385     if(!PyArg_ParseTuple(args,(char *)"O:Point_y",&obj0)) goto fail;
1386     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1387     result = (int)((otk::Point const *)arg1)->y();
1388     
1389     resultobj = PyInt_FromLong((long)result);
1390     return resultobj;
1391     fail:
1392     return NULL;
1393 }
1394
1395
1396 static PyObject *_wrap_Point_setPoint(PyObject *self, PyObject *args) {
1397     PyObject *resultobj;
1398     otk::Point *arg1 = (otk::Point *) 0 ;
1399     int arg2 ;
1400     int arg3 ;
1401     PyObject * obj0  = 0 ;
1402     
1403     if(!PyArg_ParseTuple(args,(char *)"Oii:Point_setPoint",&obj0,&arg2,&arg3)) goto fail;
1404     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1405     (arg1)->setPoint(arg2,arg3);
1406     
1407     Py_INCREF(Py_None); resultobj = Py_None;
1408     return resultobj;
1409     fail:
1410     return NULL;
1411 }
1412
1413
1414 static PyObject * Point_swigregister(PyObject *self, PyObject *args) {
1415     PyObject *obj;
1416     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1417     SWIG_TypeClientData(SWIGTYPE_p_otk__Point, obj);
1418     Py_INCREF(obj);
1419     return Py_BuildValue((char *)"");
1420 }
1421 static PyObject *_wrap_new_OBProperty(PyObject *self, PyObject *args) {
1422     PyObject *resultobj;
1423     otk::OBProperty *result;
1424     
1425     if(!PyArg_ParseTuple(args,(char *)":new_OBProperty")) goto fail;
1426     result = (otk::OBProperty *)new otk::OBProperty();
1427     
1428     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBProperty, 1);
1429     return resultobj;
1430     fail:
1431     return NULL;
1432 }
1433
1434
1435 static PyObject *_wrap_delete_OBProperty(PyObject *self, PyObject *args) {
1436     PyObject *resultobj;
1437     otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
1438     PyObject * obj0  = 0 ;
1439     
1440     if(!PyArg_ParseTuple(args,(char *)"O:delete_OBProperty",&obj0)) goto fail;
1441     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1442     delete arg1;
1443     
1444     Py_INCREF(Py_None); resultobj = Py_None;
1445     return resultobj;
1446     fail:
1447     return NULL;
1448 }
1449
1450
1451 static PyObject *_wrap_OBProperty_set__SWIG_0(PyObject *self, PyObject *args) {
1452     PyObject *resultobj;
1453     otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
1454     Window arg2 ;
1455     int arg3 ;
1456     int arg4 ;
1457     unsigned long arg5 ;
1458     PyObject * obj0  = 0 ;
1459     PyObject * obj1  = 0 ;
1460     PyObject * obj4  = 0 ;
1461     
1462     if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
1463     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1464     arg2 = (Window) PyInt_AsLong(obj1);
1465     if (PyErr_Occurred()) SWIG_fail;
1466     arg5 = (unsigned long) PyInt_AsLong(obj4);
1467     if (PyErr_Occurred()) SWIG_fail;
1468     ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5);
1469     
1470     Py_INCREF(Py_None); resultobj = Py_None;
1471     return resultobj;
1472     fail:
1473     return NULL;
1474 }
1475
1476
1477 static PyObject *_wrap_OBProperty_set__SWIG_1(PyObject *self, PyObject *args) {
1478     PyObject *resultobj;
1479     otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
1480     Window arg2 ;
1481     int arg3 ;
1482     int arg4 ;
1483     unsigned long *arg5 ;
1484     int arg6 ;
1485     PyObject * obj0  = 0 ;
1486     PyObject * obj1  = 0 ;
1487     PyObject * obj4  = 0 ;
1488     
1489     if(!PyArg_ParseTuple(args,(char *)"OOiiOi:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4,&arg6)) goto fail;
1490     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1491     arg2 = (Window) PyInt_AsLong(obj1);
1492     if (PyErr_Occurred()) SWIG_fail;
1493     if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1494     ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5,arg6);
1495     
1496     Py_INCREF(Py_None); resultobj = Py_None;
1497     return resultobj;
1498     fail:
1499     return NULL;
1500 }
1501
1502
1503 static PyObject *_wrap_OBProperty_set__SWIG_2(PyObject *self, PyObject *args) {
1504     PyObject *resultobj;
1505     otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
1506     Window arg2 ;
1507     int arg3 ;
1508     int arg4 ;
1509     std::string *arg5 = 0 ;
1510     std::string temp5 ;
1511     PyObject * obj0  = 0 ;
1512     PyObject * obj1  = 0 ;
1513     PyObject * obj4  = 0 ;
1514     
1515     if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
1516     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1517     arg2 = (Window) PyInt_AsLong(obj1);
1518     if (PyErr_Occurred()) SWIG_fail;
1519     {
1520         if (PyString_Check(obj4)) {
1521             temp5 = std::string(PyString_AsString(obj4));
1522             arg5 = &temp5;
1523         }else {
1524             SWIG_exception(SWIG_TypeError, "string expected");
1525         }
1526     }
1527     ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,(std::string const &)*arg5);
1528     
1529     Py_INCREF(Py_None); resultobj = Py_None;
1530     return resultobj;
1531     fail:
1532     return NULL;
1533 }
1534
1535
1536 static PyObject *_wrap_OBProperty_set__SWIG_3(PyObject *self, PyObject *args) {
1537     PyObject *resultobj;
1538     otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
1539     Window arg2 ;
1540     int arg3 ;
1541     int arg4 ;
1542     otk::OBProperty::StringVect *arg5 = 0 ;
1543     PyObject * obj0  = 0 ;
1544     PyObject * obj1  = 0 ;
1545     PyObject * obj4  = 0 ;
1546     
1547     if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
1548     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1549     arg2 = (Window) PyInt_AsLong(obj1);
1550     if (PyErr_Occurred()) SWIG_fail;
1551     if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_otk__OBProperty__StringVect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1552     if (arg5 == NULL) {
1553         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
1554     }
1555     ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,(otk::OBProperty::StringVect const &)*arg5);
1556     
1557     Py_INCREF(Py_None); resultobj = Py_None;
1558     return resultobj;
1559     fail:
1560     return NULL;
1561 }
1562
1563
1564 static PyObject *_wrap_OBProperty_set(PyObject *self, PyObject *args) {
1565     int argc;
1566     PyObject *argv[7];
1567     int ii;
1568     
1569     argc = PyObject_Length(args);
1570     for (ii = 0; (ii < argc) && (ii < 6); ii++) {
1571         argv[ii] = PyTuple_GetItem(args,ii);
1572     }
1573     if (argc == 5) {
1574         int _v;
1575         {
1576             void *ptr;
1577             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
1578                 _v = 0;
1579                 PyErr_Clear();
1580             }else {
1581                 _v = 1;
1582             }
1583         }
1584         if (_v) {
1585             {
1586                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1587             }
1588             if (_v) {
1589                 {
1590                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1591                 }
1592                 if (_v) {
1593                     {
1594                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1595                     }
1596                     if (_v) {
1597                         {
1598                             void *ptr;
1599                             if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_otk__OBProperty__StringVect, 0) == -1) {
1600                                 _v = 0;
1601                                 PyErr_Clear();
1602                             }else {
1603                                 _v = 1;
1604                             }
1605                         }
1606                         if (_v) {
1607                             return _wrap_OBProperty_set__SWIG_3(self,args);
1608                         }
1609                     }
1610                 }
1611             }
1612         }
1613     }
1614     if (argc == 5) {
1615         int _v;
1616         {
1617             void *ptr;
1618             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
1619                 _v = 0;
1620                 PyErr_Clear();
1621             }else {
1622                 _v = 1;
1623             }
1624         }
1625         if (_v) {
1626             {
1627                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1628             }
1629             if (_v) {
1630                 {
1631                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1632                 }
1633                 if (_v) {
1634                     {
1635                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1636                     }
1637                     if (_v) {
1638                         {
1639                             _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
1640                         }
1641                         if (_v) {
1642                             return _wrap_OBProperty_set__SWIG_0(self,args);
1643                         }
1644                     }
1645                 }
1646             }
1647         }
1648     }
1649     if (argc == 5) {
1650         int _v;
1651         {
1652             void *ptr;
1653             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
1654                 _v = 0;
1655                 PyErr_Clear();
1656             }else {
1657                 _v = 1;
1658             }
1659         }
1660         if (_v) {
1661             {
1662                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1663             }
1664             if (_v) {
1665                 {
1666                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1667                 }
1668                 if (_v) {
1669                     {
1670                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1671                     }
1672                     if (_v) {
1673                         {
1674                             _v = PyString_Check(argv[4]) ? 1 : 0;
1675                         }
1676                         if (_v) {
1677                             return _wrap_OBProperty_set__SWIG_2(self,args);
1678                         }
1679                     }
1680                 }
1681             }
1682         }
1683     }
1684     if (argc == 6) {
1685         int _v;
1686         {
1687             void *ptr;
1688             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
1689                 _v = 0;
1690                 PyErr_Clear();
1691             }else {
1692                 _v = 1;
1693             }
1694         }
1695         if (_v) {
1696             {
1697                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1698             }
1699             if (_v) {
1700                 {
1701                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1702                 }
1703                 if (_v) {
1704                     {
1705                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1706                     }
1707                     if (_v) {
1708                         {
1709                             void *ptr;
1710                             if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
1711                                 _v = 0;
1712                                 PyErr_Clear();
1713                             }else {
1714                                 _v = 1;
1715                             }
1716                         }
1717                         if (_v) {
1718                             {
1719                                 _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
1720                             }
1721                             if (_v) {
1722                                 return _wrap_OBProperty_set__SWIG_1(self,args);
1723                             }
1724                         }
1725                     }
1726                 }
1727             }
1728         }
1729     }
1730     
1731     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OBProperty_set'");
1732     return NULL;
1733 }
1734
1735
1736 static PyObject *_wrap_OBProperty_get__SWIG_0(PyObject *self, PyObject *args) {
1737     PyObject *resultobj;
1738     otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
1739     Window arg2 ;
1740     int arg3 ;
1741     int arg4 ;
1742     unsigned long *arg5 = (unsigned long *) 0 ;
1743     unsigned long **arg6 = (unsigned long **) 0 ;
1744     bool result;
1745     PyObject * obj0  = 0 ;
1746     PyObject * obj1  = 0 ;
1747     PyObject * obj4  = 0 ;
1748     PyObject * obj5  = 0 ;
1749     
1750     if(!PyArg_ParseTuple(args,(char *)"OOiiOO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4,&obj5)) goto fail;
1751     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1752     arg2 = (Window) PyInt_AsLong(obj1);
1753     if (PyErr_Occurred()) SWIG_fail;
1754     if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1755     if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1756     result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5,arg6);
1757     
1758     resultobj = PyInt_FromLong((long)result);
1759     return resultobj;
1760     fail:
1761     return NULL;
1762 }
1763
1764
1765 static PyObject *_wrap_OBProperty_get__SWIG_1(PyObject *self, PyObject *args) {
1766     PyObject *resultobj;
1767     otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
1768     Window arg2 ;
1769     int arg3 ;
1770     int arg4 ;
1771     unsigned long *arg5 = (unsigned long *) 0 ;
1772     bool result;
1773     PyObject * obj0  = 0 ;
1774     PyObject * obj1  = 0 ;
1775     PyObject * obj4  = 0 ;
1776     
1777     if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
1778     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1779     arg2 = (Window) PyInt_AsLong(obj1);
1780     if (PyErr_Occurred()) SWIG_fail;
1781     if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1782     result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5);
1783     
1784     resultobj = PyInt_FromLong((long)result);
1785     return resultobj;
1786     fail:
1787     return NULL;
1788 }
1789
1790
1791 static PyObject *_wrap_OBProperty_get__SWIG_2(PyObject *self, PyObject *args) {
1792     PyObject *resultobj;
1793     otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
1794     Window arg2 ;
1795     int arg3 ;
1796     int arg4 ;
1797     std::string *arg5 = (std::string *) 0 ;
1798     bool result;
1799     PyObject * obj0  = 0 ;
1800     PyObject * obj1  = 0 ;
1801     PyObject * obj4  = 0 ;
1802     
1803     if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
1804     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1805     arg2 = (Window) PyInt_AsLong(obj1);
1806     if (PyErr_Occurred()) SWIG_fail;
1807     if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_std__string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1808     result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,arg5);
1809     
1810     resultobj = PyInt_FromLong((long)result);
1811     return resultobj;
1812     fail:
1813     return NULL;
1814 }
1815
1816
1817 static PyObject *_wrap_OBProperty_get__SWIG_3(PyObject *self, PyObject *args) {
1818     PyObject *resultobj;
1819     otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
1820     Window arg2 ;
1821     int arg3 ;
1822     int arg4 ;
1823     unsigned long *arg5 = (unsigned long *) 0 ;
1824     otk::OBProperty::StringVect *arg6 = (otk::OBProperty::StringVect *) 0 ;
1825     bool result;
1826     PyObject * obj0  = 0 ;
1827     PyObject * obj1  = 0 ;
1828     PyObject * obj4  = 0 ;
1829     PyObject * obj5  = 0 ;
1830     
1831     if(!PyArg_ParseTuple(args,(char *)"OOiiOO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4,&obj5)) goto fail;
1832     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1833     arg2 = (Window) PyInt_AsLong(obj1);
1834     if (PyErr_Occurred()) SWIG_fail;
1835     if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1836     if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_otk__OBProperty__StringVect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1837     result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,arg5,arg6);
1838     
1839     resultobj = PyInt_FromLong((long)result);
1840     return resultobj;
1841     fail:
1842     return NULL;
1843 }
1844
1845
1846 static PyObject *_wrap_OBProperty_get(PyObject *self, PyObject *args) {
1847     int argc;
1848     PyObject *argv[7];
1849     int ii;
1850     
1851     argc = PyObject_Length(args);
1852     for (ii = 0; (ii < argc) && (ii < 6); ii++) {
1853         argv[ii] = PyTuple_GetItem(args,ii);
1854     }
1855     if (argc == 5) {
1856         int _v;
1857         {
1858             void *ptr;
1859             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
1860                 _v = 0;
1861                 PyErr_Clear();
1862             }else {
1863                 _v = 1;
1864             }
1865         }
1866         if (_v) {
1867             {
1868                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1869             }
1870             if (_v) {
1871                 {
1872                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1873                 }
1874                 if (_v) {
1875                     {
1876                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1877                     }
1878                     if (_v) {
1879                         {
1880                             void *ptr;
1881                             if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
1882                                 _v = 0;
1883                                 PyErr_Clear();
1884                             }else {
1885                                 _v = 1;
1886                             }
1887                         }
1888                         if (_v) {
1889                             return _wrap_OBProperty_get__SWIG_1(self,args);
1890                         }
1891                     }
1892                 }
1893             }
1894         }
1895     }
1896     if (argc == 5) {
1897         int _v;
1898         {
1899             void *ptr;
1900             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
1901                 _v = 0;
1902                 PyErr_Clear();
1903             }else {
1904                 _v = 1;
1905             }
1906         }
1907         if (_v) {
1908             {
1909                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1910             }
1911             if (_v) {
1912                 {
1913                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1914                 }
1915                 if (_v) {
1916                     {
1917                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1918                     }
1919                     if (_v) {
1920                         {
1921                             void *ptr;
1922                             if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_std__string, 0) == -1) {
1923                                 _v = 0;
1924                                 PyErr_Clear();
1925                             }else {
1926                                 _v = 1;
1927                             }
1928                         }
1929                         if (_v) {
1930                             return _wrap_OBProperty_get__SWIG_2(self,args);
1931                         }
1932                     }
1933                 }
1934             }
1935         }
1936     }
1937     if (argc == 6) {
1938         int _v;
1939         {
1940             void *ptr;
1941             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
1942                 _v = 0;
1943                 PyErr_Clear();
1944             }else {
1945                 _v = 1;
1946             }
1947         }
1948         if (_v) {
1949             {
1950                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1951             }
1952             if (_v) {
1953                 {
1954                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1955                 }
1956                 if (_v) {
1957                     {
1958                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1959                     }
1960                     if (_v) {
1961                         {
1962                             void *ptr;
1963                             if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
1964                                 _v = 0;
1965                                 PyErr_Clear();
1966                             }else {
1967                                 _v = 1;
1968                             }
1969                         }
1970                         if (_v) {
1971                             {
1972                                 void *ptr;
1973                                 if (SWIG_ConvertPtr(argv[5], (void **) &ptr, SWIGTYPE_p_p_unsigned_long, 0) == -1) {
1974                                     _v = 0;
1975                                     PyErr_Clear();
1976                                 }else {
1977                                     _v = 1;
1978                                 }
1979                             }
1980                             if (_v) {
1981                                 return _wrap_OBProperty_get__SWIG_0(self,args);
1982                             }
1983                         }
1984                     }
1985                 }
1986             }
1987         }
1988     }
1989     if (argc == 6) {
1990         int _v;
1991         {
1992             void *ptr;
1993             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
1994                 _v = 0;
1995                 PyErr_Clear();
1996             }else {
1997                 _v = 1;
1998             }
1999         }
2000         if (_v) {
2001             {
2002                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2003             }
2004             if (_v) {
2005                 {
2006                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2007                 }
2008                 if (_v) {
2009                     {
2010                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
2011                     }
2012                     if (_v) {
2013                         {
2014                             void *ptr;
2015                             if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
2016                                 _v = 0;
2017                                 PyErr_Clear();
2018                             }else {
2019                                 _v = 1;
2020                             }
2021                         }
2022                         if (_v) {
2023                             {
2024                                 void *ptr;
2025                                 if (SWIG_ConvertPtr(argv[5], (void **) &ptr, SWIGTYPE_p_otk__OBProperty__StringVect, 0) == -1) {
2026                                     _v = 0;
2027                                     PyErr_Clear();
2028                                 }else {
2029                                     _v = 1;
2030                                 }
2031                             }
2032                             if (_v) {
2033                                 return _wrap_OBProperty_get__SWIG_3(self,args);
2034                             }
2035                         }
2036                     }
2037                 }
2038             }
2039         }
2040     }
2041     
2042     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OBProperty_get'");
2043     return NULL;
2044 }
2045
2046
2047 static PyObject *_wrap_OBProperty_erase(PyObject *self, PyObject *args) {
2048     PyObject *resultobj;
2049     otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
2050     Window arg2 ;
2051     int arg3 ;
2052     PyObject * obj0  = 0 ;
2053     PyObject * obj1  = 0 ;
2054     
2055     if(!PyArg_ParseTuple(args,(char *)"OOi:OBProperty_erase",&obj0,&obj1,&arg3)) goto fail;
2056     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2057     arg2 = (Window) PyInt_AsLong(obj1);
2058     if (PyErr_Occurred()) SWIG_fail;
2059     ((otk::OBProperty const *)arg1)->erase(arg2,(otk::OBProperty::Atoms )arg3);
2060     
2061     Py_INCREF(Py_None); resultobj = Py_None;
2062     return resultobj;
2063     fail:
2064     return NULL;
2065 }
2066
2067
2068 static PyObject *_wrap_OBProperty_atom(PyObject *self, PyObject *args) {
2069     PyObject *resultobj;
2070     otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
2071     int arg2 ;
2072     Atom result;
2073     PyObject * obj0  = 0 ;
2074     
2075     if(!PyArg_ParseTuple(args,(char *)"Oi:OBProperty_atom",&obj0,&arg2)) goto fail;
2076     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2077     result = (Atom)((otk::OBProperty const *)arg1)->atom((otk::OBProperty::Atoms )arg2);
2078     
2079     resultobj = PyInt_FromLong((long)result);
2080     return resultobj;
2081     fail:
2082     return NULL;
2083 }
2084
2085
2086 static PyObject * OBProperty_swigregister(PyObject *self, PyObject *args) {
2087     PyObject *obj;
2088     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2089     SWIG_TypeClientData(SWIGTYPE_p_otk__OBProperty, obj);
2090     Py_INCREF(obj);
2091     return Py_BuildValue((char *)"");
2092 }
2093 static PyObject *_wrap_new_Rect__SWIG_0(PyObject *self, PyObject *args) {
2094     PyObject *resultobj;
2095     otk::Rect *result;
2096     
2097     if(!PyArg_ParseTuple(args,(char *)":new_Rect")) goto fail;
2098     result = (otk::Rect *)new otk::Rect();
2099     
2100     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
2101     return resultobj;
2102     fail:
2103     return NULL;
2104 }
2105
2106
2107 static PyObject *_wrap_new_Rect__SWIG_1(PyObject *self, PyObject *args) {
2108     PyObject *resultobj;
2109     int arg1 ;
2110     int arg2 ;
2111     int arg3 ;
2112     int arg4 ;
2113     otk::Rect *result;
2114     
2115     if(!PyArg_ParseTuple(args,(char *)"iiii:new_Rect",&arg1,&arg2,&arg3,&arg4)) goto fail;
2116     result = (otk::Rect *)new otk::Rect(arg1,arg2,arg3,arg4);
2117     
2118     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
2119     return resultobj;
2120     fail:
2121     return NULL;
2122 }
2123
2124
2125 static PyObject *_wrap_new_Rect__SWIG_2(PyObject *self, PyObject *args) {
2126     PyObject *resultobj;
2127     otk::Point *arg1 = 0 ;
2128     otk::Point *arg2 = 0 ;
2129     otk::Rect *result;
2130     PyObject * obj0  = 0 ;
2131     PyObject * obj1  = 0 ;
2132     
2133     if(!PyArg_ParseTuple(args,(char *)"OO:new_Rect",&obj0,&obj1)) goto fail;
2134     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2135     if (arg1 == NULL) {
2136         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2137     }
2138     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2139     if (arg2 == NULL) {
2140         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2141     }
2142     result = (otk::Rect *)new otk::Rect((otk::Point const &)*arg1,(otk::Point const &)*arg2);
2143     
2144     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
2145     return resultobj;
2146     fail:
2147     return NULL;
2148 }
2149
2150
2151 static PyObject *_wrap_new_Rect__SWIG_3(PyObject *self, PyObject *args) {
2152     PyObject *resultobj;
2153     otk::Rect *arg1 = 0 ;
2154     otk::Rect *result;
2155     PyObject * obj0  = 0 ;
2156     
2157     if(!PyArg_ParseTuple(args,(char *)"O:new_Rect",&obj0)) goto fail;
2158     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2159     if (arg1 == NULL) {
2160         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2161     }
2162     result = (otk::Rect *)new otk::Rect((otk::Rect const &)*arg1);
2163     
2164     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
2165     return resultobj;
2166     fail:
2167     return NULL;
2168 }
2169
2170
2171 static PyObject *_wrap_new_Rect__SWIG_4(PyObject *self, PyObject *args) {
2172     PyObject *resultobj;
2173     XRectangle *arg1 = 0 ;
2174     otk::Rect *result;
2175     PyObject * obj0  = 0 ;
2176     
2177     if(!PyArg_ParseTuple(args,(char *)"O:new_Rect",&obj0)) goto fail;
2178     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_XRectangle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2179     if (arg1 == NULL) {
2180         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2181     }
2182     result = (otk::Rect *)new otk::Rect((XRectangle const &)*arg1);
2183     
2184     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
2185     return resultobj;
2186     fail:
2187     return NULL;
2188 }
2189
2190
2191 static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args) {
2192     int argc;
2193     PyObject *argv[5];
2194     int ii;
2195     
2196     argc = PyObject_Length(args);
2197     for (ii = 0; (ii < argc) && (ii < 4); ii++) {
2198         argv[ii] = PyTuple_GetItem(args,ii);
2199     }
2200     if (argc == 0) {
2201         return _wrap_new_Rect__SWIG_0(self,args);
2202     }
2203     if (argc == 1) {
2204         int _v;
2205         {
2206             void *ptr;
2207             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2208                 _v = 0;
2209                 PyErr_Clear();
2210             }else {
2211                 _v = 1;
2212             }
2213         }
2214         if (_v) {
2215             return _wrap_new_Rect__SWIG_3(self,args);
2216         }
2217     }
2218     if (argc == 1) {
2219         int _v;
2220         {
2221             void *ptr;
2222             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_XRectangle, 0) == -1) {
2223                 _v = 0;
2224                 PyErr_Clear();
2225             }else {
2226                 _v = 1;
2227             }
2228         }
2229         if (_v) {
2230             return _wrap_new_Rect__SWIG_4(self,args);
2231         }
2232     }
2233     if (argc == 2) {
2234         int _v;
2235         {
2236             void *ptr;
2237             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2238                 _v = 0;
2239                 PyErr_Clear();
2240             }else {
2241                 _v = 1;
2242             }
2243         }
2244         if (_v) {
2245             {
2246                 void *ptr;
2247                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2248                     _v = 0;
2249                     PyErr_Clear();
2250                 }else {
2251                     _v = 1;
2252                 }
2253             }
2254             if (_v) {
2255                 return _wrap_new_Rect__SWIG_2(self,args);
2256             }
2257         }
2258     }
2259     if (argc == 4) {
2260         int _v;
2261         {
2262             _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
2263         }
2264         if (_v) {
2265             {
2266                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2267             }
2268             if (_v) {
2269                 {
2270                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2271                 }
2272                 if (_v) {
2273                     {
2274                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
2275                     }
2276                     if (_v) {
2277                         return _wrap_new_Rect__SWIG_1(self,args);
2278                     }
2279                 }
2280             }
2281         }
2282     }
2283     
2284     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Rect'");
2285     return NULL;
2286 }
2287
2288
2289 static PyObject *_wrap_Rect_left(PyObject *self, PyObject *args) {
2290     PyObject *resultobj;
2291     otk::Rect *arg1 = (otk::Rect *) 0 ;
2292     int result;
2293     PyObject * obj0  = 0 ;
2294     
2295     if(!PyArg_ParseTuple(args,(char *)"O:Rect_left",&obj0)) goto fail;
2296     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2297     result = (int)((otk::Rect const *)arg1)->left();
2298     
2299     resultobj = PyInt_FromLong((long)result);
2300     return resultobj;
2301     fail:
2302     return NULL;
2303 }
2304
2305
2306 static PyObject *_wrap_Rect_top(PyObject *self, PyObject *args) {
2307     PyObject *resultobj;
2308     otk::Rect *arg1 = (otk::Rect *) 0 ;
2309     int result;
2310     PyObject * obj0  = 0 ;
2311     
2312     if(!PyArg_ParseTuple(args,(char *)"O:Rect_top",&obj0)) goto fail;
2313     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2314     result = (int)((otk::Rect const *)arg1)->top();
2315     
2316     resultobj = PyInt_FromLong((long)result);
2317     return resultobj;
2318     fail:
2319     return NULL;
2320 }
2321
2322
2323 static PyObject *_wrap_Rect_right(PyObject *self, PyObject *args) {
2324     PyObject *resultobj;
2325     otk::Rect *arg1 = (otk::Rect *) 0 ;
2326     int result;
2327     PyObject * obj0  = 0 ;
2328     
2329     if(!PyArg_ParseTuple(args,(char *)"O:Rect_right",&obj0)) goto fail;
2330     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2331     result = (int)((otk::Rect const *)arg1)->right();
2332     
2333     resultobj = PyInt_FromLong((long)result);
2334     return resultobj;
2335     fail:
2336     return NULL;
2337 }
2338
2339
2340 static PyObject *_wrap_Rect_bottom(PyObject *self, PyObject *args) {
2341     PyObject *resultobj;
2342     otk::Rect *arg1 = (otk::Rect *) 0 ;
2343     int result;
2344     PyObject * obj0  = 0 ;
2345     
2346     if(!PyArg_ParseTuple(args,(char *)"O:Rect_bottom",&obj0)) goto fail;
2347     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2348     result = (int)((otk::Rect const *)arg1)->bottom();
2349     
2350     resultobj = PyInt_FromLong((long)result);
2351     return resultobj;
2352     fail:
2353     return NULL;
2354 }
2355
2356
2357 static PyObject *_wrap_Rect_x(PyObject *self, PyObject *args) {
2358     PyObject *resultobj;
2359     otk::Rect *arg1 = (otk::Rect *) 0 ;
2360     int result;
2361     PyObject * obj0  = 0 ;
2362     
2363     if(!PyArg_ParseTuple(args,(char *)"O:Rect_x",&obj0)) goto fail;
2364     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2365     result = (int)((otk::Rect const *)arg1)->x();
2366     
2367     resultobj = PyInt_FromLong((long)result);
2368     return resultobj;
2369     fail:
2370     return NULL;
2371 }
2372
2373
2374 static PyObject *_wrap_Rect_y(PyObject *self, PyObject *args) {
2375     PyObject *resultobj;
2376     otk::Rect *arg1 = (otk::Rect *) 0 ;
2377     int result;
2378     PyObject * obj0  = 0 ;
2379     
2380     if(!PyArg_ParseTuple(args,(char *)"O:Rect_y",&obj0)) goto fail;
2381     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2382     result = (int)((otk::Rect const *)arg1)->y();
2383     
2384     resultobj = PyInt_FromLong((long)result);
2385     return resultobj;
2386     fail:
2387     return NULL;
2388 }
2389
2390
2391 static PyObject *_wrap_Rect_location(PyObject *self, PyObject *args) {
2392     PyObject *resultobj;
2393     otk::Rect *arg1 = (otk::Rect *) 0 ;
2394     otk::Point result;
2395     PyObject * obj0  = 0 ;
2396     
2397     if(!PyArg_ParseTuple(args,(char *)"O:Rect_location",&obj0)) goto fail;
2398     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2399     result = ((otk::Rect const *)arg1)->location();
2400     
2401     {
2402         otk::Point * resultptr;
2403         resultptr = new otk::Point((otk::Point &) result);
2404         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Point, 1);
2405     }
2406     return resultobj;
2407     fail:
2408     return NULL;
2409 }
2410
2411
2412 static PyObject *_wrap_Rect_setX(PyObject *self, PyObject *args) {
2413     PyObject *resultobj;
2414     otk::Rect *arg1 = (otk::Rect *) 0 ;
2415     int arg2 ;
2416     PyObject * obj0  = 0 ;
2417     
2418     if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setX",&obj0,&arg2)) goto fail;
2419     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2420     (arg1)->setX(arg2);
2421     
2422     Py_INCREF(Py_None); resultobj = Py_None;
2423     return resultobj;
2424     fail:
2425     return NULL;
2426 }
2427
2428
2429 static PyObject *_wrap_Rect_setY(PyObject *self, PyObject *args) {
2430     PyObject *resultobj;
2431     otk::Rect *arg1 = (otk::Rect *) 0 ;
2432     int arg2 ;
2433     PyObject * obj0  = 0 ;
2434     
2435     if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setY",&obj0,&arg2)) goto fail;
2436     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2437     (arg1)->setY(arg2);
2438     
2439     Py_INCREF(Py_None); resultobj = Py_None;
2440     return resultobj;
2441     fail:
2442     return NULL;
2443 }
2444
2445
2446 static PyObject *_wrap_Rect_setPos__SWIG_0(PyObject *self, PyObject *args) {
2447     PyObject *resultobj;
2448     otk::Rect *arg1 = (otk::Rect *) 0 ;
2449     int arg2 ;
2450     int arg3 ;
2451     PyObject * obj0  = 0 ;
2452     
2453     if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_setPos",&obj0,&arg2,&arg3)) goto fail;
2454     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2455     (arg1)->setPos(arg2,arg3);
2456     
2457     Py_INCREF(Py_None); resultobj = Py_None;
2458     return resultobj;
2459     fail:
2460     return NULL;
2461 }
2462
2463
2464 static PyObject *_wrap_Rect_setPos__SWIG_1(PyObject *self, PyObject *args) {
2465     PyObject *resultobj;
2466     otk::Rect *arg1 = (otk::Rect *) 0 ;
2467     otk::Point *arg2 = 0 ;
2468     PyObject * obj0  = 0 ;
2469     PyObject * obj1  = 0 ;
2470     
2471     if(!PyArg_ParseTuple(args,(char *)"OO:Rect_setPos",&obj0,&obj1)) goto fail;
2472     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2473     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2474     if (arg2 == NULL) {
2475         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2476     }
2477     (arg1)->setPos((otk::Point const &)*arg2);
2478     
2479     Py_INCREF(Py_None); resultobj = Py_None;
2480     return resultobj;
2481     fail:
2482     return NULL;
2483 }
2484
2485
2486 static PyObject *_wrap_Rect_setPos(PyObject *self, PyObject *args) {
2487     int argc;
2488     PyObject *argv[4];
2489     int ii;
2490     
2491     argc = PyObject_Length(args);
2492     for (ii = 0; (ii < argc) && (ii < 3); ii++) {
2493         argv[ii] = PyTuple_GetItem(args,ii);
2494     }
2495     if (argc == 2) {
2496         int _v;
2497         {
2498             void *ptr;
2499             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2500                 _v = 0;
2501                 PyErr_Clear();
2502             }else {
2503                 _v = 1;
2504             }
2505         }
2506         if (_v) {
2507             {
2508                 void *ptr;
2509                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2510                     _v = 0;
2511                     PyErr_Clear();
2512                 }else {
2513                     _v = 1;
2514                 }
2515             }
2516             if (_v) {
2517                 return _wrap_Rect_setPos__SWIG_1(self,args);
2518             }
2519         }
2520     }
2521     if (argc == 3) {
2522         int _v;
2523         {
2524             void *ptr;
2525             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2526                 _v = 0;
2527                 PyErr_Clear();
2528             }else {
2529                 _v = 1;
2530             }
2531         }
2532         if (_v) {
2533             {
2534                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2535             }
2536             if (_v) {
2537                 {
2538                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2539                 }
2540                 if (_v) {
2541                     return _wrap_Rect_setPos__SWIG_0(self,args);
2542                 }
2543             }
2544         }
2545     }
2546     
2547     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setPos'");
2548     return NULL;
2549 }
2550
2551
2552 static PyObject *_wrap_Rect_width(PyObject *self, PyObject *args) {
2553     PyObject *resultobj;
2554     otk::Rect *arg1 = (otk::Rect *) 0 ;
2555     int result;
2556     PyObject * obj0  = 0 ;
2557     
2558     if(!PyArg_ParseTuple(args,(char *)"O:Rect_width",&obj0)) goto fail;
2559     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2560     result = (int)((otk::Rect const *)arg1)->width();
2561     
2562     resultobj = PyInt_FromLong((long)result);
2563     return resultobj;
2564     fail:
2565     return NULL;
2566 }
2567
2568
2569 static PyObject *_wrap_Rect_height(PyObject *self, PyObject *args) {
2570     PyObject *resultobj;
2571     otk::Rect *arg1 = (otk::Rect *) 0 ;
2572     int result;
2573     PyObject * obj0  = 0 ;
2574     
2575     if(!PyArg_ParseTuple(args,(char *)"O:Rect_height",&obj0)) goto fail;
2576     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2577     result = (int)((otk::Rect const *)arg1)->height();
2578     
2579     resultobj = PyInt_FromLong((long)result);
2580     return resultobj;
2581     fail:
2582     return NULL;
2583 }
2584
2585
2586 static PyObject *_wrap_Rect_size(PyObject *self, PyObject *args) {
2587     PyObject *resultobj;
2588     otk::Rect *arg1 = (otk::Rect *) 0 ;
2589     otk::Point result;
2590     PyObject * obj0  = 0 ;
2591     
2592     if(!PyArg_ParseTuple(args,(char *)"O:Rect_size",&obj0)) goto fail;
2593     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2594     result = ((otk::Rect const *)arg1)->size();
2595     
2596     {
2597         otk::Point * resultptr;
2598         resultptr = new otk::Point((otk::Point &) result);
2599         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Point, 1);
2600     }
2601     return resultobj;
2602     fail:
2603     return NULL;
2604 }
2605
2606
2607 static PyObject *_wrap_Rect_setWidth(PyObject *self, PyObject *args) {
2608     PyObject *resultobj;
2609     otk::Rect *arg1 = (otk::Rect *) 0 ;
2610     int arg2 ;
2611     PyObject * obj0  = 0 ;
2612     
2613     if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setWidth",&obj0,&arg2)) goto fail;
2614     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2615     (arg1)->setWidth(arg2);
2616     
2617     Py_INCREF(Py_None); resultobj = Py_None;
2618     return resultobj;
2619     fail:
2620     return NULL;
2621 }
2622
2623
2624 static PyObject *_wrap_Rect_setHeight(PyObject *self, PyObject *args) {
2625     PyObject *resultobj;
2626     otk::Rect *arg1 = (otk::Rect *) 0 ;
2627     int arg2 ;
2628     PyObject * obj0  = 0 ;
2629     
2630     if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setHeight",&obj0,&arg2)) goto fail;
2631     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2632     (arg1)->setHeight(arg2);
2633     
2634     Py_INCREF(Py_None); resultobj = Py_None;
2635     return resultobj;
2636     fail:
2637     return NULL;
2638 }
2639
2640
2641 static PyObject *_wrap_Rect_setSize__SWIG_0(PyObject *self, PyObject *args) {
2642     PyObject *resultobj;
2643     otk::Rect *arg1 = (otk::Rect *) 0 ;
2644     int arg2 ;
2645     int arg3 ;
2646     PyObject * obj0  = 0 ;
2647     
2648     if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_setSize",&obj0,&arg2,&arg3)) goto fail;
2649     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2650     (arg1)->setSize(arg2,arg3);
2651     
2652     Py_INCREF(Py_None); resultobj = Py_None;
2653     return resultobj;
2654     fail:
2655     return NULL;
2656 }
2657
2658
2659 static PyObject *_wrap_Rect_setSize__SWIG_1(PyObject *self, PyObject *args) {
2660     PyObject *resultobj;
2661     otk::Rect *arg1 = (otk::Rect *) 0 ;
2662     otk::Point *arg2 = 0 ;
2663     PyObject * obj0  = 0 ;
2664     PyObject * obj1  = 0 ;
2665     
2666     if(!PyArg_ParseTuple(args,(char *)"OO:Rect_setSize",&obj0,&obj1)) goto fail;
2667     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2668     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2669     if (arg2 == NULL) {
2670         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2671     }
2672     (arg1)->setSize((otk::Point const &)*arg2);
2673     
2674     Py_INCREF(Py_None); resultobj = Py_None;
2675     return resultobj;
2676     fail:
2677     return NULL;
2678 }
2679
2680
2681 static PyObject *_wrap_Rect_setSize(PyObject *self, PyObject *args) {
2682     int argc;
2683     PyObject *argv[4];
2684     int ii;
2685     
2686     argc = PyObject_Length(args);
2687     for (ii = 0; (ii < argc) && (ii < 3); ii++) {
2688         argv[ii] = PyTuple_GetItem(args,ii);
2689     }
2690     if (argc == 2) {
2691         int _v;
2692         {
2693             void *ptr;
2694             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2695                 _v = 0;
2696                 PyErr_Clear();
2697             }else {
2698                 _v = 1;
2699             }
2700         }
2701         if (_v) {
2702             {
2703                 void *ptr;
2704                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2705                     _v = 0;
2706                     PyErr_Clear();
2707                 }else {
2708                     _v = 1;
2709                 }
2710             }
2711             if (_v) {
2712                 return _wrap_Rect_setSize__SWIG_1(self,args);
2713             }
2714         }
2715     }
2716     if (argc == 3) {
2717         int _v;
2718         {
2719             void *ptr;
2720             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2721                 _v = 0;
2722                 PyErr_Clear();
2723             }else {
2724                 _v = 1;
2725             }
2726         }
2727         if (_v) {
2728             {
2729                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2730             }
2731             if (_v) {
2732                 {
2733                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2734                 }
2735                 if (_v) {
2736                     return _wrap_Rect_setSize__SWIG_0(self,args);
2737                 }
2738             }
2739         }
2740     }
2741     
2742     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setSize'");
2743     return NULL;
2744 }
2745
2746
2747 static PyObject *_wrap_Rect_setRect__SWIG_0(PyObject *self, PyObject *args) {
2748     PyObject *resultobj;
2749     otk::Rect *arg1 = (otk::Rect *) 0 ;
2750     int arg2 ;
2751     int arg3 ;
2752     int arg4 ;
2753     int arg5 ;
2754     PyObject * obj0  = 0 ;
2755     
2756     if(!PyArg_ParseTuple(args,(char *)"Oiiii:Rect_setRect",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
2757     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2758     (arg1)->setRect(arg2,arg3,arg4,arg5);
2759     
2760     Py_INCREF(Py_None); resultobj = Py_None;
2761     return resultobj;
2762     fail:
2763     return NULL;
2764 }
2765
2766
2767 static PyObject *_wrap_Rect_setRect__SWIG_1(PyObject *self, PyObject *args) {
2768     PyObject *resultobj;
2769     otk::Rect *arg1 = (otk::Rect *) 0 ;
2770     otk::Point *arg2 = 0 ;
2771     otk::Point *arg3 = 0 ;
2772     PyObject * obj0  = 0 ;
2773     PyObject * obj1  = 0 ;
2774     PyObject * obj2  = 0 ;
2775     
2776     if(!PyArg_ParseTuple(args,(char *)"OOO:Rect_setRect",&obj0,&obj1,&obj2)) goto fail;
2777     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2778     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2779     if (arg2 == NULL) {
2780         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2781     }
2782     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2783     if (arg3 == NULL) {
2784         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2785     }
2786     (arg1)->setRect((otk::Point const &)*arg2,(otk::Point const &)*arg3);
2787     
2788     Py_INCREF(Py_None); resultobj = Py_None;
2789     return resultobj;
2790     fail:
2791     return NULL;
2792 }
2793
2794
2795 static PyObject *_wrap_Rect_setRect(PyObject *self, PyObject *args) {
2796     int argc;
2797     PyObject *argv[6];
2798     int ii;
2799     
2800     argc = PyObject_Length(args);
2801     for (ii = 0; (ii < argc) && (ii < 5); ii++) {
2802         argv[ii] = PyTuple_GetItem(args,ii);
2803     }
2804     if (argc == 3) {
2805         int _v;
2806         {
2807             void *ptr;
2808             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2809                 _v = 0;
2810                 PyErr_Clear();
2811             }else {
2812                 _v = 1;
2813             }
2814         }
2815         if (_v) {
2816             {
2817                 void *ptr;
2818                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2819                     _v = 0;
2820                     PyErr_Clear();
2821                 }else {
2822                     _v = 1;
2823                 }
2824             }
2825             if (_v) {
2826                 {
2827                     void *ptr;
2828                     if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2829                         _v = 0;
2830                         PyErr_Clear();
2831                     }else {
2832                         _v = 1;
2833                     }
2834                 }
2835                 if (_v) {
2836                     return _wrap_Rect_setRect__SWIG_1(self,args);
2837                 }
2838             }
2839         }
2840     }
2841     if (argc == 5) {
2842         int _v;
2843         {
2844             void *ptr;
2845             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2846                 _v = 0;
2847                 PyErr_Clear();
2848             }else {
2849                 _v = 1;
2850             }
2851         }
2852         if (_v) {
2853             {
2854                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2855             }
2856             if (_v) {
2857                 {
2858                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2859                 }
2860                 if (_v) {
2861                     {
2862                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
2863                     }
2864                     if (_v) {
2865                         {
2866                             _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
2867                         }
2868                         if (_v) {
2869                             return _wrap_Rect_setRect__SWIG_0(self,args);
2870                         }
2871                     }
2872                 }
2873             }
2874         }
2875     }
2876     
2877     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setRect'");
2878     return NULL;
2879 }
2880
2881
2882 static PyObject *_wrap_Rect_setCoords__SWIG_0(PyObject *self, PyObject *args) {
2883     PyObject *resultobj;
2884     otk::Rect *arg1 = (otk::Rect *) 0 ;
2885     int arg2 ;
2886     int arg3 ;
2887     int arg4 ;
2888     int arg5 ;
2889     PyObject * obj0  = 0 ;
2890     
2891     if(!PyArg_ParseTuple(args,(char *)"Oiiii:Rect_setCoords",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
2892     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2893     (arg1)->setCoords(arg2,arg3,arg4,arg5);
2894     
2895     Py_INCREF(Py_None); resultobj = Py_None;
2896     return resultobj;
2897     fail:
2898     return NULL;
2899 }
2900
2901
2902 static PyObject *_wrap_Rect_setCoords__SWIG_1(PyObject *self, PyObject *args) {
2903     PyObject *resultobj;
2904     otk::Rect *arg1 = (otk::Rect *) 0 ;
2905     otk::Point *arg2 = 0 ;
2906     otk::Point *arg3 = 0 ;
2907     PyObject * obj0  = 0 ;
2908     PyObject * obj1  = 0 ;
2909     PyObject * obj2  = 0 ;
2910     
2911     if(!PyArg_ParseTuple(args,(char *)"OOO:Rect_setCoords",&obj0,&obj1,&obj2)) goto fail;
2912     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2913     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2914     if (arg2 == NULL) {
2915         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2916     }
2917     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2918     if (arg3 == NULL) {
2919         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2920     }
2921     (arg1)->setCoords((otk::Point const &)*arg2,(otk::Point const &)*arg3);
2922     
2923     Py_INCREF(Py_None); resultobj = Py_None;
2924     return resultobj;
2925     fail:
2926     return NULL;
2927 }
2928
2929
2930 static PyObject *_wrap_Rect_setCoords(PyObject *self, PyObject *args) {
2931     int argc;
2932     PyObject *argv[6];
2933     int ii;
2934     
2935     argc = PyObject_Length(args);
2936     for (ii = 0; (ii < argc) && (ii < 5); ii++) {
2937         argv[ii] = PyTuple_GetItem(args,ii);
2938     }
2939     if (argc == 3) {
2940         int _v;
2941         {
2942             void *ptr;
2943             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2944                 _v = 0;
2945                 PyErr_Clear();
2946             }else {
2947                 _v = 1;
2948             }
2949         }
2950         if (_v) {
2951             {
2952                 void *ptr;
2953                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2954                     _v = 0;
2955                     PyErr_Clear();
2956                 }else {
2957                     _v = 1;
2958                 }
2959             }
2960             if (_v) {
2961                 {
2962                     void *ptr;
2963                     if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2964                         _v = 0;
2965                         PyErr_Clear();
2966                     }else {
2967                         _v = 1;
2968                     }
2969                 }
2970                 if (_v) {
2971                     return _wrap_Rect_setCoords__SWIG_1(self,args);
2972                 }
2973             }
2974         }
2975     }
2976     if (argc == 5) {
2977         int _v;
2978         {
2979             void *ptr;
2980             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2981                 _v = 0;
2982                 PyErr_Clear();
2983             }else {
2984                 _v = 1;
2985             }
2986         }
2987         if (_v) {
2988             {
2989                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2990             }
2991             if (_v) {
2992                 {
2993                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2994                 }
2995                 if (_v) {
2996                     {
2997                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
2998                     }
2999                     if (_v) {
3000                         {
3001                             _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
3002                         }
3003                         if (_v) {
3004                             return _wrap_Rect_setCoords__SWIG_0(self,args);
3005                         }
3006                     }
3007                 }
3008             }
3009         }
3010     }
3011     
3012     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setCoords'");
3013     return NULL;
3014 }
3015
3016
3017 static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args) {
3018     PyObject *resultobj;
3019     otk::Rect *arg1 = (otk::Rect *) 0 ;
3020     otk::Rect *arg2 = 0 ;
3021     bool result;
3022     PyObject * obj0  = 0 ;
3023     PyObject * obj1  = 0 ;
3024     
3025     if(!PyArg_ParseTuple(args,(char *)"OO:Rect___eq__",&obj0,&obj1)) goto fail;
3026     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3027     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3028     if (arg2 == NULL) {
3029         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
3030     }
3031     result = (bool)(arg1)->operator ==((otk::Rect const &)*arg2);
3032     
3033     resultobj = PyInt_FromLong((long)result);
3034     return resultobj;
3035     fail:
3036     return NULL;
3037 }
3038
3039
3040 static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args) {
3041     PyObject *resultobj;
3042     otk::Rect *arg1 = (otk::Rect *) 0 ;
3043     otk::Rect *arg2 = 0 ;
3044     bool result;
3045     PyObject * obj0  = 0 ;
3046     PyObject * obj1  = 0 ;
3047     
3048     if(!PyArg_ParseTuple(args,(char *)"OO:Rect___ne__",&obj0,&obj1)) goto fail;
3049     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3050     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3051     if (arg2 == NULL) {
3052         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
3053     }
3054     result = (bool)(arg1)->operator !=((otk::Rect const &)*arg2);
3055     
3056     resultobj = PyInt_FromLong((long)result);
3057     return resultobj;
3058     fail:
3059     return NULL;
3060 }
3061
3062
3063 static PyObject *_wrap_Rect___or__(PyObject *self, PyObject *args) {
3064     PyObject *resultobj;
3065     otk::Rect *arg1 = (otk::Rect *) 0 ;
3066     otk::Rect *arg2 = 0 ;
3067     otk::Rect result;
3068     PyObject * obj0  = 0 ;
3069     PyObject * obj1  = 0 ;
3070     
3071     if(!PyArg_ParseTuple(args,(char *)"OO:Rect___or__",&obj0,&obj1)) goto fail;
3072     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3073     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3074     if (arg2 == NULL) {
3075         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
3076     }
3077     result = ((otk::Rect const *)arg1)->operator |((otk::Rect const &)*arg2);
3078     
3079     {
3080         otk::Rect * resultptr;
3081         resultptr = new otk::Rect((otk::Rect &) result);
3082         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Rect, 1);
3083     }
3084     return resultobj;
3085     fail:
3086     return NULL;
3087 }
3088
3089
3090 static PyObject *_wrap_Rect___and__(PyObject *self, PyObject *args) {
3091     PyObject *resultobj;
3092     otk::Rect *arg1 = (otk::Rect *) 0 ;
3093     otk::Rect *arg2 = 0 ;
3094     otk::Rect result;
3095     PyObject * obj0  = 0 ;
3096     PyObject * obj1  = 0 ;
3097     
3098     if(!PyArg_ParseTuple(args,(char *)"OO:Rect___and__",&obj0,&obj1)) goto fail;
3099     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3100     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3101     if (arg2 == NULL) {
3102         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
3103     }
3104     result = ((otk::Rect const *)arg1)->operator &((otk::Rect const &)*arg2);
3105     
3106     {
3107         otk::Rect * resultptr;
3108         resultptr = new otk::Rect((otk::Rect &) result);
3109         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Rect, 1);
3110     }
3111     return resultobj;
3112     fail:
3113     return NULL;
3114 }
3115
3116
3117 static PyObject *_wrap_Rect___ior__(PyObject *self, PyObject *args) {
3118     PyObject *resultobj;
3119     otk::Rect *arg1 = (otk::Rect *) 0 ;
3120     otk::Rect *arg2 = 0 ;
3121     otk::Rect *result;
3122     PyObject * obj0  = 0 ;
3123     PyObject * obj1  = 0 ;
3124     
3125     if(!PyArg_ParseTuple(args,(char *)"OO:Rect___ior__",&obj0,&obj1)) goto fail;
3126     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3127     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3128     if (arg2 == NULL) {
3129         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
3130     }
3131     {
3132         otk::Rect &_result_ref = (arg1)->operator |=((otk::Rect const &)*arg2);
3133         result = (otk::Rect *) &_result_ref;
3134     }
3135     
3136     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
3137     return resultobj;
3138     fail:
3139     return NULL;
3140 }
3141
3142
3143 static PyObject *_wrap_Rect___iand__(PyObject *self, PyObject *args) {
3144     PyObject *resultobj;
3145     otk::Rect *arg1 = (otk::Rect *) 0 ;
3146     otk::Rect *arg2 = 0 ;
3147     otk::Rect *result;
3148     PyObject * obj0  = 0 ;
3149     PyObject * obj1  = 0 ;
3150     
3151     if(!PyArg_ParseTuple(args,(char *)"OO:Rect___iand__",&obj0,&obj1)) goto fail;
3152     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3153     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3154     if (arg2 == NULL) {
3155         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
3156     }
3157     {
3158         otk::Rect &_result_ref = (arg1)->operator &=((otk::Rect const &)*arg2);
3159         result = (otk::Rect *) &_result_ref;
3160     }
3161     
3162     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
3163     return resultobj;
3164     fail:
3165     return NULL;
3166 }
3167
3168
3169 static PyObject *_wrap_Rect_valid(PyObject *self, PyObject *args) {
3170     PyObject *resultobj;
3171     otk::Rect *arg1 = (otk::Rect *) 0 ;
3172     bool result;
3173     PyObject * obj0  = 0 ;
3174     
3175     if(!PyArg_ParseTuple(args,(char *)"O:Rect_valid",&obj0)) goto fail;
3176     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3177     result = (bool)((otk::Rect const *)arg1)->valid();
3178     
3179     resultobj = PyInt_FromLong((long)result);
3180     return resultobj;
3181     fail:
3182     return NULL;
3183 }
3184
3185
3186 static PyObject *_wrap_Rect_intersects(PyObject *self, PyObject *args) {
3187     PyObject *resultobj;
3188     otk::Rect *arg1 = (otk::Rect *) 0 ;
3189     otk::Rect *arg2 = 0 ;
3190     bool result;
3191     PyObject * obj0  = 0 ;
3192     PyObject * obj1  = 0 ;
3193     
3194     if(!PyArg_ParseTuple(args,(char *)"OO:Rect_intersects",&obj0,&obj1)) goto fail;
3195     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3196     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3197     if (arg2 == NULL) {
3198         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
3199     }
3200     result = (bool)((otk::Rect const *)arg1)->intersects((otk::Rect const &)*arg2);
3201     
3202     resultobj = PyInt_FromLong((long)result);
3203     return resultobj;
3204     fail:
3205     return NULL;
3206 }
3207
3208
3209 static PyObject *_wrap_Rect_contains__SWIG_0(PyObject *self, PyObject *args) {
3210     PyObject *resultobj;
3211     otk::Rect *arg1 = (otk::Rect *) 0 ;
3212     int arg2 ;
3213     int arg3 ;
3214     bool result;
3215     PyObject * obj0  = 0 ;
3216     
3217     if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_contains",&obj0,&arg2,&arg3)) goto fail;
3218     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3219     result = (bool)((otk::Rect const *)arg1)->contains(arg2,arg3);
3220     
3221     resultobj = PyInt_FromLong((long)result);
3222     return resultobj;
3223     fail:
3224     return NULL;
3225 }
3226
3227
3228 static PyObject *_wrap_Rect_contains__SWIG_1(PyObject *self, PyObject *args) {
3229     PyObject *resultobj;
3230     otk::Rect *arg1 = (otk::Rect *) 0 ;
3231     otk::Point *arg2 = 0 ;
3232     bool result;
3233     PyObject * obj0  = 0 ;
3234     PyObject * obj1  = 0 ;
3235     
3236     if(!PyArg_ParseTuple(args,(char *)"OO:Rect_contains",&obj0,&obj1)) goto fail;
3237     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3238     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3239     if (arg2 == NULL) {
3240         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
3241     }
3242     result = (bool)((otk::Rect const *)arg1)->contains((otk::Point const &)*arg2);
3243     
3244     resultobj = PyInt_FromLong((long)result);
3245     return resultobj;
3246     fail:
3247     return NULL;
3248 }
3249
3250
3251 static PyObject *_wrap_Rect_contains__SWIG_2(PyObject *self, PyObject *args) {
3252     PyObject *resultobj;
3253     otk::Rect *arg1 = (otk::Rect *) 0 ;
3254     otk::Rect *arg2 = 0 ;
3255     bool result;
3256     PyObject * obj0  = 0 ;
3257     PyObject * obj1  = 0 ;
3258     
3259     if(!PyArg_ParseTuple(args,(char *)"OO:Rect_contains",&obj0,&obj1)) goto fail;
3260     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3261     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3262     if (arg2 == NULL) {
3263         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
3264     }
3265     result = (bool)((otk::Rect const *)arg1)->contains((otk::Rect const &)*arg2);
3266     
3267     resultobj = PyInt_FromLong((long)result);
3268     return resultobj;
3269     fail:
3270     return NULL;
3271 }
3272
3273
3274 static PyObject *_wrap_Rect_contains(PyObject *self, PyObject *args) {
3275     int argc;
3276     PyObject *argv[4];
3277     int ii;
3278     
3279     argc = PyObject_Length(args);
3280     for (ii = 0; (ii < argc) && (ii < 3); ii++) {
3281         argv[ii] = PyTuple_GetItem(args,ii);
3282     }
3283     if (argc == 2) {
3284         int _v;
3285         {
3286             void *ptr;
3287             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
3288                 _v = 0;
3289                 PyErr_Clear();
3290             }else {
3291                 _v = 1;
3292             }
3293         }
3294         if (_v) {
3295             {
3296                 void *ptr;
3297                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
3298                     _v = 0;
3299                     PyErr_Clear();
3300                 }else {
3301                     _v = 1;
3302                 }
3303             }
3304             if (_v) {
3305                 return _wrap_Rect_contains__SWIG_1(self,args);
3306             }
3307         }
3308     }
3309     if (argc == 2) {
3310         int _v;
3311         {
3312             void *ptr;
3313             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
3314                 _v = 0;
3315                 PyErr_Clear();
3316             }else {
3317                 _v = 1;
3318             }
3319         }
3320         if (_v) {
3321             {
3322                 void *ptr;
3323                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
3324                     _v = 0;
3325                     PyErr_Clear();
3326                 }else {
3327                     _v = 1;
3328                 }
3329             }
3330             if (_v) {
3331                 return _wrap_Rect_contains__SWIG_2(self,args);
3332             }
3333         }
3334     }
3335     if (argc == 3) {
3336         int _v;
3337         {
3338             void *ptr;
3339             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
3340                 _v = 0;
3341                 PyErr_Clear();
3342             }else {
3343                 _v = 1;
3344             }
3345         }
3346         if (_v) {
3347             {
3348                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
3349             }
3350             if (_v) {
3351                 {
3352                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
3353                 }
3354                 if (_v) {
3355                     return _wrap_Rect_contains__SWIG_0(self,args);
3356                 }
3357             }
3358         }
3359     }
3360     
3361     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_contains'");
3362     return NULL;
3363 }
3364
3365
3366 static PyObject * Rect_swigregister(PyObject *self, PyObject *args) {
3367     PyObject *obj;
3368     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3369     SWIG_TypeClientData(SWIGTYPE_p_otk__Rect, obj);
3370     Py_INCREF(obj);
3371     return Py_BuildValue((char *)"");
3372 }
3373 static PyObject *_wrap_new_ScreenInfo(PyObject *self, PyObject *args) {
3374     PyObject *resultobj;
3375     unsigned int arg1 ;
3376     otk::ScreenInfo *result;
3377     PyObject * obj0  = 0 ;
3378     
3379     if(!PyArg_ParseTuple(args,(char *)"O:new_ScreenInfo",&obj0)) goto fail;
3380     arg1 = (unsigned int) PyInt_AsLong(obj0);
3381     if (PyErr_Occurred()) SWIG_fail;
3382     result = (otk::ScreenInfo *)new otk::ScreenInfo(arg1);
3383     
3384     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 1);
3385     return resultobj;
3386     fail:
3387     return NULL;
3388 }
3389
3390
3391 static PyObject *_wrap_ScreenInfo_visual(PyObject *self, PyObject *args) {
3392     PyObject *resultobj;
3393     otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3394     Visual *result;
3395     PyObject * obj0  = 0 ;
3396     
3397     if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_visual",&obj0)) goto fail;
3398     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3399     result = (Visual *)((otk::ScreenInfo const *)arg1)->visual();
3400     
3401     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Visual, 0);
3402     return resultobj;
3403     fail:
3404     return NULL;
3405 }
3406
3407
3408 static PyObject *_wrap_ScreenInfo_rootWindow(PyObject *self, PyObject *args) {
3409     PyObject *resultobj;
3410     otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3411     Window result;
3412     PyObject * obj0  = 0 ;
3413     
3414     if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_rootWindow",&obj0)) goto fail;
3415     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3416     result = (Window)((otk::ScreenInfo const *)arg1)->rootWindow();
3417     
3418     resultobj = PyInt_FromLong((long)result);
3419     return resultobj;
3420     fail:
3421     return NULL;
3422 }
3423
3424
3425 static PyObject *_wrap_ScreenInfo_colormap(PyObject *self, PyObject *args) {
3426     PyObject *resultobj;
3427     otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3428     Colormap result;
3429     PyObject * obj0  = 0 ;
3430     
3431     if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_colormap",&obj0)) goto fail;
3432     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3433     result = (Colormap)((otk::ScreenInfo const *)arg1)->colormap();
3434     
3435     resultobj = PyInt_FromLong((long)result);
3436     return resultobj;
3437     fail:
3438     return NULL;
3439 }
3440
3441
3442 static PyObject *_wrap_ScreenInfo_depth(PyObject *self, PyObject *args) {
3443     PyObject *resultobj;
3444     otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3445     int result;
3446     PyObject * obj0  = 0 ;
3447     
3448     if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_depth",&obj0)) goto fail;
3449     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3450     result = (int)((otk::ScreenInfo const *)arg1)->depth();
3451     
3452     resultobj = PyInt_FromLong((long)result);
3453     return resultobj;
3454     fail:
3455     return NULL;
3456 }
3457
3458
3459 static PyObject *_wrap_ScreenInfo_screen(PyObject *self, PyObject *args) {
3460     PyObject *resultobj;
3461     otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3462     unsigned int result;
3463     PyObject * obj0  = 0 ;
3464     
3465     if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_screen",&obj0)) goto fail;
3466     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3467     result = (unsigned int)((otk::ScreenInfo const *)arg1)->screen();
3468     
3469     resultobj = PyInt_FromLong((long)result);
3470     return resultobj;
3471     fail:
3472     return NULL;
3473 }
3474
3475
3476 static PyObject *_wrap_ScreenInfo_rect(PyObject *self, PyObject *args) {
3477     PyObject *resultobj;
3478     otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3479     otk::Rect *result;
3480     PyObject * obj0  = 0 ;
3481     
3482     if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_rect",&obj0)) goto fail;
3483     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3484     {
3485         otk::Rect const &_result_ref = ((otk::ScreenInfo const *)arg1)->rect();
3486         result = (otk::Rect *) &_result_ref;
3487     }
3488     
3489     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
3490     return resultobj;
3491     fail:
3492     return NULL;
3493 }
3494
3495
3496 static PyObject *_wrap_ScreenInfo_width(PyObject *self, PyObject *args) {
3497     PyObject *resultobj;
3498     otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3499     unsigned int result;
3500     PyObject * obj0  = 0 ;
3501     
3502     if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_width",&obj0)) goto fail;
3503     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3504     result = (unsigned int)((otk::ScreenInfo const *)arg1)->width();
3505     
3506     resultobj = PyInt_FromLong((long)result);
3507     return resultobj;
3508     fail:
3509     return NULL;
3510 }
3511
3512
3513 static PyObject *_wrap_ScreenInfo_height(PyObject *self, PyObject *args) {
3514     PyObject *resultobj;
3515     otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3516     unsigned int result;
3517     PyObject * obj0  = 0 ;
3518     
3519     if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_height",&obj0)) goto fail;
3520     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3521     result = (unsigned int)((otk::ScreenInfo const *)arg1)->height();
3522     
3523     resultobj = PyInt_FromLong((long)result);
3524     return resultobj;
3525     fail:
3526     return NULL;
3527 }
3528
3529
3530 static PyObject *_wrap_ScreenInfo_displayString(PyObject *self, PyObject *args) {
3531     PyObject *resultobj;
3532     otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3533     std::string *result;
3534     PyObject * obj0  = 0 ;
3535     
3536     if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_displayString",&obj0)) goto fail;
3537     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3538     {
3539         std::string const &_result_ref = ((otk::ScreenInfo const *)arg1)->displayString();
3540         result = (std::string *) &_result_ref;
3541     }
3542     
3543     {
3544         resultobj = PyString_FromString(result->c_str());
3545     }
3546     return resultobj;
3547     fail:
3548     return NULL;
3549 }
3550
3551
3552 static PyObject * ScreenInfo_swigregister(PyObject *self, PyObject *args) {
3553     PyObject *obj;
3554     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3555     SWIG_TypeClientData(SWIGTYPE_p_otk__ScreenInfo, obj);
3556     Py_INCREF(obj);
3557     return Py_BuildValue((char *)"");
3558 }
3559 static PyObject *_wrap_Strut_top_set(PyObject *self, PyObject *args) {
3560     PyObject *resultobj;
3561     otk::Strut *arg1 = (otk::Strut *) 0 ;
3562     unsigned int arg2 ;
3563     PyObject * obj0  = 0 ;
3564     PyObject * obj1  = 0 ;
3565     
3566     if(!PyArg_ParseTuple(args,(char *)"OO:Strut_top_set",&obj0,&obj1)) goto fail;
3567     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3568     arg2 = (unsigned int) PyInt_AsLong(obj1);
3569     if (PyErr_Occurred()) SWIG_fail;
3570     if (arg1) (arg1)->top = arg2;
3571     
3572     Py_INCREF(Py_None); resultobj = Py_None;
3573     return resultobj;
3574     fail:
3575     return NULL;
3576 }
3577
3578
3579 static PyObject *_wrap_Strut_top_get(PyObject *self, PyObject *args) {
3580     PyObject *resultobj;
3581     otk::Strut *arg1 = (otk::Strut *) 0 ;
3582     unsigned int result;
3583     PyObject * obj0  = 0 ;
3584     
3585     if(!PyArg_ParseTuple(args,(char *)"O:Strut_top_get",&obj0)) goto fail;
3586     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3587     result = (unsigned int) ((arg1)->top);
3588     
3589     resultobj = PyInt_FromLong((long)result);
3590     return resultobj;
3591     fail:
3592     return NULL;
3593 }
3594
3595
3596 static PyObject *_wrap_Strut_bottom_set(PyObject *self, PyObject *args) {
3597     PyObject *resultobj;
3598     otk::Strut *arg1 = (otk::Strut *) 0 ;
3599     unsigned int arg2 ;
3600     PyObject * obj0  = 0 ;
3601     PyObject * obj1  = 0 ;
3602     
3603     if(!PyArg_ParseTuple(args,(char *)"OO:Strut_bottom_set",&obj0,&obj1)) goto fail;
3604     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3605     arg2 = (unsigned int) PyInt_AsLong(obj1);
3606     if (PyErr_Occurred()) SWIG_fail;
3607     if (arg1) (arg1)->bottom = arg2;
3608     
3609     Py_INCREF(Py_None); resultobj = Py_None;
3610     return resultobj;
3611     fail:
3612     return NULL;
3613 }
3614
3615
3616 static PyObject *_wrap_Strut_bottom_get(PyObject *self, PyObject *args) {
3617     PyObject *resultobj;
3618     otk::Strut *arg1 = (otk::Strut *) 0 ;
3619     unsigned int result;
3620     PyObject * obj0  = 0 ;
3621     
3622     if(!PyArg_ParseTuple(args,(char *)"O:Strut_bottom_get",&obj0)) goto fail;
3623     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3624     result = (unsigned int) ((arg1)->bottom);
3625     
3626     resultobj = PyInt_FromLong((long)result);
3627     return resultobj;
3628     fail:
3629     return NULL;
3630 }
3631
3632
3633 static PyObject *_wrap_Strut_left_set(PyObject *self, PyObject *args) {
3634     PyObject *resultobj;
3635     otk::Strut *arg1 = (otk::Strut *) 0 ;
3636     unsigned int arg2 ;
3637     PyObject * obj0  = 0 ;
3638     PyObject * obj1  = 0 ;
3639     
3640     if(!PyArg_ParseTuple(args,(char *)"OO:Strut_left_set",&obj0,&obj1)) goto fail;
3641     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3642     arg2 = (unsigned int) PyInt_AsLong(obj1);
3643     if (PyErr_Occurred()) SWIG_fail;
3644     if (arg1) (arg1)->left = arg2;
3645     
3646     Py_INCREF(Py_None); resultobj = Py_None;
3647     return resultobj;
3648     fail:
3649     return NULL;
3650 }
3651
3652
3653 static PyObject *_wrap_Strut_left_get(PyObject *self, PyObject *args) {
3654     PyObject *resultobj;
3655     otk::Strut *arg1 = (otk::Strut *) 0 ;
3656     unsigned int result;
3657     PyObject * obj0  = 0 ;
3658     
3659     if(!PyArg_ParseTuple(args,(char *)"O:Strut_left_get",&obj0)) goto fail;
3660     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3661     result = (unsigned int) ((arg1)->left);
3662     
3663     resultobj = PyInt_FromLong((long)result);
3664     return resultobj;
3665     fail:
3666     return NULL;
3667 }
3668
3669
3670 static PyObject *_wrap_Strut_right_set(PyObject *self, PyObject *args) {
3671     PyObject *resultobj;
3672     otk::Strut *arg1 = (otk::Strut *) 0 ;
3673     unsigned int arg2 ;
3674     PyObject * obj0  = 0 ;
3675     PyObject * obj1  = 0 ;
3676     
3677     if(!PyArg_ParseTuple(args,(char *)"OO:Strut_right_set",&obj0,&obj1)) goto fail;
3678     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3679     arg2 = (unsigned int) PyInt_AsLong(obj1);
3680     if (PyErr_Occurred()) SWIG_fail;
3681     if (arg1) (arg1)->right = arg2;
3682     
3683     Py_INCREF(Py_None); resultobj = Py_None;
3684     return resultobj;
3685     fail:
3686     return NULL;
3687 }
3688
3689
3690 static PyObject *_wrap_Strut_right_get(PyObject *self, PyObject *args) {
3691     PyObject *resultobj;
3692     otk::Strut *arg1 = (otk::Strut *) 0 ;
3693     unsigned int result;
3694     PyObject * obj0  = 0 ;
3695     
3696     if(!PyArg_ParseTuple(args,(char *)"O:Strut_right_get",&obj0)) goto fail;
3697     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3698     result = (unsigned int) ((arg1)->right);
3699     
3700     resultobj = PyInt_FromLong((long)result);
3701     return resultobj;
3702     fail:
3703     return NULL;
3704 }
3705
3706
3707 static PyObject *_wrap_new_Strut__SWIG_0(PyObject *self, PyObject *args) {
3708     PyObject *resultobj;
3709     otk::Strut *result;
3710     
3711     if(!PyArg_ParseTuple(args,(char *)":new_Strut")) goto fail;
3712     result = (otk::Strut *)new otk::Strut();
3713     
3714     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 1);
3715     return resultobj;
3716     fail:
3717     return NULL;
3718 }
3719
3720
3721 static PyObject *_wrap_new_Strut__SWIG_1(PyObject *self, PyObject *args) {
3722     PyObject *resultobj;
3723     int arg1 ;
3724     int arg2 ;
3725     int arg3 ;
3726     int arg4 ;
3727     otk::Strut *result;
3728     
3729     if(!PyArg_ParseTuple(args,(char *)"iiii:new_Strut",&arg1,&arg2,&arg3,&arg4)) goto fail;
3730     result = (otk::Strut *)new otk::Strut(arg1,arg2,arg3,arg4);
3731     
3732     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 1);
3733     return resultobj;
3734     fail:
3735     return NULL;
3736 }
3737
3738
3739 static PyObject *_wrap_new_Strut(PyObject *self, PyObject *args) {
3740     int argc;
3741     PyObject *argv[5];
3742     int ii;
3743     
3744     argc = PyObject_Length(args);
3745     for (ii = 0; (ii < argc) && (ii < 4); ii++) {
3746         argv[ii] = PyTuple_GetItem(args,ii);
3747     }
3748     if (argc == 0) {
3749         return _wrap_new_Strut__SWIG_0(self,args);
3750     }
3751     if (argc == 4) {
3752         int _v;
3753         {
3754             _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
3755         }
3756         if (_v) {
3757             {
3758                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
3759             }
3760             if (_v) {
3761                 {
3762                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
3763                 }
3764                 if (_v) {
3765                     {
3766                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
3767                     }
3768                     if (_v) {
3769                         return _wrap_new_Strut__SWIG_1(self,args);
3770                     }
3771                 }
3772             }
3773         }
3774     }
3775     
3776     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Strut'");
3777     return NULL;
3778 }
3779
3780
3781 static PyObject * Strut_swigregister(PyObject *self, PyObject *args) {
3782     PyObject *obj;
3783     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3784     SWIG_TypeClientData(SWIGTYPE_p_otk__Strut, obj);
3785     Py_INCREF(obj);
3786     return Py_BuildValue((char *)"");
3787 }
3788 static int _wrap_BSENTINEL_set(PyObject *_val) {
3789     PyErr_SetString(PyExc_TypeError,"Variable BSENTINEL is read-only.");
3790     return 1;
3791 }
3792
3793
3794 static PyObject *_wrap_BSENTINEL_get() {
3795     PyObject *pyobj;
3796     
3797     pyobj = PyInt_FromLong((long)otk::BSENTINEL);
3798     return pyobj;
3799 }
3800
3801
3802 static PyObject *_wrap_expandTilde(PyObject *self, PyObject *args) {
3803     PyObject *resultobj;
3804     std::string *arg1 = 0 ;
3805     std::string result;
3806     std::string temp1 ;
3807     PyObject * obj0  = 0 ;
3808     
3809     if(!PyArg_ParseTuple(args,(char *)"O:expandTilde",&obj0)) goto fail;
3810     {
3811         if (PyString_Check(obj0)) {
3812             temp1 = std::string(PyString_AsString(obj0));
3813             arg1 = &temp1;
3814         }else {
3815             SWIG_exception(SWIG_TypeError, "string expected");
3816         }
3817     }
3818     result = otk::expandTilde((std::string const &)*arg1);
3819     
3820     {
3821         resultobj = PyString_FromString((&result)->c_str());
3822     }
3823     return resultobj;
3824     fail:
3825     return NULL;
3826 }
3827
3828
3829 static PyObject *_wrap_bexec(PyObject *self, PyObject *args) {
3830     PyObject *resultobj;
3831     std::string *arg1 = 0 ;
3832     std::string *arg2 = 0 ;
3833     std::string temp1 ;
3834     std::string temp2 ;
3835     PyObject * obj0  = 0 ;
3836     PyObject * obj1  = 0 ;
3837     
3838     if(!PyArg_ParseTuple(args,(char *)"OO:bexec",&obj0,&obj1)) goto fail;
3839     {
3840         if (PyString_Check(obj0)) {
3841             temp1 = std::string(PyString_AsString(obj0));
3842             arg1 = &temp1;
3843         }else {
3844             SWIG_exception(SWIG_TypeError, "string expected");
3845         }
3846     }
3847     {
3848         if (PyString_Check(obj1)) {
3849             temp2 = std::string(PyString_AsString(obj1));
3850             arg2 = &temp2;
3851         }else {
3852             SWIG_exception(SWIG_TypeError, "string expected");
3853         }
3854     }
3855     otk::bexec((std::string const &)*arg1,(std::string const &)*arg2);
3856     
3857     Py_INCREF(Py_None); resultobj = Py_None;
3858     return resultobj;
3859     fail:
3860     return NULL;
3861 }
3862
3863
3864 static PyObject *_wrap_textPropertyToString(PyObject *self, PyObject *args) {
3865     PyObject *resultobj;
3866     Display *arg1 = (Display *) 0 ;
3867     XTextProperty *arg2 = 0 ;
3868     std::string result;
3869     PyObject * obj0  = 0 ;
3870     PyObject * obj1  = 0 ;
3871     
3872     if(!PyArg_ParseTuple(args,(char *)"OO:textPropertyToString",&obj0,&obj1)) goto fail;
3873     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3874     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XTextProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3875     if (arg2 == NULL) {
3876         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
3877     }
3878     result = otk::textPropertyToString(arg1,*arg2);
3879     
3880     {
3881         resultobj = PyString_FromString((&result)->c_str());
3882     }
3883     return resultobj;
3884     fail:
3885     return NULL;
3886 }
3887
3888
3889 static PyObject *_wrap_itostring_unsigned_long(PyObject *self, PyObject *args) {
3890     PyObject *resultobj;
3891     unsigned long arg1 ;
3892     std::string result;
3893     PyObject * obj0  = 0 ;
3894     
3895     if(!PyArg_ParseTuple(args,(char *)"O:itostring_unsigned_long",&obj0)) goto fail;
3896     arg1 = (unsigned long) PyInt_AsLong(obj0);
3897     if (PyErr_Occurred()) SWIG_fail;
3898     result = otk::itostring(arg1);
3899     
3900     {
3901         resultobj = PyString_FromString((&result)->c_str());
3902     }
3903     return resultobj;
3904     fail:
3905     return NULL;
3906 }
3907
3908
3909 static PyObject *_wrap_itostring_long(PyObject *self, PyObject *args) {
3910     PyObject *resultobj;
3911     long arg1 ;
3912     std::string result;
3913     
3914     if(!PyArg_ParseTuple(args,(char *)"l:itostring_long",&arg1)) goto fail;
3915     result = otk::itostring(arg1);
3916     
3917     {
3918         resultobj = PyString_FromString((&result)->c_str());
3919     }
3920     return resultobj;
3921     fail:
3922     return NULL;
3923 }
3924
3925
3926 static PyObject *_wrap_itostring_unsigned(PyObject *self, PyObject *args) {
3927     PyObject *resultobj;
3928     unsigned int arg1 ;
3929     std::string result;
3930     PyObject * obj0  = 0 ;
3931     
3932     if(!PyArg_ParseTuple(args,(char *)"O:itostring_unsigned",&obj0)) goto fail;
3933     arg1 = (unsigned int) PyInt_AsLong(obj0);
3934     if (PyErr_Occurred()) SWIG_fail;
3935     result = otk::itostring(arg1);
3936     
3937     {
3938         resultobj = PyString_FromString((&result)->c_str());
3939     }
3940     return resultobj;
3941     fail:
3942     return NULL;
3943 }
3944
3945
3946 static PyObject *_wrap_itostring(PyObject *self, PyObject *args) {
3947     PyObject *resultobj;
3948     int arg1 ;
3949     std::string result;
3950     
3951     if(!PyArg_ParseTuple(args,(char *)"i:itostring",&arg1)) goto fail;
3952     result = otk::itostring(arg1);
3953     
3954     {
3955         resultobj = PyString_FromString((&result)->c_str());
3956     }
3957     return resultobj;
3958     fail:
3959     return NULL;
3960 }
3961
3962
3963 static PyObject *_wrap_basename(PyObject *self, PyObject *args) {
3964     PyObject *resultobj;
3965     std::string *arg1 = 0 ;
3966     std::string result;
3967     std::string temp1 ;
3968     PyObject * obj0  = 0 ;
3969     
3970     if(!PyArg_ParseTuple(args,(char *)"O:basename",&obj0)) goto fail;
3971     {
3972         if (PyString_Check(obj0)) {
3973             temp1 = std::string(PyString_AsString(obj0));
3974             arg1 = &temp1;
3975         }else {
3976             SWIG_exception(SWIG_TypeError, "string expected");
3977         }
3978     }
3979     result = otk::basename((std::string const &)*arg1);
3980     
3981     {
3982         resultobj = PyString_FromString((&result)->c_str());
3983     }
3984     return resultobj;
3985     fail:
3986     return NULL;
3987 }
3988
3989
3990 static PyObject *_wrap_OtkEventHandler_handle(PyObject *self, PyObject *args) {
3991     PyObject *resultobj;
3992     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
3993     XEvent *arg2 = 0 ;
3994     PyObject * obj0  = 0 ;
3995     PyObject * obj1  = 0 ;
3996     
3997     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_handle",&obj0,&obj1)) goto fail;
3998     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3999     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4000     if (arg2 == NULL) {
4001         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4002     }
4003     (arg1)->handle((XEvent const &)*arg2);
4004     
4005     Py_INCREF(Py_None); resultobj = Py_None;
4006     return resultobj;
4007     fail:
4008     return NULL;
4009 }
4010
4011
4012 static PyObject *_wrap_OtkEventHandler_keyPressHandler(PyObject *self, PyObject *args) {
4013     PyObject *resultobj;
4014     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4015     XKeyEvent *arg2 = 0 ;
4016     PyObject * obj0  = 0 ;
4017     PyObject * obj1  = 0 ;
4018     
4019     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_keyPressHandler",&obj0,&obj1)) goto fail;
4020     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4021     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4022     if (arg2 == NULL) {
4023         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4024     }
4025     (arg1)->keyPressHandler((XKeyEvent const &)*arg2);
4026     
4027     Py_INCREF(Py_None); resultobj = Py_None;
4028     return resultobj;
4029     fail:
4030     return NULL;
4031 }
4032
4033
4034 static PyObject *_wrap_OtkEventHandler_keyReleaseHandler(PyObject *self, PyObject *args) {
4035     PyObject *resultobj;
4036     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4037     XKeyEvent *arg2 = 0 ;
4038     PyObject * obj0  = 0 ;
4039     PyObject * obj1  = 0 ;
4040     
4041     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_keyReleaseHandler",&obj0,&obj1)) goto fail;
4042     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4043     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4044     if (arg2 == NULL) {
4045         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4046     }
4047     (arg1)->keyReleaseHandler((XKeyEvent const &)*arg2);
4048     
4049     Py_INCREF(Py_None); resultobj = Py_None;
4050     return resultobj;
4051     fail:
4052     return NULL;
4053 }
4054
4055
4056 static PyObject *_wrap_OtkEventHandler_buttonPressHandler(PyObject *self, PyObject *args) {
4057     PyObject *resultobj;
4058     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4059     XButtonEvent *arg2 = 0 ;
4060     PyObject * obj0  = 0 ;
4061     PyObject * obj1  = 0 ;
4062     
4063     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_buttonPressHandler",&obj0,&obj1)) goto fail;
4064     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4065     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4066     if (arg2 == NULL) {
4067         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4068     }
4069     (arg1)->buttonPressHandler((XButtonEvent const &)*arg2);
4070     
4071     Py_INCREF(Py_None); resultobj = Py_None;
4072     return resultobj;
4073     fail:
4074     return NULL;
4075 }
4076
4077
4078 static PyObject *_wrap_OtkEventHandler_buttonReleaseHandler(PyObject *self, PyObject *args) {
4079     PyObject *resultobj;
4080     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4081     XButtonEvent *arg2 = 0 ;
4082     PyObject * obj0  = 0 ;
4083     PyObject * obj1  = 0 ;
4084     
4085     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_buttonReleaseHandler",&obj0,&obj1)) goto fail;
4086     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4087     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4088     if (arg2 == NULL) {
4089         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4090     }
4091     (arg1)->buttonReleaseHandler((XButtonEvent const &)*arg2);
4092     
4093     Py_INCREF(Py_None); resultobj = Py_None;
4094     return resultobj;
4095     fail:
4096     return NULL;
4097 }
4098
4099
4100 static PyObject *_wrap_OtkEventHandler_motionHandler(PyObject *self, PyObject *args) {
4101     PyObject *resultobj;
4102     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4103     XMotionEvent *arg2 = 0 ;
4104     PyObject * obj0  = 0 ;
4105     PyObject * obj1  = 0 ;
4106     
4107     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_motionHandler",&obj0,&obj1)) goto fail;
4108     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4109     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMotionEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4110     if (arg2 == NULL) {
4111         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4112     }
4113     (arg1)->motionHandler((XMotionEvent const &)*arg2);
4114     
4115     Py_INCREF(Py_None); resultobj = Py_None;
4116     return resultobj;
4117     fail:
4118     return NULL;
4119 }
4120
4121
4122 static PyObject *_wrap_OtkEventHandler_enterHandler(PyObject *self, PyObject *args) {
4123     PyObject *resultobj;
4124     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4125     XCrossingEvent *arg2 = 0 ;
4126     PyObject * obj0  = 0 ;
4127     PyObject * obj1  = 0 ;
4128     
4129     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_enterHandler",&obj0,&obj1)) goto fail;
4130     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4131     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCrossingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4132     if (arg2 == NULL) {
4133         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4134     }
4135     (arg1)->enterHandler((XCrossingEvent const &)*arg2);
4136     
4137     Py_INCREF(Py_None); resultobj = Py_None;
4138     return resultobj;
4139     fail:
4140     return NULL;
4141 }
4142
4143
4144 static PyObject *_wrap_OtkEventHandler_leaveHandler(PyObject *self, PyObject *args) {
4145     PyObject *resultobj;
4146     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4147     XCrossingEvent *arg2 = 0 ;
4148     PyObject * obj0  = 0 ;
4149     PyObject * obj1  = 0 ;
4150     
4151     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_leaveHandler",&obj0,&obj1)) goto fail;
4152     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4153     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCrossingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4154     if (arg2 == NULL) {
4155         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4156     }
4157     (arg1)->leaveHandler((XCrossingEvent const &)*arg2);
4158     
4159     Py_INCREF(Py_None); resultobj = Py_None;
4160     return resultobj;
4161     fail:
4162     return NULL;
4163 }
4164
4165
4166 static PyObject *_wrap_OtkEventHandler_focusHandler(PyObject *self, PyObject *args) {
4167     PyObject *resultobj;
4168     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4169     XFocusChangeEvent *arg2 = 0 ;
4170     PyObject * obj0  = 0 ;
4171     PyObject * obj1  = 0 ;
4172     
4173     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_focusHandler",&obj0,&obj1)) goto fail;
4174     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4175     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4176     if (arg2 == NULL) {
4177         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4178     }
4179     (arg1)->focusHandler((XFocusChangeEvent const &)*arg2);
4180     
4181     Py_INCREF(Py_None); resultobj = Py_None;
4182     return resultobj;
4183     fail:
4184     return NULL;
4185 }
4186
4187
4188 static PyObject *_wrap_OtkEventHandler_unfocusHandler(PyObject *self, PyObject *args) {
4189     PyObject *resultobj;
4190     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4191     XFocusChangeEvent *arg2 = 0 ;
4192     PyObject * obj0  = 0 ;
4193     PyObject * obj1  = 0 ;
4194     
4195     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_unfocusHandler",&obj0,&obj1)) goto fail;
4196     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4197     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4198     if (arg2 == NULL) {
4199         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4200     }
4201     (arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2);
4202     
4203     Py_INCREF(Py_None); resultobj = Py_None;
4204     return resultobj;
4205     fail:
4206     return NULL;
4207 }
4208
4209
4210 static PyObject *_wrap_OtkEventHandler_exposeHandler(PyObject *self, PyObject *args) {
4211     PyObject *resultobj;
4212     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4213     XExposeEvent *arg2 = 0 ;
4214     PyObject * obj0  = 0 ;
4215     PyObject * obj1  = 0 ;
4216     
4217     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_exposeHandler",&obj0,&obj1)) goto fail;
4218     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4219     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4220     if (arg2 == NULL) {
4221         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4222     }
4223     (arg1)->exposeHandler((XExposeEvent const &)*arg2);
4224     
4225     Py_INCREF(Py_None); resultobj = Py_None;
4226     return resultobj;
4227     fail:
4228     return NULL;
4229 }
4230
4231
4232 static PyObject *_wrap_OtkEventHandler_graphicsExposeHandler(PyObject *self, PyObject *args) {
4233     PyObject *resultobj;
4234     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4235     XGraphicsExposeEvent *arg2 = 0 ;
4236     PyObject * obj0  = 0 ;
4237     PyObject * obj1  = 0 ;
4238     
4239     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_graphicsExposeHandler",&obj0,&obj1)) goto fail;
4240     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4241     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XGraphicsExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4242     if (arg2 == NULL) {
4243         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4244     }
4245     (arg1)->graphicsExposeHandler((XGraphicsExposeEvent const &)*arg2);
4246     
4247     Py_INCREF(Py_None); resultobj = Py_None;
4248     return resultobj;
4249     fail:
4250     return NULL;
4251 }
4252
4253
4254 static PyObject *_wrap_OtkEventHandler_noExposeEventHandler(PyObject *self, PyObject *args) {
4255     PyObject *resultobj;
4256     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4257     XNoExposeEvent *arg2 = 0 ;
4258     PyObject * obj0  = 0 ;
4259     PyObject * obj1  = 0 ;
4260     
4261     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_noExposeEventHandler",&obj0,&obj1)) goto fail;
4262     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4263     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XNoExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4264     if (arg2 == NULL) {
4265         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4266     }
4267     (arg1)->noExposeEventHandler((XNoExposeEvent const &)*arg2);
4268     
4269     Py_INCREF(Py_None); resultobj = Py_None;
4270     return resultobj;
4271     fail:
4272     return NULL;
4273 }
4274
4275
4276 static PyObject *_wrap_OtkEventHandler_circulateRequestHandler(PyObject *self, PyObject *args) {
4277     PyObject *resultobj;
4278     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4279     XCirculateRequestEvent *arg2 = 0 ;
4280     PyObject * obj0  = 0 ;
4281     PyObject * obj1  = 0 ;
4282     
4283     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_circulateRequestHandler",&obj0,&obj1)) goto fail;
4284     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4285     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCirculateRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4286     if (arg2 == NULL) {
4287         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4288     }
4289     (arg1)->circulateRequestHandler((XCirculateRequestEvent const &)*arg2);
4290     
4291     Py_INCREF(Py_None); resultobj = Py_None;
4292     return resultobj;
4293     fail:
4294     return NULL;
4295 }
4296
4297
4298 static PyObject *_wrap_OtkEventHandler_configureRequestHandler(PyObject *self, PyObject *args) {
4299     PyObject *resultobj;
4300     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4301     XConfigureRequestEvent *arg2 = 0 ;
4302     PyObject * obj0  = 0 ;
4303     PyObject * obj1  = 0 ;
4304     
4305     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_configureRequestHandler",&obj0,&obj1)) goto fail;
4306     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4307     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4308     if (arg2 == NULL) {
4309         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4310     }
4311     (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2);
4312     
4313     Py_INCREF(Py_None); resultobj = Py_None;
4314     return resultobj;
4315     fail:
4316     return NULL;
4317 }
4318
4319
4320 static PyObject *_wrap_OtkEventHandler_mapRequestHandler(PyObject *self, PyObject *args) {
4321     PyObject *resultobj;
4322     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4323     XMapRequestEvent *arg2 = 0 ;
4324     PyObject * obj0  = 0 ;
4325     PyObject * obj1  = 0 ;
4326     
4327     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_mapRequestHandler",&obj0,&obj1)) goto fail;
4328     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4329     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4330     if (arg2 == NULL) {
4331         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4332     }
4333     (arg1)->mapRequestHandler((XMapRequestEvent const &)*arg2);
4334     
4335     Py_INCREF(Py_None); resultobj = Py_None;
4336     return resultobj;
4337     fail:
4338     return NULL;
4339 }
4340
4341
4342 static PyObject *_wrap_OtkEventHandler_resizeRequestHandler(PyObject *self, PyObject *args) {
4343     PyObject *resultobj;
4344     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4345     XResizeRequestEvent *arg2 = 0 ;
4346     PyObject * obj0  = 0 ;
4347     PyObject * obj1  = 0 ;
4348     
4349     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_resizeRequestHandler",&obj0,&obj1)) goto fail;
4350     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4351     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XResizeRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4352     if (arg2 == NULL) {
4353         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4354     }
4355     (arg1)->resizeRequestHandler((XResizeRequestEvent const &)*arg2);
4356     
4357     Py_INCREF(Py_None); resultobj = Py_None;
4358     return resultobj;
4359     fail:
4360     return NULL;
4361 }
4362
4363
4364 static PyObject *_wrap_OtkEventHandler_circulateHandler(PyObject *self, PyObject *args) {
4365     PyObject *resultobj;
4366     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4367     XCirculateEvent *arg2 = 0 ;
4368     PyObject * obj0  = 0 ;
4369     PyObject * obj1  = 0 ;
4370     
4371     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_circulateHandler",&obj0,&obj1)) goto fail;
4372     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4373     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCirculateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4374     if (arg2 == NULL) {
4375         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4376     }
4377     (arg1)->circulateHandler((XCirculateEvent const &)*arg2);
4378     
4379     Py_INCREF(Py_None); resultobj = Py_None;
4380     return resultobj;
4381     fail:
4382     return NULL;
4383 }
4384
4385
4386 static PyObject *_wrap_OtkEventHandler_configureHandler(PyObject *self, PyObject *args) {
4387     PyObject *resultobj;
4388     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4389     XConfigureEvent *arg2 = 0 ;
4390     PyObject * obj0  = 0 ;
4391     PyObject * obj1  = 0 ;
4392     
4393     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_configureHandler",&obj0,&obj1)) goto fail;
4394     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4395     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4396     if (arg2 == NULL) {
4397         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4398     }
4399     (arg1)->configureHandler((XConfigureEvent const &)*arg2);
4400     
4401     Py_INCREF(Py_None); resultobj = Py_None;
4402     return resultobj;
4403     fail:
4404     return NULL;
4405 }
4406
4407
4408 static PyObject *_wrap_OtkEventHandler_createHandler(PyObject *self, PyObject *args) {
4409     PyObject *resultobj;
4410     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4411     XCreateWindowEvent *arg2 = 0 ;
4412     PyObject * obj0  = 0 ;
4413     PyObject * obj1  = 0 ;
4414     
4415     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_createHandler",&obj0,&obj1)) goto fail;
4416     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4417     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCreateWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4418     if (arg2 == NULL) {
4419         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4420     }
4421     (arg1)->createHandler((XCreateWindowEvent const &)*arg2);
4422     
4423     Py_INCREF(Py_None); resultobj = Py_None;
4424     return resultobj;
4425     fail:
4426     return NULL;
4427 }
4428
4429
4430 static PyObject *_wrap_OtkEventHandler_destroyHandler(PyObject *self, PyObject *args) {
4431     PyObject *resultobj;
4432     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4433     XDestroyWindowEvent *arg2 = 0 ;
4434     PyObject * obj0  = 0 ;
4435     PyObject * obj1  = 0 ;
4436     
4437     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_destroyHandler",&obj0,&obj1)) goto fail;
4438     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4439     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4440     if (arg2 == NULL) {
4441         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4442     }
4443     (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2);
4444     
4445     Py_INCREF(Py_None); resultobj = Py_None;
4446     return resultobj;
4447     fail:
4448     return NULL;
4449 }
4450
4451
4452 static PyObject *_wrap_OtkEventHandler_gravityHandler(PyObject *self, PyObject *args) {
4453     PyObject *resultobj;
4454     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4455     XGravityEvent *arg2 = 0 ;
4456     PyObject * obj0  = 0 ;
4457     PyObject * obj1  = 0 ;
4458     
4459     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_gravityHandler",&obj0,&obj1)) goto fail;
4460     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4461     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XGravityEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4462     if (arg2 == NULL) {
4463         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4464     }
4465     (arg1)->gravityHandler((XGravityEvent const &)*arg2);
4466     
4467     Py_INCREF(Py_None); resultobj = Py_None;
4468     return resultobj;
4469     fail:
4470     return NULL;
4471 }
4472
4473
4474 static PyObject *_wrap_OtkEventHandler_mapHandler(PyObject *self, PyObject *args) {
4475     PyObject *resultobj;
4476     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4477     XMapEvent *arg2 = 0 ;
4478     PyObject * obj0  = 0 ;
4479     PyObject * obj1  = 0 ;
4480     
4481     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_mapHandler",&obj0,&obj1)) goto fail;
4482     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4483     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4484     if (arg2 == NULL) {
4485         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4486     }
4487     (arg1)->mapHandler((XMapEvent const &)*arg2);
4488     
4489     Py_INCREF(Py_None); resultobj = Py_None;
4490     return resultobj;
4491     fail:
4492     return NULL;
4493 }
4494
4495
4496 static PyObject *_wrap_OtkEventHandler_mappingHandler(PyObject *self, PyObject *args) {
4497     PyObject *resultobj;
4498     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4499     XMappingEvent *arg2 = 0 ;
4500     PyObject * obj0  = 0 ;
4501     PyObject * obj1  = 0 ;
4502     
4503     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_mappingHandler",&obj0,&obj1)) goto fail;
4504     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4505     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMappingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4506     if (arg2 == NULL) {
4507         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4508     }
4509     (arg1)->mappingHandler((XMappingEvent const &)*arg2);
4510     
4511     Py_INCREF(Py_None); resultobj = Py_None;
4512     return resultobj;
4513     fail:
4514     return NULL;
4515 }
4516
4517
4518 static PyObject *_wrap_OtkEventHandler_reparentHandler(PyObject *self, PyObject *args) {
4519     PyObject *resultobj;
4520     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4521     XReparentEvent *arg2 = 0 ;
4522     PyObject * obj0  = 0 ;
4523     PyObject * obj1  = 0 ;
4524     
4525     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_reparentHandler",&obj0,&obj1)) goto fail;
4526     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4527     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4528     if (arg2 == NULL) {
4529         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4530     }
4531     (arg1)->reparentHandler((XReparentEvent const &)*arg2);
4532     
4533     Py_INCREF(Py_None); resultobj = Py_None;
4534     return resultobj;
4535     fail:
4536     return NULL;
4537 }
4538
4539
4540 static PyObject *_wrap_OtkEventHandler_unmapHandler(PyObject *self, PyObject *args) {
4541     PyObject *resultobj;
4542     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4543     XUnmapEvent *arg2 = 0 ;
4544     PyObject * obj0  = 0 ;
4545     PyObject * obj1  = 0 ;
4546     
4547     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_unmapHandler",&obj0,&obj1)) goto fail;
4548     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4549     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4550     if (arg2 == NULL) {
4551         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4552     }
4553     (arg1)->unmapHandler((XUnmapEvent const &)*arg2);
4554     
4555     Py_INCREF(Py_None); resultobj = Py_None;
4556     return resultobj;
4557     fail:
4558     return NULL;
4559 }
4560
4561
4562 static PyObject *_wrap_OtkEventHandler_visibilityHandler(PyObject *self, PyObject *args) {
4563     PyObject *resultobj;
4564     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4565     XVisibilityEvent *arg2 = 0 ;
4566     PyObject * obj0  = 0 ;
4567     PyObject * obj1  = 0 ;
4568     
4569     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_visibilityHandler",&obj0,&obj1)) goto fail;
4570     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4571     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XVisibilityEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4572     if (arg2 == NULL) {
4573         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4574     }
4575     (arg1)->visibilityHandler((XVisibilityEvent const &)*arg2);
4576     
4577     Py_INCREF(Py_None); resultobj = Py_None;
4578     return resultobj;
4579     fail:
4580     return NULL;
4581 }
4582
4583
4584 static PyObject *_wrap_OtkEventHandler_colorMapHandler(PyObject *self, PyObject *args) {
4585     PyObject *resultobj;
4586     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4587     XColormapEvent *arg2 = 0 ;
4588     PyObject * obj0  = 0 ;
4589     PyObject * obj1  = 0 ;
4590     
4591     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_colorMapHandler",&obj0,&obj1)) goto fail;
4592     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4593     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XColormapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4594     if (arg2 == NULL) {
4595         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4596     }
4597     (arg1)->colorMapHandler((XColormapEvent const &)*arg2);
4598     
4599     Py_INCREF(Py_None); resultobj = Py_None;
4600     return resultobj;
4601     fail:
4602     return NULL;
4603 }
4604
4605
4606 static PyObject *_wrap_OtkEventHandler_propertyHandler(PyObject *self, PyObject *args) {
4607     PyObject *resultobj;
4608     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4609     XPropertyEvent *arg2 = 0 ;
4610     PyObject * obj0  = 0 ;
4611     PyObject * obj1  = 0 ;
4612     
4613     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_propertyHandler",&obj0,&obj1)) goto fail;
4614     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4615     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4616     if (arg2 == NULL) {
4617         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4618     }
4619     (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
4620     
4621     Py_INCREF(Py_None); resultobj = Py_None;
4622     return resultobj;
4623     fail:
4624     return NULL;
4625 }
4626
4627
4628 static PyObject *_wrap_OtkEventHandler_selectionClearHandler(PyObject *self, PyObject *args) {
4629     PyObject *resultobj;
4630     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4631     XSelectionClearEvent *arg2 = 0 ;
4632     PyObject * obj0  = 0 ;
4633     PyObject * obj1  = 0 ;
4634     
4635     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_selectionClearHandler",&obj0,&obj1)) goto fail;
4636     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4637     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionClearEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4638     if (arg2 == NULL) {
4639         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4640     }
4641     (arg1)->selectionClearHandler((XSelectionClearEvent const &)*arg2);
4642     
4643     Py_INCREF(Py_None); resultobj = Py_None;
4644     return resultobj;
4645     fail:
4646     return NULL;
4647 }
4648
4649
4650 static PyObject *_wrap_OtkEventHandler_selectionHandler(PyObject *self, PyObject *args) {
4651     PyObject *resultobj;
4652     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4653     XSelectionEvent *arg2 = 0 ;
4654     PyObject * obj0  = 0 ;
4655     PyObject * obj1  = 0 ;
4656     
4657     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_selectionHandler",&obj0,&obj1)) goto fail;
4658     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4659     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4660     if (arg2 == NULL) {
4661         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4662     }
4663     (arg1)->selectionHandler((XSelectionEvent const &)*arg2);
4664     
4665     Py_INCREF(Py_None); resultobj = Py_None;
4666     return resultobj;
4667     fail:
4668     return NULL;
4669 }
4670
4671
4672 static PyObject *_wrap_OtkEventHandler_selectionRequestHandler(PyObject *self, PyObject *args) {
4673     PyObject *resultobj;
4674     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4675     XSelectionRequestEvent *arg2 = 0 ;
4676     PyObject * obj0  = 0 ;
4677     PyObject * obj1  = 0 ;
4678     
4679     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_selectionRequestHandler",&obj0,&obj1)) goto fail;
4680     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4681     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4682     if (arg2 == NULL) {
4683         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4684     }
4685     (arg1)->selectionRequestHandler((XSelectionRequestEvent const &)*arg2);
4686     
4687     Py_INCREF(Py_None); resultobj = Py_None;
4688     return resultobj;
4689     fail:
4690     return NULL;
4691 }
4692
4693
4694 static PyObject *_wrap_OtkEventHandler_clientMessageHandler(PyObject *self, PyObject *args) {
4695     PyObject *resultobj;
4696     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4697     XClientMessageEvent *arg2 = 0 ;
4698     PyObject * obj0  = 0 ;
4699     PyObject * obj1  = 0 ;
4700     
4701     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_clientMessageHandler",&obj0,&obj1)) goto fail;
4702     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4703     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4704     if (arg2 == NULL) {
4705         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4706     }
4707     (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
4708     
4709     Py_INCREF(Py_None); resultobj = Py_None;
4710     return resultobj;
4711     fail:
4712     return NULL;
4713 }
4714
4715
4716 static PyObject *_wrap_delete_OtkEventHandler(PyObject *self, PyObject *args) {
4717     PyObject *resultobj;
4718     otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
4719     PyObject * obj0  = 0 ;
4720     
4721     if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkEventHandler",&obj0)) goto fail;
4722     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4723     delete arg1;
4724     
4725     Py_INCREF(Py_None); resultobj = Py_None;
4726     return resultobj;
4727     fail:
4728     return NULL;
4729 }
4730
4731
4732 static PyObject * OtkEventHandler_swigregister(PyObject *self, PyObject *args) {
4733     PyObject *obj;
4734     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4735     SWIG_TypeClientData(SWIGTYPE_p_otk__OtkEventHandler, obj);
4736     Py_INCREF(obj);
4737     return Py_BuildValue((char *)"");
4738 }
4739 static PyObject *_wrap_new_OtkEventDispatcher(PyObject *self, PyObject *args) {
4740     PyObject *resultobj;
4741     otk::OtkEventDispatcher *result;
4742     
4743     if(!PyArg_ParseTuple(args,(char *)":new_OtkEventDispatcher")) goto fail;
4744     result = (otk::OtkEventDispatcher *)new otk::OtkEventDispatcher();
4745     
4746     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventDispatcher, 1);
4747     return resultobj;
4748     fail:
4749     return NULL;
4750 }
4751
4752
4753 static PyObject *_wrap_delete_OtkEventDispatcher(PyObject *self, PyObject *args) {
4754     PyObject *resultobj;
4755     otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
4756     PyObject * obj0  = 0 ;
4757     
4758     if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkEventDispatcher",&obj0)) goto fail;
4759     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4760     delete arg1;
4761     
4762     Py_INCREF(Py_None); resultobj = Py_None;
4763     return resultobj;
4764     fail:
4765     return NULL;
4766 }
4767
4768
4769 static PyObject *_wrap_OtkEventDispatcher_clearAllHandlers(PyObject *self, PyObject *args) {
4770     PyObject *resultobj;
4771     otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
4772     PyObject * obj0  = 0 ;
4773     
4774     if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_clearAllHandlers",&obj0)) goto fail;
4775     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4776     (arg1)->clearAllHandlers();
4777     
4778     Py_INCREF(Py_None); resultobj = Py_None;
4779     return resultobj;
4780     fail:
4781     return NULL;
4782 }
4783
4784
4785 static PyObject *_wrap_OtkEventDispatcher_registerHandler(PyObject *self, PyObject *args) {
4786     PyObject *resultobj;
4787     otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
4788     Window arg2 ;
4789     otk::OtkEventHandler *arg3 = (otk::OtkEventHandler *) 0 ;
4790     PyObject * obj0  = 0 ;
4791     PyObject * obj1  = 0 ;
4792     PyObject * obj2  = 0 ;
4793     
4794     if(!PyArg_ParseTuple(args,(char *)"OOO:OtkEventDispatcher_registerHandler",&obj0,&obj1,&obj2)) goto fail;
4795     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4796     arg2 = (Window) PyInt_AsLong(obj1);
4797     if (PyErr_Occurred()) SWIG_fail;
4798     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4799     (arg1)->registerHandler(arg2,arg3);
4800     
4801     Py_INCREF(Py_None); resultobj = Py_None;
4802     return resultobj;
4803     fail:
4804     return NULL;
4805 }
4806
4807
4808 static PyObject *_wrap_OtkEventDispatcher_clearHandler(PyObject *self, PyObject *args) {
4809     PyObject *resultobj;
4810     otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
4811     Window arg2 ;
4812     PyObject * obj0  = 0 ;
4813     PyObject * obj1  = 0 ;
4814     
4815     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_clearHandler",&obj0,&obj1)) goto fail;
4816     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4817     arg2 = (Window) PyInt_AsLong(obj1);
4818     if (PyErr_Occurred()) SWIG_fail;
4819     (arg1)->clearHandler(arg2);
4820     
4821     Py_INCREF(Py_None); resultobj = Py_None;
4822     return resultobj;
4823     fail:
4824     return NULL;
4825 }
4826
4827
4828 static PyObject *_wrap_OtkEventDispatcher_dispatchEvents(PyObject *self, PyObject *args) {
4829     PyObject *resultobj;
4830     otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
4831     PyObject * obj0  = 0 ;
4832     
4833     if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_dispatchEvents",&obj0)) goto fail;
4834     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4835     (arg1)->dispatchEvents();
4836     
4837     Py_INCREF(Py_None); resultobj = Py_None;
4838     return resultobj;
4839     fail:
4840     return NULL;
4841 }
4842
4843
4844 static PyObject *_wrap_OtkEventDispatcher_setFallbackHandler(PyObject *self, PyObject *args) {
4845     PyObject *resultobj;
4846     otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
4847     otk::OtkEventHandler *arg2 = (otk::OtkEventHandler *) 0 ;
4848     PyObject * obj0  = 0 ;
4849     PyObject * obj1  = 0 ;
4850     
4851     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_setFallbackHandler",&obj0,&obj1)) goto fail;
4852     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4853     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4854     (arg1)->setFallbackHandler(arg2);
4855     
4856     Py_INCREF(Py_None); resultobj = Py_None;
4857     return resultobj;
4858     fail:
4859     return NULL;
4860 }
4861
4862
4863 static PyObject *_wrap_OtkEventDispatcher_getFallbackHandler(PyObject *self, PyObject *args) {
4864     PyObject *resultobj;
4865     otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
4866     otk::OtkEventHandler *result;
4867     PyObject * obj0  = 0 ;
4868     
4869     if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_getFallbackHandler",&obj0)) goto fail;
4870     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4871     result = (otk::OtkEventHandler *)((otk::OtkEventDispatcher const *)arg1)->getFallbackHandler();
4872     
4873     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventHandler, 0);
4874     return resultobj;
4875     fail:
4876     return NULL;
4877 }
4878
4879
4880 static PyObject *_wrap_OtkEventDispatcher_setMasterHandler(PyObject *self, PyObject *args) {
4881     PyObject *resultobj;
4882     otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
4883     otk::OtkEventHandler *arg2 = (otk::OtkEventHandler *) 0 ;
4884     PyObject * obj0  = 0 ;
4885     PyObject * obj1  = 0 ;
4886     
4887     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_setMasterHandler",&obj0,&obj1)) goto fail;
4888     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4889     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4890     (arg1)->setMasterHandler(arg2);
4891     
4892     Py_INCREF(Py_None); resultobj = Py_None;
4893     return resultobj;
4894     fail:
4895     return NULL;
4896 }
4897
4898
4899 static PyObject *_wrap_OtkEventDispatcher_getMasterHandler(PyObject *self, PyObject *args) {
4900     PyObject *resultobj;
4901     otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
4902     otk::OtkEventHandler *result;
4903     PyObject * obj0  = 0 ;
4904     
4905     if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_getMasterHandler",&obj0)) goto fail;
4906     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4907     result = (otk::OtkEventHandler *)((otk::OtkEventDispatcher const *)arg1)->getMasterHandler();
4908     
4909     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventHandler, 0);
4910     return resultobj;
4911     fail:
4912     return NULL;
4913 }
4914
4915
4916 static PyObject *_wrap_OtkEventDispatcher_findHandler(PyObject *self, PyObject *args) {
4917     PyObject *resultobj;
4918     otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
4919     Window arg2 ;
4920     otk::OtkEventHandler *result;
4921     PyObject * obj0  = 0 ;
4922     PyObject * obj1  = 0 ;
4923     
4924     if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_findHandler",&obj0,&obj1)) goto fail;
4925     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4926     arg2 = (Window) PyInt_AsLong(obj1);
4927     if (PyErr_Occurred()) SWIG_fail;
4928     result = (otk::OtkEventHandler *)(arg1)->findHandler(arg2);
4929     
4930     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventHandler, 0);
4931     return resultobj;
4932     fail:
4933     return NULL;
4934 }
4935
4936
4937 static PyObject *_wrap_OtkEventDispatcher_lastTime(PyObject *self, PyObject *args) {
4938     PyObject *resultobj;
4939     otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
4940     Time result;
4941     PyObject * obj0  = 0 ;
4942     
4943     if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_lastTime",&obj0)) goto fail;
4944     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4945     result = (Time)((otk::OtkEventDispatcher const *)arg1)->lastTime();
4946     
4947     resultobj = PyInt_FromLong((long)result);
4948     return resultobj;
4949     fail:
4950     return NULL;
4951 }
4952
4953
4954 static PyObject * OtkEventDispatcher_swigregister(PyObject *self, PyObject *args) {
4955     PyObject *obj;
4956     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4957     SWIG_TypeClientData(SWIGTYPE_p_otk__OtkEventDispatcher, obj);
4958     Py_INCREF(obj);
4959     return Py_BuildValue((char *)"");
4960 }
4961 static PyObject *_wrap_Cursors_session_set(PyObject *self, PyObject *args) {
4962     PyObject *resultobj;
4963     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
4964     Cursor arg2 ;
4965     PyObject * obj0  = 0 ;
4966     PyObject * obj1  = 0 ;
4967     
4968     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_session_set",&obj0,&obj1)) goto fail;
4969     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4970     arg2 = (Cursor) PyInt_AsLong(obj1);
4971     if (PyErr_Occurred()) SWIG_fail;
4972     if (arg1) (arg1)->session = arg2;
4973     
4974     Py_INCREF(Py_None); resultobj = Py_None;
4975     return resultobj;
4976     fail:
4977     return NULL;
4978 }
4979
4980
4981 static PyObject *_wrap_Cursors_session_get(PyObject *self, PyObject *args) {
4982     PyObject *resultobj;
4983     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
4984     Cursor result;
4985     PyObject * obj0  = 0 ;
4986     
4987     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_session_get",&obj0)) goto fail;
4988     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4989     result = (Cursor) ((arg1)->session);
4990     
4991     resultobj = PyInt_FromLong((long)result);
4992     return resultobj;
4993     fail:
4994     return NULL;
4995 }
4996
4997
4998 static PyObject *_wrap_Cursors_move_set(PyObject *self, PyObject *args) {
4999     PyObject *resultobj;
5000     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
5001     Cursor arg2 ;
5002     PyObject * obj0  = 0 ;
5003     PyObject * obj1  = 0 ;
5004     
5005     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_move_set",&obj0,&obj1)) goto fail;
5006     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5007     arg2 = (Cursor) PyInt_AsLong(obj1);
5008     if (PyErr_Occurred()) SWIG_fail;
5009     if (arg1) (arg1)->move = arg2;
5010     
5011     Py_INCREF(Py_None); resultobj = Py_None;
5012     return resultobj;
5013     fail:
5014     return NULL;
5015 }
5016
5017
5018 static PyObject *_wrap_Cursors_move_get(PyObject *self, PyObject *args) {
5019     PyObject *resultobj;
5020     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
5021     Cursor result;
5022     PyObject * obj0  = 0 ;
5023     
5024     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_move_get",&obj0)) goto fail;
5025     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5026     result = (Cursor) ((arg1)->move);
5027     
5028     resultobj = PyInt_FromLong((long)result);
5029     return resultobj;
5030     fail:
5031     return NULL;
5032 }
5033
5034
5035 static PyObject *_wrap_Cursors_ll_angle_set(PyObject *self, PyObject *args) {
5036     PyObject *resultobj;
5037     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
5038     Cursor arg2 ;
5039     PyObject * obj0  = 0 ;
5040     PyObject * obj1  = 0 ;
5041     
5042     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ll_angle_set",&obj0,&obj1)) goto fail;
5043     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5044     arg2 = (Cursor) PyInt_AsLong(obj1);
5045     if (PyErr_Occurred()) SWIG_fail;
5046     if (arg1) (arg1)->ll_angle = arg2;
5047     
5048     Py_INCREF(Py_None); resultobj = Py_None;
5049     return resultobj;
5050     fail:
5051     return NULL;
5052 }
5053
5054
5055 static PyObject *_wrap_Cursors_ll_angle_get(PyObject *self, PyObject *args) {
5056     PyObject *resultobj;
5057     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
5058     Cursor result;
5059     PyObject * obj0  = 0 ;
5060     
5061     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ll_angle_get",&obj0)) goto fail;
5062     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5063     result = (Cursor) ((arg1)->ll_angle);
5064     
5065     resultobj = PyInt_FromLong((long)result);
5066     return resultobj;
5067     fail:
5068     return NULL;
5069 }
5070
5071
5072 static PyObject *_wrap_Cursors_lr_angle_set(PyObject *self, PyObject *args) {
5073     PyObject *resultobj;
5074     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
5075     Cursor arg2 ;
5076     PyObject * obj0  = 0 ;
5077     PyObject * obj1  = 0 ;
5078     
5079     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_lr_angle_set",&obj0,&obj1)) goto fail;
5080     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5081     arg2 = (Cursor) PyInt_AsLong(obj1);
5082     if (PyErr_Occurred()) SWIG_fail;
5083     if (arg1) (arg1)->lr_angle = arg2;
5084     
5085     Py_INCREF(Py_None); resultobj = Py_None;
5086     return resultobj;
5087     fail:
5088     return NULL;
5089 }
5090
5091
5092 static PyObject *_wrap_Cursors_lr_angle_get(PyObject *self, PyObject *args) {
5093     PyObject *resultobj;
5094     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
5095     Cursor result;
5096     PyObject * obj0  = 0 ;
5097     
5098     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_lr_angle_get",&obj0)) goto fail;
5099     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5100     result = (Cursor) ((arg1)->lr_angle);
5101     
5102     resultobj = PyInt_FromLong((long)result);
5103     return resultobj;
5104     fail:
5105     return NULL;
5106 }
5107
5108
5109 static PyObject *_wrap_Cursors_ul_angle_set(PyObject *self, PyObject *args) {
5110     PyObject *resultobj;
5111     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
5112     Cursor arg2 ;
5113     PyObject * obj0  = 0 ;
5114     PyObject * obj1  = 0 ;
5115     
5116     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ul_angle_set",&obj0,&obj1)) goto fail;
5117     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5118     arg2 = (Cursor) PyInt_AsLong(obj1);
5119     if (PyErr_Occurred()) SWIG_fail;
5120     if (arg1) (arg1)->ul_angle = arg2;
5121     
5122     Py_INCREF(Py_None); resultobj = Py_None;
5123     return resultobj;
5124     fail:
5125     return NULL;
5126 }
5127
5128
5129 static PyObject *_wrap_Cursors_ul_angle_get(PyObject *self, PyObject *args) {
5130     PyObject *resultobj;
5131     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
5132     Cursor result;
5133     PyObject * obj0  = 0 ;
5134     
5135     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ul_angle_get",&obj0)) goto fail;
5136     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5137     result = (Cursor) ((arg1)->ul_angle);
5138     
5139     resultobj = PyInt_FromLong((long)result);
5140     return resultobj;
5141     fail:
5142     return NULL;
5143 }
5144
5145
5146 static PyObject *_wrap_Cursors_ur_angle_set(PyObject *self, PyObject *args) {
5147     PyObject *resultobj;
5148     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
5149     Cursor arg2 ;
5150     PyObject * obj0  = 0 ;
5151     PyObject * obj1  = 0 ;
5152     
5153     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ur_angle_set",&obj0,&obj1)) goto fail;
5154     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5155     arg2 = (Cursor) PyInt_AsLong(obj1);
5156     if (PyErr_Occurred()) SWIG_fail;
5157     if (arg1) (arg1)->ur_angle = arg2;
5158     
5159     Py_INCREF(Py_None); resultobj = Py_None;
5160     return resultobj;
5161     fail:
5162     return NULL;
5163 }
5164
5165
5166 static PyObject *_wrap_Cursors_ur_angle_get(PyObject *self, PyObject *args) {
5167     PyObject *resultobj;
5168     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
5169     Cursor result;
5170     PyObject * obj0  = 0 ;
5171     
5172     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ur_angle_get",&obj0)) goto fail;
5173     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5174     result = (Cursor) ((arg1)->ur_angle);
5175     
5176     resultobj = PyInt_FromLong((long)result);
5177     return resultobj;
5178     fail:
5179     return NULL;
5180 }
5181
5182
5183 static PyObject * Cursors_swigregister(PyObject *self, PyObject *args) {
5184     PyObject *obj;
5185     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5186     SWIG_TypeClientData(SWIGTYPE_p_ob__Cursors, obj);
5187     Py_INCREF(obj);
5188     return Py_BuildValue((char *)"");
5189 }
5190 static PyObject *_wrap_Openbox_state(PyObject *self, PyObject *args) {
5191     PyObject *resultobj;
5192     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5193     int result;
5194     PyObject * obj0  = 0 ;
5195     
5196     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_state",&obj0)) goto fail;
5197     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5198     result = (int)((ob::Openbox const *)arg1)->state();
5199     
5200     resultobj = PyInt_FromLong((long)result);
5201     return resultobj;
5202     fail:
5203     return NULL;
5204 }
5205
5206
5207 static PyObject *_wrap_Openbox_timerManager(PyObject *self, PyObject *args) {
5208     PyObject *resultobj;
5209     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5210     otk::OBTimerQueueManager *result;
5211     PyObject * obj0  = 0 ;
5212     
5213     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_timerManager",&obj0)) goto fail;
5214     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5215     result = (otk::OBTimerQueueManager *)(arg1)->timerManager();
5216     
5217     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimerQueueManager, 0);
5218     return resultobj;
5219     fail:
5220     return NULL;
5221 }
5222
5223
5224 static PyObject *_wrap_Openbox_property(PyObject *self, PyObject *args) {
5225     PyObject *resultobj;
5226     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5227     otk::OBProperty *result;
5228     PyObject * obj0  = 0 ;
5229     
5230     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_property",&obj0)) goto fail;
5231     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5232     result = (otk::OBProperty *)((ob::Openbox const *)arg1)->property();
5233     
5234     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBProperty, 0);
5235     return resultobj;
5236     fail:
5237     return NULL;
5238 }
5239
5240
5241 static PyObject *_wrap_Openbox_actions(PyObject *self, PyObject *args) {
5242     PyObject *resultobj;
5243     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5244     ob::OBActions *result;
5245     PyObject * obj0  = 0 ;
5246     
5247     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_actions",&obj0)) goto fail;
5248     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5249     result = (ob::OBActions *)((ob::Openbox const *)arg1)->actions();
5250     
5251     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBActions, 0);
5252     return resultobj;
5253     fail:
5254     return NULL;
5255 }
5256
5257
5258 static PyObject *_wrap_Openbox_bindings(PyObject *self, PyObject *args) {
5259     PyObject *resultobj;
5260     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5261     ob::OBBindings *result;
5262     PyObject * obj0  = 0 ;
5263     
5264     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_bindings",&obj0)) goto fail;
5265     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5266     result = (ob::OBBindings *)((ob::Openbox const *)arg1)->bindings();
5267     
5268     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBBindings, 0);
5269     return resultobj;
5270     fail:
5271     return NULL;
5272 }
5273
5274
5275 static PyObject *_wrap_Openbox_screen(PyObject *self, PyObject *args) {
5276     PyObject *resultobj;
5277     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5278     int arg2 ;
5279     ob::OBScreen *result;
5280     PyObject * obj0  = 0 ;
5281     
5282     if(!PyArg_ParseTuple(args,(char *)"Oi:Openbox_screen",&obj0,&arg2)) goto fail;
5283     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5284     result = (ob::OBScreen *)(arg1)->screen(arg2);
5285     
5286     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
5287     return resultobj;
5288     fail:
5289     return NULL;
5290 }
5291
5292
5293 static PyObject *_wrap_Openbox_screenCount(PyObject *self, PyObject *args) {
5294     PyObject *resultobj;
5295     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5296     int result;
5297     PyObject * obj0  = 0 ;
5298     
5299     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_screenCount",&obj0)) goto fail;
5300     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5301     result = (int)((ob::Openbox const *)arg1)->screenCount();
5302     
5303     resultobj = PyInt_FromLong((long)result);
5304     return resultobj;
5305     fail:
5306     return NULL;
5307 }
5308
5309
5310 static PyObject *_wrap_Openbox_cursors(PyObject *self, PyObject *args) {
5311     PyObject *resultobj;
5312     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5313     ob::Cursors *result;
5314     PyObject * obj0  = 0 ;
5315     
5316     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_cursors",&obj0)) goto fail;
5317     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5318     {
5319         ob::Cursors const &_result_ref = ((ob::Openbox const *)arg1)->cursors();
5320         result = (ob::Cursors *) &_result_ref;
5321     }
5322     
5323     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Cursors, 0);
5324     return resultobj;
5325     fail:
5326     return NULL;
5327 }
5328
5329
5330 static PyObject *_wrap_Openbox_addClient(PyObject *self, PyObject *args) {
5331     PyObject *resultobj;
5332     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5333     Window arg2 ;
5334     ob::OBClient *arg3 = (ob::OBClient *) 0 ;
5335     PyObject * obj0  = 0 ;
5336     PyObject * obj1  = 0 ;
5337     PyObject * obj2  = 0 ;
5338     
5339     if(!PyArg_ParseTuple(args,(char *)"OOO:Openbox_addClient",&obj0,&obj1,&obj2)) goto fail;
5340     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5341     arg2 = (Window) PyInt_AsLong(obj1);
5342     if (PyErr_Occurred()) SWIG_fail;
5343     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5344     (arg1)->addClient(arg2,arg3);
5345     
5346     Py_INCREF(Py_None); resultobj = Py_None;
5347     return resultobj;
5348     fail:
5349     return NULL;
5350 }
5351
5352
5353 static PyObject *_wrap_Openbox_removeClient(PyObject *self, PyObject *args) {
5354     PyObject *resultobj;
5355     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5356     Window arg2 ;
5357     PyObject * obj0  = 0 ;
5358     PyObject * obj1  = 0 ;
5359     
5360     if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_removeClient",&obj0,&obj1)) goto fail;
5361     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5362     arg2 = (Window) PyInt_AsLong(obj1);
5363     if (PyErr_Occurred()) SWIG_fail;
5364     (arg1)->removeClient(arg2);
5365     
5366     Py_INCREF(Py_None); resultobj = Py_None;
5367     return resultobj;
5368     fail:
5369     return NULL;
5370 }
5371
5372
5373 static PyObject *_wrap_Openbox_findClient(PyObject *self, PyObject *args) {
5374     PyObject *resultobj;
5375     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5376     Window arg2 ;
5377     ob::OBClient *result;
5378     PyObject * obj0  = 0 ;
5379     PyObject * obj1  = 0 ;
5380     
5381     if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_findClient",&obj0,&obj1)) goto fail;
5382     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5383     arg2 = (Window) PyInt_AsLong(obj1);
5384     if (PyErr_Occurred()) SWIG_fail;
5385     result = (ob::OBClient *)(arg1)->findClient(arg2);
5386     
5387     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
5388     return resultobj;
5389     fail:
5390     return NULL;
5391 }
5392
5393
5394 static PyObject *_wrap_Openbox_focusedClient(PyObject *self, PyObject *args) {
5395     PyObject *resultobj;
5396     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5397     ob::OBClient *result;
5398     PyObject * obj0  = 0 ;
5399     
5400     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedClient",&obj0)) goto fail;
5401     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5402     result = (ob::OBClient *)(arg1)->focusedClient();
5403     
5404     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
5405     return resultobj;
5406     fail:
5407     return NULL;
5408 }
5409
5410
5411 static PyObject *_wrap_Openbox_setFocusedClient(PyObject *self, PyObject *args) {
5412     PyObject *resultobj;
5413     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5414     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
5415     PyObject * obj0  = 0 ;
5416     PyObject * obj1  = 0 ;
5417     
5418     if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_setFocusedClient",&obj0,&obj1)) goto fail;
5419     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5420     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5421     (arg1)->setFocusedClient(arg2);
5422     
5423     Py_INCREF(Py_None); resultobj = Py_None;
5424     return resultobj;
5425     fail:
5426     return NULL;
5427 }
5428
5429
5430 static PyObject *_wrap_Openbox_focusedScreen(PyObject *self, PyObject *args) {
5431     PyObject *resultobj;
5432     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5433     ob::OBScreen *result;
5434     PyObject * obj0  = 0 ;
5435     
5436     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedScreen",&obj0)) goto fail;
5437     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5438     result = (ob::OBScreen *)(arg1)->focusedScreen();
5439     
5440     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
5441     return resultobj;
5442     fail:
5443     return NULL;
5444 }
5445
5446
5447 static PyObject *_wrap_Openbox_shutdown(PyObject *self, PyObject *args) {
5448     PyObject *resultobj;
5449     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5450     PyObject * obj0  = 0 ;
5451     
5452     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_shutdown",&obj0)) goto fail;
5453     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5454     (arg1)->shutdown();
5455     
5456     Py_INCREF(Py_None); resultobj = Py_None;
5457     return resultobj;
5458     fail:
5459     return NULL;
5460 }
5461
5462
5463 static PyObject *_wrap_Openbox_restart(PyObject *self, PyObject *args) {
5464     PyObject *resultobj;
5465     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5466     std::string const &arg2_defvalue = "" ;
5467     std::string *arg2 = (std::string *) &arg2_defvalue ;
5468     std::string temp2 ;
5469     PyObject * obj0  = 0 ;
5470     PyObject * obj1  = 0 ;
5471     
5472     if(!PyArg_ParseTuple(args,(char *)"O|O:Openbox_restart",&obj0,&obj1)) goto fail;
5473     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5474     if (obj1) {
5475         {
5476             if (PyString_Check(obj1)) {
5477                 temp2 = std::string(PyString_AsString(obj1));
5478                 arg2 = &temp2;
5479             }else {
5480                 SWIG_exception(SWIG_TypeError, "string expected");
5481             }
5482         }
5483     }
5484     (arg1)->restart((std::string const &)*arg2);
5485     
5486     Py_INCREF(Py_None); resultobj = Py_None;
5487     return resultobj;
5488     fail:
5489     return NULL;
5490 }
5491
5492
5493 static PyObject *_wrap_Openbox_execute(PyObject *self, PyObject *args) {
5494     PyObject *resultobj;
5495     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5496     int arg2 ;
5497     std::string *arg3 = 0 ;
5498     std::string temp3 ;
5499     PyObject * obj0  = 0 ;
5500     PyObject * obj2  = 0 ;
5501     
5502     if(!PyArg_ParseTuple(args,(char *)"OiO:Openbox_execute",&obj0,&arg2,&obj2)) goto fail;
5503     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5504     {
5505         if (PyString_Check(obj2)) {
5506             temp3 = std::string(PyString_AsString(obj2));
5507             arg3 = &temp3;
5508         }else {
5509             SWIG_exception(SWIG_TypeError, "string expected");
5510         }
5511     }
5512     (arg1)->execute(arg2,(std::string const &)*arg3);
5513     
5514     Py_INCREF(Py_None); resultobj = Py_None;
5515     return resultobj;
5516     fail:
5517     return NULL;
5518 }
5519
5520
5521 static PyObject * Openbox_swigregister(PyObject *self, PyObject *args) {
5522     PyObject *obj;
5523     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5524     SWIG_TypeClientData(SWIGTYPE_p_ob__Openbox, obj);
5525     Py_INCREF(obj);
5526     return Py_BuildValue((char *)"");
5527 }
5528 static PyObject *_wrap_OBScreen_client(PyObject *self, PyObject *args) {
5529     PyObject *resultobj;
5530     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5531     int arg2 ;
5532     ob::OBClient *result;
5533     PyObject * obj0  = 0 ;
5534     
5535     if(!PyArg_ParseTuple(args,(char *)"Oi:OBScreen_client",&obj0,&arg2)) goto fail;
5536     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5537     result = (ob::OBClient *)ob_OBScreen_client(arg1,arg2);
5538     
5539     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
5540     return resultobj;
5541     fail:
5542     return NULL;
5543 }
5544
5545
5546 static PyObject *_wrap_OBScreen_clientCount(PyObject *self, PyObject *args) {
5547     PyObject *resultobj;
5548     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5549     int result;
5550     PyObject * obj0  = 0 ;
5551     
5552     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_clientCount",&obj0)) goto fail;
5553     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5554     result = (int)ob_OBScreen_clientCount((ob::OBScreen const *)arg1);
5555     
5556     resultobj = PyInt_FromLong((long)result);
5557     return resultobj;
5558     fail:
5559     return NULL;
5560 }
5561
5562
5563 static PyObject *_wrap_OBScreen_number(PyObject *self, PyObject *args) {
5564     PyObject *resultobj;
5565     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5566     int result;
5567     PyObject * obj0  = 0 ;
5568     
5569     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_number",&obj0)) goto fail;
5570     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5571     result = (int)((ob::OBScreen const *)arg1)->number();
5572     
5573     resultobj = PyInt_FromLong((long)result);
5574     return resultobj;
5575     fail:
5576     return NULL;
5577 }
5578
5579
5580 static PyObject *_wrap_OBScreen_managed(PyObject *self, PyObject *args) {
5581     PyObject *resultobj;
5582     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5583     bool result;
5584     PyObject * obj0  = 0 ;
5585     
5586     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_managed",&obj0)) goto fail;
5587     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5588     result = (bool)((ob::OBScreen const *)arg1)->managed();
5589     
5590     resultobj = PyInt_FromLong((long)result);
5591     return resultobj;
5592     fail:
5593     return NULL;
5594 }
5595
5596
5597 static PyObject *_wrap_OBScreen_imageControl(PyObject *self, PyObject *args) {
5598     PyObject *resultobj;
5599     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5600     otk::BImageControl *result;
5601     PyObject * obj0  = 0 ;
5602     
5603     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_imageControl",&obj0)) goto fail;
5604     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5605     result = (otk::BImageControl *)(arg1)->imageControl();
5606     
5607     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 0);
5608     return resultobj;
5609     fail:
5610     return NULL;
5611 }
5612
5613
5614 static PyObject *_wrap_OBScreen_area(PyObject *self, PyObject *args) {
5615     PyObject *resultobj;
5616     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5617     otk::Rect *result;
5618     PyObject * obj0  = 0 ;
5619     
5620     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_area",&obj0)) goto fail;
5621     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5622     {
5623         otk::Rect const &_result_ref = ((ob::OBScreen const *)arg1)->area();
5624         result = (otk::Rect *) &_result_ref;
5625     }
5626     
5627     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
5628     return resultobj;
5629     fail:
5630     return NULL;
5631 }
5632
5633
5634 static PyObject *_wrap_OBScreen_style(PyObject *self, PyObject *args) {
5635     PyObject *resultobj;
5636     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5637     otk::Style *result;
5638     PyObject * obj0  = 0 ;
5639     
5640     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_style",&obj0)) goto fail;
5641     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5642     result = (otk::Style *)((ob::OBScreen const *)arg1)->style();
5643     
5644     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
5645     return resultobj;
5646     fail:
5647     return NULL;
5648 }
5649
5650
5651 static PyObject *_wrap_OBScreen_focuswindow(PyObject *self, PyObject *args) {
5652     PyObject *resultobj;
5653     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5654     Window result;
5655     PyObject * obj0  = 0 ;
5656     
5657     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_focuswindow",&obj0)) goto fail;
5658     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5659     result = (Window)((ob::OBScreen const *)arg1)->focuswindow();
5660     
5661     resultobj = PyInt_FromLong((long)result);
5662     return resultobj;
5663     fail:
5664     return NULL;
5665 }
5666
5667
5668 static PyObject *_wrap_OBScreen_desktop(PyObject *self, PyObject *args) {
5669     PyObject *resultobj;
5670     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5671     long result;
5672     PyObject * obj0  = 0 ;
5673     
5674     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_desktop",&obj0)) goto fail;
5675     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5676     result = (long)((ob::OBScreen const *)arg1)->desktop();
5677     
5678     resultobj = PyInt_FromLong((long)result);
5679     return resultobj;
5680     fail:
5681     return NULL;
5682 }
5683
5684
5685 static PyObject *_wrap_OBScreen_numDesktops(PyObject *self, PyObject *args) {
5686     PyObject *resultobj;
5687     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5688     long result;
5689     PyObject * obj0  = 0 ;
5690     
5691     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_numDesktops",&obj0)) goto fail;
5692     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5693     result = (long)((ob::OBScreen const *)arg1)->numDesktops();
5694     
5695     resultobj = PyInt_FromLong((long)result);
5696     return resultobj;
5697     fail:
5698     return NULL;
5699 }
5700
5701
5702 static PyObject *_wrap_OBScreen_updateStrut(PyObject *self, PyObject *args) {
5703     PyObject *resultobj;
5704     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5705     PyObject * obj0  = 0 ;
5706     
5707     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_updateStrut",&obj0)) goto fail;
5708     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5709     (arg1)->updateStrut();
5710     
5711     Py_INCREF(Py_None); resultobj = Py_None;
5712     return resultobj;
5713     fail:
5714     return NULL;
5715 }
5716
5717
5718 static PyObject *_wrap_OBScreen_manageExisting(PyObject *self, PyObject *args) {
5719     PyObject *resultobj;
5720     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5721     PyObject * obj0  = 0 ;
5722     
5723     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_manageExisting",&obj0)) goto fail;
5724     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5725     (arg1)->manageExisting();
5726     
5727     Py_INCREF(Py_None); resultobj = Py_None;
5728     return resultobj;
5729     fail:
5730     return NULL;
5731 }
5732
5733
5734 static PyObject *_wrap_OBScreen_manageWindow(PyObject *self, PyObject *args) {
5735     PyObject *resultobj;
5736     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5737     Window arg2 ;
5738     PyObject * obj0  = 0 ;
5739     PyObject * obj1  = 0 ;
5740     
5741     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_manageWindow",&obj0,&obj1)) goto fail;
5742     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5743     arg2 = (Window) PyInt_AsLong(obj1);
5744     if (PyErr_Occurred()) SWIG_fail;
5745     (arg1)->manageWindow(arg2);
5746     
5747     Py_INCREF(Py_None); resultobj = Py_None;
5748     return resultobj;
5749     fail:
5750     return NULL;
5751 }
5752
5753
5754 static PyObject *_wrap_OBScreen_unmanageWindow(PyObject *self, PyObject *args) {
5755     PyObject *resultobj;
5756     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5757     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
5758     PyObject * obj0  = 0 ;
5759     PyObject * obj1  = 0 ;
5760     
5761     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_unmanageWindow",&obj0,&obj1)) goto fail;
5762     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5763     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5764     (arg1)->unmanageWindow(arg2);
5765     
5766     Py_INCREF(Py_None); resultobj = Py_None;
5767     return resultobj;
5768     fail:
5769     return NULL;
5770 }
5771
5772
5773 static PyObject *_wrap_OBScreen_restack(PyObject *self, PyObject *args) {
5774     PyObject *resultobj;
5775     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5776     bool arg2 ;
5777     ob::OBClient *arg3 = (ob::OBClient *) 0 ;
5778     PyObject * obj0  = 0 ;
5779     PyObject * obj1  = 0 ;
5780     PyObject * obj2  = 0 ;
5781     
5782     if(!PyArg_ParseTuple(args,(char *)"OOO:OBScreen_restack",&obj0,&obj1,&obj2)) goto fail;
5783     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5784     arg2 = (bool) PyInt_AsLong(obj1);
5785     if (PyErr_Occurred()) SWIG_fail;
5786     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5787     (arg1)->restack(arg2,arg3);
5788     
5789     Py_INCREF(Py_None); resultobj = Py_None;
5790     return resultobj;
5791     fail:
5792     return NULL;
5793 }
5794
5795
5796 static PyObject *_wrap_OBScreen_setDesktopName(PyObject *self, PyObject *args) {
5797     PyObject *resultobj;
5798     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5799     long arg2 ;
5800     std::string *arg3 = 0 ;
5801     std::string temp3 ;
5802     PyObject * obj0  = 0 ;
5803     PyObject * obj2  = 0 ;
5804     
5805     if(!PyArg_ParseTuple(args,(char *)"OlO:OBScreen_setDesktopName",&obj0,&arg2,&obj2)) goto fail;
5806     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5807     {
5808         if (PyString_Check(obj2)) {
5809             temp3 = std::string(PyString_AsString(obj2));
5810             arg3 = &temp3;
5811         }else {
5812             SWIG_exception(SWIG_TypeError, "string expected");
5813         }
5814     }
5815     (arg1)->setDesktopName(arg2,(std::string const &)*arg3);
5816     
5817     Py_INCREF(Py_None); resultobj = Py_None;
5818     return resultobj;
5819     fail:
5820     return NULL;
5821 }
5822
5823
5824 static PyObject *_wrap_OBScreen_propertyHandler(PyObject *self, PyObject *args) {
5825     PyObject *resultobj;
5826     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5827     XPropertyEvent *arg2 = 0 ;
5828     PyObject * obj0  = 0 ;
5829     PyObject * obj1  = 0 ;
5830     
5831     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_propertyHandler",&obj0,&obj1)) goto fail;
5832     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5833     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5834     if (arg2 == NULL) {
5835         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
5836     }
5837     (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
5838     
5839     Py_INCREF(Py_None); resultobj = Py_None;
5840     return resultobj;
5841     fail:
5842     return NULL;
5843 }
5844
5845
5846 static PyObject *_wrap_OBScreen_clientMessageHandler(PyObject *self, PyObject *args) {
5847     PyObject *resultobj;
5848     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5849     XClientMessageEvent *arg2 = 0 ;
5850     PyObject * obj0  = 0 ;
5851     PyObject * obj1  = 0 ;
5852     
5853     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_clientMessageHandler",&obj0,&obj1)) goto fail;
5854     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5855     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5856     if (arg2 == NULL) {
5857         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
5858     }
5859     (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
5860     
5861     Py_INCREF(Py_None); resultobj = Py_None;
5862     return resultobj;
5863     fail:
5864     return NULL;
5865 }
5866
5867
5868 static PyObject *_wrap_OBScreen_mapRequestHandler(PyObject *self, PyObject *args) {
5869     PyObject *resultobj;
5870     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
5871     XMapRequestEvent *arg2 = 0 ;
5872     PyObject * obj0  = 0 ;
5873     PyObject * obj1  = 0 ;
5874     
5875     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_mapRequestHandler",&obj0,&obj1)) goto fail;
5876     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5877     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5878     if (arg2 == NULL) {
5879         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
5880     }
5881     (arg1)->mapRequestHandler((XMapRequestEvent const &)*arg2);
5882     
5883     Py_INCREF(Py_None); resultobj = Py_None;
5884     return resultobj;
5885     fail:
5886     return NULL;
5887 }
5888
5889
5890 static PyObject * OBScreen_swigregister(PyObject *self, PyObject *args) {
5891     PyObject *obj;
5892     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5893     SWIG_TypeClientData(SWIGTYPE_p_ob__OBScreen, obj);
5894     Py_INCREF(obj);
5895     return Py_BuildValue((char *)"");
5896 }
5897 static PyObject *_wrap_MwmHints_flags_set(PyObject *self, PyObject *args) {
5898     PyObject *resultobj;
5899     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
5900     unsigned long arg2 ;
5901     PyObject * obj0  = 0 ;
5902     PyObject * obj1  = 0 ;
5903     
5904     if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_flags_set",&obj0,&obj1)) goto fail;
5905     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5906     arg2 = (unsigned long) PyInt_AsLong(obj1);
5907     if (PyErr_Occurred()) SWIG_fail;
5908     if (arg1) (arg1)->flags = arg2;
5909     
5910     Py_INCREF(Py_None); resultobj = Py_None;
5911     return resultobj;
5912     fail:
5913     return NULL;
5914 }
5915
5916
5917 static PyObject *_wrap_MwmHints_flags_get(PyObject *self, PyObject *args) {
5918     PyObject *resultobj;
5919     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
5920     unsigned long result;
5921     PyObject * obj0  = 0 ;
5922     
5923     if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_flags_get",&obj0)) goto fail;
5924     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5925     result = (unsigned long) ((arg1)->flags);
5926     
5927     resultobj = PyInt_FromLong((long)result);
5928     return resultobj;
5929     fail:
5930     return NULL;
5931 }
5932
5933
5934 static PyObject *_wrap_MwmHints_functions_set(PyObject *self, PyObject *args) {
5935     PyObject *resultobj;
5936     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
5937     unsigned long arg2 ;
5938     PyObject * obj0  = 0 ;
5939     PyObject * obj1  = 0 ;
5940     
5941     if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_functions_set",&obj0,&obj1)) goto fail;
5942     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5943     arg2 = (unsigned long) PyInt_AsLong(obj1);
5944     if (PyErr_Occurred()) SWIG_fail;
5945     if (arg1) (arg1)->functions = arg2;
5946     
5947     Py_INCREF(Py_None); resultobj = Py_None;
5948     return resultobj;
5949     fail:
5950     return NULL;
5951 }
5952
5953
5954 static PyObject *_wrap_MwmHints_functions_get(PyObject *self, PyObject *args) {
5955     PyObject *resultobj;
5956     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
5957     unsigned long result;
5958     PyObject * obj0  = 0 ;
5959     
5960     if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_functions_get",&obj0)) goto fail;
5961     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5962     result = (unsigned long) ((arg1)->functions);
5963     
5964     resultobj = PyInt_FromLong((long)result);
5965     return resultobj;
5966     fail:
5967     return NULL;
5968 }
5969
5970
5971 static PyObject *_wrap_MwmHints_decorations_set(PyObject *self, PyObject *args) {
5972     PyObject *resultobj;
5973     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
5974     unsigned long arg2 ;
5975     PyObject * obj0  = 0 ;
5976     PyObject * obj1  = 0 ;
5977     
5978     if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_decorations_set",&obj0,&obj1)) goto fail;
5979     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5980     arg2 = (unsigned long) PyInt_AsLong(obj1);
5981     if (PyErr_Occurred()) SWIG_fail;
5982     if (arg1) (arg1)->decorations = arg2;
5983     
5984     Py_INCREF(Py_None); resultobj = Py_None;
5985     return resultobj;
5986     fail:
5987     return NULL;
5988 }
5989
5990
5991 static PyObject *_wrap_MwmHints_decorations_get(PyObject *self, PyObject *args) {
5992     PyObject *resultobj;
5993     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
5994     unsigned long result;
5995     PyObject * obj0  = 0 ;
5996     
5997     if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_decorations_get",&obj0)) goto fail;
5998     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5999     result = (unsigned long) ((arg1)->decorations);
6000     
6001     resultobj = PyInt_FromLong((long)result);
6002     return resultobj;
6003     fail:
6004     return NULL;
6005 }
6006
6007
6008 static PyObject * MwmHints_swigregister(PyObject *self, PyObject *args) {
6009     PyObject *obj;
6010     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6011     SWIG_TypeClientData(SWIGTYPE_p_ob__MwmHints, obj);
6012     Py_INCREF(obj);
6013     return Py_BuildValue((char *)"");
6014 }
6015 static PyObject *_wrap_OBClient_frame_set(PyObject *self, PyObject *args) {
6016     PyObject *resultobj;
6017     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6018     ob::OBFrame *arg2 = (ob::OBFrame *) 0 ;
6019     PyObject * obj0  = 0 ;
6020     PyObject * obj1  = 0 ;
6021     
6022     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_frame_set",&obj0,&obj1)) goto fail;
6023     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6024     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBFrame,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
6025     if (arg1) (arg1)->frame = arg2;
6026     
6027     Py_INCREF(Py_None); resultobj = Py_None;
6028     return resultobj;
6029     fail:
6030     return NULL;
6031 }
6032
6033
6034 static PyObject *_wrap_OBClient_frame_get(PyObject *self, PyObject *args) {
6035     PyObject *resultobj;
6036     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6037     ob::OBFrame *result;
6038     PyObject * obj0  = 0 ;
6039     
6040     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_frame_get",&obj0)) goto fail;
6041     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6042     result = (ob::OBFrame *) ((arg1)->frame);
6043     
6044     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBFrame, 0);
6045     return resultobj;
6046     fail:
6047     return NULL;
6048 }
6049
6050
6051 static PyObject *_wrap_OBClient_ignore_unmaps_set(PyObject *self, PyObject *args) {
6052     PyObject *resultobj;
6053     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6054     int arg2 ;
6055     PyObject * obj0  = 0 ;
6056     
6057     if(!PyArg_ParseTuple(args,(char *)"Oi:OBClient_ignore_unmaps_set",&obj0,&arg2)) goto fail;
6058     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6059     if (arg1) (arg1)->ignore_unmaps = arg2;
6060     
6061     Py_INCREF(Py_None); resultobj = Py_None;
6062     return resultobj;
6063     fail:
6064     return NULL;
6065 }
6066
6067
6068 static PyObject *_wrap_OBClient_ignore_unmaps_get(PyObject *self, PyObject *args) {
6069     PyObject *resultobj;
6070     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6071     int result;
6072     PyObject * obj0  = 0 ;
6073     
6074     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_ignore_unmaps_get",&obj0)) goto fail;
6075     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6076     result = (int) ((arg1)->ignore_unmaps);
6077     
6078     resultobj = PyInt_FromLong((long)result);
6079     return resultobj;
6080     fail:
6081     return NULL;
6082 }
6083
6084
6085 static PyObject *_wrap_OBClient_screen(PyObject *self, PyObject *args) {
6086     PyObject *resultobj;
6087     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6088     int result;
6089     PyObject * obj0  = 0 ;
6090     
6091     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_screen",&obj0)) goto fail;
6092     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6093     result = (int)((ob::OBClient const *)arg1)->screen();
6094     
6095     resultobj = PyInt_FromLong((long)result);
6096     return resultobj;
6097     fail:
6098     return NULL;
6099 }
6100
6101
6102 static PyObject *_wrap_OBClient_window(PyObject *self, PyObject *args) {
6103     PyObject *resultobj;
6104     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6105     Window result;
6106     PyObject * obj0  = 0 ;
6107     
6108     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_window",&obj0)) goto fail;
6109     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6110     result = (Window)((ob::OBClient const *)arg1)->window();
6111     
6112     resultobj = PyInt_FromLong((long)result);
6113     return resultobj;
6114     fail:
6115     return NULL;
6116 }
6117
6118
6119 static PyObject *_wrap_OBClient_type(PyObject *self, PyObject *args) {
6120     PyObject *resultobj;
6121     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6122     int result;
6123     PyObject * obj0  = 0 ;
6124     
6125     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_type",&obj0)) goto fail;
6126     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6127     result = (int)((ob::OBClient const *)arg1)->type();
6128     
6129     resultobj = PyInt_FromLong((long)result);
6130     return resultobj;
6131     fail:
6132     return NULL;
6133 }
6134
6135
6136 static PyObject *_wrap_OBClient_normal(PyObject *self, PyObject *args) {
6137     PyObject *resultobj;
6138     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6139     bool result;
6140     PyObject * obj0  = 0 ;
6141     
6142     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_normal",&obj0)) goto fail;
6143     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6144     result = (bool)((ob::OBClient const *)arg1)->normal();
6145     
6146     resultobj = PyInt_FromLong((long)result);
6147     return resultobj;
6148     fail:
6149     return NULL;
6150 }
6151
6152
6153 static PyObject *_wrap_OBClient_desktop(PyObject *self, PyObject *args) {
6154     PyObject *resultobj;
6155     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6156     long result;
6157     PyObject * obj0  = 0 ;
6158     
6159     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_desktop",&obj0)) goto fail;
6160     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6161     result = (long)((ob::OBClient const *)arg1)->desktop();
6162     
6163     resultobj = PyInt_FromLong((long)result);
6164     return resultobj;
6165     fail:
6166     return NULL;
6167 }
6168
6169
6170 static PyObject *_wrap_OBClient_title(PyObject *self, PyObject *args) {
6171     PyObject *resultobj;
6172     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6173     std::string *result;
6174     PyObject * obj0  = 0 ;
6175     
6176     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_title",&obj0)) goto fail;
6177     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6178     {
6179         std::string const &_result_ref = ((ob::OBClient const *)arg1)->title();
6180         result = (std::string *) &_result_ref;
6181     }
6182     
6183     {
6184         resultobj = PyString_FromString(result->c_str());
6185     }
6186     return resultobj;
6187     fail:
6188     return NULL;
6189 }
6190
6191
6192 static PyObject *_wrap_OBClient_iconTitle(PyObject *self, PyObject *args) {
6193     PyObject *resultobj;
6194     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6195     std::string *result;
6196     PyObject * obj0  = 0 ;
6197     
6198     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconTitle",&obj0)) goto fail;
6199     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6200     {
6201         std::string const &_result_ref = ((ob::OBClient const *)arg1)->iconTitle();
6202         result = (std::string *) &_result_ref;
6203     }
6204     
6205     {
6206         resultobj = PyString_FromString(result->c_str());
6207     }
6208     return resultobj;
6209     fail:
6210     return NULL;
6211 }
6212
6213
6214 static PyObject *_wrap_OBClient_appName(PyObject *self, PyObject *args) {
6215     PyObject *resultobj;
6216     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6217     std::string *result;
6218     PyObject * obj0  = 0 ;
6219     
6220     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appName",&obj0)) goto fail;
6221     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6222     {
6223         std::string const &_result_ref = ((ob::OBClient const *)arg1)->appName();
6224         result = (std::string *) &_result_ref;
6225     }
6226     
6227     {
6228         resultobj = PyString_FromString(result->c_str());
6229     }
6230     return resultobj;
6231     fail:
6232     return NULL;
6233 }
6234
6235
6236 static PyObject *_wrap_OBClient_appClass(PyObject *self, PyObject *args) {
6237     PyObject *resultobj;
6238     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6239     std::string *result;
6240     PyObject * obj0  = 0 ;
6241     
6242     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appClass",&obj0)) goto fail;
6243     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6244     {
6245         std::string const &_result_ref = ((ob::OBClient const *)arg1)->appClass();
6246         result = (std::string *) &_result_ref;
6247     }
6248     
6249     {
6250         resultobj = PyString_FromString(result->c_str());
6251     }
6252     return resultobj;
6253     fail:
6254     return NULL;
6255 }
6256
6257
6258 static PyObject *_wrap_OBClient_role(PyObject *self, PyObject *args) {
6259     PyObject *resultobj;
6260     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6261     std::string *result;
6262     PyObject * obj0  = 0 ;
6263     
6264     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_role",&obj0)) goto fail;
6265     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6266     {
6267         std::string const &_result_ref = ((ob::OBClient const *)arg1)->role();
6268         result = (std::string *) &_result_ref;
6269     }
6270     
6271     {
6272         resultobj = PyString_FromString(result->c_str());
6273     }
6274     return resultobj;
6275     fail:
6276     return NULL;
6277 }
6278
6279
6280 static PyObject *_wrap_OBClient_canFocus(PyObject *self, PyObject *args) {
6281     PyObject *resultobj;
6282     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6283     bool result;
6284     PyObject * obj0  = 0 ;
6285     
6286     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_canFocus",&obj0)) goto fail;
6287     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6288     result = (bool)((ob::OBClient const *)arg1)->canFocus();
6289     
6290     resultobj = PyInt_FromLong((long)result);
6291     return resultobj;
6292     fail:
6293     return NULL;
6294 }
6295
6296
6297 static PyObject *_wrap_OBClient_urgent(PyObject *self, PyObject *args) {
6298     PyObject *resultobj;
6299     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6300     bool result;
6301     PyObject * obj0  = 0 ;
6302     
6303     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_urgent",&obj0)) goto fail;
6304     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6305     result = (bool)((ob::OBClient const *)arg1)->urgent();
6306     
6307     resultobj = PyInt_FromLong((long)result);
6308     return resultobj;
6309     fail:
6310     return NULL;
6311 }
6312
6313
6314 static PyObject *_wrap_OBClient_focusNotify(PyObject *self, PyObject *args) {
6315     PyObject *resultobj;
6316     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6317     bool result;
6318     PyObject * obj0  = 0 ;
6319     
6320     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focusNotify",&obj0)) goto fail;
6321     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6322     result = (bool)((ob::OBClient const *)arg1)->focusNotify();
6323     
6324     resultobj = PyInt_FromLong((long)result);
6325     return resultobj;
6326     fail:
6327     return NULL;
6328 }
6329
6330
6331 static PyObject *_wrap_OBClient_shaped(PyObject *self, PyObject *args) {
6332     PyObject *resultobj;
6333     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6334     bool result;
6335     PyObject * obj0  = 0 ;
6336     
6337     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaped",&obj0)) goto fail;
6338     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6339     result = (bool)((ob::OBClient const *)arg1)->shaped();
6340     
6341     resultobj = PyInt_FromLong((long)result);
6342     return resultobj;
6343     fail:
6344     return NULL;
6345 }
6346
6347
6348 static PyObject *_wrap_OBClient_gravity(PyObject *self, PyObject *args) {
6349     PyObject *resultobj;
6350     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6351     int result;
6352     PyObject * obj0  = 0 ;
6353     
6354     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_gravity",&obj0)) goto fail;
6355     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6356     result = (int)((ob::OBClient const *)arg1)->gravity();
6357     
6358     resultobj = PyInt_FromLong((long)result);
6359     return resultobj;
6360     fail:
6361     return NULL;
6362 }
6363
6364
6365 static PyObject *_wrap_OBClient_positionRequested(PyObject *self, PyObject *args) {
6366     PyObject *resultobj;
6367     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6368     bool result;
6369     PyObject * obj0  = 0 ;
6370     
6371     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_positionRequested",&obj0)) goto fail;
6372     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6373     result = (bool)((ob::OBClient const *)arg1)->positionRequested();
6374     
6375     resultobj = PyInt_FromLong((long)result);
6376     return resultobj;
6377     fail:
6378     return NULL;
6379 }
6380
6381
6382 static PyObject *_wrap_OBClient_decorations(PyObject *self, PyObject *args) {
6383     PyObject *resultobj;
6384     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6385     ob::OBClient::DecorationFlags result;
6386     PyObject * obj0  = 0 ;
6387     
6388     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_decorations",&obj0)) goto fail;
6389     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6390     result = (ob::OBClient::DecorationFlags)((ob::OBClient const *)arg1)->decorations();
6391     
6392     resultobj = PyInt_FromLong((long)result);
6393     return resultobj;
6394     fail:
6395     return NULL;
6396 }
6397
6398
6399 static PyObject *_wrap_OBClient_funtions(PyObject *self, PyObject *args) {
6400     PyObject *resultobj;
6401     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6402     ob::OBClient::FunctionFlags result;
6403     PyObject * obj0  = 0 ;
6404     
6405     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_funtions",&obj0)) goto fail;
6406     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6407     result = (ob::OBClient::FunctionFlags)((ob::OBClient const *)arg1)->funtions();
6408     
6409     resultobj = PyInt_FromLong((long)result);
6410     return resultobj;
6411     fail:
6412     return NULL;
6413 }
6414
6415
6416 static PyObject *_wrap_OBClient_transientFor(PyObject *self, PyObject *args) {
6417     PyObject *resultobj;
6418     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6419     ob::OBClient *result;
6420     PyObject * obj0  = 0 ;
6421     
6422     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_transientFor",&obj0)) goto fail;
6423     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6424     result = (ob::OBClient *)((ob::OBClient const *)arg1)->transientFor();
6425     
6426     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
6427     return resultobj;
6428     fail:
6429     return NULL;
6430 }
6431
6432
6433 static PyObject *_wrap_OBClient_modal(PyObject *self, PyObject *args) {
6434     PyObject *resultobj;
6435     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6436     bool result;
6437     PyObject * obj0  = 0 ;
6438     
6439     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_modal",&obj0)) goto fail;
6440     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6441     result = (bool)((ob::OBClient const *)arg1)->modal();
6442     
6443     resultobj = PyInt_FromLong((long)result);
6444     return resultobj;
6445     fail:
6446     return NULL;
6447 }
6448
6449
6450 static PyObject *_wrap_OBClient_shaded(PyObject *self, PyObject *args) {
6451     PyObject *resultobj;
6452     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6453     bool result;
6454     PyObject * obj0  = 0 ;
6455     
6456     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaded",&obj0)) goto fail;
6457     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6458     result = (bool)((ob::OBClient const *)arg1)->shaded();
6459     
6460     resultobj = PyInt_FromLong((long)result);
6461     return resultobj;
6462     fail:
6463     return NULL;
6464 }
6465
6466
6467 static PyObject *_wrap_OBClient_iconic(PyObject *self, PyObject *args) {
6468     PyObject *resultobj;
6469     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6470     bool result;
6471     PyObject * obj0  = 0 ;
6472     
6473     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconic",&obj0)) goto fail;
6474     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6475     result = (bool)((ob::OBClient const *)arg1)->iconic();
6476     
6477     resultobj = PyInt_FromLong((long)result);
6478     return resultobj;
6479     fail:
6480     return NULL;
6481 }
6482
6483
6484 static PyObject *_wrap_OBClient_maxVert(PyObject *self, PyObject *args) {
6485     PyObject *resultobj;
6486     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6487     bool result;
6488     PyObject * obj0  = 0 ;
6489     
6490     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxVert",&obj0)) goto fail;
6491     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6492     result = (bool)((ob::OBClient const *)arg1)->maxVert();
6493     
6494     resultobj = PyInt_FromLong((long)result);
6495     return resultobj;
6496     fail:
6497     return NULL;
6498 }
6499
6500
6501 static PyObject *_wrap_OBClient_maxHorz(PyObject *self, PyObject *args) {
6502     PyObject *resultobj;
6503     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6504     bool result;
6505     PyObject * obj0  = 0 ;
6506     
6507     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxHorz",&obj0)) goto fail;
6508     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6509     result = (bool)((ob::OBClient const *)arg1)->maxHorz();
6510     
6511     resultobj = PyInt_FromLong((long)result);
6512     return resultobj;
6513     fail:
6514     return NULL;
6515 }
6516
6517
6518 static PyObject *_wrap_OBClient_layer(PyObject *self, PyObject *args) {
6519     PyObject *resultobj;
6520     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6521     int result;
6522     PyObject * obj0  = 0 ;
6523     
6524     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_layer",&obj0)) goto fail;
6525     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6526     result = (int)((ob::OBClient const *)arg1)->layer();
6527     
6528     resultobj = PyInt_FromLong((long)result);
6529     return resultobj;
6530     fail:
6531     return NULL;
6532 }
6533
6534
6535 static PyObject *_wrap_OBClient_toggleClientBorder(PyObject *self, PyObject *args) {
6536     PyObject *resultobj;
6537     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6538     bool arg2 ;
6539     PyObject * obj0  = 0 ;
6540     PyObject * obj1  = 0 ;
6541     
6542     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_toggleClientBorder",&obj0,&obj1)) goto fail;
6543     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6544     arg2 = (bool) PyInt_AsLong(obj1);
6545     if (PyErr_Occurred()) SWIG_fail;
6546     (arg1)->toggleClientBorder(arg2);
6547     
6548     Py_INCREF(Py_None); resultobj = Py_None;
6549     return resultobj;
6550     fail:
6551     return NULL;
6552 }
6553
6554
6555 static PyObject *_wrap_OBClient_area(PyObject *self, PyObject *args) {
6556     PyObject *resultobj;
6557     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6558     otk::Rect *result;
6559     PyObject * obj0  = 0 ;
6560     
6561     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_area",&obj0)) goto fail;
6562     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6563     {
6564         otk::Rect const &_result_ref = ((ob::OBClient const *)arg1)->area();
6565         result = (otk::Rect *) &_result_ref;
6566     }
6567     
6568     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
6569     return resultobj;
6570     fail:
6571     return NULL;
6572 }
6573
6574
6575 static PyObject *_wrap_OBClient_strut(PyObject *self, PyObject *args) {
6576     PyObject *resultobj;
6577     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6578     otk::Strut *result;
6579     PyObject * obj0  = 0 ;
6580     
6581     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_strut",&obj0)) goto fail;
6582     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6583     {
6584         otk::Strut const &_result_ref = ((ob::OBClient const *)arg1)->strut();
6585         result = (otk::Strut *) &_result_ref;
6586     }
6587     
6588     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 0);
6589     return resultobj;
6590     fail:
6591     return NULL;
6592 }
6593
6594
6595 static PyObject *_wrap_OBClient_move(PyObject *self, PyObject *args) {
6596     PyObject *resultobj;
6597     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6598     int arg2 ;
6599     int arg3 ;
6600     PyObject * obj0  = 0 ;
6601     
6602     if(!PyArg_ParseTuple(args,(char *)"Oii:OBClient_move",&obj0,&arg2,&arg3)) goto fail;
6603     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6604     (arg1)->move(arg2,arg3);
6605     
6606     Py_INCREF(Py_None); resultobj = Py_None;
6607     return resultobj;
6608     fail:
6609     return NULL;
6610 }
6611
6612
6613 static PyObject *_wrap_OBClient_resize(PyObject *self, PyObject *args) {
6614     PyObject *resultobj;
6615     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6616     int arg2 ;
6617     int arg3 ;
6618     int arg4 ;
6619     int arg5 = (int) INT_MIN ;
6620     int arg6 = (int) INT_MIN ;
6621     PyObject * obj0  = 0 ;
6622     
6623     if(!PyArg_ParseTuple(args,(char *)"Oiii|ii:OBClient_resize",&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
6624     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6625     (arg1)->resize((ob::OBClient::Corner )arg2,arg3,arg4,arg5,arg6);
6626     
6627     Py_INCREF(Py_None); resultobj = Py_None;
6628     return resultobj;
6629     fail:
6630     return NULL;
6631 }
6632
6633
6634 static PyObject *_wrap_OBClient_focus(PyObject *self, PyObject *args) {
6635     PyObject *resultobj;
6636     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6637     bool result;
6638     PyObject * obj0  = 0 ;
6639     
6640     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focus",&obj0)) goto fail;
6641     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6642     result = (bool)((ob::OBClient const *)arg1)->focus();
6643     
6644     resultobj = PyInt_FromLong((long)result);
6645     return resultobj;
6646     fail:
6647     return NULL;
6648 }
6649
6650
6651 static PyObject *_wrap_OBClient_unfocus(PyObject *self, PyObject *args) {
6652     PyObject *resultobj;
6653     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6654     PyObject * obj0  = 0 ;
6655     
6656     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_unfocus",&obj0)) goto fail;
6657     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6658     ((ob::OBClient const *)arg1)->unfocus();
6659     
6660     Py_INCREF(Py_None); resultobj = Py_None;
6661     return resultobj;
6662     fail:
6663     return NULL;
6664 }
6665
6666
6667 static PyObject *_wrap_OBClient_focusHandler(PyObject *self, PyObject *args) {
6668     PyObject *resultobj;
6669     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6670     XFocusChangeEvent *arg2 = 0 ;
6671     PyObject * obj0  = 0 ;
6672     PyObject * obj1  = 0 ;
6673     
6674     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_focusHandler",&obj0,&obj1)) goto fail;
6675     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6676     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6677     if (arg2 == NULL) {
6678         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
6679     }
6680     (arg1)->focusHandler((XFocusChangeEvent const &)*arg2);
6681     
6682     Py_INCREF(Py_None); resultobj = Py_None;
6683     return resultobj;
6684     fail:
6685     return NULL;
6686 }
6687
6688
6689 static PyObject *_wrap_OBClient_unfocusHandler(PyObject *self, PyObject *args) {
6690     PyObject *resultobj;
6691     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6692     XFocusChangeEvent *arg2 = 0 ;
6693     PyObject * obj0  = 0 ;
6694     PyObject * obj1  = 0 ;
6695     
6696     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unfocusHandler",&obj0,&obj1)) goto fail;
6697     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6698     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6699     if (arg2 == NULL) {
6700         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
6701     }
6702     (arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2);
6703     
6704     Py_INCREF(Py_None); resultobj = Py_None;
6705     return resultobj;
6706     fail:
6707     return NULL;
6708 }
6709
6710
6711 static PyObject *_wrap_OBClient_propertyHandler(PyObject *self, PyObject *args) {
6712     PyObject *resultobj;
6713     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6714     XPropertyEvent *arg2 = 0 ;
6715     PyObject * obj0  = 0 ;
6716     PyObject * obj1  = 0 ;
6717     
6718     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_propertyHandler",&obj0,&obj1)) goto fail;
6719     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6720     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6721     if (arg2 == NULL) {
6722         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
6723     }
6724     (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
6725     
6726     Py_INCREF(Py_None); resultobj = Py_None;
6727     return resultobj;
6728     fail:
6729     return NULL;
6730 }
6731
6732
6733 static PyObject *_wrap_OBClient_clientMessageHandler(PyObject *self, PyObject *args) {
6734     PyObject *resultobj;
6735     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6736     XClientMessageEvent *arg2 = 0 ;
6737     PyObject * obj0  = 0 ;
6738     PyObject * obj1  = 0 ;
6739     
6740     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_clientMessageHandler",&obj0,&obj1)) goto fail;
6741     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6742     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6743     if (arg2 == NULL) {
6744         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
6745     }
6746     (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
6747     
6748     Py_INCREF(Py_None); resultobj = Py_None;
6749     return resultobj;
6750     fail:
6751     return NULL;
6752 }
6753
6754
6755 static PyObject *_wrap_OBClient_configureRequestHandler(PyObject *self, PyObject *args) {
6756     PyObject *resultobj;
6757     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6758     XConfigureRequestEvent *arg2 = 0 ;
6759     PyObject * obj0  = 0 ;
6760     PyObject * obj1  = 0 ;
6761     
6762     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_configureRequestHandler",&obj0,&obj1)) goto fail;
6763     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6764     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6765     if (arg2 == NULL) {
6766         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
6767     }
6768     (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2);
6769     
6770     Py_INCREF(Py_None); resultobj = Py_None;
6771     return resultobj;
6772     fail:
6773     return NULL;
6774 }
6775
6776
6777 static PyObject *_wrap_OBClient_unmapHandler(PyObject *self, PyObject *args) {
6778     PyObject *resultobj;
6779     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6780     XUnmapEvent *arg2 = 0 ;
6781     PyObject * obj0  = 0 ;
6782     PyObject * obj1  = 0 ;
6783     
6784     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unmapHandler",&obj0,&obj1)) goto fail;
6785     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6786     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6787     if (arg2 == NULL) {
6788         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
6789     }
6790     (arg1)->unmapHandler((XUnmapEvent const &)*arg2);
6791     
6792     Py_INCREF(Py_None); resultobj = Py_None;
6793     return resultobj;
6794     fail:
6795     return NULL;
6796 }
6797
6798
6799 static PyObject *_wrap_OBClient_destroyHandler(PyObject *self, PyObject *args) {
6800     PyObject *resultobj;
6801     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6802     XDestroyWindowEvent *arg2 = 0 ;
6803     PyObject * obj0  = 0 ;
6804     PyObject * obj1  = 0 ;
6805     
6806     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_destroyHandler",&obj0,&obj1)) goto fail;
6807     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6808     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6809     if (arg2 == NULL) {
6810         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
6811     }
6812     (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2);
6813     
6814     Py_INCREF(Py_None); resultobj = Py_None;
6815     return resultobj;
6816     fail:
6817     return NULL;
6818 }
6819
6820
6821 static PyObject *_wrap_OBClient_reparentHandler(PyObject *self, PyObject *args) {
6822     PyObject *resultobj;
6823     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
6824     XReparentEvent *arg2 = 0 ;
6825     PyObject * obj0  = 0 ;
6826     PyObject * obj1  = 0 ;
6827     
6828     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_reparentHandler",&obj0,&obj1)) goto fail;
6829     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6830     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6831     if (arg2 == NULL) {
6832         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
6833     }
6834     (arg1)->reparentHandler((XReparentEvent const &)*arg2);
6835     
6836     Py_INCREF(Py_None); resultobj = Py_None;
6837     return resultobj;
6838     fail:
6839     return NULL;
6840 }
6841
6842
6843 static PyObject * OBClient_swigregister(PyObject *self, PyObject *args) {
6844     PyObject *obj;
6845     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6846     SWIG_TypeClientData(SWIGTYPE_p_ob__OBClient, obj);
6847     Py_INCREF(obj);
6848     return Py_BuildValue((char *)"");
6849 }
6850 static PyObject *_wrap_MouseData_screen_set(PyObject *self, PyObject *args) {
6851     PyObject *resultobj;
6852     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6853     int arg2 ;
6854     PyObject * obj0  = 0 ;
6855     
6856     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_screen_set",&obj0,&arg2)) goto fail;
6857     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6858     if (arg1) (arg1)->screen = arg2;
6859     
6860     Py_INCREF(Py_None); resultobj = Py_None;
6861     return resultobj;
6862     fail:
6863     return NULL;
6864 }
6865
6866
6867 static PyObject *_wrap_MouseData_screen_get(PyObject *self, PyObject *args) {
6868     PyObject *resultobj;
6869     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6870     int result;
6871     PyObject * obj0  = 0 ;
6872     
6873     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_screen_get",&obj0)) goto fail;
6874     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6875     result = (int) ((arg1)->screen);
6876     
6877     resultobj = PyInt_FromLong((long)result);
6878     return resultobj;
6879     fail:
6880     return NULL;
6881 }
6882
6883
6884 static PyObject *_wrap_MouseData_client_set(PyObject *self, PyObject *args) {
6885     PyObject *resultobj;
6886     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6887     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
6888     PyObject * obj0  = 0 ;
6889     PyObject * obj1  = 0 ;
6890     
6891     if(!PyArg_ParseTuple(args,(char *)"OO:MouseData_client_set",&obj0,&obj1)) goto fail;
6892     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6893     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
6894     if (arg1) (arg1)->client = arg2;
6895     
6896     Py_INCREF(Py_None); resultobj = Py_None;
6897     return resultobj;
6898     fail:
6899     return NULL;
6900 }
6901
6902
6903 static PyObject *_wrap_MouseData_client_get(PyObject *self, PyObject *args) {
6904     PyObject *resultobj;
6905     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6906     ob::OBClient *result;
6907     PyObject * obj0  = 0 ;
6908     
6909     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_client_get",&obj0)) goto fail;
6910     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6911     result = (ob::OBClient *) ((arg1)->client);
6912     
6913     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
6914     return resultobj;
6915     fail:
6916     return NULL;
6917 }
6918
6919
6920 static PyObject *_wrap_MouseData_time_set(PyObject *self, PyObject *args) {
6921     PyObject *resultobj;
6922     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6923     Time arg2 ;
6924     PyObject * obj0  = 0 ;
6925     PyObject * obj1  = 0 ;
6926     
6927     if(!PyArg_ParseTuple(args,(char *)"OO:MouseData_time_set",&obj0,&obj1)) goto fail;
6928     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6929     arg2 = (Time) PyInt_AsLong(obj1);
6930     if (PyErr_Occurred()) SWIG_fail;
6931     if (arg1) (arg1)->time = arg2;
6932     
6933     Py_INCREF(Py_None); resultobj = Py_None;
6934     return resultobj;
6935     fail:
6936     return NULL;
6937 }
6938
6939
6940 static PyObject *_wrap_MouseData_time_get(PyObject *self, PyObject *args) {
6941     PyObject *resultobj;
6942     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6943     Time result;
6944     PyObject * obj0  = 0 ;
6945     
6946     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_time_get",&obj0)) goto fail;
6947     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6948     result = (Time) ((arg1)->time);
6949     
6950     resultobj = PyInt_FromLong((long)result);
6951     return resultobj;
6952     fail:
6953     return NULL;
6954 }
6955
6956
6957 static PyObject *_wrap_MouseData_state_set(PyObject *self, PyObject *args) {
6958     PyObject *resultobj;
6959     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6960     unsigned int arg2 ;
6961     PyObject * obj0  = 0 ;
6962     PyObject * obj1  = 0 ;
6963     
6964     if(!PyArg_ParseTuple(args,(char *)"OO:MouseData_state_set",&obj0,&obj1)) goto fail;
6965     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6966     arg2 = (unsigned int) PyInt_AsLong(obj1);
6967     if (PyErr_Occurred()) SWIG_fail;
6968     if (arg1) (arg1)->state = arg2;
6969     
6970     Py_INCREF(Py_None); resultobj = Py_None;
6971     return resultobj;
6972     fail:
6973     return NULL;
6974 }
6975
6976
6977 static PyObject *_wrap_MouseData_state_get(PyObject *self, PyObject *args) {
6978     PyObject *resultobj;
6979     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6980     unsigned int result;
6981     PyObject * obj0  = 0 ;
6982     
6983     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_state_get",&obj0)) goto fail;
6984     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6985     result = (unsigned int) ((arg1)->state);
6986     
6987     resultobj = PyInt_FromLong((long)result);
6988     return resultobj;
6989     fail:
6990     return NULL;
6991 }
6992
6993
6994 static PyObject *_wrap_MouseData_button_set(PyObject *self, PyObject *args) {
6995     PyObject *resultobj;
6996     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6997     unsigned int arg2 ;
6998     PyObject * obj0  = 0 ;
6999     PyObject * obj1  = 0 ;
7000     
7001     if(!PyArg_ParseTuple(args,(char *)"OO:MouseData_button_set",&obj0,&obj1)) goto fail;
7002     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7003     arg2 = (unsigned int) PyInt_AsLong(obj1);
7004     if (PyErr_Occurred()) SWIG_fail;
7005     if (arg1) (arg1)->button = arg2;
7006     
7007     Py_INCREF(Py_None); resultobj = Py_None;
7008     return resultobj;
7009     fail:
7010     return NULL;
7011 }
7012
7013
7014 static PyObject *_wrap_MouseData_button_get(PyObject *self, PyObject *args) {
7015     PyObject *resultobj;
7016     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7017     unsigned int result;
7018     PyObject * obj0  = 0 ;
7019     
7020     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_button_get",&obj0)) goto fail;
7021     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7022     result = (unsigned int) ((arg1)->button);
7023     
7024     resultobj = PyInt_FromLong((long)result);
7025     return resultobj;
7026     fail:
7027     return NULL;
7028 }
7029
7030
7031 static PyObject *_wrap_MouseData_context_set(PyObject *self, PyObject *args) {
7032     PyObject *resultobj;
7033     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7034     int arg2 ;
7035     PyObject * obj0  = 0 ;
7036     
7037     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_context_set",&obj0,&arg2)) goto fail;
7038     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7039     if (arg1) (arg1)->context = (ob::MouseContext )arg2;
7040     
7041     Py_INCREF(Py_None); resultobj = Py_None;
7042     return resultobj;
7043     fail:
7044     return NULL;
7045 }
7046
7047
7048 static PyObject *_wrap_MouseData_context_get(PyObject *self, PyObject *args) {
7049     PyObject *resultobj;
7050     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7051     int result;
7052     PyObject * obj0  = 0 ;
7053     
7054     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_context_get",&obj0)) goto fail;
7055     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7056     result = (int) ((arg1)->context);
7057     
7058     resultobj = PyInt_FromLong((long)result);
7059     return resultobj;
7060     fail:
7061     return NULL;
7062 }
7063
7064
7065 static PyObject *_wrap_MouseData_action_set(PyObject *self, PyObject *args) {
7066     PyObject *resultobj;
7067     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7068     int arg2 ;
7069     PyObject * obj0  = 0 ;
7070     
7071     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_action_set",&obj0,&arg2)) goto fail;
7072     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7073     if (arg1) (arg1)->action = (ob::MouseAction )arg2;
7074     
7075     Py_INCREF(Py_None); resultobj = Py_None;
7076     return resultobj;
7077     fail:
7078     return NULL;
7079 }
7080
7081
7082 static PyObject *_wrap_MouseData_action_get(PyObject *self, PyObject *args) {
7083     PyObject *resultobj;
7084     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7085     int result;
7086     PyObject * obj0  = 0 ;
7087     
7088     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_action_get",&obj0)) goto fail;
7089     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7090     result = (int) ((arg1)->action);
7091     
7092     resultobj = PyInt_FromLong((long)result);
7093     return resultobj;
7094     fail:
7095     return NULL;
7096 }
7097
7098
7099 static PyObject *_wrap_MouseData_xroot_set(PyObject *self, PyObject *args) {
7100     PyObject *resultobj;
7101     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7102     int arg2 ;
7103     PyObject * obj0  = 0 ;
7104     
7105     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_xroot_set",&obj0,&arg2)) goto fail;
7106     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7107     if (arg1) (arg1)->xroot = arg2;
7108     
7109     Py_INCREF(Py_None); resultobj = Py_None;
7110     return resultobj;
7111     fail:
7112     return NULL;
7113 }
7114
7115
7116 static PyObject *_wrap_MouseData_xroot_get(PyObject *self, PyObject *args) {
7117     PyObject *resultobj;
7118     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7119     int result;
7120     PyObject * obj0  = 0 ;
7121     
7122     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_xroot_get",&obj0)) goto fail;
7123     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7124     result = (int) ((arg1)->xroot);
7125     
7126     resultobj = PyInt_FromLong((long)result);
7127     return resultobj;
7128     fail:
7129     return NULL;
7130 }
7131
7132
7133 static PyObject *_wrap_MouseData_yroot_set(PyObject *self, PyObject *args) {
7134     PyObject *resultobj;
7135     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7136     int arg2 ;
7137     PyObject * obj0  = 0 ;
7138     
7139     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_yroot_set",&obj0,&arg2)) goto fail;
7140     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7141     if (arg1) (arg1)->yroot = arg2;
7142     
7143     Py_INCREF(Py_None); resultobj = Py_None;
7144     return resultobj;
7145     fail:
7146     return NULL;
7147 }
7148
7149
7150 static PyObject *_wrap_MouseData_yroot_get(PyObject *self, PyObject *args) {
7151     PyObject *resultobj;
7152     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7153     int result;
7154     PyObject * obj0  = 0 ;
7155     
7156     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_yroot_get",&obj0)) goto fail;
7157     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7158     result = (int) ((arg1)->yroot);
7159     
7160     resultobj = PyInt_FromLong((long)result);
7161     return resultobj;
7162     fail:
7163     return NULL;
7164 }
7165
7166
7167 static PyObject *_wrap_MouseData_pressx_set(PyObject *self, PyObject *args) {
7168     PyObject *resultobj;
7169     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7170     int arg2 ;
7171     PyObject * obj0  = 0 ;
7172     
7173     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_pressx_set",&obj0,&arg2)) goto fail;
7174     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7175     if (arg1) (arg1)->pressx = arg2;
7176     
7177     Py_INCREF(Py_None); resultobj = Py_None;
7178     return resultobj;
7179     fail:
7180     return NULL;
7181 }
7182
7183
7184 static PyObject *_wrap_MouseData_pressx_get(PyObject *self, PyObject *args) {
7185     PyObject *resultobj;
7186     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7187     int result;
7188     PyObject * obj0  = 0 ;
7189     
7190     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_pressx_get",&obj0)) goto fail;
7191     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7192     result = (int) ((arg1)->pressx);
7193     
7194     resultobj = PyInt_FromLong((long)result);
7195     return resultobj;
7196     fail:
7197     return NULL;
7198 }
7199
7200
7201 static PyObject *_wrap_MouseData_pressy_set(PyObject *self, PyObject *args) {
7202     PyObject *resultobj;
7203     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7204     int arg2 ;
7205     PyObject * obj0  = 0 ;
7206     
7207     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_pressy_set",&obj0,&arg2)) goto fail;
7208     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7209     if (arg1) (arg1)->pressy = arg2;
7210     
7211     Py_INCREF(Py_None); resultobj = Py_None;
7212     return resultobj;
7213     fail:
7214     return NULL;
7215 }
7216
7217
7218 static PyObject *_wrap_MouseData_pressy_get(PyObject *self, PyObject *args) {
7219     PyObject *resultobj;
7220     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7221     int result;
7222     PyObject * obj0  = 0 ;
7223     
7224     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_pressy_get",&obj0)) goto fail;
7225     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7226     result = (int) ((arg1)->pressy);
7227     
7228     resultobj = PyInt_FromLong((long)result);
7229     return resultobj;
7230     fail:
7231     return NULL;
7232 }
7233
7234
7235 static PyObject *_wrap_MouseData_press_clientx_set(PyObject *self, PyObject *args) {
7236     PyObject *resultobj;
7237     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7238     int arg2 ;
7239     PyObject * obj0  = 0 ;
7240     
7241     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_press_clientx_set",&obj0,&arg2)) goto fail;
7242     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7243     if (arg1) (arg1)->press_clientx = arg2;
7244     
7245     Py_INCREF(Py_None); resultobj = Py_None;
7246     return resultobj;
7247     fail:
7248     return NULL;
7249 }
7250
7251
7252 static PyObject *_wrap_MouseData_press_clientx_get(PyObject *self, PyObject *args) {
7253     PyObject *resultobj;
7254     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7255     int result;
7256     PyObject * obj0  = 0 ;
7257     
7258     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_press_clientx_get",&obj0)) goto fail;
7259     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7260     result = (int) ((arg1)->press_clientx);
7261     
7262     resultobj = PyInt_FromLong((long)result);
7263     return resultobj;
7264     fail:
7265     return NULL;
7266 }
7267
7268
7269 static PyObject *_wrap_MouseData_press_clienty_set(PyObject *self, PyObject *args) {
7270     PyObject *resultobj;
7271     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7272     int arg2 ;
7273     PyObject * obj0  = 0 ;
7274     
7275     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_press_clienty_set",&obj0,&arg2)) goto fail;
7276     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7277     if (arg1) (arg1)->press_clienty = arg2;
7278     
7279     Py_INCREF(Py_None); resultobj = Py_None;
7280     return resultobj;
7281     fail:
7282     return NULL;
7283 }
7284
7285
7286 static PyObject *_wrap_MouseData_press_clienty_get(PyObject *self, PyObject *args) {
7287     PyObject *resultobj;
7288     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7289     int result;
7290     PyObject * obj0  = 0 ;
7291     
7292     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_press_clienty_get",&obj0)) goto fail;
7293     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7294     result = (int) ((arg1)->press_clienty);
7295     
7296     resultobj = PyInt_FromLong((long)result);
7297     return resultobj;
7298     fail:
7299     return NULL;
7300 }
7301
7302
7303 static PyObject *_wrap_MouseData_press_clientwidth_set(PyObject *self, PyObject *args) {
7304     PyObject *resultobj;
7305     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7306     int arg2 ;
7307     PyObject * obj0  = 0 ;
7308     
7309     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_press_clientwidth_set",&obj0,&arg2)) goto fail;
7310     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7311     if (arg1) (arg1)->press_clientwidth = arg2;
7312     
7313     Py_INCREF(Py_None); resultobj = Py_None;
7314     return resultobj;
7315     fail:
7316     return NULL;
7317 }
7318
7319
7320 static PyObject *_wrap_MouseData_press_clientwidth_get(PyObject *self, PyObject *args) {
7321     PyObject *resultobj;
7322     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7323     int result;
7324     PyObject * obj0  = 0 ;
7325     
7326     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_press_clientwidth_get",&obj0)) goto fail;
7327     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7328     result = (int) ((arg1)->press_clientwidth);
7329     
7330     resultobj = PyInt_FromLong((long)result);
7331     return resultobj;
7332     fail:
7333     return NULL;
7334 }
7335
7336
7337 static PyObject *_wrap_MouseData_press_clientheight_set(PyObject *self, PyObject *args) {
7338     PyObject *resultobj;
7339     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7340     int arg2 ;
7341     PyObject * obj0  = 0 ;
7342     
7343     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_press_clientheight_set",&obj0,&arg2)) goto fail;
7344     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7345     if (arg1) (arg1)->press_clientheight = arg2;
7346     
7347     Py_INCREF(Py_None); resultobj = Py_None;
7348     return resultobj;
7349     fail:
7350     return NULL;
7351 }
7352
7353
7354 static PyObject *_wrap_MouseData_press_clientheight_get(PyObject *self, PyObject *args) {
7355     PyObject *resultobj;
7356     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7357     int result;
7358     PyObject * obj0  = 0 ;
7359     
7360     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_press_clientheight_get",&obj0)) goto fail;
7361     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7362     result = (int) ((arg1)->press_clientheight);
7363     
7364     resultobj = PyInt_FromLong((long)result);
7365     return resultobj;
7366     fail:
7367     return NULL;
7368 }
7369
7370
7371 static PyObject *_wrap_new_MouseData__SWIG_0(PyObject *self, PyObject *args) {
7372     PyObject *resultobj;
7373     int arg1 ;
7374     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
7375     Time arg3 ;
7376     unsigned int arg4 ;
7377     unsigned int arg5 ;
7378     int arg6 ;
7379     int arg7 ;
7380     int arg8 ;
7381     int arg9 ;
7382     otk::Point *arg10 = 0 ;
7383     otk::Rect *arg11 = 0 ;
7384     ob::MouseData *result;
7385     PyObject * obj1  = 0 ;
7386     PyObject * obj2  = 0 ;
7387     PyObject * obj3  = 0 ;
7388     PyObject * obj4  = 0 ;
7389     PyObject * obj9  = 0 ;
7390     PyObject * obj10  = 0 ;
7391     
7392     if(!PyArg_ParseTuple(args,(char *)"iOOOOiiiiOO:new_MouseData",&arg1,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7,&arg8,&arg9,&obj9,&obj10)) goto fail;
7393     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7394     arg3 = (Time) PyInt_AsLong(obj2);
7395     if (PyErr_Occurred()) SWIG_fail;
7396     arg4 = (unsigned int) PyInt_AsLong(obj3);
7397     if (PyErr_Occurred()) SWIG_fail;
7398     arg5 = (unsigned int) PyInt_AsLong(obj4);
7399     if (PyErr_Occurred()) SWIG_fail;
7400     if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7401     if (arg10 == NULL) {
7402         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
7403     }
7404     if ((SWIG_ConvertPtr(obj10,(void **) &arg11, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7405     if (arg11 == NULL) {
7406         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
7407     }
7408     result = (ob::MouseData *)new ob::MouseData(arg1,arg2,arg3,arg4,arg5,(ob::MouseContext )arg6,(ob::MouseAction )arg7,arg8,arg9,(otk::Point const &)*arg10,(otk::Rect const &)*arg11);
7409     
7410     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__MouseData, 1);
7411     return resultobj;
7412     fail:
7413     return NULL;
7414 }
7415
7416
7417 static PyObject *_wrap_new_MouseData__SWIG_1(PyObject *self, PyObject *args) {
7418     PyObject *resultobj;
7419     int arg1 ;
7420     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
7421     Time arg3 ;
7422     unsigned int arg4 ;
7423     unsigned int arg5 ;
7424     int arg6 ;
7425     int arg7 ;
7426     ob::MouseData *result;
7427     PyObject * obj1  = 0 ;
7428     PyObject * obj2  = 0 ;
7429     PyObject * obj3  = 0 ;
7430     PyObject * obj4  = 0 ;
7431     
7432     if(!PyArg_ParseTuple(args,(char *)"iOOOOii:new_MouseData",&arg1,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7)) goto fail;
7433     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7434     arg3 = (Time) PyInt_AsLong(obj2);
7435     if (PyErr_Occurred()) SWIG_fail;
7436     arg4 = (unsigned int) PyInt_AsLong(obj3);
7437     if (PyErr_Occurred()) SWIG_fail;
7438     arg5 = (unsigned int) PyInt_AsLong(obj4);
7439     if (PyErr_Occurred()) SWIG_fail;
7440     result = (ob::MouseData *)new ob::MouseData(arg1,arg2,arg3,arg4,arg5,(ob::MouseContext )arg6,(ob::MouseAction )arg7);
7441     
7442     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__MouseData, 1);
7443     return resultobj;
7444     fail:
7445     return NULL;
7446 }
7447
7448
7449 static PyObject *_wrap_new_MouseData(PyObject *self, PyObject *args) {
7450     int argc;
7451     PyObject *argv[12];
7452     int ii;
7453     
7454     argc = PyObject_Length(args);
7455     for (ii = 0; (ii < argc) && (ii < 11); ii++) {
7456         argv[ii] = PyTuple_GetItem(args,ii);
7457     }
7458     if (argc == 7) {
7459         int _v;
7460         {
7461             _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
7462         }
7463         if (_v) {
7464             {
7465                 void *ptr;
7466                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_ob__OBClient, 0) == -1) {
7467                     _v = 0;
7468                     PyErr_Clear();
7469                 }else {
7470                     _v = 1;
7471                 }
7472             }
7473             if (_v) {
7474                 {
7475                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7476                 }
7477                 if (_v) {
7478                     {
7479                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7480                     }
7481                     if (_v) {
7482                         {
7483                             _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
7484                         }
7485                         if (_v) {
7486                             {
7487                                 _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
7488                             }
7489                             if (_v) {
7490                                 {
7491                                     _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
7492                                 }
7493                                 if (_v) {
7494                                     return _wrap_new_MouseData__SWIG_1(self,args);
7495                                 }
7496                             }
7497                         }
7498                     }
7499                 }
7500             }
7501         }
7502     }
7503     if (argc == 11) {
7504         int _v;
7505         {
7506             _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
7507         }
7508         if (_v) {
7509             {
7510                 void *ptr;
7511                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_ob__OBClient, 0) == -1) {
7512                     _v = 0;
7513                     PyErr_Clear();
7514                 }else {
7515                     _v = 1;
7516                 }
7517             }
7518             if (_v) {
7519                 {
7520                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7521                 }
7522                 if (_v) {
7523                     {
7524                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7525                     }
7526                     if (_v) {
7527                         {
7528                             _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
7529                         }
7530                         if (_v) {
7531                             {
7532                                 _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
7533                             }
7534                             if (_v) {
7535                                 {
7536                                     _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
7537                                 }
7538                                 if (_v) {
7539                                     {
7540                                         _v = (PyInt_Check(argv[7]) || PyLong_Check(argv[7])) ? 1 : 0;
7541                                     }
7542                                     if (_v) {
7543                                         {
7544                                             _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
7545                                         }
7546                                         if (_v) {
7547                                             {
7548                                                 void *ptr;
7549                                                 if (SWIG_ConvertPtr(argv[9], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
7550                                                     _v = 0;
7551                                                     PyErr_Clear();
7552                                                 }else {
7553                                                     _v = 1;
7554                                                 }
7555                                             }
7556                                             if (_v) {
7557                                                 {
7558                                                     void *ptr;
7559                                                     if (SWIG_ConvertPtr(argv[10], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
7560                                                         _v = 0;
7561                                                         PyErr_Clear();
7562                                                     }else {
7563                                                         _v = 1;
7564                                                     }
7565                                                 }
7566                                                 if (_v) {
7567                                                     return _wrap_new_MouseData__SWIG_0(self,args);
7568                                                 }
7569                                             }
7570                                         }
7571                                     }
7572                                 }
7573                             }
7574                         }
7575                     }
7576                 }
7577             }
7578         }
7579     }
7580     
7581     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_MouseData'");
7582     return NULL;
7583 }
7584
7585
7586 static PyObject * MouseData_swigregister(PyObject *self, PyObject *args) {
7587     PyObject *obj;
7588     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7589     SWIG_TypeClientData(SWIGTYPE_p_ob__MouseData, obj);
7590     Py_INCREF(obj);
7591     return Py_BuildValue((char *)"");
7592 }
7593 static PyObject *_wrap_EventData_screen_set(PyObject *self, PyObject *args) {
7594     PyObject *resultobj;
7595     ob::EventData *arg1 = (ob::EventData *) 0 ;
7596     int arg2 ;
7597     PyObject * obj0  = 0 ;
7598     
7599     if(!PyArg_ParseTuple(args,(char *)"Oi:EventData_screen_set",&obj0,&arg2)) goto fail;
7600     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7601     if (arg1) (arg1)->screen = arg2;
7602     
7603     Py_INCREF(Py_None); resultobj = Py_None;
7604     return resultobj;
7605     fail:
7606     return NULL;
7607 }
7608
7609
7610 static PyObject *_wrap_EventData_screen_get(PyObject *self, PyObject *args) {
7611     PyObject *resultobj;
7612     ob::EventData *arg1 = (ob::EventData *) 0 ;
7613     int result;
7614     PyObject * obj0  = 0 ;
7615     
7616     if(!PyArg_ParseTuple(args,(char *)"O:EventData_screen_get",&obj0)) goto fail;
7617     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7618     result = (int) ((arg1)->screen);
7619     
7620     resultobj = PyInt_FromLong((long)result);
7621     return resultobj;
7622     fail:
7623     return NULL;
7624 }
7625
7626
7627 static PyObject *_wrap_EventData_client_set(PyObject *self, PyObject *args) {
7628     PyObject *resultobj;
7629     ob::EventData *arg1 = (ob::EventData *) 0 ;
7630     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
7631     PyObject * obj0  = 0 ;
7632     PyObject * obj1  = 0 ;
7633     
7634     if(!PyArg_ParseTuple(args,(char *)"OO:EventData_client_set",&obj0,&obj1)) goto fail;
7635     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7636     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
7637     if (arg1) (arg1)->client = arg2;
7638     
7639     Py_INCREF(Py_None); resultobj = Py_None;
7640     return resultobj;
7641     fail:
7642     return NULL;
7643 }
7644
7645
7646 static PyObject *_wrap_EventData_client_get(PyObject *self, PyObject *args) {
7647     PyObject *resultobj;
7648     ob::EventData *arg1 = (ob::EventData *) 0 ;
7649     ob::OBClient *result;
7650     PyObject * obj0  = 0 ;
7651     
7652     if(!PyArg_ParseTuple(args,(char *)"O:EventData_client_get",&obj0)) goto fail;
7653     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7654     result = (ob::OBClient *) ((arg1)->client);
7655     
7656     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
7657     return resultobj;
7658     fail:
7659     return NULL;
7660 }
7661
7662
7663 static PyObject *_wrap_EventData_state_set(PyObject *self, PyObject *args) {
7664     PyObject *resultobj;
7665     ob::EventData *arg1 = (ob::EventData *) 0 ;
7666     unsigned int arg2 ;
7667     PyObject * obj0  = 0 ;
7668     PyObject * obj1  = 0 ;
7669     
7670     if(!PyArg_ParseTuple(args,(char *)"OO:EventData_state_set",&obj0,&obj1)) goto fail;
7671     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7672     arg2 = (unsigned int) PyInt_AsLong(obj1);
7673     if (PyErr_Occurred()) SWIG_fail;
7674     if (arg1) (arg1)->state = arg2;
7675     
7676     Py_INCREF(Py_None); resultobj = Py_None;
7677     return resultobj;
7678     fail:
7679     return NULL;
7680 }
7681
7682
7683 static PyObject *_wrap_EventData_state_get(PyObject *self, PyObject *args) {
7684     PyObject *resultobj;
7685     ob::EventData *arg1 = (ob::EventData *) 0 ;
7686     unsigned int result;
7687     PyObject * obj0  = 0 ;
7688     
7689     if(!PyArg_ParseTuple(args,(char *)"O:EventData_state_get",&obj0)) goto fail;
7690     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7691     result = (unsigned int) ((arg1)->state);
7692     
7693     resultobj = PyInt_FromLong((long)result);
7694     return resultobj;
7695     fail:
7696     return NULL;
7697 }
7698
7699
7700 static PyObject *_wrap_EventData_action_set(PyObject *self, PyObject *args) {
7701     PyObject *resultobj;
7702     ob::EventData *arg1 = (ob::EventData *) 0 ;
7703     int arg2 ;
7704     PyObject * obj0  = 0 ;
7705     
7706     if(!PyArg_ParseTuple(args,(char *)"Oi:EventData_action_set",&obj0,&arg2)) goto fail;
7707     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7708     if (arg1) (arg1)->action = (ob::EventAction )arg2;
7709     
7710     Py_INCREF(Py_None); resultobj = Py_None;
7711     return resultobj;
7712     fail:
7713     return NULL;
7714 }
7715
7716
7717 static PyObject *_wrap_EventData_action_get(PyObject *self, PyObject *args) {
7718     PyObject *resultobj;
7719     ob::EventData *arg1 = (ob::EventData *) 0 ;
7720     int result;
7721     PyObject * obj0  = 0 ;
7722     
7723     if(!PyArg_ParseTuple(args,(char *)"O:EventData_action_get",&obj0)) goto fail;
7724     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7725     result = (int) ((arg1)->action);
7726     
7727     resultobj = PyInt_FromLong((long)result);
7728     return resultobj;
7729     fail:
7730     return NULL;
7731 }
7732
7733
7734 static PyObject *_wrap_new_EventData(PyObject *self, PyObject *args) {
7735     PyObject *resultobj;
7736     int arg1 ;
7737     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
7738     int arg3 ;
7739     unsigned int arg4 ;
7740     ob::EventData *result;
7741     PyObject * obj1  = 0 ;
7742     PyObject * obj3  = 0 ;
7743     
7744     if(!PyArg_ParseTuple(args,(char *)"iOiO:new_EventData",&arg1,&obj1,&arg3,&obj3)) goto fail;
7745     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7746     arg4 = (unsigned int) PyInt_AsLong(obj3);
7747     if (PyErr_Occurred()) SWIG_fail;
7748     result = (ob::EventData *)new ob::EventData(arg1,arg2,(ob::EventAction )arg3,arg4);
7749     
7750     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__EventData, 1);
7751     return resultobj;
7752     fail:
7753     return NULL;
7754 }
7755
7756
7757 static PyObject * EventData_swigregister(PyObject *self, PyObject *args) {
7758     PyObject *obj;
7759     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7760     SWIG_TypeClientData(SWIGTYPE_p_ob__EventData, obj);
7761     Py_INCREF(obj);
7762     return Py_BuildValue((char *)"");
7763 }
7764 static PyObject *_wrap_KeyData_screen_set(PyObject *self, PyObject *args) {
7765     PyObject *resultobj;
7766     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7767     int arg2 ;
7768     PyObject * obj0  = 0 ;
7769     
7770     if(!PyArg_ParseTuple(args,(char *)"Oi:KeyData_screen_set",&obj0,&arg2)) goto fail;
7771     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7772     if (arg1) (arg1)->screen = arg2;
7773     
7774     Py_INCREF(Py_None); resultobj = Py_None;
7775     return resultobj;
7776     fail:
7777     return NULL;
7778 }
7779
7780
7781 static PyObject *_wrap_KeyData_screen_get(PyObject *self, PyObject *args) {
7782     PyObject *resultobj;
7783     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7784     int result;
7785     PyObject * obj0  = 0 ;
7786     
7787     if(!PyArg_ParseTuple(args,(char *)"O:KeyData_screen_get",&obj0)) goto fail;
7788     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7789     result = (int) ((arg1)->screen);
7790     
7791     resultobj = PyInt_FromLong((long)result);
7792     return resultobj;
7793     fail:
7794     return NULL;
7795 }
7796
7797
7798 static PyObject *_wrap_KeyData_client_set(PyObject *self, PyObject *args) {
7799     PyObject *resultobj;
7800     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7801     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
7802     PyObject * obj0  = 0 ;
7803     PyObject * obj1  = 0 ;
7804     
7805     if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_client_set",&obj0,&obj1)) goto fail;
7806     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7807     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
7808     if (arg1) (arg1)->client = arg2;
7809     
7810     Py_INCREF(Py_None); resultobj = Py_None;
7811     return resultobj;
7812     fail:
7813     return NULL;
7814 }
7815
7816
7817 static PyObject *_wrap_KeyData_client_get(PyObject *self, PyObject *args) {
7818     PyObject *resultobj;
7819     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7820     ob::OBClient *result;
7821     PyObject * obj0  = 0 ;
7822     
7823     if(!PyArg_ParseTuple(args,(char *)"O:KeyData_client_get",&obj0)) goto fail;
7824     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7825     result = (ob::OBClient *) ((arg1)->client);
7826     
7827     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
7828     return resultobj;
7829     fail:
7830     return NULL;
7831 }
7832
7833
7834 static PyObject *_wrap_KeyData_time_set(PyObject *self, PyObject *args) {
7835     PyObject *resultobj;
7836     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7837     Time arg2 ;
7838     PyObject * obj0  = 0 ;
7839     PyObject * obj1  = 0 ;
7840     
7841     if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_time_set",&obj0,&obj1)) goto fail;
7842     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7843     arg2 = (Time) PyInt_AsLong(obj1);
7844     if (PyErr_Occurred()) SWIG_fail;
7845     if (arg1) (arg1)->time = arg2;
7846     
7847     Py_INCREF(Py_None); resultobj = Py_None;
7848     return resultobj;
7849     fail:
7850     return NULL;
7851 }
7852
7853
7854 static PyObject *_wrap_KeyData_time_get(PyObject *self, PyObject *args) {
7855     PyObject *resultobj;
7856     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7857     Time result;
7858     PyObject * obj0  = 0 ;
7859     
7860     if(!PyArg_ParseTuple(args,(char *)"O:KeyData_time_get",&obj0)) goto fail;
7861     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7862     result = (Time) ((arg1)->time);
7863     
7864     resultobj = PyInt_FromLong((long)result);
7865     return resultobj;
7866     fail:
7867     return NULL;
7868 }
7869
7870
7871 static PyObject *_wrap_KeyData_state_set(PyObject *self, PyObject *args) {
7872     PyObject *resultobj;
7873     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7874     unsigned int arg2 ;
7875     PyObject * obj0  = 0 ;
7876     PyObject * obj1  = 0 ;
7877     
7878     if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_state_set",&obj0,&obj1)) goto fail;
7879     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7880     arg2 = (unsigned int) PyInt_AsLong(obj1);
7881     if (PyErr_Occurred()) SWIG_fail;
7882     if (arg1) (arg1)->state = arg2;
7883     
7884     Py_INCREF(Py_None); resultobj = Py_None;
7885     return resultobj;
7886     fail:
7887     return NULL;
7888 }
7889
7890
7891 static PyObject *_wrap_KeyData_state_get(PyObject *self, PyObject *args) {
7892     PyObject *resultobj;
7893     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7894     unsigned int result;
7895     PyObject * obj0  = 0 ;
7896     
7897     if(!PyArg_ParseTuple(args,(char *)"O:KeyData_state_get",&obj0)) goto fail;
7898     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7899     result = (unsigned int) ((arg1)->state);
7900     
7901     resultobj = PyInt_FromLong((long)result);
7902     return resultobj;
7903     fail:
7904     return NULL;
7905 }
7906
7907
7908 static PyObject *_wrap_KeyData_key_set(PyObject *self, PyObject *args) {
7909     PyObject *resultobj;
7910     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7911     std::string *arg2 = (std::string *) 0 ;
7912     PyObject * obj0  = 0 ;
7913     PyObject * obj1  = 0 ;
7914     
7915     if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_key_set",&obj0,&obj1)) goto fail;
7916     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7917     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7918     if (arg1) (arg1)->key = *arg2;
7919     
7920     Py_INCREF(Py_None); resultobj = Py_None;
7921     return resultobj;
7922     fail:
7923     return NULL;
7924 }
7925
7926
7927 static PyObject *_wrap_KeyData_key_get(PyObject *self, PyObject *args) {
7928     PyObject *resultobj;
7929     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7930     std::string *result;
7931     PyObject * obj0  = 0 ;
7932     
7933     if(!PyArg_ParseTuple(args,(char *)"O:KeyData_key_get",&obj0)) goto fail;
7934     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7935     result = (std::string *)& ((arg1)->key);
7936     
7937     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__string, 0);
7938     return resultobj;
7939     fail:
7940     return NULL;
7941 }
7942
7943
7944 static PyObject *_wrap_new_KeyData(PyObject *self, PyObject *args) {
7945     PyObject *resultobj;
7946     int arg1 ;
7947     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
7948     Time arg3 ;
7949     unsigned int arg4 ;
7950     unsigned int arg5 ;
7951     ob::KeyData *result;
7952     PyObject * obj1  = 0 ;
7953     PyObject * obj2  = 0 ;
7954     PyObject * obj3  = 0 ;
7955     PyObject * obj4  = 0 ;
7956     
7957     if(!PyArg_ParseTuple(args,(char *)"iOOOO:new_KeyData",&arg1,&obj1,&obj2,&obj3,&obj4)) goto fail;
7958     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7959     arg3 = (Time) PyInt_AsLong(obj2);
7960     if (PyErr_Occurred()) SWIG_fail;
7961     arg4 = (unsigned int) PyInt_AsLong(obj3);
7962     if (PyErr_Occurred()) SWIG_fail;
7963     arg5 = (unsigned int) PyInt_AsLong(obj4);
7964     if (PyErr_Occurred()) SWIG_fail;
7965     result = (ob::KeyData *)new ob::KeyData(arg1,arg2,arg3,arg4,arg5);
7966     
7967     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__KeyData, 1);
7968     return resultobj;
7969     fail:
7970     return NULL;
7971 }
7972
7973
7974 static PyObject * KeyData_swigregister(PyObject *self, PyObject *args) {
7975     PyObject *obj;
7976     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7977     SWIG_TypeClientData(SWIGTYPE_p_ob__KeyData, obj);
7978     Py_INCREF(obj);
7979     return Py_BuildValue((char *)"");
7980 }
7981 static PyObject *_wrap_mbind(PyObject *self, PyObject *args) {
7982     PyObject *resultobj;
7983     std::string *arg1 = 0 ;
7984     int arg2 ;
7985     int arg3 ;
7986     PyObject *arg4 = (PyObject *) 0 ;
7987     PyObject *result;
7988     std::string temp1 ;
7989     PyObject * obj0  = 0 ;
7990     PyObject * obj3  = 0 ;
7991     
7992     if(!PyArg_ParseTuple(args,(char *)"OiiO:mbind",&obj0,&arg2,&arg3,&obj3)) goto fail;
7993     {
7994         if (PyString_Check(obj0)) {
7995             temp1 = std::string(PyString_AsString(obj0));
7996             arg1 = &temp1;
7997         }else {
7998             SWIG_exception(SWIG_TypeError, "string expected");
7999         }
8000     }
8001     arg4 = obj3;
8002     result = (PyObject *)ob::mbind((std::string const &)*arg1,(ob::MouseContext )arg2,(ob::MouseAction )arg3,arg4);
8003     
8004     resultobj = result;
8005     return resultobj;
8006     fail:
8007     return NULL;
8008 }
8009
8010
8011 static PyObject *_wrap_kbind(PyObject *self, PyObject *args) {
8012     PyObject *resultobj;
8013     PyObject *arg1 = (PyObject *) 0 ;
8014     int arg2 ;
8015     PyObject *arg3 = (PyObject *) 0 ;
8016     PyObject *result;
8017     PyObject * obj0  = 0 ;
8018     PyObject * obj2  = 0 ;
8019     
8020     if(!PyArg_ParseTuple(args,(char *)"OiO:kbind",&obj0,&arg2,&obj2)) goto fail;
8021     arg1 = obj0;
8022     arg3 = obj2;
8023     result = (PyObject *)ob::kbind(arg1,(ob::KeyContext )arg2,arg3);
8024     
8025     resultobj = result;
8026     return resultobj;
8027     fail:
8028     return NULL;
8029 }
8030
8031
8032 static PyObject *_wrap_ebind(PyObject *self, PyObject *args) {
8033     PyObject *resultobj;
8034     int arg1 ;
8035     PyObject *arg2 = (PyObject *) 0 ;
8036     PyObject *result;
8037     PyObject * obj1  = 0 ;
8038     
8039     if(!PyArg_ParseTuple(args,(char *)"iO:ebind",&arg1,&obj1)) goto fail;
8040     arg2 = obj1;
8041     result = (PyObject *)ob::ebind((ob::EventAction )arg1,arg2);
8042     
8043     resultobj = result;
8044     return resultobj;
8045     fail:
8046     return NULL;
8047 }
8048
8049
8050 static PyObject *_wrap_set_reset_key(PyObject *self, PyObject *args) {
8051     PyObject *resultobj;
8052     std::string *arg1 = 0 ;
8053     std::string temp1 ;
8054     PyObject * obj0  = 0 ;
8055     
8056     if(!PyArg_ParseTuple(args,(char *)"O:set_reset_key",&obj0)) goto fail;
8057     {
8058         if (PyString_Check(obj0)) {
8059             temp1 = std::string(PyString_AsString(obj0));
8060             arg1 = &temp1;
8061         }else {
8062             SWIG_exception(SWIG_TypeError, "string expected");
8063         }
8064     }
8065     ob::set_reset_key((std::string const &)*arg1);
8066     
8067     Py_INCREF(Py_None); resultobj = Py_None;
8068     return resultobj;
8069     fail:
8070     return NULL;
8071 }
8072
8073
8074 static PyObject *_wrap_send_client_msg(PyObject *self, PyObject *args) {
8075     PyObject *resultobj;
8076     Window arg1 ;
8077     int arg2 ;
8078     Window arg3 ;
8079     long arg4 ;
8080     long arg5 = (long) 0 ;
8081     long arg6 = (long) 0 ;
8082     long arg7 = (long) 0 ;
8083     long arg8 = (long) 0 ;
8084     PyObject *result;
8085     PyObject * obj0  = 0 ;
8086     PyObject * obj2  = 0 ;
8087     
8088     if(!PyArg_ParseTuple(args,(char *)"OiOl|llll:send_client_msg",&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&arg7,&arg8)) goto fail;
8089     arg1 = (Window) PyInt_AsLong(obj0);
8090     if (PyErr_Occurred()) SWIG_fail;
8091     arg3 = (Window) PyInt_AsLong(obj2);
8092     if (PyErr_Occurred()) SWIG_fail;
8093     result = (PyObject *)ob::send_client_msg(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
8094     
8095     resultobj = result;
8096     return resultobj;
8097     fail:
8098     return NULL;
8099 }
8100
8101
8102 static PyMethodDef SwigMethods[] = {
8103          { (char *)"Openbox_instance", _wrap_Openbox_instance, METH_VARARGS },
8104          { (char *)"OBDisplay_display", _wrap_OBDisplay_display, METH_VARARGS },
8105          { (char *)"OBDisplay_initialize", _wrap_OBDisplay_initialize, METH_VARARGS },
8106          { (char *)"OBDisplay_destroy", _wrap_OBDisplay_destroy, METH_VARARGS },
8107          { (char *)"OBDisplay_gcCache", _wrap_OBDisplay_gcCache, METH_VARARGS },
8108          { (char *)"OBDisplay_screenInfo", _wrap_OBDisplay_screenInfo, METH_VARARGS },
8109          { (char *)"OBDisplay_findScreen", _wrap_OBDisplay_findScreen, METH_VARARGS },
8110          { (char *)"OBDisplay_xkb", _wrap_OBDisplay_xkb, METH_VARARGS },
8111          { (char *)"OBDisplay_xkbEventBase", _wrap_OBDisplay_xkbEventBase, METH_VARARGS },
8112          { (char *)"OBDisplay_shape", _wrap_OBDisplay_shape, METH_VARARGS },
8113          { (char *)"OBDisplay_shapeEventBase", _wrap_OBDisplay_shapeEventBase, METH_VARARGS },
8114          { (char *)"OBDisplay_xinerama", _wrap_OBDisplay_xinerama, METH_VARARGS },
8115          { (char *)"OBDisplay_numLockMask", _wrap_OBDisplay_numLockMask, METH_VARARGS },
8116          { (char *)"OBDisplay_scrollLockMask", _wrap_OBDisplay_scrollLockMask, METH_VARARGS },
8117          { (char *)"OBDisplay_grab", _wrap_OBDisplay_grab, METH_VARARGS },
8118          { (char *)"OBDisplay_ungrab", _wrap_OBDisplay_ungrab, METH_VARARGS },
8119          { (char *)"OBDisplay_grabButton", _wrap_OBDisplay_grabButton, METH_VARARGS },
8120          { (char *)"OBDisplay_ungrabButton", _wrap_OBDisplay_ungrabButton, METH_VARARGS },
8121          { (char *)"OBDisplay_grabKey", _wrap_OBDisplay_grabKey, METH_VARARGS },
8122          { (char *)"OBDisplay_ungrabKey", _wrap_OBDisplay_ungrabKey, METH_VARARGS },
8123          { (char *)"OBDisplay_swigregister", OBDisplay_swigregister, METH_VARARGS },
8124          { (char *)"new_Point", _wrap_new_Point, METH_VARARGS },
8125          { (char *)"Point_setX", _wrap_Point_setX, METH_VARARGS },
8126          { (char *)"Point_x", _wrap_Point_x, METH_VARARGS },
8127          { (char *)"Point_setY", _wrap_Point_setY, METH_VARARGS },
8128          { (char *)"Point_y", _wrap_Point_y, METH_VARARGS },
8129          { (char *)"Point_setPoint", _wrap_Point_setPoint, METH_VARARGS },
8130          { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS },
8131          { (char *)"new_OBProperty", _wrap_new_OBProperty, METH_VARARGS },
8132          { (char *)"delete_OBProperty", _wrap_delete_OBProperty, METH_VARARGS },
8133          { (char *)"OBProperty_set", _wrap_OBProperty_set, METH_VARARGS },
8134          { (char *)"OBProperty_get", _wrap_OBProperty_get, METH_VARARGS },
8135          { (char *)"OBProperty_erase", _wrap_OBProperty_erase, METH_VARARGS },
8136          { (char *)"OBProperty_atom", _wrap_OBProperty_atom, METH_VARARGS },
8137          { (char *)"OBProperty_swigregister", OBProperty_swigregister, METH_VARARGS },
8138          { (char *)"new_Rect", _wrap_new_Rect, METH_VARARGS },
8139          { (char *)"Rect_left", _wrap_Rect_left, METH_VARARGS },
8140          { (char *)"Rect_top", _wrap_Rect_top, METH_VARARGS },
8141          { (char *)"Rect_right", _wrap_Rect_right, METH_VARARGS },
8142          { (char *)"Rect_bottom", _wrap_Rect_bottom, METH_VARARGS },
8143          { (char *)"Rect_x", _wrap_Rect_x, METH_VARARGS },
8144          { (char *)"Rect_y", _wrap_Rect_y, METH_VARARGS },
8145          { (char *)"Rect_location", _wrap_Rect_location, METH_VARARGS },
8146          { (char *)"Rect_setX", _wrap_Rect_setX, METH_VARARGS },
8147          { (char *)"Rect_setY", _wrap_Rect_setY, METH_VARARGS },
8148          { (char *)"Rect_setPos", _wrap_Rect_setPos, METH_VARARGS },
8149          { (char *)"Rect_width", _wrap_Rect_width, METH_VARARGS },
8150          { (char *)"Rect_height", _wrap_Rect_height, METH_VARARGS },
8151          { (char *)"Rect_size", _wrap_Rect_size, METH_VARARGS },
8152          { (char *)"Rect_setWidth", _wrap_Rect_setWidth, METH_VARARGS },
8153          { (char *)"Rect_setHeight", _wrap_Rect_setHeight, METH_VARARGS },
8154          { (char *)"Rect_setSize", _wrap_Rect_setSize, METH_VARARGS },
8155          { (char *)"Rect_setRect", _wrap_Rect_setRect, METH_VARARGS },
8156          { (char *)"Rect_setCoords", _wrap_Rect_setCoords, METH_VARARGS },
8157          { (char *)"Rect___eq__", _wrap_Rect___eq__, METH_VARARGS },
8158          { (char *)"Rect___ne__", _wrap_Rect___ne__, METH_VARARGS },
8159          { (char *)"Rect___or__", _wrap_Rect___or__, METH_VARARGS },
8160          { (char *)"Rect___and__", _wrap_Rect___and__, METH_VARARGS },
8161          { (char *)"Rect___ior__", _wrap_Rect___ior__, METH_VARARGS },
8162          { (char *)"Rect___iand__", _wrap_Rect___iand__, METH_VARARGS },
8163          { (char *)"Rect_valid", _wrap_Rect_valid, METH_VARARGS },
8164          { (char *)"Rect_intersects", _wrap_Rect_intersects, METH_VARARGS },
8165          { (char *)"Rect_contains", _wrap_Rect_contains, METH_VARARGS },
8166          { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS },
8167          { (char *)"new_ScreenInfo", _wrap_new_ScreenInfo, METH_VARARGS },
8168          { (char *)"ScreenInfo_visual", _wrap_ScreenInfo_visual, METH_VARARGS },
8169          { (char *)"ScreenInfo_rootWindow", _wrap_ScreenInfo_rootWindow, METH_VARARGS },
8170          { (char *)"ScreenInfo_colormap", _wrap_ScreenInfo_colormap, METH_VARARGS },
8171          { (char *)"ScreenInfo_depth", _wrap_ScreenInfo_depth, METH_VARARGS },
8172          { (char *)"ScreenInfo_screen", _wrap_ScreenInfo_screen, METH_VARARGS },
8173          { (char *)"ScreenInfo_rect", _wrap_ScreenInfo_rect, METH_VARARGS },
8174          { (char *)"ScreenInfo_width", _wrap_ScreenInfo_width, METH_VARARGS },
8175          { (char *)"ScreenInfo_height", _wrap_ScreenInfo_height, METH_VARARGS },
8176          { (char *)"ScreenInfo_displayString", _wrap_ScreenInfo_displayString, METH_VARARGS },
8177          { (char *)"ScreenInfo_swigregister", ScreenInfo_swigregister, METH_VARARGS },
8178          { (char *)"Strut_top_set", _wrap_Strut_top_set, METH_VARARGS },
8179          { (char *)"Strut_top_get", _wrap_Strut_top_get, METH_VARARGS },
8180          { (char *)"Strut_bottom_set", _wrap_Strut_bottom_set, METH_VARARGS },
8181          { (char *)"Strut_bottom_get", _wrap_Strut_bottom_get, METH_VARARGS },
8182          { (char *)"Strut_left_set", _wrap_Strut_left_set, METH_VARARGS },
8183          { (char *)"Strut_left_get", _wrap_Strut_left_get, METH_VARARGS },
8184          { (char *)"Strut_right_set", _wrap_Strut_right_set, METH_VARARGS },
8185          { (char *)"Strut_right_get", _wrap_Strut_right_get, METH_VARARGS },
8186          { (char *)"new_Strut", _wrap_new_Strut, METH_VARARGS },
8187          { (char *)"Strut_swigregister", Strut_swigregister, METH_VARARGS },
8188          { (char *)"expandTilde", _wrap_expandTilde, METH_VARARGS },
8189          { (char *)"bexec", _wrap_bexec, METH_VARARGS },
8190          { (char *)"textPropertyToString", _wrap_textPropertyToString, METH_VARARGS },
8191          { (char *)"itostring_unsigned_long", _wrap_itostring_unsigned_long, METH_VARARGS },
8192          { (char *)"itostring_long", _wrap_itostring_long, METH_VARARGS },
8193          { (char *)"itostring_unsigned", _wrap_itostring_unsigned, METH_VARARGS },
8194          { (char *)"itostring", _wrap_itostring, METH_VARARGS },
8195          { (char *)"basename", _wrap_basename, METH_VARARGS },
8196          { (char *)"OtkEventHandler_handle", _wrap_OtkEventHandler_handle, METH_VARARGS },
8197          { (char *)"OtkEventHandler_keyPressHandler", _wrap_OtkEventHandler_keyPressHandler, METH_VARARGS },
8198          { (char *)"OtkEventHandler_keyReleaseHandler", _wrap_OtkEventHandler_keyReleaseHandler, METH_VARARGS },
8199          { (char *)"OtkEventHandler_buttonPressHandler", _wrap_OtkEventHandler_buttonPressHandler, METH_VARARGS },
8200          { (char *)"OtkEventHandler_buttonReleaseHandler", _wrap_OtkEventHandler_buttonReleaseHandler, METH_VARARGS },
8201          { (char *)"OtkEventHandler_motionHandler", _wrap_OtkEventHandler_motionHandler, METH_VARARGS },
8202          { (char *)"OtkEventHandler_enterHandler", _wrap_OtkEventHandler_enterHandler, METH_VARARGS },
8203          { (char *)"OtkEventHandler_leaveHandler", _wrap_OtkEventHandler_leaveHandler, METH_VARARGS },
8204          { (char *)"OtkEventHandler_focusHandler", _wrap_OtkEventHandler_focusHandler, METH_VARARGS },
8205          { (char *)"OtkEventHandler_unfocusHandler", _wrap_OtkEventHandler_unfocusHandler, METH_VARARGS },
8206          { (char *)"OtkEventHandler_exposeHandler", _wrap_OtkEventHandler_exposeHandler, METH_VARARGS },
8207          { (char *)"OtkEventHandler_graphicsExposeHandler", _wrap_OtkEventHandler_graphicsExposeHandler, METH_VARARGS },
8208          { (char *)"OtkEventHandler_noExposeEventHandler", _wrap_OtkEventHandler_noExposeEventHandler, METH_VARARGS },
8209          { (char *)"OtkEventHandler_circulateRequestHandler", _wrap_OtkEventHandler_circulateRequestHandler, METH_VARARGS },
8210          { (char *)"OtkEventHandler_configureRequestHandler", _wrap_OtkEventHandler_configureRequestHandler, METH_VARARGS },
8211          { (char *)"OtkEventHandler_mapRequestHandler", _wrap_OtkEventHandler_mapRequestHandler, METH_VARARGS },
8212          { (char *)"OtkEventHandler_resizeRequestHandler", _wrap_OtkEventHandler_resizeRequestHandler, METH_VARARGS },
8213          { (char *)"OtkEventHandler_circulateHandler", _wrap_OtkEventHandler_circulateHandler, METH_VARARGS },
8214          { (char *)"OtkEventHandler_configureHandler", _wrap_OtkEventHandler_configureHandler, METH_VARARGS },
8215          { (char *)"OtkEventHandler_createHandler", _wrap_OtkEventHandler_createHandler, METH_VARARGS },
8216          { (char *)"OtkEventHandler_destroyHandler", _wrap_OtkEventHandler_destroyHandler, METH_VARARGS },
8217          { (char *)"OtkEventHandler_gravityHandler", _wrap_OtkEventHandler_gravityHandler, METH_VARARGS },
8218          { (char *)"OtkEventHandler_mapHandler", _wrap_OtkEventHandler_mapHandler, METH_VARARGS },
8219          { (char *)"OtkEventHandler_mappingHandler", _wrap_OtkEventHandler_mappingHandler, METH_VARARGS },
8220          { (char *)"OtkEventHandler_reparentHandler", _wrap_OtkEventHandler_reparentHandler, METH_VARARGS },
8221          { (char *)"OtkEventHandler_unmapHandler", _wrap_OtkEventHandler_unmapHandler, METH_VARARGS },
8222          { (char *)"OtkEventHandler_visibilityHandler", _wrap_OtkEventHandler_visibilityHandler, METH_VARARGS },
8223          { (char *)"OtkEventHandler_colorMapHandler", _wrap_OtkEventHandler_colorMapHandler, METH_VARARGS },
8224          { (char *)"OtkEventHandler_propertyHandler", _wrap_OtkEventHandler_propertyHandler, METH_VARARGS },
8225          { (char *)"OtkEventHandler_selectionClearHandler", _wrap_OtkEventHandler_selectionClearHandler, METH_VARARGS },
8226          { (char *)"OtkEventHandler_selectionHandler", _wrap_OtkEventHandler_selectionHandler, METH_VARARGS },
8227          { (char *)"OtkEventHandler_selectionRequestHandler", _wrap_OtkEventHandler_selectionRequestHandler, METH_VARARGS },
8228          { (char *)"OtkEventHandler_clientMessageHandler", _wrap_OtkEventHandler_clientMessageHandler, METH_VARARGS },
8229          { (char *)"delete_OtkEventHandler", _wrap_delete_OtkEventHandler, METH_VARARGS },
8230          { (char *)"OtkEventHandler_swigregister", OtkEventHandler_swigregister, METH_VARARGS },
8231          { (char *)"new_OtkEventDispatcher", _wrap_new_OtkEventDispatcher, METH_VARARGS },
8232          { (char *)"delete_OtkEventDispatcher", _wrap_delete_OtkEventDispatcher, METH_VARARGS },
8233          { (char *)"OtkEventDispatcher_clearAllHandlers", _wrap_OtkEventDispatcher_clearAllHandlers, METH_VARARGS },
8234          { (char *)"OtkEventDispatcher_registerHandler", _wrap_OtkEventDispatcher_registerHandler, METH_VARARGS },
8235          { (char *)"OtkEventDispatcher_clearHandler", _wrap_OtkEventDispatcher_clearHandler, METH_VARARGS },
8236          { (char *)"OtkEventDispatcher_dispatchEvents", _wrap_OtkEventDispatcher_dispatchEvents, METH_VARARGS },
8237          { (char *)"OtkEventDispatcher_setFallbackHandler", _wrap_OtkEventDispatcher_setFallbackHandler, METH_VARARGS },
8238          { (char *)"OtkEventDispatcher_getFallbackHandler", _wrap_OtkEventDispatcher_getFallbackHandler, METH_VARARGS },
8239          { (char *)"OtkEventDispatcher_setMasterHandler", _wrap_OtkEventDispatcher_setMasterHandler, METH_VARARGS },
8240          { (char *)"OtkEventDispatcher_getMasterHandler", _wrap_OtkEventDispatcher_getMasterHandler, METH_VARARGS },
8241          { (char *)"OtkEventDispatcher_findHandler", _wrap_OtkEventDispatcher_findHandler, METH_VARARGS },
8242          { (char *)"OtkEventDispatcher_lastTime", _wrap_OtkEventDispatcher_lastTime, METH_VARARGS },
8243          { (char *)"OtkEventDispatcher_swigregister", OtkEventDispatcher_swigregister, METH_VARARGS },
8244          { (char *)"Cursors_session_set", _wrap_Cursors_session_set, METH_VARARGS },
8245          { (char *)"Cursors_session_get", _wrap_Cursors_session_get, METH_VARARGS },
8246          { (char *)"Cursors_move_set", _wrap_Cursors_move_set, METH_VARARGS },
8247          { (char *)"Cursors_move_get", _wrap_Cursors_move_get, METH_VARARGS },
8248          { (char *)"Cursors_ll_angle_set", _wrap_Cursors_ll_angle_set, METH_VARARGS },
8249          { (char *)"Cursors_ll_angle_get", _wrap_Cursors_ll_angle_get, METH_VARARGS },
8250          { (char *)"Cursors_lr_angle_set", _wrap_Cursors_lr_angle_set, METH_VARARGS },
8251          { (char *)"Cursors_lr_angle_get", _wrap_Cursors_lr_angle_get, METH_VARARGS },
8252          { (char *)"Cursors_ul_angle_set", _wrap_Cursors_ul_angle_set, METH_VARARGS },
8253          { (char *)"Cursors_ul_angle_get", _wrap_Cursors_ul_angle_get, METH_VARARGS },
8254          { (char *)"Cursors_ur_angle_set", _wrap_Cursors_ur_angle_set, METH_VARARGS },
8255          { (char *)"Cursors_ur_angle_get", _wrap_Cursors_ur_angle_get, METH_VARARGS },
8256          { (char *)"Cursors_swigregister", Cursors_swigregister, METH_VARARGS },
8257          { (char *)"Openbox_state", _wrap_Openbox_state, METH_VARARGS },
8258          { (char *)"Openbox_timerManager", _wrap_Openbox_timerManager, METH_VARARGS },
8259          { (char *)"Openbox_property", _wrap_Openbox_property, METH_VARARGS },
8260          { (char *)"Openbox_actions", _wrap_Openbox_actions, METH_VARARGS },
8261          { (char *)"Openbox_bindings", _wrap_Openbox_bindings, METH_VARARGS },
8262          { (char *)"Openbox_screen", _wrap_Openbox_screen, METH_VARARGS },
8263          { (char *)"Openbox_screenCount", _wrap_Openbox_screenCount, METH_VARARGS },
8264          { (char *)"Openbox_cursors", _wrap_Openbox_cursors, METH_VARARGS },
8265          { (char *)"Openbox_addClient", _wrap_Openbox_addClient, METH_VARARGS },
8266          { (char *)"Openbox_removeClient", _wrap_Openbox_removeClient, METH_VARARGS },
8267          { (char *)"Openbox_findClient", _wrap_Openbox_findClient, METH_VARARGS },
8268          { (char *)"Openbox_focusedClient", _wrap_Openbox_focusedClient, METH_VARARGS },
8269          { (char *)"Openbox_setFocusedClient", _wrap_Openbox_setFocusedClient, METH_VARARGS },
8270          { (char *)"Openbox_focusedScreen", _wrap_Openbox_focusedScreen, METH_VARARGS },
8271          { (char *)"Openbox_shutdown", _wrap_Openbox_shutdown, METH_VARARGS },
8272          { (char *)"Openbox_restart", _wrap_Openbox_restart, METH_VARARGS },
8273          { (char *)"Openbox_execute", _wrap_Openbox_execute, METH_VARARGS },
8274          { (char *)"Openbox_swigregister", Openbox_swigregister, METH_VARARGS },
8275          { (char *)"OBScreen_client", _wrap_OBScreen_client, METH_VARARGS },
8276          { (char *)"OBScreen_clientCount", _wrap_OBScreen_clientCount, METH_VARARGS },
8277          { (char *)"OBScreen_number", _wrap_OBScreen_number, METH_VARARGS },
8278          { (char *)"OBScreen_managed", _wrap_OBScreen_managed, METH_VARARGS },
8279          { (char *)"OBScreen_imageControl", _wrap_OBScreen_imageControl, METH_VARARGS },
8280          { (char *)"OBScreen_area", _wrap_OBScreen_area, METH_VARARGS },
8281          { (char *)"OBScreen_style", _wrap_OBScreen_style, METH_VARARGS },
8282          { (char *)"OBScreen_focuswindow", _wrap_OBScreen_focuswindow, METH_VARARGS },
8283          { (char *)"OBScreen_desktop", _wrap_OBScreen_desktop, METH_VARARGS },
8284          { (char *)"OBScreen_numDesktops", _wrap_OBScreen_numDesktops, METH_VARARGS },
8285          { (char *)"OBScreen_updateStrut", _wrap_OBScreen_updateStrut, METH_VARARGS },
8286          { (char *)"OBScreen_manageExisting", _wrap_OBScreen_manageExisting, METH_VARARGS },
8287          { (char *)"OBScreen_manageWindow", _wrap_OBScreen_manageWindow, METH_VARARGS },
8288          { (char *)"OBScreen_unmanageWindow", _wrap_OBScreen_unmanageWindow, METH_VARARGS },
8289          { (char *)"OBScreen_restack", _wrap_OBScreen_restack, METH_VARARGS },
8290          { (char *)"OBScreen_setDesktopName", _wrap_OBScreen_setDesktopName, METH_VARARGS },
8291          { (char *)"OBScreen_propertyHandler", _wrap_OBScreen_propertyHandler, METH_VARARGS },
8292          { (char *)"OBScreen_clientMessageHandler", _wrap_OBScreen_clientMessageHandler, METH_VARARGS },
8293          { (char *)"OBScreen_mapRequestHandler", _wrap_OBScreen_mapRequestHandler, METH_VARARGS },
8294          { (char *)"OBScreen_swigregister", OBScreen_swigregister, METH_VARARGS },
8295          { (char *)"MwmHints_flags_set", _wrap_MwmHints_flags_set, METH_VARARGS },
8296          { (char *)"MwmHints_flags_get", _wrap_MwmHints_flags_get, METH_VARARGS },
8297          { (char *)"MwmHints_functions_set", _wrap_MwmHints_functions_set, METH_VARARGS },
8298          { (char *)"MwmHints_functions_get", _wrap_MwmHints_functions_get, METH_VARARGS },
8299          { (char *)"MwmHints_decorations_set", _wrap_MwmHints_decorations_set, METH_VARARGS },
8300          { (char *)"MwmHints_decorations_get", _wrap_MwmHints_decorations_get, METH_VARARGS },
8301          { (char *)"MwmHints_swigregister", MwmHints_swigregister, METH_VARARGS },
8302          { (char *)"OBClient_frame_set", _wrap_OBClient_frame_set, METH_VARARGS },
8303          { (char *)"OBClient_frame_get", _wrap_OBClient_frame_get, METH_VARARGS },
8304          { (char *)"OBClient_ignore_unmaps_set", _wrap_OBClient_ignore_unmaps_set, METH_VARARGS },
8305          { (char *)"OBClient_ignore_unmaps_get", _wrap_OBClient_ignore_unmaps_get, METH_VARARGS },
8306          { (char *)"OBClient_screen", _wrap_OBClient_screen, METH_VARARGS },
8307          { (char *)"OBClient_window", _wrap_OBClient_window, METH_VARARGS },
8308          { (char *)"OBClient_type", _wrap_OBClient_type, METH_VARARGS },
8309          { (char *)"OBClient_normal", _wrap_OBClient_normal, METH_VARARGS },
8310          { (char *)"OBClient_desktop", _wrap_OBClient_desktop, METH_VARARGS },
8311          { (char *)"OBClient_title", _wrap_OBClient_title, METH_VARARGS },
8312          { (char *)"OBClient_iconTitle", _wrap_OBClient_iconTitle, METH_VARARGS },
8313          { (char *)"OBClient_appName", _wrap_OBClient_appName, METH_VARARGS },
8314          { (char *)"OBClient_appClass", _wrap_OBClient_appClass, METH_VARARGS },
8315          { (char *)"OBClient_role", _wrap_OBClient_role, METH_VARARGS },
8316          { (char *)"OBClient_canFocus", _wrap_OBClient_canFocus, METH_VARARGS },
8317          { (char *)"OBClient_urgent", _wrap_OBClient_urgent, METH_VARARGS },
8318          { (char *)"OBClient_focusNotify", _wrap_OBClient_focusNotify, METH_VARARGS },
8319          { (char *)"OBClient_shaped", _wrap_OBClient_shaped, METH_VARARGS },
8320          { (char *)"OBClient_gravity", _wrap_OBClient_gravity, METH_VARARGS },
8321          { (char *)"OBClient_positionRequested", _wrap_OBClient_positionRequested, METH_VARARGS },
8322          { (char *)"OBClient_decorations", _wrap_OBClient_decorations, METH_VARARGS },
8323          { (char *)"OBClient_funtions", _wrap_OBClient_funtions, METH_VARARGS },
8324          { (char *)"OBClient_transientFor", _wrap_OBClient_transientFor, METH_VARARGS },
8325          { (char *)"OBClient_modal", _wrap_OBClient_modal, METH_VARARGS },
8326          { (char *)"OBClient_shaded", _wrap_OBClient_shaded, METH_VARARGS },
8327          { (char *)"OBClient_iconic", _wrap_OBClient_iconic, METH_VARARGS },
8328          { (char *)"OBClient_maxVert", _wrap_OBClient_maxVert, METH_VARARGS },
8329          { (char *)"OBClient_maxHorz", _wrap_OBClient_maxHorz, METH_VARARGS },
8330          { (char *)"OBClient_layer", _wrap_OBClient_layer, METH_VARARGS },
8331          { (char *)"OBClient_toggleClientBorder", _wrap_OBClient_toggleClientBorder, METH_VARARGS },
8332          { (char *)"OBClient_area", _wrap_OBClient_area, METH_VARARGS },
8333          { (char *)"OBClient_strut", _wrap_OBClient_strut, METH_VARARGS },
8334          { (char *)"OBClient_move", _wrap_OBClient_move, METH_VARARGS },
8335          { (char *)"OBClient_resize", _wrap_OBClient_resize, METH_VARARGS },
8336          { (char *)"OBClient_focus", _wrap_OBClient_focus, METH_VARARGS },
8337          { (char *)"OBClient_unfocus", _wrap_OBClient_unfocus, METH_VARARGS },
8338          { (char *)"OBClient_focusHandler", _wrap_OBClient_focusHandler, METH_VARARGS },
8339          { (char *)"OBClient_unfocusHandler", _wrap_OBClient_unfocusHandler, METH_VARARGS },
8340          { (char *)"OBClient_propertyHandler", _wrap_OBClient_propertyHandler, METH_VARARGS },
8341          { (char *)"OBClient_clientMessageHandler", _wrap_OBClient_clientMessageHandler, METH_VARARGS },
8342          { (char *)"OBClient_configureRequestHandler", _wrap_OBClient_configureRequestHandler, METH_VARARGS },
8343          { (char *)"OBClient_unmapHandler", _wrap_OBClient_unmapHandler, METH_VARARGS },
8344          { (char *)"OBClient_destroyHandler", _wrap_OBClient_destroyHandler, METH_VARARGS },
8345          { (char *)"OBClient_reparentHandler", _wrap_OBClient_reparentHandler, METH_VARARGS },
8346          { (char *)"OBClient_swigregister", OBClient_swigregister, METH_VARARGS },
8347          { (char *)"MouseData_screen_set", _wrap_MouseData_screen_set, METH_VARARGS },
8348          { (char *)"MouseData_screen_get", _wrap_MouseData_screen_get, METH_VARARGS },
8349          { (char *)"MouseData_client_set", _wrap_MouseData_client_set, METH_VARARGS },
8350          { (char *)"MouseData_client_get", _wrap_MouseData_client_get, METH_VARARGS },
8351          { (char *)"MouseData_time_set", _wrap_MouseData_time_set, METH_VARARGS },
8352          { (char *)"MouseData_time_get", _wrap_MouseData_time_get, METH_VARARGS },
8353          { (char *)"MouseData_state_set", _wrap_MouseData_state_set, METH_VARARGS },
8354          { (char *)"MouseData_state_get", _wrap_MouseData_state_get, METH_VARARGS },
8355          { (char *)"MouseData_button_set", _wrap_MouseData_button_set, METH_VARARGS },
8356          { (char *)"MouseData_button_get", _wrap_MouseData_button_get, METH_VARARGS },
8357          { (char *)"MouseData_context_set", _wrap_MouseData_context_set, METH_VARARGS },
8358          { (char *)"MouseData_context_get", _wrap_MouseData_context_get, METH_VARARGS },
8359          { (char *)"MouseData_action_set", _wrap_MouseData_action_set, METH_VARARGS },
8360          { (char *)"MouseData_action_get", _wrap_MouseData_action_get, METH_VARARGS },
8361          { (char *)"MouseData_xroot_set", _wrap_MouseData_xroot_set, METH_VARARGS },
8362          { (char *)"MouseData_xroot_get", _wrap_MouseData_xroot_get, METH_VARARGS },
8363          { (char *)"MouseData_yroot_set", _wrap_MouseData_yroot_set, METH_VARARGS },
8364          { (char *)"MouseData_yroot_get", _wrap_MouseData_yroot_get, METH_VARARGS },
8365          { (char *)"MouseData_pressx_set", _wrap_MouseData_pressx_set, METH_VARARGS },
8366          { (char *)"MouseData_pressx_get", _wrap_MouseData_pressx_get, METH_VARARGS },
8367          { (char *)"MouseData_pressy_set", _wrap_MouseData_pressy_set, METH_VARARGS },
8368          { (char *)"MouseData_pressy_get", _wrap_MouseData_pressy_get, METH_VARARGS },
8369          { (char *)"MouseData_press_clientx_set", _wrap_MouseData_press_clientx_set, METH_VARARGS },
8370          { (char *)"MouseData_press_clientx_get", _wrap_MouseData_press_clientx_get, METH_VARARGS },
8371          { (char *)"MouseData_press_clienty_set", _wrap_MouseData_press_clienty_set, METH_VARARGS },
8372          { (char *)"MouseData_press_clienty_get", _wrap_MouseData_press_clienty_get, METH_VARARGS },
8373          { (char *)"MouseData_press_clientwidth_set", _wrap_MouseData_press_clientwidth_set, METH_VARARGS },
8374          { (char *)"MouseData_press_clientwidth_get", _wrap_MouseData_press_clientwidth_get, METH_VARARGS },
8375          { (char *)"MouseData_press_clientheight_set", _wrap_MouseData_press_clientheight_set, METH_VARARGS },
8376          { (char *)"MouseData_press_clientheight_get", _wrap_MouseData_press_clientheight_get, METH_VARARGS },
8377          { (char *)"new_MouseData", _wrap_new_MouseData, METH_VARARGS },
8378          { (char *)"MouseData_swigregister", MouseData_swigregister, METH_VARARGS },
8379          { (char *)"EventData_screen_set", _wrap_EventData_screen_set, METH_VARARGS },
8380          { (char *)"EventData_screen_get", _wrap_EventData_screen_get, METH_VARARGS },
8381          { (char *)"EventData_client_set", _wrap_EventData_client_set, METH_VARARGS },
8382          { (char *)"EventData_client_get", _wrap_EventData_client_get, METH_VARARGS },
8383          { (char *)"EventData_state_set", _wrap_EventData_state_set, METH_VARARGS },
8384          { (char *)"EventData_state_get", _wrap_EventData_state_get, METH_VARARGS },
8385          { (char *)"EventData_action_set", _wrap_EventData_action_set, METH_VARARGS },
8386          { (char *)"EventData_action_get", _wrap_EventData_action_get, METH_VARARGS },
8387          { (char *)"new_EventData", _wrap_new_EventData, METH_VARARGS },
8388          { (char *)"EventData_swigregister", EventData_swigregister, METH_VARARGS },
8389          { (char *)"KeyData_screen_set", _wrap_KeyData_screen_set, METH_VARARGS },
8390          { (char *)"KeyData_screen_get", _wrap_KeyData_screen_get, METH_VARARGS },
8391          { (char *)"KeyData_client_set", _wrap_KeyData_client_set, METH_VARARGS },
8392          { (char *)"KeyData_client_get", _wrap_KeyData_client_get, METH_VARARGS },
8393          { (char *)"KeyData_time_set", _wrap_KeyData_time_set, METH_VARARGS },
8394          { (char *)"KeyData_time_get", _wrap_KeyData_time_get, METH_VARARGS },
8395          { (char *)"KeyData_state_set", _wrap_KeyData_state_set, METH_VARARGS },
8396          { (char *)"KeyData_state_get", _wrap_KeyData_state_get, METH_VARARGS },
8397          { (char *)"KeyData_key_set", _wrap_KeyData_key_set, METH_VARARGS },
8398          { (char *)"KeyData_key_get", _wrap_KeyData_key_get, METH_VARARGS },
8399          { (char *)"new_KeyData", _wrap_new_KeyData, METH_VARARGS },
8400          { (char *)"KeyData_swigregister", KeyData_swigregister, METH_VARARGS },
8401          { (char *)"mbind", _wrap_mbind, METH_VARARGS },
8402          { (char *)"kbind", _wrap_kbind, METH_VARARGS },
8403          { (char *)"ebind", _wrap_ebind, METH_VARARGS },
8404          { (char *)"set_reset_key", _wrap_set_reset_key, METH_VARARGS },
8405          { (char *)"send_client_msg", _wrap_send_client_msg, METH_VARARGS },
8406          { NULL, NULL }
8407 };
8408
8409
8410 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
8411
8412 static void *_p_ob__OBScreenTo_p_ob__OBWidget(void *x) {
8413     return (void *)((ob::OBWidget *)  ((ob::OBScreen *) x));
8414 }
8415 static void *_p_ob__OBClientTo_p_ob__OBWidget(void *x) {
8416     return (void *)((ob::OBWidget *)  ((ob::OBClient *) x));
8417 }
8418 static void *_p_ob__OBActionsTo_p_otk__OtkEventHandler(void *x) {
8419     return (void *)((otk::OtkEventHandler *)  ((ob::OBActions *) x));
8420 }
8421 static void *_p_ob__OpenboxTo_p_otk__OtkEventHandler(void *x) {
8422     return (void *)((otk::OtkEventHandler *)  ((ob::Openbox *) x));
8423 }
8424 static void *_p_ob__OBScreenTo_p_otk__OtkEventHandler(void *x) {
8425     return (void *)((otk::OtkEventHandler *)  ((ob::OBScreen *) x));
8426 }
8427 static void *_p_ob__OBClientTo_p_otk__OtkEventHandler(void *x) {
8428     return (void *)((otk::OtkEventHandler *)  ((ob::OBClient *) x));
8429 }
8430 static void *_p_ob__OpenboxTo_p_otk__OtkEventDispatcher(void *x) {
8431     return (void *)((otk::OtkEventDispatcher *)  ((ob::Openbox *) x));
8432 }
8433 static swig_type_info _swigt__p_ob__OBScreen[] = {{"_p_ob__OBScreen", 0, "ob::OBScreen *", 0},{"_p_ob__OBScreen"},{0}};
8434 static swig_type_info _swigt__p_otk__Point[] = {{"_p_otk__Point", 0, "otk::Point *", 0},{"_p_otk__Point"},{0}};
8435 static swig_type_info _swigt__p_XMapEvent[] = {{"_p_XMapEvent", 0, "XMapEvent *", 0},{"_p_XMapEvent"},{0}};
8436 static swig_type_info _swigt__p_XUnmapEvent[] = {{"_p_XUnmapEvent", 0, "XUnmapEvent *", 0},{"_p_XUnmapEvent"},{0}};
8437 static swig_type_info _swigt__p_XColormapEvent[] = {{"_p_XColormapEvent", 0, "XColormapEvent *", 0},{"_p_XColormapEvent"},{0}};
8438 static swig_type_info _swigt__p_XNoExposeEvent[] = {{"_p_XNoExposeEvent", 0, "XNoExposeEvent *", 0},{"_p_XNoExposeEvent"},{0}};
8439 static swig_type_info _swigt__p_XGraphicsExposeEvent[] = {{"_p_XGraphicsExposeEvent", 0, "XGraphicsExposeEvent *", 0},{"_p_XGraphicsExposeEvent"},{0}};
8440 static swig_type_info _swigt__p_XExposeEvent[] = {{"_p_XExposeEvent", 0, "XExposeEvent *", 0},{"_p_XExposeEvent"},{0}};
8441 static swig_type_info _swigt__p_XFocusChangeEvent[] = {{"_p_XFocusChangeEvent", 0, "XFocusChangeEvent *", 0},{"_p_XFocusChangeEvent"},{0}};
8442 static swig_type_info _swigt__p_XClientMessageEvent[] = {{"_p_XClientMessageEvent", 0, "XClientMessageEvent *", 0},{"_p_XClientMessageEvent"},{0}};
8443 static swig_type_info _swigt__p_ob__MouseData[] = {{"_p_ob__MouseData", 0, "ob::MouseData *", 0},{"_p_ob__MouseData"},{0}};
8444 static swig_type_info _swigt__p_XSelectionClearEvent[] = {{"_p_XSelectionClearEvent", 0, "XSelectionClearEvent *", 0},{"_p_XSelectionClearEvent"},{0}};
8445 static swig_type_info _swigt__p_otk__Rect[] = {{"_p_otk__Rect", 0, "otk::Rect *", 0},{"_p_otk__Rect"},{0}};
8446 static swig_type_info _swigt__p_Visual[] = {{"_p_Visual", 0, "Visual *", 0},{"_p_Visual"},{0}};
8447 static swig_type_info _swigt__p_XResizeRequestEvent[] = {{"_p_XResizeRequestEvent", 0, "XResizeRequestEvent *", 0},{"_p_XResizeRequestEvent"},{0}};
8448 static swig_type_info _swigt__p_XMapRequestEvent[] = {{"_p_XMapRequestEvent", 0, "XMapRequestEvent *", 0},{"_p_XMapRequestEvent"},{0}};
8449 static swig_type_info _swigt__p_XConfigureRequestEvent[] = {{"_p_XConfigureRequestEvent", 0, "XConfigureRequestEvent *", 0},{"_p_XConfigureRequestEvent"},{0}};
8450 static swig_type_info _swigt__p_XCirculateRequestEvent[] = {{"_p_XCirculateRequestEvent", 0, "XCirculateRequestEvent *", 0},{"_p_XCirculateRequestEvent"},{0}};
8451 static swig_type_info _swigt__p_XGravityEvent[] = {{"_p_XGravityEvent", 0, "XGravityEvent *", 0},{"_p_XGravityEvent"},{0}};
8452 static swig_type_info _swigt__p_XVisibilityEvent[] = {{"_p_XVisibilityEvent", 0, "XVisibilityEvent *", 0},{"_p_XVisibilityEvent"},{0}};
8453 static swig_type_info _swigt__p_XPropertyEvent[] = {{"_p_XPropertyEvent", 0, "XPropertyEvent *", 0},{"_p_XPropertyEvent"},{0}};
8454 static swig_type_info _swigt__p_XSelectionRequestEvent[] = {{"_p_XSelectionRequestEvent", 0, "XSelectionRequestEvent *", 0},{"_p_XSelectionRequestEvent"},{0}};
8455 static swig_type_info _swigt__p_ob__Cursors[] = {{"_p_ob__Cursors", 0, "ob::Cursors *", 0},{"_p_ob__Cursors"},{0}};
8456 static swig_type_info _swigt__p_ob__OBFrame[] = {{"_p_ob__OBFrame", 0, "ob::OBFrame *", 0},{"_p_ob__OBFrame"},{0}};
8457 static swig_type_info _swigt__p_otk__BImageControl[] = {{"_p_otk__BImageControl", 0, "otk::BImageControl *", 0},{"_p_otk__BImageControl"},{0}};
8458 static swig_type_info _swigt__p_ob__MwmHints[] = {{"_p_ob__MwmHints", 0, "ob::MwmHints *", 0},{"_p_ob__MwmHints"},{0}};
8459 static swig_type_info _swigt__p_ob__OBWidget[] = {{"_p_ob__OBWidget", 0, "ob::OBWidget *", 0},{"_p_ob__OBWidget"},{"_p_ob__OBScreen", _p_ob__OBScreenTo_p_ob__OBWidget},{"_p_ob__OBClient", _p_ob__OBClientTo_p_ob__OBWidget},{0}};
8460 static swig_type_info _swigt__p_ob__KeyData[] = {{"_p_ob__KeyData", 0, "ob::KeyData *", 0},{"_p_ob__KeyData"},{0}};
8461 static swig_type_info _swigt__p_XConfigureEvent[] = {{"_p_XConfigureEvent", 0, "XConfigureEvent *", 0},{"_p_XConfigureEvent"},{0}};
8462 static swig_type_info _swigt__p_XCirculateEvent[] = {{"_p_XCirculateEvent", 0, "XCirculateEvent *", 0},{"_p_XCirculateEvent"},{0}};
8463 static swig_type_info _swigt__p_XRectangle[] = {{"_p_XRectangle", 0, "XRectangle *", 0},{"_p_XRectangle"},{0}};
8464 static swig_type_info _swigt__p_std__string[] = {{"_p_std__string", 0, "std::string *", 0},{"_p_std__string"},{0}};
8465 static swig_type_info _swigt__p_XCrossingEvent[] = {{"_p_XCrossingEvent", 0, "XCrossingEvent *", 0},{"_p_XCrossingEvent"},{0}};
8466 static swig_type_info _swigt__p_Display[] = {{"_p_Display", 0, "Display *", 0},{"_p_Display"},{0}};
8467 static swig_type_info _swigt__p_otk__OBDisplay[] = {{"_p_otk__OBDisplay", 0, "otk::OBDisplay *", 0},{"_p_otk__OBDisplay"},{0}};
8468 static swig_type_info _swigt__p_XMappingEvent[] = {{"_p_XMappingEvent", 0, "XMappingEvent *", 0},{"_p_XMappingEvent"},{0}};
8469 static swig_type_info _swigt__p_otk__Style[] = {{"_p_otk__Style", 0, "otk::Style *", 0},{"_p_otk__Style"},{0}};
8470 static swig_type_info _swigt__p_otk__OtkEventHandler[] = {{"_p_otk__OtkEventHandler", 0, "otk::OtkEventHandler *", 0},{"_p_ob__OBActions", _p_ob__OBActionsTo_p_otk__OtkEventHandler},{"_p_otk__OtkEventHandler"},{"_p_ob__Openbox", _p_ob__OpenboxTo_p_otk__OtkEventHandler},{"_p_ob__OBScreen", _p_ob__OBScreenTo_p_otk__OtkEventHandler},{"_p_ob__OBClient", _p_ob__OBClientTo_p_otk__OtkEventHandler},{0}};
8471 static swig_type_info _swigt__p_XReparentEvent[] = {{"_p_XReparentEvent", 0, "XReparentEvent *", 0},{"_p_XReparentEvent"},{0}};
8472 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}};
8473 static swig_type_info _swigt__p_otk__BGCCache[] = {{"_p_otk__BGCCache", 0, "otk::BGCCache *", 0},{"_p_otk__BGCCache"},{0}};
8474 static swig_type_info _swigt__p_ob__OBBindings[] = {{"_p_ob__OBBindings", 0, "ob::OBBindings *", 0},{"_p_ob__OBBindings"},{0}};
8475 static swig_type_info _swigt__p_ob__Openbox[] = {{"_p_ob__Openbox", 0, "ob::Openbox *", 0},{"_p_ob__Openbox"},{0}};
8476 static swig_type_info _swigt__p_ob__OBActions[] = {{"_p_ob__OBActions", 0, "ob::OBActions *", 0},{"_p_ob__OBActions"},{0}};
8477 static swig_type_info _swigt__p_XEvent[] = {{"_p_XEvent", 0, "XEvent *", 0},{"_p_XEvent"},{0}};
8478 static swig_type_info _swigt__p_XTextProperty[] = {{"_p_XTextProperty", 0, "XTextProperty *", 0},{"_p_XTextProperty"},{0}};
8479 static swig_type_info _swigt__p_otk__OBProperty[] = {{"_p_otk__OBProperty", 0, "otk::OBProperty *", 0},{"_p_otk__OBProperty"},{0}};
8480 static swig_type_info _swigt__p_PyObject[] = {{"_p_PyObject", 0, "PyObject *", 0},{"_p_PyObject"},{0}};
8481 static swig_type_info _swigt__p_otk__ScreenInfo[] = {{"_p_otk__ScreenInfo", 0, "otk::ScreenInfo *", 0},{"_p_otk__ScreenInfo"},{0}};
8482 static swig_type_info _swigt__p_ob__OBClient[] = {{"_p_ob__OBClient", 0, "ob::OBClient *", 0},{"_p_ob__OBClient"},{0}};
8483 static swig_type_info _swigt__p_ob__EventData[] = {{"_p_ob__EventData", 0, "ob::EventData *", 0},{"_p_ob__EventData"},{0}};
8484 static swig_type_info _swigt__p_XCreateWindowEvent[] = {{"_p_XCreateWindowEvent", 0, "XCreateWindowEvent *", 0},{"_p_XCreateWindowEvent"},{0}};
8485 static swig_type_info _swigt__p_XDestroyWindowEvent[] = {{"_p_XDestroyWindowEvent", 0, "XDestroyWindowEvent *", 0},{"_p_XDestroyWindowEvent"},{0}};
8486 static swig_type_info _swigt__p_otk__OBProperty__StringVect[] = {{"_p_otk__OBProperty__StringVect", 0, "otk::OBProperty::StringVect *", 0},{"_p_otk__OBProperty__StringVect"},{0}};
8487 static swig_type_info _swigt__p_XKeyEvent[] = {{"_p_XKeyEvent", 0, "XKeyEvent *", 0},{"_p_XKeyEvent"},{0}};
8488 static swig_type_info _swigt__p_otk__Strut[] = {{"_p_otk__Strut", 0, "otk::Strut *", 0},{"_p_otk__Strut"},{0}};
8489 static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *", 0},{"_p_unsigned_long"},{0}};
8490 static swig_type_info _swigt__p_p_unsigned_long[] = {{"_p_p_unsigned_long", 0, "unsigned long **", 0},{"_p_p_unsigned_long"},{0}};
8491 static swig_type_info _swigt__p_XMotionEvent[] = {{"_p_XMotionEvent", 0, "XMotionEvent *", 0},{"_p_XMotionEvent"},{0}};
8492 static swig_type_info _swigt__p_XButtonEvent[] = {{"_p_XButtonEvent", 0, "XButtonEvent *", 0},{"_p_XButtonEvent"},{0}};
8493 static swig_type_info _swigt__p_XSelectionEvent[] = {{"_p_XSelectionEvent", 0, "XSelectionEvent *", 0},{"_p_XSelectionEvent"},{0}};
8494 static swig_type_info _swigt__p_otk__OBTimerQueueManager[] = {{"_p_otk__OBTimerQueueManager", 0, "otk::OBTimerQueueManager *", 0},{"_p_otk__OBTimerQueueManager"},{0}};
8495
8496 static swig_type_info *swig_types_initial[] = {
8497 _swigt__p_ob__OBScreen, 
8498 _swigt__p_otk__Point, 
8499 _swigt__p_XMapEvent, 
8500 _swigt__p_XUnmapEvent, 
8501 _swigt__p_XColormapEvent, 
8502 _swigt__p_XNoExposeEvent, 
8503 _swigt__p_XGraphicsExposeEvent, 
8504 _swigt__p_XExposeEvent, 
8505 _swigt__p_XFocusChangeEvent, 
8506 _swigt__p_XClientMessageEvent, 
8507 _swigt__p_ob__MouseData, 
8508 _swigt__p_XSelectionClearEvent, 
8509 _swigt__p_otk__Rect, 
8510 _swigt__p_Visual, 
8511 _swigt__p_XResizeRequestEvent, 
8512 _swigt__p_XMapRequestEvent, 
8513 _swigt__p_XConfigureRequestEvent, 
8514 _swigt__p_XCirculateRequestEvent, 
8515 _swigt__p_XGravityEvent, 
8516 _swigt__p_XVisibilityEvent, 
8517 _swigt__p_XPropertyEvent, 
8518 _swigt__p_XSelectionRequestEvent, 
8519 _swigt__p_ob__Cursors, 
8520 _swigt__p_ob__OBFrame, 
8521 _swigt__p_otk__BImageControl, 
8522 _swigt__p_ob__MwmHints, 
8523 _swigt__p_ob__OBWidget, 
8524 _swigt__p_ob__KeyData, 
8525 _swigt__p_XConfigureEvent, 
8526 _swigt__p_XCirculateEvent, 
8527 _swigt__p_XRectangle, 
8528 _swigt__p_std__string, 
8529 _swigt__p_XCrossingEvent, 
8530 _swigt__p_Display, 
8531 _swigt__p_otk__OBDisplay, 
8532 _swigt__p_XMappingEvent, 
8533 _swigt__p_otk__Style, 
8534 _swigt__p_otk__OtkEventHandler, 
8535 _swigt__p_XReparentEvent, 
8536 _swigt__p_otk__OtkEventDispatcher, 
8537 _swigt__p_otk__BGCCache, 
8538 _swigt__p_ob__OBBindings, 
8539 _swigt__p_ob__Openbox, 
8540 _swigt__p_ob__OBActions, 
8541 _swigt__p_XEvent, 
8542 _swigt__p_XTextProperty, 
8543 _swigt__p_otk__OBProperty, 
8544 _swigt__p_PyObject, 
8545 _swigt__p_otk__ScreenInfo, 
8546 _swigt__p_ob__OBClient, 
8547 _swigt__p_ob__EventData, 
8548 _swigt__p_XCreateWindowEvent, 
8549 _swigt__p_XDestroyWindowEvent, 
8550 _swigt__p_otk__OBProperty__StringVect, 
8551 _swigt__p_XKeyEvent, 
8552 _swigt__p_otk__Strut, 
8553 _swigt__p_unsigned_long, 
8554 _swigt__p_p_unsigned_long, 
8555 _swigt__p_XMotionEvent, 
8556 _swigt__p_XButtonEvent, 
8557 _swigt__p_XSelectionEvent, 
8558 _swigt__p_otk__OBTimerQueueManager, 
8559 0
8560 };
8561
8562
8563 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
8564
8565 static swig_const_info swig_const_table[] = {
8566 { SWIG_PY_INT,     (char *)"OBProperty_Atom_Cardinal", (long) otk::OBProperty::Atom_Cardinal, 0, 0, 0},
8567 { SWIG_PY_INT,     (char *)"OBProperty_Atom_Window", (long) otk::OBProperty::Atom_Window, 0, 0, 0},
8568 { SWIG_PY_INT,     (char *)"OBProperty_Atom_Pixmap", (long) otk::OBProperty::Atom_Pixmap, 0, 0, 0},
8569 { SWIG_PY_INT,     (char *)"OBProperty_Atom_Atom", (long) otk::OBProperty::Atom_Atom, 0, 0, 0},
8570 { SWIG_PY_INT,     (char *)"OBProperty_Atom_String", (long) otk::OBProperty::Atom_String, 0, 0, 0},
8571 { SWIG_PY_INT,     (char *)"OBProperty_Atom_Utf8", (long) otk::OBProperty::Atom_Utf8, 0, 0, 0},
8572 { SWIG_PY_INT,     (char *)"OBProperty_openbox_pid", (long) otk::OBProperty::openbox_pid, 0, 0, 0},
8573 { SWIG_PY_INT,     (char *)"OBProperty_wm_colormap_windows", (long) otk::OBProperty::wm_colormap_windows, 0, 0, 0},
8574 { SWIG_PY_INT,     (char *)"OBProperty_wm_protocols", (long) otk::OBProperty::wm_protocols, 0, 0, 0},
8575 { SWIG_PY_INT,     (char *)"OBProperty_wm_state", (long) otk::OBProperty::wm_state, 0, 0, 0},
8576 { SWIG_PY_INT,     (char *)"OBProperty_wm_delete_window", (long) otk::OBProperty::wm_delete_window, 0, 0, 0},
8577 { SWIG_PY_INT,     (char *)"OBProperty_wm_take_focus", (long) otk::OBProperty::wm_take_focus, 0, 0, 0},
8578 { SWIG_PY_INT,     (char *)"OBProperty_wm_change_state", (long) otk::OBProperty::wm_change_state, 0, 0, 0},
8579 { SWIG_PY_INT,     (char *)"OBProperty_wm_name", (long) otk::OBProperty::wm_name, 0, 0, 0},
8580 { SWIG_PY_INT,     (char *)"OBProperty_wm_icon_name", (long) otk::OBProperty::wm_icon_name, 0, 0, 0},
8581 { SWIG_PY_INT,     (char *)"OBProperty_wm_class", (long) otk::OBProperty::wm_class, 0, 0, 0},
8582 { SWIG_PY_INT,     (char *)"OBProperty_wm_window_role", (long) otk::OBProperty::wm_window_role, 0, 0, 0},
8583 { SWIG_PY_INT,     (char *)"OBProperty_motif_wm_hints", (long) otk::OBProperty::motif_wm_hints, 0, 0, 0},
8584 { SWIG_PY_INT,     (char *)"OBProperty_blackbox_attributes", (long) otk::OBProperty::blackbox_attributes, 0, 0, 0},
8585 { SWIG_PY_INT,     (char *)"OBProperty_blackbox_change_attributes", (long) otk::OBProperty::blackbox_change_attributes, 0, 0, 0},
8586 { SWIG_PY_INT,     (char *)"OBProperty_blackbox_hints", (long) otk::OBProperty::blackbox_hints, 0, 0, 0},
8587 { SWIG_PY_INT,     (char *)"OBProperty_blackbox_structure_messages", (long) otk::OBProperty::blackbox_structure_messages, 0, 0, 0},
8588 { SWIG_PY_INT,     (char *)"OBProperty_blackbox_notify_startup", (long) otk::OBProperty::blackbox_notify_startup, 0, 0, 0},
8589 { SWIG_PY_INT,     (char *)"OBProperty_blackbox_notify_window_add", (long) otk::OBProperty::blackbox_notify_window_add, 0, 0, 0},
8590 { SWIG_PY_INT,     (char *)"OBProperty_blackbox_notify_window_del", (long) otk::OBProperty::blackbox_notify_window_del, 0, 0, 0},
8591 { SWIG_PY_INT,     (char *)"OBProperty_blackbox_notify_window_focus", (long) otk::OBProperty::blackbox_notify_window_focus, 0, 0, 0},
8592 { SWIG_PY_INT,     (char *)"OBProperty_blackbox_notify_current_workspace", (long) otk::OBProperty::blackbox_notify_current_workspace, 0, 0, 0},
8593 { SWIG_PY_INT,     (char *)"OBProperty_blackbox_notify_workspace_count", (long) otk::OBProperty::blackbox_notify_workspace_count, 0, 0, 0},
8594 { SWIG_PY_INT,     (char *)"OBProperty_blackbox_notify_window_raise", (long) otk::OBProperty::blackbox_notify_window_raise, 0, 0, 0},
8595 { SWIG_PY_INT,     (char *)"OBProperty_blackbox_notify_window_lower", (long) otk::OBProperty::blackbox_notify_window_lower, 0, 0, 0},
8596 { SWIG_PY_INT,     (char *)"OBProperty_blackbox_change_workspace", (long) otk::OBProperty::blackbox_change_workspace, 0, 0, 0},
8597 { SWIG_PY_INT,     (char *)"OBProperty_blackbox_change_window_focus", (long) otk::OBProperty::blackbox_change_window_focus, 0, 0, 0},
8598 { SWIG_PY_INT,     (char *)"OBProperty_blackbox_cycle_window_focus", (long) otk::OBProperty::blackbox_cycle_window_focus, 0, 0, 0},
8599 { SWIG_PY_INT,     (char *)"OBProperty_openbox_show_root_menu", (long) otk::OBProperty::openbox_show_root_menu, 0, 0, 0},
8600 { SWIG_PY_INT,     (char *)"OBProperty_openbox_show_workspace_menu", (long) otk::OBProperty::openbox_show_workspace_menu, 0, 0, 0},
8601 { SWIG_PY_INT,     (char *)"OBProperty_net_supported", (long) otk::OBProperty::net_supported, 0, 0, 0},
8602 { SWIG_PY_INT,     (char *)"OBProperty_net_client_list", (long) otk::OBProperty::net_client_list, 0, 0, 0},
8603 { SWIG_PY_INT,     (char *)"OBProperty_net_client_list_stacking", (long) otk::OBProperty::net_client_list_stacking, 0, 0, 0},
8604 { SWIG_PY_INT,     (char *)"OBProperty_net_number_of_desktops", (long) otk::OBProperty::net_number_of_desktops, 0, 0, 0},
8605 { SWIG_PY_INT,     (char *)"OBProperty_net_desktop_geometry", (long) otk::OBProperty::net_desktop_geometry, 0, 0, 0},
8606 { SWIG_PY_INT,     (char *)"OBProperty_net_desktop_viewport", (long) otk::OBProperty::net_desktop_viewport, 0, 0, 0},
8607 { SWIG_PY_INT,     (char *)"OBProperty_net_current_desktop", (long) otk::OBProperty::net_current_desktop, 0, 0, 0},
8608 { SWIG_PY_INT,     (char *)"OBProperty_net_desktop_names", (long) otk::OBProperty::net_desktop_names, 0, 0, 0},
8609 { SWIG_PY_INT,     (char *)"OBProperty_net_active_window", (long) otk::OBProperty::net_active_window, 0, 0, 0},
8610 { SWIG_PY_INT,     (char *)"OBProperty_net_workarea", (long) otk::OBProperty::net_workarea, 0, 0, 0},
8611 { SWIG_PY_INT,     (char *)"OBProperty_net_supporting_wm_check", (long) otk::OBProperty::net_supporting_wm_check, 0, 0, 0},
8612 { SWIG_PY_INT,     (char *)"OBProperty_net_close_window", (long) otk::OBProperty::net_close_window, 0, 0, 0},
8613 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_moveresize", (long) otk::OBProperty::net_wm_moveresize, 0, 0, 0},
8614 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_name", (long) otk::OBProperty::net_wm_name, 0, 0, 0},
8615 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_visible_name", (long) otk::OBProperty::net_wm_visible_name, 0, 0, 0},
8616 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_icon_name", (long) otk::OBProperty::net_wm_icon_name, 0, 0, 0},
8617 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_visible_icon_name", (long) otk::OBProperty::net_wm_visible_icon_name, 0, 0, 0},
8618 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_desktop", (long) otk::OBProperty::net_wm_desktop, 0, 0, 0},
8619 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type", (long) otk::OBProperty::net_wm_window_type, 0, 0, 0},
8620 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_state", (long) otk::OBProperty::net_wm_state, 0, 0, 0},
8621 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_strut", (long) otk::OBProperty::net_wm_strut, 0, 0, 0},
8622 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_allowed_actions", (long) otk::OBProperty::net_wm_allowed_actions, 0, 0, 0},
8623 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type_desktop", (long) otk::OBProperty::net_wm_window_type_desktop, 0, 0, 0},
8624 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type_dock", (long) otk::OBProperty::net_wm_window_type_dock, 0, 0, 0},
8625 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type_toolbar", (long) otk::OBProperty::net_wm_window_type_toolbar, 0, 0, 0},
8626 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type_menu", (long) otk::OBProperty::net_wm_window_type_menu, 0, 0, 0},
8627 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type_utility", (long) otk::OBProperty::net_wm_window_type_utility, 0, 0, 0},
8628 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type_splash", (long) otk::OBProperty::net_wm_window_type_splash, 0, 0, 0},
8629 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type_dialog", (long) otk::OBProperty::net_wm_window_type_dialog, 0, 0, 0},
8630 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type_normal", (long) otk::OBProperty::net_wm_window_type_normal, 0, 0, 0},
8631 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_moveresize_size_topleft", (long) otk::OBProperty::net_wm_moveresize_size_topleft, 0, 0, 0},
8632 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_moveresize_size_topright", (long) otk::OBProperty::net_wm_moveresize_size_topright, 0, 0, 0},
8633 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_moveresize_size_bottomleft", (long) otk::OBProperty::net_wm_moveresize_size_bottomleft, 0, 0, 0},
8634 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_moveresize_size_bottomright", (long) otk::OBProperty::net_wm_moveresize_size_bottomright, 0, 0, 0},
8635 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_moveresize_move", (long) otk::OBProperty::net_wm_moveresize_move, 0, 0, 0},
8636 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_action_move", (long) otk::OBProperty::net_wm_action_move, 0, 0, 0},
8637 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_action_resize", (long) otk::OBProperty::net_wm_action_resize, 0, 0, 0},
8638 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_action_shade", (long) otk::OBProperty::net_wm_action_shade, 0, 0, 0},
8639 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_action_maximize_horz", (long) otk::OBProperty::net_wm_action_maximize_horz, 0, 0, 0},
8640 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_action_maximize_vert", (long) otk::OBProperty::net_wm_action_maximize_vert, 0, 0, 0},
8641 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_action_change_desktop", (long) otk::OBProperty::net_wm_action_change_desktop, 0, 0, 0},
8642 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_action_close", (long) otk::OBProperty::net_wm_action_close, 0, 0, 0},
8643 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_modal", (long) otk::OBProperty::net_wm_state_modal, 0, 0, 0},
8644 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_sticky", (long) otk::OBProperty::net_wm_state_sticky, 0, 0, 0},
8645 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_maximized_vert", (long) otk::OBProperty::net_wm_state_maximized_vert, 0, 0, 0},
8646 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_maximized_horz", (long) otk::OBProperty::net_wm_state_maximized_horz, 0, 0, 0},
8647 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_shaded", (long) otk::OBProperty::net_wm_state_shaded, 0, 0, 0},
8648 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_skip_taskbar", (long) otk::OBProperty::net_wm_state_skip_taskbar, 0, 0, 0},
8649 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_skip_pager", (long) otk::OBProperty::net_wm_state_skip_pager, 0, 0, 0},
8650 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_hidden", (long) otk::OBProperty::net_wm_state_hidden, 0, 0, 0},
8651 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_fullscreen", (long) otk::OBProperty::net_wm_state_fullscreen, 0, 0, 0},
8652 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_above", (long) otk::OBProperty::net_wm_state_above, 0, 0, 0},
8653 { SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_below", (long) otk::OBProperty::net_wm_state_below, 0, 0, 0},
8654 { SWIG_PY_INT,     (char *)"OBProperty_kde_net_system_tray_windows", (long) otk::OBProperty::kde_net_system_tray_windows, 0, 0, 0},
8655 { SWIG_PY_INT,     (char *)"OBProperty_kde_net_wm_system_tray_window_for", (long) otk::OBProperty::kde_net_wm_system_tray_window_for, 0, 0, 0},
8656 { SWIG_PY_INT,     (char *)"OBProperty_kde_net_wm_window_type_override", (long) otk::OBProperty::kde_net_wm_window_type_override, 0, 0, 0},
8657 { SWIG_PY_INT,     (char *)"OBProperty_NUM_ATOMS", (long) otk::OBProperty::NUM_ATOMS, 0, 0, 0},
8658 { SWIG_PY_INT,     (char *)"OBProperty_ascii", (long) otk::OBProperty::ascii, 0, 0, 0},
8659 { SWIG_PY_INT,     (char *)"OBProperty_utf8", (long) otk::OBProperty::utf8, 0, 0, 0},
8660 { SWIG_PY_INT,     (char *)"OBProperty_NUM_STRING_TYPE", (long) otk::OBProperty::NUM_STRING_TYPE, 0, 0, 0},
8661 { SWIG_PY_INT,     (char *)"Openbox_State_Starting", (long) ob::Openbox::State_Starting, 0, 0, 0},
8662 { SWIG_PY_INT,     (char *)"Openbox_State_Normal", (long) ob::Openbox::State_Normal, 0, 0, 0},
8663 { SWIG_PY_INT,     (char *)"Openbox_State_Exiting", (long) ob::Openbox::State_Exiting, 0, 0, 0},
8664 { SWIG_PY_INT,     (char *)"OBScreen_event_mask", (long) ob::OBScreen::event_mask, 0, 0, 0},
8665 { SWIG_PY_INT,     (char *)"MwmHints_elements", (long) ob::MwmHints::elements, 0, 0, 0},
8666 { SWIG_PY_INT,     (char *)"OBClient_Layer_Icon", (long) ob::OBClient::Layer_Icon, 0, 0, 0},
8667 { SWIG_PY_INT,     (char *)"OBClient_Layer_Desktop", (long) ob::OBClient::Layer_Desktop, 0, 0, 0},
8668 { SWIG_PY_INT,     (char *)"OBClient_Layer_Below", (long) ob::OBClient::Layer_Below, 0, 0, 0},
8669 { SWIG_PY_INT,     (char *)"OBClient_Layer_Normal", (long) ob::OBClient::Layer_Normal, 0, 0, 0},
8670 { SWIG_PY_INT,     (char *)"OBClient_Layer_Above", (long) ob::OBClient::Layer_Above, 0, 0, 0},
8671 { SWIG_PY_INT,     (char *)"OBClient_Layer_Top", (long) ob::OBClient::Layer_Top, 0, 0, 0},
8672 { SWIG_PY_INT,     (char *)"OBClient_Layer_Fullscreen", (long) ob::OBClient::Layer_Fullscreen, 0, 0, 0},
8673 { SWIG_PY_INT,     (char *)"OBClient_Layer_Internal", (long) ob::OBClient::Layer_Internal, 0, 0, 0},
8674 { SWIG_PY_INT,     (char *)"OBClient_NUM_LAYERS", (long) ob::OBClient::NUM_LAYERS, 0, 0, 0},
8675 { SWIG_PY_INT,     (char *)"OBClient_TopLeft", (long) ob::OBClient::TopLeft, 0, 0, 0},
8676 { SWIG_PY_INT,     (char *)"OBClient_TopRight", (long) ob::OBClient::TopRight, 0, 0, 0},
8677 { SWIG_PY_INT,     (char *)"OBClient_BottomLeft", (long) ob::OBClient::BottomLeft, 0, 0, 0},
8678 { SWIG_PY_INT,     (char *)"OBClient_BottomRight", (long) ob::OBClient::BottomRight, 0, 0, 0},
8679 { SWIG_PY_INT,     (char *)"OBClient_Type_Desktop", (long) ob::OBClient::Type_Desktop, 0, 0, 0},
8680 { SWIG_PY_INT,     (char *)"OBClient_Type_Dock", (long) ob::OBClient::Type_Dock, 0, 0, 0},
8681 { SWIG_PY_INT,     (char *)"OBClient_Type_Toolbar", (long) ob::OBClient::Type_Toolbar, 0, 0, 0},
8682 { SWIG_PY_INT,     (char *)"OBClient_Type_Menu", (long) ob::OBClient::Type_Menu, 0, 0, 0},
8683 { SWIG_PY_INT,     (char *)"OBClient_Type_Utility", (long) ob::OBClient::Type_Utility, 0, 0, 0},
8684 { SWIG_PY_INT,     (char *)"OBClient_Type_Splash", (long) ob::OBClient::Type_Splash, 0, 0, 0},
8685 { SWIG_PY_INT,     (char *)"OBClient_Type_Dialog", (long) ob::OBClient::Type_Dialog, 0, 0, 0},
8686 { SWIG_PY_INT,     (char *)"OBClient_Type_Normal", (long) ob::OBClient::Type_Normal, 0, 0, 0},
8687 { SWIG_PY_INT,     (char *)"OBClient_MwmFlag_Functions", (long) ob::OBClient::MwmFlag_Functions, 0, 0, 0},
8688 { SWIG_PY_INT,     (char *)"OBClient_MwmFlag_Decorations", (long) ob::OBClient::MwmFlag_Decorations, 0, 0, 0},
8689 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_All", (long) ob::OBClient::MwmFunc_All, 0, 0, 0},
8690 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Resize", (long) ob::OBClient::MwmFunc_Resize, 0, 0, 0},
8691 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Move", (long) ob::OBClient::MwmFunc_Move, 0, 0, 0},
8692 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Iconify", (long) ob::OBClient::MwmFunc_Iconify, 0, 0, 0},
8693 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Maximize", (long) ob::OBClient::MwmFunc_Maximize, 0, 0, 0},
8694 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_All", (long) ob::OBClient::MwmDecor_All, 0, 0, 0},
8695 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Border", (long) ob::OBClient::MwmDecor_Border, 0, 0, 0},
8696 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Handle", (long) ob::OBClient::MwmDecor_Handle, 0, 0, 0},
8697 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Title", (long) ob::OBClient::MwmDecor_Title, 0, 0, 0},
8698 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Iconify", (long) ob::OBClient::MwmDecor_Iconify, 0, 0, 0},
8699 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Maximize", (long) ob::OBClient::MwmDecor_Maximize, 0, 0, 0},
8700 { SWIG_PY_INT,     (char *)"OBClient_Func_Resize", (long) ob::OBClient::Func_Resize, 0, 0, 0},
8701 { SWIG_PY_INT,     (char *)"OBClient_Func_Move", (long) ob::OBClient::Func_Move, 0, 0, 0},
8702 { SWIG_PY_INT,     (char *)"OBClient_Func_Iconify", (long) ob::OBClient::Func_Iconify, 0, 0, 0},
8703 { SWIG_PY_INT,     (char *)"OBClient_Func_Maximize", (long) ob::OBClient::Func_Maximize, 0, 0, 0},
8704 { SWIG_PY_INT,     (char *)"OBClient_Func_Close", (long) ob::OBClient::Func_Close, 0, 0, 0},
8705 { SWIG_PY_INT,     (char *)"OBClient_Decor_Titlebar", (long) ob::OBClient::Decor_Titlebar, 0, 0, 0},
8706 { SWIG_PY_INT,     (char *)"OBClient_Decor_Handle", (long) ob::OBClient::Decor_Handle, 0, 0, 0},
8707 { SWIG_PY_INT,     (char *)"OBClient_Decor_Border", (long) ob::OBClient::Decor_Border, 0, 0, 0},
8708 { SWIG_PY_INT,     (char *)"OBClient_Decor_Iconify", (long) ob::OBClient::Decor_Iconify, 0, 0, 0},
8709 { SWIG_PY_INT,     (char *)"OBClient_Decor_Maximize", (long) ob::OBClient::Decor_Maximize, 0, 0, 0},
8710 { SWIG_PY_INT,     (char *)"OBClient_Decor_Sticky", (long) ob::OBClient::Decor_Sticky, 0, 0, 0},
8711 { SWIG_PY_INT,     (char *)"OBClient_Decor_Close", (long) ob::OBClient::Decor_Close, 0, 0, 0},
8712 { SWIG_PY_INT,     (char *)"OBClient_State_Remove", (long) ob::OBClient::State_Remove, 0, 0, 0},
8713 { SWIG_PY_INT,     (char *)"OBClient_State_Add", (long) ob::OBClient::State_Add, 0, 0, 0},
8714 { SWIG_PY_INT,     (char *)"OBClient_State_Toggle", (long) ob::OBClient::State_Toggle, 0, 0, 0},
8715 { SWIG_PY_INT,     (char *)"OBClient_event_mask", (long) ob::OBClient::event_mask, 0, 0, 0},
8716 { SWIG_PY_INT,     (char *)"OBClient_no_propagate_mask", (long) ob::OBClient::no_propagate_mask, 0, 0, 0},
8717 { SWIG_PY_INT,     (char *)"MC_Frame", (long) ob::MC_Frame, 0, 0, 0},
8718 { SWIG_PY_INT,     (char *)"MC_Titlebar", (long) ob::MC_Titlebar, 0, 0, 0},
8719 { SWIG_PY_INT,     (char *)"MC_Handle", (long) ob::MC_Handle, 0, 0, 0},
8720 { SWIG_PY_INT,     (char *)"MC_Window", (long) ob::MC_Window, 0, 0, 0},
8721 { SWIG_PY_INT,     (char *)"MC_MaximizeButton", (long) ob::MC_MaximizeButton, 0, 0, 0},
8722 { SWIG_PY_INT,     (char *)"MC_CloseButton", (long) ob::MC_CloseButton, 0, 0, 0},
8723 { SWIG_PY_INT,     (char *)"MC_IconifyButton", (long) ob::MC_IconifyButton, 0, 0, 0},
8724 { SWIG_PY_INT,     (char *)"MC_StickyButton", (long) ob::MC_StickyButton, 0, 0, 0},
8725 { SWIG_PY_INT,     (char *)"MC_Grip", (long) ob::MC_Grip, 0, 0, 0},
8726 { SWIG_PY_INT,     (char *)"MC_Root", (long) ob::MC_Root, 0, 0, 0},
8727 { SWIG_PY_INT,     (char *)"MC_MenuItem", (long) ob::MC_MenuItem, 0, 0, 0},
8728 { SWIG_PY_INT,     (char *)"NUM_MOUSE_CONTEXT", (long) ob::NUM_MOUSE_CONTEXT, 0, 0, 0},
8729 { SWIG_PY_INT,     (char *)"MousePress", (long) ob::MousePress, 0, 0, 0},
8730 { SWIG_PY_INT,     (char *)"MouseClick", (long) ob::MouseClick, 0, 0, 0},
8731 { SWIG_PY_INT,     (char *)"MouseDoubleClick", (long) ob::MouseDoubleClick, 0, 0, 0},
8732 { SWIG_PY_INT,     (char *)"MouseMotion", (long) ob::MouseMotion, 0, 0, 0},
8733 { SWIG_PY_INT,     (char *)"NUM_MOUSE_ACTION", (long) ob::NUM_MOUSE_ACTION, 0, 0, 0},
8734 { SWIG_PY_INT,     (char *)"KC_Menu", (long) ob::KC_Menu, 0, 0, 0},
8735 { SWIG_PY_INT,     (char *)"KC_All", (long) ob::KC_All, 0, 0, 0},
8736 { SWIG_PY_INT,     (char *)"NUM_KEY_CONTEXT", (long) ob::NUM_KEY_CONTEXT, 0, 0, 0},
8737 { SWIG_PY_INT,     (char *)"EventEnterWindow", (long) ob::EventEnterWindow, 0, 0, 0},
8738 { SWIG_PY_INT,     (char *)"EventLeaveWindow", (long) ob::EventLeaveWindow, 0, 0, 0},
8739 { SWIG_PY_INT,     (char *)"EventPlaceWindow", (long) ob::EventPlaceWindow, 0, 0, 0},
8740 { SWIG_PY_INT,     (char *)"EventNewWindow", (long) ob::EventNewWindow, 0, 0, 0},
8741 { SWIG_PY_INT,     (char *)"EventCloseWindow", (long) ob::EventCloseWindow, 0, 0, 0},
8742 { SWIG_PY_INT,     (char *)"EventStartup", (long) ob::EventStartup, 0, 0, 0},
8743 { SWIG_PY_INT,     (char *)"EventShutdown", (long) ob::EventShutdown, 0, 0, 0},
8744 { SWIG_PY_INT,     (char *)"EventFocus", (long) ob::EventFocus, 0, 0, 0},
8745 { SWIG_PY_INT,     (char *)"EventBell", (long) ob::EventBell, 0, 0, 0},
8746 { SWIG_PY_INT,     (char *)"NUM_EVENTS", (long) ob::NUM_EVENTS, 0, 0, 0},
8747 { SWIG_PY_INT,     (char *)"X_PROTOCOL", (long) 11, 0, 0, 0},
8748 { SWIG_PY_INT,     (char *)"X_PROTOCOL_REVISION", (long) 0, 0, 0, 0},
8749 { SWIG_PY_INT,     (char *)"None", (long) 0L, 0, 0, 0},
8750 { SWIG_PY_INT,     (char *)"ParentRelative", (long) 1L, 0, 0, 0},
8751 { SWIG_PY_INT,     (char *)"CopyFromParent", (long) 0L, 0, 0, 0},
8752 { SWIG_PY_INT,     (char *)"PointerWindow", (long) 0L, 0, 0, 0},
8753 { SWIG_PY_INT,     (char *)"InputFocus", (long) 1L, 0, 0, 0},
8754 { SWIG_PY_INT,     (char *)"PointerRoot", (long) 1L, 0, 0, 0},
8755 { SWIG_PY_INT,     (char *)"AnyPropertyType", (long) 0L, 0, 0, 0},
8756 { SWIG_PY_INT,     (char *)"AnyKey", (long) 0L, 0, 0, 0},
8757 { SWIG_PY_INT,     (char *)"AnyButton", (long) 0L, 0, 0, 0},
8758 { SWIG_PY_INT,     (char *)"AllTemporary", (long) 0L, 0, 0, 0},
8759 { SWIG_PY_INT,     (char *)"CurrentTime", (long) 0L, 0, 0, 0},
8760 { SWIG_PY_INT,     (char *)"NoSymbol", (long) 0L, 0, 0, 0},
8761 { SWIG_PY_INT,     (char *)"NoEventMask", (long) 0L, 0, 0, 0},
8762 { SWIG_PY_INT,     (char *)"KeyPressMask", (long) (1L<<0), 0, 0, 0},
8763 { SWIG_PY_INT,     (char *)"KeyReleaseMask", (long) (1L<<1), 0, 0, 0},
8764 { SWIG_PY_INT,     (char *)"ButtonPressMask", (long) (1L<<2), 0, 0, 0},
8765 { SWIG_PY_INT,     (char *)"ButtonReleaseMask", (long) (1L<<3), 0, 0, 0},
8766 { SWIG_PY_INT,     (char *)"EnterWindowMask", (long) (1L<<4), 0, 0, 0},
8767 { SWIG_PY_INT,     (char *)"LeaveWindowMask", (long) (1L<<5), 0, 0, 0},
8768 { SWIG_PY_INT,     (char *)"PointerMotionMask", (long) (1L<<6), 0, 0, 0},
8769 { SWIG_PY_INT,     (char *)"PointerMotionHintMask", (long) (1L<<7), 0, 0, 0},
8770 { SWIG_PY_INT,     (char *)"Button1MotionMask", (long) (1L<<8), 0, 0, 0},
8771 { SWIG_PY_INT,     (char *)"Button2MotionMask", (long) (1L<<9), 0, 0, 0},
8772 { SWIG_PY_INT,     (char *)"Button3MotionMask", (long) (1L<<10), 0, 0, 0},
8773 { SWIG_PY_INT,     (char *)"Button4MotionMask", (long) (1L<<11), 0, 0, 0},
8774 { SWIG_PY_INT,     (char *)"Button5MotionMask", (long) (1L<<12), 0, 0, 0},
8775 { SWIG_PY_INT,     (char *)"ButtonMotionMask", (long) (1L<<13), 0, 0, 0},
8776 { SWIG_PY_INT,     (char *)"KeymapStateMask", (long) (1L<<14), 0, 0, 0},
8777 { SWIG_PY_INT,     (char *)"ExposureMask", (long) (1L<<15), 0, 0, 0},
8778 { SWIG_PY_INT,     (char *)"VisibilityChangeMask", (long) (1L<<16), 0, 0, 0},
8779 { SWIG_PY_INT,     (char *)"StructureNotifyMask", (long) (1L<<17), 0, 0, 0},
8780 { SWIG_PY_INT,     (char *)"ResizeRedirectMask", (long) (1L<<18), 0, 0, 0},
8781 { SWIG_PY_INT,     (char *)"SubstructureNotifyMask", (long) (1L<<19), 0, 0, 0},
8782 { SWIG_PY_INT,     (char *)"SubstructureRedirectMask", (long) (1L<<20), 0, 0, 0},
8783 { SWIG_PY_INT,     (char *)"FocusChangeMask", (long) (1L<<21), 0, 0, 0},
8784 { SWIG_PY_INT,     (char *)"PropertyChangeMask", (long) (1L<<22), 0, 0, 0},
8785 { SWIG_PY_INT,     (char *)"ColormapChangeMask", (long) (1L<<23), 0, 0, 0},
8786 { SWIG_PY_INT,     (char *)"OwnerGrabButtonMask", (long) (1L<<24), 0, 0, 0},
8787 { SWIG_PY_INT,     (char *)"KeyPress", (long) 2, 0, 0, 0},
8788 { SWIG_PY_INT,     (char *)"KeyRelease", (long) 3, 0, 0, 0},
8789 { SWIG_PY_INT,     (char *)"ButtonPress", (long) 4, 0, 0, 0},
8790 { SWIG_PY_INT,     (char *)"ButtonRelease", (long) 5, 0, 0, 0},
8791 { SWIG_PY_INT,     (char *)"MotionNotify", (long) 6, 0, 0, 0},
8792 { SWIG_PY_INT,     (char *)"EnterNotify", (long) 7, 0, 0, 0},
8793 { SWIG_PY_INT,     (char *)"LeaveNotify", (long) 8, 0, 0, 0},
8794 { SWIG_PY_INT,     (char *)"FocusIn", (long) 9, 0, 0, 0},
8795 { SWIG_PY_INT,     (char *)"FocusOut", (long) 10, 0, 0, 0},
8796 { SWIG_PY_INT,     (char *)"KeymapNotify", (long) 11, 0, 0, 0},
8797 { SWIG_PY_INT,     (char *)"Expose", (long) 12, 0, 0, 0},
8798 { SWIG_PY_INT,     (char *)"GraphicsExpose", (long) 13, 0, 0, 0},
8799 { SWIG_PY_INT,     (char *)"NoExpose", (long) 14, 0, 0, 0},
8800 { SWIG_PY_INT,     (char *)"VisibilityNotify", (long) 15, 0, 0, 0},
8801 { SWIG_PY_INT,     (char *)"CreateNotify", (long) 16, 0, 0, 0},
8802 { SWIG_PY_INT,     (char *)"DestroyNotify", (long) 17, 0, 0, 0},
8803 { SWIG_PY_INT,     (char *)"UnmapNotify", (long) 18, 0, 0, 0},
8804 { SWIG_PY_INT,     (char *)"MapNotify", (long) 19, 0, 0, 0},
8805 { SWIG_PY_INT,     (char *)"MapRequest", (long) 20, 0, 0, 0},
8806 { SWIG_PY_INT,     (char *)"ReparentNotify", (long) 21, 0, 0, 0},
8807 { SWIG_PY_INT,     (char *)"ConfigureNotify", (long) 22, 0, 0, 0},
8808 { SWIG_PY_INT,     (char *)"ConfigureRequest", (long) 23, 0, 0, 0},
8809 { SWIG_PY_INT,     (char *)"GravityNotify", (long) 24, 0, 0, 0},
8810 { SWIG_PY_INT,     (char *)"ResizeRequest", (long) 25, 0, 0, 0},
8811 { SWIG_PY_INT,     (char *)"CirculateNotify", (long) 26, 0, 0, 0},
8812 { SWIG_PY_INT,     (char *)"CirculateRequest", (long) 27, 0, 0, 0},
8813 { SWIG_PY_INT,     (char *)"PropertyNotify", (long) 28, 0, 0, 0},
8814 { SWIG_PY_INT,     (char *)"SelectionClear", (long) 29, 0, 0, 0},
8815 { SWIG_PY_INT,     (char *)"SelectionRequest", (long) 30, 0, 0, 0},
8816 { SWIG_PY_INT,     (char *)"SelectionNotify", (long) 31, 0, 0, 0},
8817 { SWIG_PY_INT,     (char *)"ColormapNotify", (long) 32, 0, 0, 0},
8818 { SWIG_PY_INT,     (char *)"ClientMessage", (long) 33, 0, 0, 0},
8819 { SWIG_PY_INT,     (char *)"MappingNotify", (long) 34, 0, 0, 0},
8820 { SWIG_PY_INT,     (char *)"LASTEvent", (long) 35, 0, 0, 0},
8821 { SWIG_PY_INT,     (char *)"ShiftMask", (long) (1<<0), 0, 0, 0},
8822 { SWIG_PY_INT,     (char *)"LockMask", (long) (1<<1), 0, 0, 0},
8823 { SWIG_PY_INT,     (char *)"ControlMask", (long) (1<<2), 0, 0, 0},
8824 { SWIG_PY_INT,     (char *)"Mod1Mask", (long) (1<<3), 0, 0, 0},
8825 { SWIG_PY_INT,     (char *)"Mod2Mask", (long) (1<<4), 0, 0, 0},
8826 { SWIG_PY_INT,     (char *)"Mod3Mask", (long) (1<<5), 0, 0, 0},
8827 { SWIG_PY_INT,     (char *)"Mod4Mask", (long) (1<<6), 0, 0, 0},
8828 { SWIG_PY_INT,     (char *)"Mod5Mask", (long) (1<<7), 0, 0, 0},
8829 { SWIG_PY_INT,     (char *)"ShiftMapIndex", (long) 0, 0, 0, 0},
8830 { SWIG_PY_INT,     (char *)"LockMapIndex", (long) 1, 0, 0, 0},
8831 { SWIG_PY_INT,     (char *)"ControlMapIndex", (long) 2, 0, 0, 0},
8832 { SWIG_PY_INT,     (char *)"Mod1MapIndex", (long) 3, 0, 0, 0},
8833 { SWIG_PY_INT,     (char *)"Mod2MapIndex", (long) 4, 0, 0, 0},
8834 { SWIG_PY_INT,     (char *)"Mod3MapIndex", (long) 5, 0, 0, 0},
8835 { SWIG_PY_INT,     (char *)"Mod4MapIndex", (long) 6, 0, 0, 0},
8836 { SWIG_PY_INT,     (char *)"Mod5MapIndex", (long) 7, 0, 0, 0},
8837 { SWIG_PY_INT,     (char *)"Button1Mask", (long) (1<<8), 0, 0, 0},
8838 { SWIG_PY_INT,     (char *)"Button2Mask", (long) (1<<9), 0, 0, 0},
8839 { SWIG_PY_INT,     (char *)"Button3Mask", (long) (1<<10), 0, 0, 0},
8840 { SWIG_PY_INT,     (char *)"Button4Mask", (long) (1<<11), 0, 0, 0},
8841 { SWIG_PY_INT,     (char *)"Button5Mask", (long) (1<<12), 0, 0, 0},
8842 { SWIG_PY_INT,     (char *)"AnyModifier", (long) (1<<15), 0, 0, 0},
8843 { SWIG_PY_INT,     (char *)"Button1", (long) 1, 0, 0, 0},
8844 { SWIG_PY_INT,     (char *)"Button2", (long) 2, 0, 0, 0},
8845 { SWIG_PY_INT,     (char *)"Button3", (long) 3, 0, 0, 0},
8846 { SWIG_PY_INT,     (char *)"Button4", (long) 4, 0, 0, 0},
8847 { SWIG_PY_INT,     (char *)"Button5", (long) 5, 0, 0, 0},
8848 { SWIG_PY_INT,     (char *)"NotifyNormal", (long) 0, 0, 0, 0},
8849 { SWIG_PY_INT,     (char *)"NotifyGrab", (long) 1, 0, 0, 0},
8850 { SWIG_PY_INT,     (char *)"NotifyUngrab", (long) 2, 0, 0, 0},
8851 { SWIG_PY_INT,     (char *)"NotifyWhileGrabbed", (long) 3, 0, 0, 0},
8852 { SWIG_PY_INT,     (char *)"NotifyHint", (long) 1, 0, 0, 0},
8853 { SWIG_PY_INT,     (char *)"NotifyAncestor", (long) 0, 0, 0, 0},
8854 { SWIG_PY_INT,     (char *)"NotifyVirtual", (long) 1, 0, 0, 0},
8855 { SWIG_PY_INT,     (char *)"NotifyInferior", (long) 2, 0, 0, 0},
8856 { SWIG_PY_INT,     (char *)"NotifyNonlinear", (long) 3, 0, 0, 0},
8857 { SWIG_PY_INT,     (char *)"NotifyNonlinearVirtual", (long) 4, 0, 0, 0},
8858 { SWIG_PY_INT,     (char *)"NotifyPointer", (long) 5, 0, 0, 0},
8859 { SWIG_PY_INT,     (char *)"NotifyPointerRoot", (long) 6, 0, 0, 0},
8860 { SWIG_PY_INT,     (char *)"NotifyDetailNone", (long) 7, 0, 0, 0},
8861 { SWIG_PY_INT,     (char *)"VisibilityUnobscured", (long) 0, 0, 0, 0},
8862 { SWIG_PY_INT,     (char *)"VisibilityPartiallyObscured", (long) 1, 0, 0, 0},
8863 { SWIG_PY_INT,     (char *)"VisibilityFullyObscured", (long) 2, 0, 0, 0},
8864 { SWIG_PY_INT,     (char *)"PlaceOnTop", (long) 0, 0, 0, 0},
8865 { SWIG_PY_INT,     (char *)"PlaceOnBottom", (long) 1, 0, 0, 0},
8866 { SWIG_PY_INT,     (char *)"FamilyInternet", (long) 0, 0, 0, 0},
8867 { SWIG_PY_INT,     (char *)"FamilyDECnet", (long) 1, 0, 0, 0},
8868 { SWIG_PY_INT,     (char *)"FamilyChaos", (long) 2, 0, 0, 0},
8869 { SWIG_PY_INT,     (char *)"PropertyNewValue", (long) 0, 0, 0, 0},
8870 { SWIG_PY_INT,     (char *)"PropertyDelete", (long) 1, 0, 0, 0},
8871 { SWIG_PY_INT,     (char *)"ColormapUninstalled", (long) 0, 0, 0, 0},
8872 { SWIG_PY_INT,     (char *)"ColormapInstalled", (long) 1, 0, 0, 0},
8873 { SWIG_PY_INT,     (char *)"GrabModeSync", (long) 0, 0, 0, 0},
8874 { SWIG_PY_INT,     (char *)"GrabModeAsync", (long) 1, 0, 0, 0},
8875 { SWIG_PY_INT,     (char *)"GrabSuccess", (long) 0, 0, 0, 0},
8876 { SWIG_PY_INT,     (char *)"AlreadyGrabbed", (long) 1, 0, 0, 0},
8877 { SWIG_PY_INT,     (char *)"GrabInvalidTime", (long) 2, 0, 0, 0},
8878 { SWIG_PY_INT,     (char *)"GrabNotViewable", (long) 3, 0, 0, 0},
8879 { SWIG_PY_INT,     (char *)"GrabFrozen", (long) 4, 0, 0, 0},
8880 { SWIG_PY_INT,     (char *)"AsyncPointer", (long) 0, 0, 0, 0},
8881 { SWIG_PY_INT,     (char *)"SyncPointer", (long) 1, 0, 0, 0},
8882 { SWIG_PY_INT,     (char *)"ReplayPointer", (long) 2, 0, 0, 0},
8883 { SWIG_PY_INT,     (char *)"AsyncKeyboard", (long) 3, 0, 0, 0},
8884 { SWIG_PY_INT,     (char *)"SyncKeyboard", (long) 4, 0, 0, 0},
8885 { SWIG_PY_INT,     (char *)"ReplayKeyboard", (long) 5, 0, 0, 0},
8886 { SWIG_PY_INT,     (char *)"AsyncBoth", (long) 6, 0, 0, 0},
8887 { SWIG_PY_INT,     (char *)"SyncBoth", (long) 7, 0, 0, 0},
8888 { SWIG_PY_INT,     (char *)"RevertToParent", (long) 2, 0, 0, 0},
8889 { SWIG_PY_INT,     (char *)"Success", (long) 0, 0, 0, 0},
8890 { SWIG_PY_INT,     (char *)"BadRequest", (long) 1, 0, 0, 0},
8891 { SWIG_PY_INT,     (char *)"BadValue", (long) 2, 0, 0, 0},
8892 { SWIG_PY_INT,     (char *)"BadWindow", (long) 3, 0, 0, 0},
8893 { SWIG_PY_INT,     (char *)"BadPixmap", (long) 4, 0, 0, 0},
8894 { SWIG_PY_INT,     (char *)"BadAtom", (long) 5, 0, 0, 0},
8895 { SWIG_PY_INT,     (char *)"BadCursor", (long) 6, 0, 0, 0},
8896 { SWIG_PY_INT,     (char *)"BadFont", (long) 7, 0, 0, 0},
8897 { SWIG_PY_INT,     (char *)"BadMatch", (long) 8, 0, 0, 0},
8898 { SWIG_PY_INT,     (char *)"BadDrawable", (long) 9, 0, 0, 0},
8899 { SWIG_PY_INT,     (char *)"BadAccess", (long) 10, 0, 0, 0},
8900 { SWIG_PY_INT,     (char *)"BadAlloc", (long) 11, 0, 0, 0},
8901 { SWIG_PY_INT,     (char *)"BadColor", (long) 12, 0, 0, 0},
8902 { SWIG_PY_INT,     (char *)"BadGC", (long) 13, 0, 0, 0},
8903 { SWIG_PY_INT,     (char *)"BadIDChoice", (long) 14, 0, 0, 0},
8904 { SWIG_PY_INT,     (char *)"BadName", (long) 15, 0, 0, 0},
8905 { SWIG_PY_INT,     (char *)"BadLength", (long) 16, 0, 0, 0},
8906 { SWIG_PY_INT,     (char *)"BadImplementation", (long) 17, 0, 0, 0},
8907 { SWIG_PY_INT,     (char *)"FirstExtensionError", (long) 128, 0, 0, 0},
8908 { SWIG_PY_INT,     (char *)"LastExtensionError", (long) 255, 0, 0, 0},
8909 { SWIG_PY_INT,     (char *)"InputOutput", (long) 1, 0, 0, 0},
8910 { SWIG_PY_INT,     (char *)"InputOnly", (long) 2, 0, 0, 0},
8911 { SWIG_PY_INT,     (char *)"CWBackPixmap", (long) (1L<<0), 0, 0, 0},
8912 { SWIG_PY_INT,     (char *)"CWBackPixel", (long) (1L<<1), 0, 0, 0},
8913 { SWIG_PY_INT,     (char *)"CWBorderPixmap", (long) (1L<<2), 0, 0, 0},
8914 { SWIG_PY_INT,     (char *)"CWBorderPixel", (long) (1L<<3), 0, 0, 0},
8915 { SWIG_PY_INT,     (char *)"CWBitGravity", (long) (1L<<4), 0, 0, 0},
8916 { SWIG_PY_INT,     (char *)"CWWinGravity", (long) (1L<<5), 0, 0, 0},
8917 { SWIG_PY_INT,     (char *)"CWBackingStore", (long) (1L<<6), 0, 0, 0},
8918 { SWIG_PY_INT,     (char *)"CWBackingPlanes", (long) (1L<<7), 0, 0, 0},
8919 { SWIG_PY_INT,     (char *)"CWBackingPixel", (long) (1L<<8), 0, 0, 0},
8920 { SWIG_PY_INT,     (char *)"CWOverrideRedirect", (long) (1L<<9), 0, 0, 0},
8921 { SWIG_PY_INT,     (char *)"CWSaveUnder", (long) (1L<<10), 0, 0, 0},
8922 { SWIG_PY_INT,     (char *)"CWEventMask", (long) (1L<<11), 0, 0, 0},
8923 { SWIG_PY_INT,     (char *)"CWDontPropagate", (long) (1L<<12), 0, 0, 0},
8924 { SWIG_PY_INT,     (char *)"CWColormap", (long) (1L<<13), 0, 0, 0},
8925 { SWIG_PY_INT,     (char *)"CWCursor", (long) (1L<<14), 0, 0, 0},
8926 { SWIG_PY_INT,     (char *)"CWX", (long) (1<<0), 0, 0, 0},
8927 { SWIG_PY_INT,     (char *)"CWY", (long) (1<<1), 0, 0, 0},
8928 { SWIG_PY_INT,     (char *)"CWWidth", (long) (1<<2), 0, 0, 0},
8929 { SWIG_PY_INT,     (char *)"CWHeight", (long) (1<<3), 0, 0, 0},
8930 { SWIG_PY_INT,     (char *)"CWBorderWidth", (long) (1<<4), 0, 0, 0},
8931 { SWIG_PY_INT,     (char *)"CWSibling", (long) (1<<5), 0, 0, 0},
8932 { SWIG_PY_INT,     (char *)"CWStackMode", (long) (1<<6), 0, 0, 0},
8933 { SWIG_PY_INT,     (char *)"ForgetGravity", (long) 0, 0, 0, 0},
8934 { SWIG_PY_INT,     (char *)"NorthWestGravity", (long) 1, 0, 0, 0},
8935 { SWIG_PY_INT,     (char *)"NorthGravity", (long) 2, 0, 0, 0},
8936 { SWIG_PY_INT,     (char *)"NorthEastGravity", (long) 3, 0, 0, 0},
8937 { SWIG_PY_INT,     (char *)"WestGravity", (long) 4, 0, 0, 0},
8938 { SWIG_PY_INT,     (char *)"CenterGravity", (long) 5, 0, 0, 0},
8939 { SWIG_PY_INT,     (char *)"EastGravity", (long) 6, 0, 0, 0},
8940 { SWIG_PY_INT,     (char *)"SouthWestGravity", (long) 7, 0, 0, 0},
8941 { SWIG_PY_INT,     (char *)"SouthGravity", (long) 8, 0, 0, 0},
8942 { SWIG_PY_INT,     (char *)"SouthEastGravity", (long) 9, 0, 0, 0},
8943 { SWIG_PY_INT,     (char *)"StaticGravity", (long) 10, 0, 0, 0},
8944 { SWIG_PY_INT,     (char *)"UnmapGravity", (long) 0, 0, 0, 0},
8945 { SWIG_PY_INT,     (char *)"NotUseful", (long) 0, 0, 0, 0},
8946 { SWIG_PY_INT,     (char *)"WhenMapped", (long) 1, 0, 0, 0},
8947 { SWIG_PY_INT,     (char *)"Always", (long) 2, 0, 0, 0},
8948 { SWIG_PY_INT,     (char *)"IsUnmapped", (long) 0, 0, 0, 0},
8949 { SWIG_PY_INT,     (char *)"IsUnviewable", (long) 1, 0, 0, 0},
8950 { SWIG_PY_INT,     (char *)"IsViewable", (long) 2, 0, 0, 0},
8951 { SWIG_PY_INT,     (char *)"SetModeInsert", (long) 0, 0, 0, 0},
8952 { SWIG_PY_INT,     (char *)"SetModeDelete", (long) 1, 0, 0, 0},
8953 { SWIG_PY_INT,     (char *)"DestroyAll", (long) 0, 0, 0, 0},
8954 { SWIG_PY_INT,     (char *)"RetainPermanent", (long) 1, 0, 0, 0},
8955 { SWIG_PY_INT,     (char *)"RetainTemporary", (long) 2, 0, 0, 0},
8956 { SWIG_PY_INT,     (char *)"Above", (long) 0, 0, 0, 0},
8957 { SWIG_PY_INT,     (char *)"Below", (long) 1, 0, 0, 0},
8958 { SWIG_PY_INT,     (char *)"TopIf", (long) 2, 0, 0, 0},
8959 { SWIG_PY_INT,     (char *)"BottomIf", (long) 3, 0, 0, 0},
8960 { SWIG_PY_INT,     (char *)"Opposite", (long) 4, 0, 0, 0},
8961 { SWIG_PY_INT,     (char *)"RaiseLowest", (long) 0, 0, 0, 0},
8962 { SWIG_PY_INT,     (char *)"LowerHighest", (long) 1, 0, 0, 0},
8963 { SWIG_PY_INT,     (char *)"PropModeReplace", (long) 0, 0, 0, 0},
8964 { SWIG_PY_INT,     (char *)"PropModePrepend", (long) 1, 0, 0, 0},
8965 { SWIG_PY_INT,     (char *)"PropModeAppend", (long) 2, 0, 0, 0},
8966 { SWIG_PY_INT,     (char *)"GXclear", (long) 0x0, 0, 0, 0},
8967 { SWIG_PY_INT,     (char *)"GXand", (long) 0x1, 0, 0, 0},
8968 { SWIG_PY_INT,     (char *)"GXandReverse", (long) 0x2, 0, 0, 0},
8969 { SWIG_PY_INT,     (char *)"GXcopy", (long) 0x3, 0, 0, 0},
8970 { SWIG_PY_INT,     (char *)"GXandInverted", (long) 0x4, 0, 0, 0},
8971 { SWIG_PY_INT,     (char *)"GXnoop", (long) 0x5, 0, 0, 0},
8972 { SWIG_PY_INT,     (char *)"GXxor", (long) 0x6, 0, 0, 0},
8973 { SWIG_PY_INT,     (char *)"GXor", (long) 0x7, 0, 0, 0},
8974 { SWIG_PY_INT,     (char *)"GXnor", (long) 0x8, 0, 0, 0},
8975 { SWIG_PY_INT,     (char *)"GXequiv", (long) 0x9, 0, 0, 0},
8976 { SWIG_PY_INT,     (char *)"GXinvert", (long) 0xa, 0, 0, 0},
8977 { SWIG_PY_INT,     (char *)"GXorReverse", (long) 0xb, 0, 0, 0},
8978 { SWIG_PY_INT,     (char *)"GXcopyInverted", (long) 0xc, 0, 0, 0},
8979 { SWIG_PY_INT,     (char *)"GXorInverted", (long) 0xd, 0, 0, 0},
8980 { SWIG_PY_INT,     (char *)"GXnand", (long) 0xe, 0, 0, 0},
8981 { SWIG_PY_INT,     (char *)"GXset", (long) 0xf, 0, 0, 0},
8982 { SWIG_PY_INT,     (char *)"LineSolid", (long) 0, 0, 0, 0},
8983 { SWIG_PY_INT,     (char *)"LineOnOffDash", (long) 1, 0, 0, 0},
8984 { SWIG_PY_INT,     (char *)"LineDoubleDash", (long) 2, 0, 0, 0},
8985 { SWIG_PY_INT,     (char *)"CapNotLast", (long) 0, 0, 0, 0},
8986 { SWIG_PY_INT,     (char *)"CapButt", (long) 1, 0, 0, 0},
8987 { SWIG_PY_INT,     (char *)"CapRound", (long) 2, 0, 0, 0},
8988 { SWIG_PY_INT,     (char *)"CapProjecting", (long) 3, 0, 0, 0},
8989 { SWIG_PY_INT,     (char *)"JoinMiter", (long) 0, 0, 0, 0},
8990 { SWIG_PY_INT,     (char *)"JoinRound", (long) 1, 0, 0, 0},
8991 { SWIG_PY_INT,     (char *)"JoinBevel", (long) 2, 0, 0, 0},
8992 { SWIG_PY_INT,     (char *)"FillSolid", (long) 0, 0, 0, 0},
8993 { SWIG_PY_INT,     (char *)"FillTiled", (long) 1, 0, 0, 0},
8994 { SWIG_PY_INT,     (char *)"FillStippled", (long) 2, 0, 0, 0},
8995 { SWIG_PY_INT,     (char *)"FillOpaqueStippled", (long) 3, 0, 0, 0},
8996 { SWIG_PY_INT,     (char *)"EvenOddRule", (long) 0, 0, 0, 0},
8997 { SWIG_PY_INT,     (char *)"WindingRule", (long) 1, 0, 0, 0},
8998 { SWIG_PY_INT,     (char *)"ClipByChildren", (long) 0, 0, 0, 0},
8999 { SWIG_PY_INT,     (char *)"IncludeInferiors", (long) 1, 0, 0, 0},
9000 { SWIG_PY_INT,     (char *)"Unsorted", (long) 0, 0, 0, 0},
9001 { SWIG_PY_INT,     (char *)"YSorted", (long) 1, 0, 0, 0},
9002 { SWIG_PY_INT,     (char *)"YXSorted", (long) 2, 0, 0, 0},
9003 { SWIG_PY_INT,     (char *)"YXBanded", (long) 3, 0, 0, 0},
9004 { SWIG_PY_INT,     (char *)"CoordModeOrigin", (long) 0, 0, 0, 0},
9005 { SWIG_PY_INT,     (char *)"CoordModePrevious", (long) 1, 0, 0, 0},
9006 { SWIG_PY_INT,     (char *)"Complex", (long) 0, 0, 0, 0},
9007 { SWIG_PY_INT,     (char *)"Nonconvex", (long) 1, 0, 0, 0},
9008 { SWIG_PY_INT,     (char *)"Convex", (long) 2, 0, 0, 0},
9009 { SWIG_PY_INT,     (char *)"ArcChord", (long) 0, 0, 0, 0},
9010 { SWIG_PY_INT,     (char *)"ArcPieSlice", (long) 1, 0, 0, 0},
9011 { SWIG_PY_INT,     (char *)"GCFunction", (long) (1L<<0), 0, 0, 0},
9012 { SWIG_PY_INT,     (char *)"GCPlaneMask", (long) (1L<<1), 0, 0, 0},
9013 { SWIG_PY_INT,     (char *)"GCForeground", (long) (1L<<2), 0, 0, 0},
9014 { SWIG_PY_INT,     (char *)"GCBackground", (long) (1L<<3), 0, 0, 0},
9015 { SWIG_PY_INT,     (char *)"GCLineWidth", (long) (1L<<4), 0, 0, 0},
9016 { SWIG_PY_INT,     (char *)"GCLineStyle", (long) (1L<<5), 0, 0, 0},
9017 { SWIG_PY_INT,     (char *)"GCCapStyle", (long) (1L<<6), 0, 0, 0},
9018 { SWIG_PY_INT,     (char *)"GCJoinStyle", (long) (1L<<7), 0, 0, 0},
9019 { SWIG_PY_INT,     (char *)"GCFillStyle", (long) (1L<<8), 0, 0, 0},
9020 { SWIG_PY_INT,     (char *)"GCFillRule", (long) (1L<<9), 0, 0, 0},
9021 { SWIG_PY_INT,     (char *)"GCTile", (long) (1L<<10), 0, 0, 0},
9022 { SWIG_PY_INT,     (char *)"GCStipple", (long) (1L<<11), 0, 0, 0},
9023 { SWIG_PY_INT,     (char *)"GCTileStipXOrigin", (long) (1L<<12), 0, 0, 0},
9024 { SWIG_PY_INT,     (char *)"GCTileStipYOrigin", (long) (1L<<13), 0, 0, 0},
9025 { SWIG_PY_INT,     (char *)"GCFont", (long) (1L<<14), 0, 0, 0},
9026 { SWIG_PY_INT,     (char *)"GCSubwindowMode", (long) (1L<<15), 0, 0, 0},
9027 { SWIG_PY_INT,     (char *)"GCGraphicsExposures", (long) (1L<<16), 0, 0, 0},
9028 { SWIG_PY_INT,     (char *)"GCClipXOrigin", (long) (1L<<17), 0, 0, 0},
9029 { SWIG_PY_INT,     (char *)"GCClipYOrigin", (long) (1L<<18), 0, 0, 0},
9030 { SWIG_PY_INT,     (char *)"GCClipMask", (long) (1L<<19), 0, 0, 0},
9031 { SWIG_PY_INT,     (char *)"GCDashOffset", (long) (1L<<20), 0, 0, 0},
9032 { SWIG_PY_INT,     (char *)"GCDashList", (long) (1L<<21), 0, 0, 0},
9033 { SWIG_PY_INT,     (char *)"GCArcMode", (long) (1L<<22), 0, 0, 0},
9034 { SWIG_PY_INT,     (char *)"GCLastBit", (long) 22, 0, 0, 0},
9035 { SWIG_PY_INT,     (char *)"FontLeftToRight", (long) 0, 0, 0, 0},
9036 { SWIG_PY_INT,     (char *)"FontRightToLeft", (long) 1, 0, 0, 0},
9037 { SWIG_PY_INT,     (char *)"FontChange", (long) 255, 0, 0, 0},
9038 { SWIG_PY_INT,     (char *)"XYBitmap", (long) 0, 0, 0, 0},
9039 { SWIG_PY_INT,     (char *)"XYPixmap", (long) 1, 0, 0, 0},
9040 { SWIG_PY_INT,     (char *)"ZPixmap", (long) 2, 0, 0, 0},
9041 { SWIG_PY_INT,     (char *)"AllocNone", (long) 0, 0, 0, 0},
9042 { SWIG_PY_INT,     (char *)"AllocAll", (long) 1, 0, 0, 0},
9043 { SWIG_PY_INT,     (char *)"DoRed", (long) (1<<0), 0, 0, 0},
9044 { SWIG_PY_INT,     (char *)"DoGreen", (long) (1<<1), 0, 0, 0},
9045 { SWIG_PY_INT,     (char *)"DoBlue", (long) (1<<2), 0, 0, 0},
9046 { SWIG_PY_INT,     (char *)"CursorShape", (long) 0, 0, 0, 0},
9047 { SWIG_PY_INT,     (char *)"TileShape", (long) 1, 0, 0, 0},
9048 { SWIG_PY_INT,     (char *)"StippleShape", (long) 2, 0, 0, 0},
9049 { SWIG_PY_INT,     (char *)"AutoRepeatModeOff", (long) 0, 0, 0, 0},
9050 { SWIG_PY_INT,     (char *)"AutoRepeatModeOn", (long) 1, 0, 0, 0},
9051 { SWIG_PY_INT,     (char *)"AutoRepeatModeDefault", (long) 2, 0, 0, 0},
9052 { SWIG_PY_INT,     (char *)"LedModeOff", (long) 0, 0, 0, 0},
9053 { SWIG_PY_INT,     (char *)"LedModeOn", (long) 1, 0, 0, 0},
9054 { SWIG_PY_INT,     (char *)"KBKeyClickPercent", (long) (1L<<0), 0, 0, 0},
9055 { SWIG_PY_INT,     (char *)"KBBellPercent", (long) (1L<<1), 0, 0, 0},
9056 { SWIG_PY_INT,     (char *)"KBBellPitch", (long) (1L<<2), 0, 0, 0},
9057 { SWIG_PY_INT,     (char *)"KBBellDuration", (long) (1L<<3), 0, 0, 0},
9058 { SWIG_PY_INT,     (char *)"KBLed", (long) (1L<<4), 0, 0, 0},
9059 { SWIG_PY_INT,     (char *)"KBLedMode", (long) (1L<<5), 0, 0, 0},
9060 { SWIG_PY_INT,     (char *)"KBKey", (long) (1L<<6), 0, 0, 0},
9061 { SWIG_PY_INT,     (char *)"KBAutoRepeatMode", (long) (1L<<7), 0, 0, 0},
9062 { SWIG_PY_INT,     (char *)"MappingSuccess", (long) 0, 0, 0, 0},
9063 { SWIG_PY_INT,     (char *)"MappingBusy", (long) 1, 0, 0, 0},
9064 { SWIG_PY_INT,     (char *)"MappingFailed", (long) 2, 0, 0, 0},
9065 { SWIG_PY_INT,     (char *)"MappingModifier", (long) 0, 0, 0, 0},
9066 { SWIG_PY_INT,     (char *)"MappingKeyboard", (long) 1, 0, 0, 0},
9067 { SWIG_PY_INT,     (char *)"MappingPointer", (long) 2, 0, 0, 0},
9068 { SWIG_PY_INT,     (char *)"DontPreferBlanking", (long) 0, 0, 0, 0},
9069 { SWIG_PY_INT,     (char *)"PreferBlanking", (long) 1, 0, 0, 0},
9070 { SWIG_PY_INT,     (char *)"DefaultBlanking", (long) 2, 0, 0, 0},
9071 { SWIG_PY_INT,     (char *)"DisableScreenSaver", (long) 0, 0, 0, 0},
9072 { SWIG_PY_INT,     (char *)"DisableScreenInterval", (long) 0, 0, 0, 0},
9073 { SWIG_PY_INT,     (char *)"DontAllowExposures", (long) 0, 0, 0, 0},
9074 { SWIG_PY_INT,     (char *)"AllowExposures", (long) 1, 0, 0, 0},
9075 { SWIG_PY_INT,     (char *)"DefaultExposures", (long) 2, 0, 0, 0},
9076 { SWIG_PY_INT,     (char *)"ScreenSaverReset", (long) 0, 0, 0, 0},
9077 { SWIG_PY_INT,     (char *)"ScreenSaverActive", (long) 1, 0, 0, 0},
9078 { SWIG_PY_INT,     (char *)"HostInsert", (long) 0, 0, 0, 0},
9079 { SWIG_PY_INT,     (char *)"HostDelete", (long) 1, 0, 0, 0},
9080 { SWIG_PY_INT,     (char *)"EnableAccess", (long) 1, 0, 0, 0},
9081 { SWIG_PY_INT,     (char *)"DisableAccess", (long) 0, 0, 0, 0},
9082 { SWIG_PY_INT,     (char *)"StaticGray", (long) 0, 0, 0, 0},
9083 { SWIG_PY_INT,     (char *)"GrayScale", (long) 1, 0, 0, 0},
9084 { SWIG_PY_INT,     (char *)"StaticColor", (long) 2, 0, 0, 0},
9085 { SWIG_PY_INT,     (char *)"PseudoColor", (long) 3, 0, 0, 0},
9086 { SWIG_PY_INT,     (char *)"TrueColor", (long) 4, 0, 0, 0},
9087 { SWIG_PY_INT,     (char *)"DirectColor", (long) 5, 0, 0, 0},
9088 { SWIG_PY_INT,     (char *)"LSBFirst", (long) 0, 0, 0, 0},
9089 { SWIG_PY_INT,     (char *)"MSBFirst", (long) 1, 0, 0, 0},
9090 {0}};
9091
9092 #ifdef __cplusplus
9093 }
9094 #endif
9095
9096 #ifdef __cplusplus
9097 extern "C"
9098 #endif
9099 SWIGEXPORT(void) SWIG_init(void) {
9100     static PyObject *SWIG_globals = 0; 
9101     static int       typeinit = 0;
9102     PyObject *m, *d;
9103     int       i;
9104     if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
9105     m = Py_InitModule((char *) SWIG_name, SwigMethods);
9106     d = PyModule_GetDict(m);
9107     
9108     if (!typeinit) {
9109         for (i = 0; swig_types_initial[i]; i++) {
9110             swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
9111         }
9112         typeinit = 1;
9113     }
9114     SWIG_InstallConstants(d,swig_const_table);
9115     
9116     PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
9117     SWIG_addvarlink(SWIG_globals,(char*)"BSENTINEL",_wrap_BSENTINEL_get, _wrap_BSENTINEL_set);
9118 }
9119