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