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