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