]> icculus.org git repositories - mikachu/openbox.git/blob - src/openbox_wrap.cc
add the shadow class wrappers
[mikachu/openbox.git] / src / openbox_wrap.cc
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 1.3.17u-20021226-0459
4  * 
5  * This file is not intended to be easily readable and contains a number of 
6  * coding conventions designed to improve portability and efficiency. Do not make
7  * changes to this file unless you know what you are doing--modify the SWIG 
8  * interface file instead. 
9  * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12
13 #ifdef __cplusplus
14 template<class T> class SwigValueWrapper {
15     T *tt;
16 public:
17     inline SwigValueWrapper() : tt(0) { }
18     inline ~SwigValueWrapper() { if (tt) delete tt; } 
19     inline SwigValueWrapper& operator=(const T& t) { tt = new T(t); return *this; }
20     inline operator T&() const { return *tt; }
21     inline T *operator&() { return tt; }
22 };                                                    
23 #endif
24
25
26 #include "Python.h"
27
28 /***********************************************************************
29  * common.swg
30  *
31  *     This file contains generic SWIG runtime support for pointer
32  *     type checking as well as a few commonly used macros to control
33  *     external linkage.
34  *
35  * Author : David Beazley (beazley@cs.uchicago.edu)
36  *
37  * Copyright (c) 1999-2000, The University of Chicago
38  * 
39  * This file may be freely redistributed without license or fee provided
40  * this copyright message remains intact.
41  ************************************************************************/
42
43 #include <string.h>
44
45 #if defined(_WIN32) || defined(__WIN32__)
46 #       if defined(_MSC_VER)
47 #               if defined(STATIC_LINKED)
48 #                       define SWIGEXPORT(a) a
49 #                       define SWIGIMPORT(a) extern a
50 #               else
51 #                       define SWIGEXPORT(a) __declspec(dllexport) a
52 #                       define SWIGIMPORT(a) extern a
53 #               endif
54 #       else
55 #               if defined(__BORLANDC__)
56 #                       define SWIGEXPORT(a) a _export
57 #                       define SWIGIMPORT(a) a _export
58 #               else
59 #                       define SWIGEXPORT(a) a
60 #                       define SWIGIMPORT(a) a
61 #               endif
62 #       endif
63 #else
64 #       define SWIGEXPORT(a) a
65 #       define SWIGIMPORT(a) a
66 #endif
67
68 #ifdef SWIG_GLOBAL
69 #define SWIGRUNTIME(a) SWIGEXPORT(a)
70 #else
71 #define SWIGRUNTIME(a) static a
72 #endif
73
74 #ifdef __cplusplus
75 extern "C" {
76 #endif
77
78 typedef void *(*swig_converter_func)(void *);
79 typedef struct swig_type_info *(*swig_dycast_func)(void **);
80
81 typedef struct swig_type_info {
82   const char             *name;                 
83   swig_converter_func     converter;
84   const char             *str;
85   void                   *clientdata;   
86   swig_dycast_func        dcast;
87   struct swig_type_info  *next;
88   struct swig_type_info  *prev;
89 } swig_type_info;
90
91 #ifdef SWIG_NOINCLUDE
92
93 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
94 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
95 SWIGIMPORT(void *)           SWIG_TypeCast(swig_type_info *, void *);
96 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
97 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
98 SWIGIMPORT(void)             SWIG_TypeClientData(swig_type_info *, void *);
99
100 #else
101
102 static swig_type_info *swig_type_list = 0;
103
104 /* Register a type mapping with the type-checking */
105 SWIGRUNTIME(swig_type_info *)
106 SWIG_TypeRegister(swig_type_info *ti)
107 {
108   swig_type_info *tc, *head, *ret, *next;
109   /* Check to see if this type has already been registered */
110   tc = swig_type_list;
111   while (tc) {
112     if (strcmp(tc->name, ti->name) == 0) {
113       /* Already exists in the table.  Just add additional types to the list */
114       if (tc->clientdata) ti->clientdata = tc->clientdata;      
115       head = tc;
116       next = tc->next;
117       goto l1;
118     }
119     tc = tc->prev;
120   }
121   head = ti;
122   next = 0;
123
124   /* Place in list */
125   ti->prev = swig_type_list;
126   swig_type_list = ti;
127
128   /* Build linked lists */
129  l1:
130   ret = head;
131   tc = ti + 1;
132   /* Patch up the rest of the links */
133   while (tc->name) {
134     head->next = tc;
135     tc->prev = head;
136     head = tc;
137     tc++;
138   }
139   head->next = next;
140   return ret;
141 }
142
143 /* Check the typename */
144 SWIGRUNTIME(swig_type_info *) 
145 SWIG_TypeCheck(char *c, swig_type_info *ty)
146 {
147   swig_type_info *s;
148   if (!ty) return 0;        /* Void pointer */
149   s = ty->next;             /* First element always just a name */
150   do {
151     if (strcmp(s->name,c) == 0) {
152       if (s == ty->next) return s;
153       /* Move s to the top of the linked list */
154       s->prev->next = s->next;
155       if (s->next) {
156         s->next->prev = s->prev;
157       }
158       /* Insert s as second element in the list */
159       s->next = ty->next;
160       if (ty->next) ty->next->prev = s;
161       ty->next = s;
162       return s;
163     }
164     s = s->next;
165   } while (s && (s != ty->next));
166   return 0;
167 }
168
169 /* Cast a pointer up an inheritance hierarchy */
170 SWIGRUNTIME(void *) 
171 SWIG_TypeCast(swig_type_info *ty, void *ptr) 
172 {
173   if ((!ty) || (!ty->converter)) return ptr;
174   return (*ty->converter)(ptr);
175 }
176
177 /* Dynamic pointer casting. Down an inheritance hierarchy */
178 SWIGRUNTIME(swig_type_info *) 
179 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) 
180 {
181   swig_type_info *lastty = ty;
182   if (!ty || !ty->dcast) return ty;
183   while (ty && (ty->dcast)) {
184      ty = (*ty->dcast)(ptr);
185      if (ty) lastty = ty;
186   }
187   return lastty;
188 }
189
190 /* Search for a swig_type_info structure */
191 SWIGRUNTIME(swig_type_info *)
192 SWIG_TypeQuery(const char *name) {
193   swig_type_info *ty = swig_type_list;
194   while (ty) {
195     if (ty->str && (strcmp(name,ty->str) == 0)) return ty;
196     if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
197     ty = ty->prev;
198   }
199   return 0;
200 }
201
202 /* Set the clientdata field for a type */
203 SWIGRUNTIME(void)
204 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
205   swig_type_info *tc, *equiv;
206   if (ti->clientdata == clientdata) return;
207   ti->clientdata = clientdata;
208   equiv = ti->next;
209   while (equiv) {
210     if (!equiv->converter) {
211       tc = swig_type_list;
212       while (tc) {
213         if ((strcmp(tc->name, equiv->name) == 0))
214           SWIG_TypeClientData(tc,clientdata);
215         tc = tc->prev;
216       }
217     }
218     equiv = equiv->next;
219   }
220 }
221 #endif
222
223 #ifdef __cplusplus
224 }
225
226 #endif
227
228 /***********************************************************************
229  * python.swg
230  *
231  *     This file contains the runtime support for Python modules
232  *     and includes code for managing global variables and pointer
233  *     type checking.
234  *
235  * Author : David Beazley (beazley@cs.uchicago.edu)
236  ************************************************************************/
237
238 #include "Python.h"
239
240 #ifdef __cplusplus
241 extern "C" {
242 #endif
243
244 #define SWIG_PY_INT     1
245 #define SWIG_PY_FLOAT   2
246 #define SWIG_PY_STRING  3
247 #define SWIG_PY_POINTER 4
248 #define SWIG_PY_BINARY  5
249
250 /* Flags for pointer conversion */
251
252 #define SWIG_POINTER_EXCEPTION     0x1
253 #define SWIG_POINTER_DISOWN        0x2
254
255 /* Exception handling in wrappers */
256 #define SWIG_fail   goto fail
257
258 /* Constant information structure */
259 typedef struct swig_const_info {
260     int type;
261     char *name;
262     long lvalue;
263     double dvalue;
264     void   *pvalue;
265     swig_type_info **ptype;
266 } swig_const_info;
267
268 #ifdef SWIG_NOINCLUDE
269
270 SWIGEXPORT(PyObject *)        SWIG_newvarlink();
271 SWIGEXPORT(void)              SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
272 SWIGEXPORT(int)               SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int);
273 SWIGEXPORT(int)               SWIG_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
274 SWIGEXPORT(char *)            SWIG_PackData(char *c, void *, int);
275 SWIGEXPORT(char *)            SWIG_UnpackData(char *c, void *, int);
276 SWIGEXPORT(PyObject *)        SWIG_NewPointerObj(void *, swig_type_info *,int own);
277 SWIGEXPORT(PyObject *)        SWIG_NewPackedObj(void *, int sz, swig_type_info *);
278 SWIGEXPORT(void)              SWIG_InstallConstants(PyObject *d, swig_const_info constants[]);
279 #else
280
281 /* -----------------------------------------------------------------------------
282  * global variable support code.
283  * ----------------------------------------------------------------------------- */
284
285 typedef struct swig_globalvar {   
286   char       *name;                  /* Name of global variable */
287   PyObject *(*get_attr)(void);       /* Return the current value */
288   int       (*set_attr)(PyObject *); /* Set the value */
289   struct swig_globalvar *next;
290 } swig_globalvar;
291
292 typedef struct swig_varlinkobject {
293   PyObject_HEAD
294   swig_globalvar *vars;
295 } swig_varlinkobject;
296
297 static PyObject *
298 swig_varlink_repr(swig_varlinkobject *v) {
299   v = v;
300   return PyString_FromString("<Global variables>");
301 }
302
303 static int
304 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
305   swig_globalvar  *var;
306   flags = flags;
307   fprintf(fp,"Global variables { ");
308   for (var = v->vars; var; var=var->next) {
309     fprintf(fp,"%s", var->name);
310     if (var->next) fprintf(fp,", ");
311   }
312   fprintf(fp," }\n");
313   return 0;
314 }
315
316 static PyObject *
317 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
318   swig_globalvar *var = v->vars;
319   while (var) {
320     if (strcmp(var->name,n) == 0) {
321       return (*var->get_attr)();
322     }
323     var = var->next;
324   }
325   PyErr_SetString(PyExc_NameError,"Unknown C global variable");
326   return NULL;
327 }
328
329 static int
330 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
331   swig_globalvar *var = v->vars;
332   while (var) {
333     if (strcmp(var->name,n) == 0) {
334       return (*var->set_attr)(p);
335     }
336     var = var->next;
337   }
338   PyErr_SetString(PyExc_NameError,"Unknown C global variable");
339   return 1;
340 }
341
342 statichere PyTypeObject varlinktype = {
343   PyObject_HEAD_INIT(0)              
344   0,
345   (char *)"swigvarlink",                      /* Type name    */
346   sizeof(swig_varlinkobject),         /* Basic size   */
347   0,                                  /* Itemsize     */
348   0,                                  /* Deallocator  */ 
349   (printfunc) swig_varlink_print,     /* Print        */
350   (getattrfunc) swig_varlink_getattr, /* get attr     */
351   (setattrfunc) swig_varlink_setattr, /* Set attr     */
352   0,                                  /* tp_compare   */
353   (reprfunc) swig_varlink_repr,       /* tp_repr      */    
354   0,                                  /* tp_as_number */
355   0,                                  /* tp_as_mapping*/
356   0,                                  /* tp_hash      */
357 };
358
359 /* Create a variable linking object for use later */
360 SWIGRUNTIME(PyObject *)
361 SWIG_newvarlink(void) {
362   swig_varlinkobject *result = 0;
363   result = PyMem_NEW(swig_varlinkobject,1);
364   varlinktype.ob_type = &PyType_Type;    /* Patch varlinktype into a PyType */
365   result->ob_type = &varlinktype;
366   result->vars = 0;
367   result->ob_refcnt = 0;
368   Py_XINCREF((PyObject *) result);
369   return ((PyObject*) result);
370 }
371
372 SWIGRUNTIME(void)
373 SWIG_addvarlink(PyObject *p, char *name,
374            PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
375   swig_varlinkobject *v;
376   swig_globalvar *gv;
377   v= (swig_varlinkobject *) p;
378   gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
379   gv->name = (char *) malloc(strlen(name)+1);
380   strcpy(gv->name,name);
381   gv->get_attr = get_attr;
382   gv->set_attr = set_attr;
383   gv->next = v->vars;
384   v->vars = gv;
385 }
386
387 /* Pack binary data into a string */
388 SWIGRUNTIME(char *)
389 SWIG_PackData(char *c, void *ptr, int sz) {
390   static char hex[17] = "0123456789abcdef";
391   int i;
392   unsigned char *u = (unsigned char *) ptr;
393   register unsigned char uu;
394   for (i = 0; i < sz; i++,u++) {
395     uu = *u;
396     *(c++) = hex[(uu & 0xf0) >> 4];
397     *(c++) = hex[uu & 0xf];
398   }
399   return c;
400 }
401
402 /* Unpack binary data from a string */
403 SWIGRUNTIME(char *)
404 SWIG_UnpackData(char *c, void *ptr, int sz) {
405   register unsigned char uu = 0;
406   register int d;
407   unsigned char *u = (unsigned char *) ptr;
408   int i;
409   for (i = 0; i < sz; i++, u++) {
410     d = *(c++);
411     if ((d >= '0') && (d <= '9'))
412       uu = ((d - '0') << 4);
413     else if ((d >= 'a') && (d <= 'f'))
414       uu = ((d - ('a'-10)) << 4);
415     d = *(c++);
416     if ((d >= '0') && (d <= '9'))
417       uu |= (d - '0');
418     else if ((d >= 'a') && (d <= 'f'))
419       uu |= (d - ('a'-10));
420     *u = uu;
421   }
422   return c;
423 }
424
425 /* Convert a pointer value */
426 SWIGRUNTIME(int)
427 SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
428   swig_type_info *tc;
429   char  *c;
430   static PyObject *SWIG_this = 0;
431   int    newref = 0;
432   PyObject  *pyobj = 0;
433
434   if (!obj) return 0;
435   if (obj == Py_None) {
436     *ptr = 0;
437     return 0;
438   }
439 #ifdef SWIG_COBJECT_TYPES
440   if (!(PyCObject_Check(obj))) {
441     if (!SWIG_this)
442       SWIG_this = PyString_FromString("this");
443     pyobj = obj;
444     obj = PyObject_GetAttr(obj,SWIG_this);
445     newref = 1;
446     if (!obj) goto type_error;
447     if (!PyCObject_Check(obj)) {
448       Py_DECREF(obj);
449       goto type_error;
450     }
451   }  
452   *ptr = PyCObject_AsVoidPtr(obj);
453   c = (char *) PyCObject_GetDesc(obj);
454   if (newref) Py_DECREF(obj);
455   goto cobject;
456 #else
457   if (!(PyString_Check(obj))) {
458     if (!SWIG_this)
459       SWIG_this = PyString_FromString("this");
460     pyobj = obj;
461     obj = PyObject_GetAttr(obj,SWIG_this);
462     newref = 1;
463     if (!obj) goto type_error;
464     if (!PyString_Check(obj)) {
465       Py_DECREF(obj);
466       goto type_error;
467     }
468   } 
469   c = PyString_AsString(obj);
470   /* Pointer values must start with leading underscore */
471   if (*c != '_') {
472     *ptr = (void *) 0;
473     if (strcmp(c,"NULL") == 0) {
474       if (newref) { Py_DECREF(obj); }
475       return 0;
476     } else {
477       if (newref) { Py_DECREF(obj); }
478       goto type_error;
479     }
480   }
481   c++;
482   c = SWIG_UnpackData(c,ptr,sizeof(void *));
483   if (newref) { Py_DECREF(obj); }
484 #endif
485
486 #ifdef SWIG_COBJECT_TYPES
487 cobject:
488 #endif
489
490   if (ty) {
491     tc = SWIG_TypeCheck(c,ty);
492     if (!tc) goto type_error;
493     *ptr = SWIG_TypeCast(tc,(void*) *ptr);
494   }
495
496   if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
497       PyObject *zero = PyInt_FromLong(0);
498       PyObject_SetAttrString(pyobj,(char*)"thisown",zero);
499       Py_DECREF(zero);
500   }
501   return 0;
502
503 type_error:
504   if (flags & SWIG_POINTER_EXCEPTION) {
505     if (ty) {
506       char *temp = (char *) malloc(64+strlen(ty->name));
507       sprintf(temp,"Type error. Expected %s", ty->name);
508       PyErr_SetString(PyExc_TypeError, temp);
509       free((char *) temp);
510     } else {
511       PyErr_SetString(PyExc_TypeError,"Expected a pointer");
512     }
513   }
514   return -1;
515 }
516
517 /* Convert a packed value value */
518 SWIGRUNTIME(int)
519 SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
520   swig_type_info *tc;
521   char  *c;
522
523   if ((!obj) || (!PyString_Check(obj))) goto type_error;
524   c = PyString_AsString(obj);
525   /* Pointer values must start with leading underscore */
526   if (*c != '_') goto type_error;
527   c++;
528   c = SWIG_UnpackData(c,ptr,sz);
529   if (ty) {
530     tc = SWIG_TypeCheck(c,ty);
531     if (!tc) goto type_error;
532   }
533   return 0;
534
535 type_error:
536
537   if (flags) {
538     if (ty) {
539       char *temp = (char *) malloc(64+strlen(ty->name));
540       sprintf(temp,"Type error. Expected %s", ty->name);
541       PyErr_SetString(PyExc_TypeError, temp);
542       free((char *) temp);
543     } else {
544       PyErr_SetString(PyExc_TypeError,"Expected a pointer");
545     }
546   }
547   return -1;
548 }
549
550 /* Create a new pointer object */
551 SWIGRUNTIME(PyObject *)
552 SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
553   PyObject *robj;
554   if (!ptr) {
555     Py_INCREF(Py_None);
556     return Py_None;
557   }
558 #ifdef SWIG_COBJECT_TYPES
559   robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) type->name, NULL);
560 #else
561   {
562     char result[1024];
563     char *r = result;
564     *(r++) = '_';
565     r = SWIG_PackData(r,&ptr,sizeof(void *));
566     strcpy(r,type->name);
567     robj = PyString_FromString(result);
568   }
569 #endif
570   if (!robj || (robj == Py_None)) return robj;
571   if (type->clientdata) {
572     PyObject *inst;
573     PyObject *args = Py_BuildValue((char*)"(O)", robj);
574     Py_DECREF(robj);
575     inst = PyObject_CallObject((PyObject *) type->clientdata, args);
576     Py_DECREF(args);
577     if (inst) {
578       if (own) {
579         PyObject *n = PyInt_FromLong(1);
580         PyObject_SetAttrString(inst,(char*)"thisown",n);
581         Py_DECREF(n);
582       }
583       robj = inst;
584     }
585   }
586   return robj;
587 }
588
589 SWIGRUNTIME(PyObject *)
590 SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
591   char result[1024];
592   char *r = result;
593   if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
594   *(r++) = '_';
595   r = SWIG_PackData(r,ptr,sz);
596   strcpy(r,type->name);
597   return PyString_FromString(result);
598 }
599
600 /* Install Constants */
601 SWIGRUNTIME(void)
602 SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
603   int i;
604   PyObject *obj;
605   for (i = 0; constants[i].type; i++) {
606     switch(constants[i].type) {
607     case SWIG_PY_INT:
608       obj = PyInt_FromLong(constants[i].lvalue);
609       break;
610     case SWIG_PY_FLOAT:
611       obj = PyFloat_FromDouble(constants[i].dvalue);
612       break;
613     case SWIG_PY_STRING:
614       obj = PyString_FromString((char *) constants[i].pvalue);
615       break;
616     case SWIG_PY_POINTER:
617       obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
618       break;
619     case SWIG_PY_BINARY:
620       obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
621       break;
622     default:
623       obj = 0;
624       break;
625     }
626     if (obj) {
627       PyDict_SetItemString(d,constants[i].name,obj);
628       Py_DECREF(obj);
629     }
630   }
631 }
632
633 #endif
634
635 #ifdef __cplusplus
636 }
637 #endif
638
639
640
641
642
643
644
645
646 /* -------- TYPES TABLE (BEGIN) -------- */
647
648 #define  SWIGTYPE_p_otk__OBTimerQueueManager swig_types[0] 
649 #define  SWIGTYPE_p_ob__OBActions swig_types[1] 
650 #define  SWIGTYPE_p_ob__Cursors swig_types[2] 
651 #define  SWIGTYPE_p_ob__OBScreen swig_types[3] 
652 #define  SWIGTYPE_p_otk__Style swig_types[4] 
653 #define  SWIGTYPE_p_ob__OBFrame swig_types[5] 
654 #define  SWIGTYPE_p_XReparentEvent swig_types[6] 
655 #define  SWIGTYPE_p_ob__MouseData swig_types[7] 
656 #define  SWIGTYPE_p_ob__OBClient swig_types[8] 
657 #define  SWIGTYPE_p_ob__Openbox swig_types[9] 
658 #define  SWIGTYPE_p_otk__Strut swig_types[10] 
659 #define  SWIGTYPE_p_XRectangle swig_types[11] 
660 #define  SWIGTYPE_p_ob__KeyData swig_types[12] 
661 #define  SWIGTYPE_p_XMapRequestEvent swig_types[13] 
662 #define  SWIGTYPE_p_XConfigureRequestEvent swig_types[14] 
663 #define  SWIGTYPE_p_otk__Point swig_types[15] 
664 #define  SWIGTYPE_p_otk__OtkEventHandler swig_types[16] 
665 #define  SWIGTYPE_p_std__string swig_types[17] 
666 #define  SWIGTYPE_p_otk__Rect swig_types[18] 
667 #define  SWIGTYPE_p_ob__OBWidget swig_types[19] 
668 #define  SWIGTYPE_p_XClientMessageEvent swig_types[20] 
669 #define  SWIGTYPE_p_XFocusChangeEvent swig_types[21] 
670 #define  SWIGTYPE_p_otk__OBProperty swig_types[22] 
671 #define  SWIGTYPE_p_ob__EventData swig_types[23] 
672 #define  SWIGTYPE_p_otk__OtkEventDispatcher swig_types[24] 
673 #define  SWIGTYPE_p_XPropertyEvent swig_types[25] 
674 #define  SWIGTYPE_p_XDestroyWindowEvent swig_types[26] 
675 #define  SWIGTYPE_p_otk__BImageControl swig_types[27] 
676 #define  SWIGTYPE_p_PyObject swig_types[28] 
677 #define  SWIGTYPE_p_ob__OBBindings swig_types[29] 
678 #define  SWIGTYPE_p_ob__MwmHints swig_types[30] 
679 #define  SWIGTYPE_p_XUnmapEvent swig_types[31] 
680 static swig_type_info *swig_types[33];
681
682 /* -------- TYPES TABLE (END) -------- */
683
684
685 /*-----------------------------------------------
686               @(target):= _openbox.so
687   ------------------------------------------------*/
688 #define SWIG_init    init_openbox
689
690 #define SWIG_name    "_openbox"
691
692 #ifdef HAVE_CONFIG_H
693 #  include "../config.h"
694 #endif
695
696 #include "openbox.hh"
697 #include "screen.hh"
698 #include "client.hh"
699 #include "bindings.hh"
700 #include "actions.hh"
701 #include "python.hh"
702 #include "otk/display.hh"
703
704
705 #define  SWIG_MemoryError    1
706 #define  SWIG_IOError        2
707 #define  SWIG_RuntimeError   3
708 #define  SWIG_IndexError     4
709 #define  SWIG_TypeError      5
710 #define  SWIG_DivisionByZero 6
711 #define  SWIG_OverflowError  7
712 #define  SWIG_SyntaxError    8
713 #define  SWIG_ValueError     9
714 #define  SWIG_SystemError   10
715 #define  SWIG_UnknownError  99
716
717
718 static void _SWIG_exception(int code, const char *msg) {
719   switch(code) {
720   case SWIG_MemoryError:
721     PyErr_SetString(PyExc_MemoryError,msg);
722     break;
723   case SWIG_IOError:
724     PyErr_SetString(PyExc_IOError,msg);
725     break;
726   case SWIG_RuntimeError:
727     PyErr_SetString(PyExc_RuntimeError,msg);
728     break;
729   case SWIG_IndexError:
730     PyErr_SetString(PyExc_IndexError,msg);
731     break;
732   case SWIG_TypeError:
733     PyErr_SetString(PyExc_TypeError,msg);
734     break;
735   case SWIG_DivisionByZero:
736     PyErr_SetString(PyExc_ZeroDivisionError,msg);
737     break;
738   case SWIG_OverflowError:
739     PyErr_SetString(PyExc_OverflowError,msg);
740     break;
741   case SWIG_SyntaxError:
742     PyErr_SetString(PyExc_SyntaxError,msg);
743     break;
744   case SWIG_ValueError:
745     PyErr_SetString(PyExc_ValueError,msg);
746     break;
747   case SWIG_SystemError:
748     PyErr_SetString(PyExc_SystemError,msg);
749     break;
750   default:
751     PyErr_SetString(PyExc_RuntimeError,msg);
752     break;
753   }
754 }
755
756 #define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
757
758
759 #include <string>
760
761
762 #include <string>
763
764 static PyObject* SwigInt_FromBool(bool b) {
765     return PyInt_FromLong(b ? 1L : 0L);
766 }
767 static double SwigNumber_Check(PyObject* o) {
768     return PyFloat_Check(o) || PyInt_Check(o);
769 }
770 static double SwigNumber_AsDouble(PyObject* o) {
771     return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o)));
772 }
773 static PyObject* SwigString_FromString(const std::string& s) {
774     return PyString_FromString(s.c_str());
775 }
776 static std::string SwigString_AsString(PyObject* o) {
777     return std::string(PyString_AsString(o));
778 }
779
780
781 #include <vector>
782 #include <algorithm>
783 #include <stdexcept>
784
785
786   ob::Openbox *Openbox_instance() { return ob::Openbox::instance; }
787
788
789 namespace ob {
790 void python_callback(PyObject *func, MouseData *data)
791 {
792   PyObject *arglist;
793   PyObject *result;
794
795   arglist = Py_BuildValue("(O)", SWIG_NewPointerObj((void *) data,
796                                                     SWIGTYPE_p_ob__MouseData,
797                                                     0));
798   
799   // call the callback
800   result = PyEval_CallObject(func, arglist);
801   if (!result || PyErr_Occurred()) {
802     // an exception occured in the script, display it
803     PyErr_Print();
804   }
805
806   Py_XDECREF(result);
807   Py_DECREF(arglist);
808 }
809
810 void python_callback(PyObject *func, EventData *data)
811 {
812   PyObject *arglist;
813   PyObject *result;
814
815   arglist = Py_BuildValue("(O)", SWIG_NewPointerObj((void *) data,
816                                                     SWIGTYPE_p_ob__EventData,
817                                                     0));
818   
819   // call the callback
820   result = PyEval_CallObject(func, arglist);
821   if (!result || PyErr_Occurred()) {
822     // an exception occured in the script, display it
823     PyErr_Print();
824   }
825
826   Py_XDECREF(result);
827   Py_DECREF(arglist);
828 }
829
830 void python_callback(PyObject *func, KeyData *data)
831 {
832   PyObject *arglist;
833   PyObject *result;
834
835   arglist = Py_BuildValue("(O)", SWIG_NewPointerObj((void *) data,
836                                                     SWIGTYPE_p_ob__KeyData,
837                                                     0));
838   
839   // call the callback
840   result = PyEval_CallObject(func, arglist);
841   if (!result || PyErr_Occurred()) {
842     // an exception occured in the script, display it
843     PyErr_Print();
844   }
845
846   Py_XDECREF(result);
847   Py_DECREF(arglist);
848 }
849
850 }
851
852
853   #include <iterator>
854
855 ob::OBClient *ob_OBScreen_client(ob::OBScreen *self,int i){
856     if (i >= (int)self->clients.size())
857       return NULL;
858     ob::OBClient::List::iterator it = self->clients.begin();
859     std::advance(it,i);
860     return *it;
861   }
862 int ob_OBScreen_clientCount(ob::OBScreen const *self){
863     return (int) self->clients.size();
864   }
865 #ifdef __cplusplus
866 extern "C" {
867 #endif
868 static PyObject *_wrap_Openbox_instance(PyObject *self, PyObject *args) {
869     PyObject *resultobj;
870     ob::Openbox *result;
871     
872     if(!PyArg_ParseTuple(args,(char *)":Openbox_instance")) goto fail;
873     result = (ob::Openbox *)Openbox_instance();
874     
875     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Openbox, 0);
876     return resultobj;
877     fail:
878     return NULL;
879 }
880
881
882 static PyObject *_wrap_new_Point__SWIG_0(PyObject *self, PyObject *args) {
883     PyObject *resultobj;
884     otk::Point *result;
885     
886     if(!PyArg_ParseTuple(args,(char *)":new_Point")) goto fail;
887     result = (otk::Point *)new otk::Point();
888     
889     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Point, 1);
890     return resultobj;
891     fail:
892     return NULL;
893 }
894
895
896 static PyObject *_wrap_new_Point__SWIG_1(PyObject *self, PyObject *args) {
897     PyObject *resultobj;
898     int arg1 ;
899     int arg2 ;
900     otk::Point *result;
901     
902     if(!PyArg_ParseTuple(args,(char *)"ii:new_Point",&arg1,&arg2)) goto fail;
903     result = (otk::Point *)new otk::Point(arg1,arg2);
904     
905     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Point, 1);
906     return resultobj;
907     fail:
908     return NULL;
909 }
910
911
912 static PyObject *_wrap_new_Point(PyObject *self, PyObject *args) {
913     int argc;
914     PyObject *argv[3];
915     int ii;
916     
917     argc = PyObject_Length(args);
918     for (ii = 0; (ii < argc) && (ii < 2); ii++) {
919         argv[ii] = PyTuple_GetItem(args,ii);
920     }
921     if (argc == 0) {
922         return _wrap_new_Point__SWIG_0(self,args);
923     }
924     if (argc == 2) {
925         int _v;
926         {
927             _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
928         }
929         if (_v) {
930             {
931                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
932             }
933             if (_v) {
934                 return _wrap_new_Point__SWIG_1(self,args);
935             }
936         }
937     }
938     
939     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Point'");
940     return NULL;
941 }
942
943
944 static PyObject *_wrap_Point_setX(PyObject *self, PyObject *args) {
945     PyObject *resultobj;
946     otk::Point *arg1 = (otk::Point *) 0 ;
947     int arg2 ;
948     PyObject * obj0  = 0 ;
949     
950     if(!PyArg_ParseTuple(args,(char *)"Oi:Point_setX",&obj0,&arg2)) goto fail;
951     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
952     (arg1)->setX(arg2);
953     
954     Py_INCREF(Py_None); resultobj = Py_None;
955     return resultobj;
956     fail:
957     return NULL;
958 }
959
960
961 static PyObject *_wrap_Point_x(PyObject *self, PyObject *args) {
962     PyObject *resultobj;
963     otk::Point *arg1 = (otk::Point *) 0 ;
964     int result;
965     PyObject * obj0  = 0 ;
966     
967     if(!PyArg_ParseTuple(args,(char *)"O:Point_x",&obj0)) goto fail;
968     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
969     result = (int)((otk::Point const *)arg1)->x();
970     
971     resultobj = PyInt_FromLong((long)result);
972     return resultobj;
973     fail:
974     return NULL;
975 }
976
977
978 static PyObject *_wrap_Point_setY(PyObject *self, PyObject *args) {
979     PyObject *resultobj;
980     otk::Point *arg1 = (otk::Point *) 0 ;
981     int arg2 ;
982     PyObject * obj0  = 0 ;
983     
984     if(!PyArg_ParseTuple(args,(char *)"Oi:Point_setY",&obj0,&arg2)) goto fail;
985     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
986     (arg1)->setY(arg2);
987     
988     Py_INCREF(Py_None); resultobj = Py_None;
989     return resultobj;
990     fail:
991     return NULL;
992 }
993
994
995 static PyObject *_wrap_Point_y(PyObject *self, PyObject *args) {
996     PyObject *resultobj;
997     otk::Point *arg1 = (otk::Point *) 0 ;
998     int result;
999     PyObject * obj0  = 0 ;
1000     
1001     if(!PyArg_ParseTuple(args,(char *)"O:Point_y",&obj0)) goto fail;
1002     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1003     result = (int)((otk::Point const *)arg1)->y();
1004     
1005     resultobj = PyInt_FromLong((long)result);
1006     return resultobj;
1007     fail:
1008     return NULL;
1009 }
1010
1011
1012 static PyObject *_wrap_Point_setPoint(PyObject *self, PyObject *args) {
1013     PyObject *resultobj;
1014     otk::Point *arg1 = (otk::Point *) 0 ;
1015     int arg2 ;
1016     int arg3 ;
1017     PyObject * obj0  = 0 ;
1018     
1019     if(!PyArg_ParseTuple(args,(char *)"Oii:Point_setPoint",&obj0,&arg2,&arg3)) goto fail;
1020     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1021     (arg1)->setPoint(arg2,arg3);
1022     
1023     Py_INCREF(Py_None); resultobj = Py_None;
1024     return resultobj;
1025     fail:
1026     return NULL;
1027 }
1028
1029
1030 static PyObject * Point_swigregister(PyObject *self, PyObject *args) {
1031     PyObject *obj;
1032     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1033     SWIG_TypeClientData(SWIGTYPE_p_otk__Point, obj);
1034     Py_INCREF(obj);
1035     return Py_BuildValue((char *)"");
1036 }
1037 static PyObject *_wrap_new_Rect__SWIG_0(PyObject *self, PyObject *args) {
1038     PyObject *resultobj;
1039     otk::Rect *result;
1040     
1041     if(!PyArg_ParseTuple(args,(char *)":new_Rect")) goto fail;
1042     result = (otk::Rect *)new otk::Rect();
1043     
1044     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
1045     return resultobj;
1046     fail:
1047     return NULL;
1048 }
1049
1050
1051 static PyObject *_wrap_new_Rect__SWIG_1(PyObject *self, PyObject *args) {
1052     PyObject *resultobj;
1053     int arg1 ;
1054     int arg2 ;
1055     int arg3 ;
1056     int arg4 ;
1057     otk::Rect *result;
1058     
1059     if(!PyArg_ParseTuple(args,(char *)"iiii:new_Rect",&arg1,&arg2,&arg3,&arg4)) goto fail;
1060     result = (otk::Rect *)new otk::Rect(arg1,arg2,arg3,arg4);
1061     
1062     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
1063     return resultobj;
1064     fail:
1065     return NULL;
1066 }
1067
1068
1069 static PyObject *_wrap_new_Rect__SWIG_2(PyObject *self, PyObject *args) {
1070     PyObject *resultobj;
1071     otk::Point *arg1 = 0 ;
1072     otk::Point *arg2 = 0 ;
1073     otk::Rect *result;
1074     PyObject * obj0  = 0 ;
1075     PyObject * obj1  = 0 ;
1076     
1077     if(!PyArg_ParseTuple(args,(char *)"OO:new_Rect",&obj0,&obj1)) goto fail;
1078     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1079     if (arg1 == NULL) {
1080         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
1081     }
1082     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1083     if (arg2 == NULL) {
1084         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
1085     }
1086     result = (otk::Rect *)new otk::Rect((otk::Point const &)*arg1,(otk::Point const &)*arg2);
1087     
1088     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
1089     return resultobj;
1090     fail:
1091     return NULL;
1092 }
1093
1094
1095 static PyObject *_wrap_new_Rect__SWIG_3(PyObject *self, PyObject *args) {
1096     PyObject *resultobj;
1097     otk::Rect *arg1 = 0 ;
1098     otk::Rect *result;
1099     PyObject * obj0  = 0 ;
1100     
1101     if(!PyArg_ParseTuple(args,(char *)"O:new_Rect",&obj0)) goto fail;
1102     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1103     if (arg1 == NULL) {
1104         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
1105     }
1106     result = (otk::Rect *)new otk::Rect((otk::Rect const &)*arg1);
1107     
1108     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
1109     return resultobj;
1110     fail:
1111     return NULL;
1112 }
1113
1114
1115 static PyObject *_wrap_new_Rect__SWIG_4(PyObject *self, PyObject *args) {
1116     PyObject *resultobj;
1117     XRectangle *arg1 = 0 ;
1118     otk::Rect *result;
1119     PyObject * obj0  = 0 ;
1120     
1121     if(!PyArg_ParseTuple(args,(char *)"O:new_Rect",&obj0)) goto fail;
1122     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_XRectangle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1123     if (arg1 == NULL) {
1124         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
1125     }
1126     result = (otk::Rect *)new otk::Rect((XRectangle const &)*arg1);
1127     
1128     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
1129     return resultobj;
1130     fail:
1131     return NULL;
1132 }
1133
1134
1135 static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args) {
1136     int argc;
1137     PyObject *argv[5];
1138     int ii;
1139     
1140     argc = PyObject_Length(args);
1141     for (ii = 0; (ii < argc) && (ii < 4); ii++) {
1142         argv[ii] = PyTuple_GetItem(args,ii);
1143     }
1144     if (argc == 0) {
1145         return _wrap_new_Rect__SWIG_0(self,args);
1146     }
1147     if (argc == 1) {
1148         int _v;
1149         {
1150             void *ptr;
1151             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
1152                 _v = 0;
1153                 PyErr_Clear();
1154             }else {
1155                 _v = 1;
1156             }
1157         }
1158         if (_v) {
1159             return _wrap_new_Rect__SWIG_3(self,args);
1160         }
1161     }
1162     if (argc == 1) {
1163         int _v;
1164         {
1165             void *ptr;
1166             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_XRectangle, 0) == -1) {
1167                 _v = 0;
1168                 PyErr_Clear();
1169             }else {
1170                 _v = 1;
1171             }
1172         }
1173         if (_v) {
1174             return _wrap_new_Rect__SWIG_4(self,args);
1175         }
1176     }
1177     if (argc == 2) {
1178         int _v;
1179         {
1180             void *ptr;
1181             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
1182                 _v = 0;
1183                 PyErr_Clear();
1184             }else {
1185                 _v = 1;
1186             }
1187         }
1188         if (_v) {
1189             {
1190                 void *ptr;
1191                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
1192                     _v = 0;
1193                     PyErr_Clear();
1194                 }else {
1195                     _v = 1;
1196                 }
1197             }
1198             if (_v) {
1199                 return _wrap_new_Rect__SWIG_2(self,args);
1200             }
1201         }
1202     }
1203     if (argc == 4) {
1204         int _v;
1205         {
1206             _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
1207         }
1208         if (_v) {
1209             {
1210                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1211             }
1212             if (_v) {
1213                 {
1214                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1215                 }
1216                 if (_v) {
1217                     {
1218                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1219                     }
1220                     if (_v) {
1221                         return _wrap_new_Rect__SWIG_1(self,args);
1222                     }
1223                 }
1224             }
1225         }
1226     }
1227     
1228     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Rect'");
1229     return NULL;
1230 }
1231
1232
1233 static PyObject *_wrap_Rect_left(PyObject *self, PyObject *args) {
1234     PyObject *resultobj;
1235     otk::Rect *arg1 = (otk::Rect *) 0 ;
1236     int result;
1237     PyObject * obj0  = 0 ;
1238     
1239     if(!PyArg_ParseTuple(args,(char *)"O:Rect_left",&obj0)) goto fail;
1240     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1241     result = (int)((otk::Rect const *)arg1)->left();
1242     
1243     resultobj = PyInt_FromLong((long)result);
1244     return resultobj;
1245     fail:
1246     return NULL;
1247 }
1248
1249
1250 static PyObject *_wrap_Rect_top(PyObject *self, PyObject *args) {
1251     PyObject *resultobj;
1252     otk::Rect *arg1 = (otk::Rect *) 0 ;
1253     int result;
1254     PyObject * obj0  = 0 ;
1255     
1256     if(!PyArg_ParseTuple(args,(char *)"O:Rect_top",&obj0)) goto fail;
1257     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1258     result = (int)((otk::Rect const *)arg1)->top();
1259     
1260     resultobj = PyInt_FromLong((long)result);
1261     return resultobj;
1262     fail:
1263     return NULL;
1264 }
1265
1266
1267 static PyObject *_wrap_Rect_right(PyObject *self, PyObject *args) {
1268     PyObject *resultobj;
1269     otk::Rect *arg1 = (otk::Rect *) 0 ;
1270     int result;
1271     PyObject * obj0  = 0 ;
1272     
1273     if(!PyArg_ParseTuple(args,(char *)"O:Rect_right",&obj0)) goto fail;
1274     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1275     result = (int)((otk::Rect const *)arg1)->right();
1276     
1277     resultobj = PyInt_FromLong((long)result);
1278     return resultobj;
1279     fail:
1280     return NULL;
1281 }
1282
1283
1284 static PyObject *_wrap_Rect_bottom(PyObject *self, PyObject *args) {
1285     PyObject *resultobj;
1286     otk::Rect *arg1 = (otk::Rect *) 0 ;
1287     int result;
1288     PyObject * obj0  = 0 ;
1289     
1290     if(!PyArg_ParseTuple(args,(char *)"O:Rect_bottom",&obj0)) goto fail;
1291     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1292     result = (int)((otk::Rect const *)arg1)->bottom();
1293     
1294     resultobj = PyInt_FromLong((long)result);
1295     return resultobj;
1296     fail:
1297     return NULL;
1298 }
1299
1300
1301 static PyObject *_wrap_Rect_x(PyObject *self, PyObject *args) {
1302     PyObject *resultobj;
1303     otk::Rect *arg1 = (otk::Rect *) 0 ;
1304     int result;
1305     PyObject * obj0  = 0 ;
1306     
1307     if(!PyArg_ParseTuple(args,(char *)"O:Rect_x",&obj0)) goto fail;
1308     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1309     result = (int)((otk::Rect const *)arg1)->x();
1310     
1311     resultobj = PyInt_FromLong((long)result);
1312     return resultobj;
1313     fail:
1314     return NULL;
1315 }
1316
1317
1318 static PyObject *_wrap_Rect_y(PyObject *self, PyObject *args) {
1319     PyObject *resultobj;
1320     otk::Rect *arg1 = (otk::Rect *) 0 ;
1321     int result;
1322     PyObject * obj0  = 0 ;
1323     
1324     if(!PyArg_ParseTuple(args,(char *)"O:Rect_y",&obj0)) goto fail;
1325     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1326     result = (int)((otk::Rect const *)arg1)->y();
1327     
1328     resultobj = PyInt_FromLong((long)result);
1329     return resultobj;
1330     fail:
1331     return NULL;
1332 }
1333
1334
1335 static PyObject *_wrap_Rect_location(PyObject *self, PyObject *args) {
1336     PyObject *resultobj;
1337     otk::Rect *arg1 = (otk::Rect *) 0 ;
1338     otk::Point result;
1339     PyObject * obj0  = 0 ;
1340     
1341     if(!PyArg_ParseTuple(args,(char *)"O:Rect_location",&obj0)) goto fail;
1342     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1343     result = ((otk::Rect const *)arg1)->location();
1344     
1345     {
1346         otk::Point * resultptr;
1347         resultptr = new otk::Point((otk::Point &) result);
1348         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Point, 1);
1349     }
1350     return resultobj;
1351     fail:
1352     return NULL;
1353 }
1354
1355
1356 static PyObject *_wrap_Rect_setX(PyObject *self, PyObject *args) {
1357     PyObject *resultobj;
1358     otk::Rect *arg1 = (otk::Rect *) 0 ;
1359     int arg2 ;
1360     PyObject * obj0  = 0 ;
1361     
1362     if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setX",&obj0,&arg2)) goto fail;
1363     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1364     (arg1)->setX(arg2);
1365     
1366     Py_INCREF(Py_None); resultobj = Py_None;
1367     return resultobj;
1368     fail:
1369     return NULL;
1370 }
1371
1372
1373 static PyObject *_wrap_Rect_setY(PyObject *self, PyObject *args) {
1374     PyObject *resultobj;
1375     otk::Rect *arg1 = (otk::Rect *) 0 ;
1376     int arg2 ;
1377     PyObject * obj0  = 0 ;
1378     
1379     if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setY",&obj0,&arg2)) goto fail;
1380     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1381     (arg1)->setY(arg2);
1382     
1383     Py_INCREF(Py_None); resultobj = Py_None;
1384     return resultobj;
1385     fail:
1386     return NULL;
1387 }
1388
1389
1390 static PyObject *_wrap_Rect_setPos__SWIG_0(PyObject *self, PyObject *args) {
1391     PyObject *resultobj;
1392     otk::Rect *arg1 = (otk::Rect *) 0 ;
1393     int arg2 ;
1394     int arg3 ;
1395     PyObject * obj0  = 0 ;
1396     
1397     if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_setPos",&obj0,&arg2,&arg3)) goto fail;
1398     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1399     (arg1)->setPos(arg2,arg3);
1400     
1401     Py_INCREF(Py_None); resultobj = Py_None;
1402     return resultobj;
1403     fail:
1404     return NULL;
1405 }
1406
1407
1408 static PyObject *_wrap_Rect_setPos__SWIG_1(PyObject *self, PyObject *args) {
1409     PyObject *resultobj;
1410     otk::Rect *arg1 = (otk::Rect *) 0 ;
1411     otk::Point *arg2 = 0 ;
1412     PyObject * obj0  = 0 ;
1413     PyObject * obj1  = 0 ;
1414     
1415     if(!PyArg_ParseTuple(args,(char *)"OO:Rect_setPos",&obj0,&obj1)) goto fail;
1416     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1417     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1418     if (arg2 == NULL) {
1419         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
1420     }
1421     (arg1)->setPos((otk::Point const &)*arg2);
1422     
1423     Py_INCREF(Py_None); resultobj = Py_None;
1424     return resultobj;
1425     fail:
1426     return NULL;
1427 }
1428
1429
1430 static PyObject *_wrap_Rect_setPos(PyObject *self, PyObject *args) {
1431     int argc;
1432     PyObject *argv[4];
1433     int ii;
1434     
1435     argc = PyObject_Length(args);
1436     for (ii = 0; (ii < argc) && (ii < 3); ii++) {
1437         argv[ii] = PyTuple_GetItem(args,ii);
1438     }
1439     if (argc == 2) {
1440         int _v;
1441         {
1442             void *ptr;
1443             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
1444                 _v = 0;
1445                 PyErr_Clear();
1446             }else {
1447                 _v = 1;
1448             }
1449         }
1450         if (_v) {
1451             {
1452                 void *ptr;
1453                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
1454                     _v = 0;
1455                     PyErr_Clear();
1456                 }else {
1457                     _v = 1;
1458                 }
1459             }
1460             if (_v) {
1461                 return _wrap_Rect_setPos__SWIG_1(self,args);
1462             }
1463         }
1464     }
1465     if (argc == 3) {
1466         int _v;
1467         {
1468             void *ptr;
1469             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
1470                 _v = 0;
1471                 PyErr_Clear();
1472             }else {
1473                 _v = 1;
1474             }
1475         }
1476         if (_v) {
1477             {
1478                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1479             }
1480             if (_v) {
1481                 {
1482                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1483                 }
1484                 if (_v) {
1485                     return _wrap_Rect_setPos__SWIG_0(self,args);
1486                 }
1487             }
1488         }
1489     }
1490     
1491     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setPos'");
1492     return NULL;
1493 }
1494
1495
1496 static PyObject *_wrap_Rect_width(PyObject *self, PyObject *args) {
1497     PyObject *resultobj;
1498     otk::Rect *arg1 = (otk::Rect *) 0 ;
1499     int result;
1500     PyObject * obj0  = 0 ;
1501     
1502     if(!PyArg_ParseTuple(args,(char *)"O:Rect_width",&obj0)) goto fail;
1503     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1504     result = (int)((otk::Rect const *)arg1)->width();
1505     
1506     resultobj = PyInt_FromLong((long)result);
1507     return resultobj;
1508     fail:
1509     return NULL;
1510 }
1511
1512
1513 static PyObject *_wrap_Rect_height(PyObject *self, PyObject *args) {
1514     PyObject *resultobj;
1515     otk::Rect *arg1 = (otk::Rect *) 0 ;
1516     int result;
1517     PyObject * obj0  = 0 ;
1518     
1519     if(!PyArg_ParseTuple(args,(char *)"O:Rect_height",&obj0)) goto fail;
1520     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1521     result = (int)((otk::Rect const *)arg1)->height();
1522     
1523     resultobj = PyInt_FromLong((long)result);
1524     return resultobj;
1525     fail:
1526     return NULL;
1527 }
1528
1529
1530 static PyObject *_wrap_Rect_size(PyObject *self, PyObject *args) {
1531     PyObject *resultobj;
1532     otk::Rect *arg1 = (otk::Rect *) 0 ;
1533     otk::Point result;
1534     PyObject * obj0  = 0 ;
1535     
1536     if(!PyArg_ParseTuple(args,(char *)"O:Rect_size",&obj0)) goto fail;
1537     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1538     result = ((otk::Rect const *)arg1)->size();
1539     
1540     {
1541         otk::Point * resultptr;
1542         resultptr = new otk::Point((otk::Point &) result);
1543         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Point, 1);
1544     }
1545     return resultobj;
1546     fail:
1547     return NULL;
1548 }
1549
1550
1551 static PyObject *_wrap_Rect_setWidth(PyObject *self, PyObject *args) {
1552     PyObject *resultobj;
1553     otk::Rect *arg1 = (otk::Rect *) 0 ;
1554     int arg2 ;
1555     PyObject * obj0  = 0 ;
1556     
1557     if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setWidth",&obj0,&arg2)) goto fail;
1558     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1559     (arg1)->setWidth(arg2);
1560     
1561     Py_INCREF(Py_None); resultobj = Py_None;
1562     return resultobj;
1563     fail:
1564     return NULL;
1565 }
1566
1567
1568 static PyObject *_wrap_Rect_setHeight(PyObject *self, PyObject *args) {
1569     PyObject *resultobj;
1570     otk::Rect *arg1 = (otk::Rect *) 0 ;
1571     int arg2 ;
1572     PyObject * obj0  = 0 ;
1573     
1574     if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setHeight",&obj0,&arg2)) goto fail;
1575     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1576     (arg1)->setHeight(arg2);
1577     
1578     Py_INCREF(Py_None); resultobj = Py_None;
1579     return resultobj;
1580     fail:
1581     return NULL;
1582 }
1583
1584
1585 static PyObject *_wrap_Rect_setSize__SWIG_0(PyObject *self, PyObject *args) {
1586     PyObject *resultobj;
1587     otk::Rect *arg1 = (otk::Rect *) 0 ;
1588     int arg2 ;
1589     int arg3 ;
1590     PyObject * obj0  = 0 ;
1591     
1592     if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_setSize",&obj0,&arg2,&arg3)) goto fail;
1593     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1594     (arg1)->setSize(arg2,arg3);
1595     
1596     Py_INCREF(Py_None); resultobj = Py_None;
1597     return resultobj;
1598     fail:
1599     return NULL;
1600 }
1601
1602
1603 static PyObject *_wrap_Rect_setSize__SWIG_1(PyObject *self, PyObject *args) {
1604     PyObject *resultobj;
1605     otk::Rect *arg1 = (otk::Rect *) 0 ;
1606     otk::Point *arg2 = 0 ;
1607     PyObject * obj0  = 0 ;
1608     PyObject * obj1  = 0 ;
1609     
1610     if(!PyArg_ParseTuple(args,(char *)"OO:Rect_setSize",&obj0,&obj1)) goto fail;
1611     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1612     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1613     if (arg2 == NULL) {
1614         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
1615     }
1616     (arg1)->setSize((otk::Point const &)*arg2);
1617     
1618     Py_INCREF(Py_None); resultobj = Py_None;
1619     return resultobj;
1620     fail:
1621     return NULL;
1622 }
1623
1624
1625 static PyObject *_wrap_Rect_setSize(PyObject *self, PyObject *args) {
1626     int argc;
1627     PyObject *argv[4];
1628     int ii;
1629     
1630     argc = PyObject_Length(args);
1631     for (ii = 0; (ii < argc) && (ii < 3); ii++) {
1632         argv[ii] = PyTuple_GetItem(args,ii);
1633     }
1634     if (argc == 2) {
1635         int _v;
1636         {
1637             void *ptr;
1638             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
1639                 _v = 0;
1640                 PyErr_Clear();
1641             }else {
1642                 _v = 1;
1643             }
1644         }
1645         if (_v) {
1646             {
1647                 void *ptr;
1648                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
1649                     _v = 0;
1650                     PyErr_Clear();
1651                 }else {
1652                     _v = 1;
1653                 }
1654             }
1655             if (_v) {
1656                 return _wrap_Rect_setSize__SWIG_1(self,args);
1657             }
1658         }
1659     }
1660     if (argc == 3) {
1661         int _v;
1662         {
1663             void *ptr;
1664             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
1665                 _v = 0;
1666                 PyErr_Clear();
1667             }else {
1668                 _v = 1;
1669             }
1670         }
1671         if (_v) {
1672             {
1673                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1674             }
1675             if (_v) {
1676                 {
1677                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1678                 }
1679                 if (_v) {
1680                     return _wrap_Rect_setSize__SWIG_0(self,args);
1681                 }
1682             }
1683         }
1684     }
1685     
1686     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setSize'");
1687     return NULL;
1688 }
1689
1690
1691 static PyObject *_wrap_Rect_setRect__SWIG_0(PyObject *self, PyObject *args) {
1692     PyObject *resultobj;
1693     otk::Rect *arg1 = (otk::Rect *) 0 ;
1694     int arg2 ;
1695     int arg3 ;
1696     int arg4 ;
1697     int arg5 ;
1698     PyObject * obj0  = 0 ;
1699     
1700     if(!PyArg_ParseTuple(args,(char *)"Oiiii:Rect_setRect",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
1701     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1702     (arg1)->setRect(arg2,arg3,arg4,arg5);
1703     
1704     Py_INCREF(Py_None); resultobj = Py_None;
1705     return resultobj;
1706     fail:
1707     return NULL;
1708 }
1709
1710
1711 static PyObject *_wrap_Rect_setRect__SWIG_1(PyObject *self, PyObject *args) {
1712     PyObject *resultobj;
1713     otk::Rect *arg1 = (otk::Rect *) 0 ;
1714     otk::Point *arg2 = 0 ;
1715     otk::Point *arg3 = 0 ;
1716     PyObject * obj0  = 0 ;
1717     PyObject * obj1  = 0 ;
1718     PyObject * obj2  = 0 ;
1719     
1720     if(!PyArg_ParseTuple(args,(char *)"OOO:Rect_setRect",&obj0,&obj1,&obj2)) goto fail;
1721     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1722     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1723     if (arg2 == NULL) {
1724         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
1725     }
1726     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1727     if (arg3 == NULL) {
1728         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
1729     }
1730     (arg1)->setRect((otk::Point const &)*arg2,(otk::Point const &)*arg3);
1731     
1732     Py_INCREF(Py_None); resultobj = Py_None;
1733     return resultobj;
1734     fail:
1735     return NULL;
1736 }
1737
1738
1739 static PyObject *_wrap_Rect_setRect(PyObject *self, PyObject *args) {
1740     int argc;
1741     PyObject *argv[6];
1742     int ii;
1743     
1744     argc = PyObject_Length(args);
1745     for (ii = 0; (ii < argc) && (ii < 5); ii++) {
1746         argv[ii] = PyTuple_GetItem(args,ii);
1747     }
1748     if (argc == 3) {
1749         int _v;
1750         {
1751             void *ptr;
1752             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
1753                 _v = 0;
1754                 PyErr_Clear();
1755             }else {
1756                 _v = 1;
1757             }
1758         }
1759         if (_v) {
1760             {
1761                 void *ptr;
1762                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
1763                     _v = 0;
1764                     PyErr_Clear();
1765                 }else {
1766                     _v = 1;
1767                 }
1768             }
1769             if (_v) {
1770                 {
1771                     void *ptr;
1772                     if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
1773                         _v = 0;
1774                         PyErr_Clear();
1775                     }else {
1776                         _v = 1;
1777                     }
1778                 }
1779                 if (_v) {
1780                     return _wrap_Rect_setRect__SWIG_1(self,args);
1781                 }
1782             }
1783         }
1784     }
1785     if (argc == 5) {
1786         int _v;
1787         {
1788             void *ptr;
1789             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
1790                 _v = 0;
1791                 PyErr_Clear();
1792             }else {
1793                 _v = 1;
1794             }
1795         }
1796         if (_v) {
1797             {
1798                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1799             }
1800             if (_v) {
1801                 {
1802                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1803                 }
1804                 if (_v) {
1805                     {
1806                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1807                     }
1808                     if (_v) {
1809                         {
1810                             _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
1811                         }
1812                         if (_v) {
1813                             return _wrap_Rect_setRect__SWIG_0(self,args);
1814                         }
1815                     }
1816                 }
1817             }
1818         }
1819     }
1820     
1821     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setRect'");
1822     return NULL;
1823 }
1824
1825
1826 static PyObject *_wrap_Rect_setCoords__SWIG_0(PyObject *self, PyObject *args) {
1827     PyObject *resultobj;
1828     otk::Rect *arg1 = (otk::Rect *) 0 ;
1829     int arg2 ;
1830     int arg3 ;
1831     int arg4 ;
1832     int arg5 ;
1833     PyObject * obj0  = 0 ;
1834     
1835     if(!PyArg_ParseTuple(args,(char *)"Oiiii:Rect_setCoords",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
1836     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1837     (arg1)->setCoords(arg2,arg3,arg4,arg5);
1838     
1839     Py_INCREF(Py_None); resultobj = Py_None;
1840     return resultobj;
1841     fail:
1842     return NULL;
1843 }
1844
1845
1846 static PyObject *_wrap_Rect_setCoords__SWIG_1(PyObject *self, PyObject *args) {
1847     PyObject *resultobj;
1848     otk::Rect *arg1 = (otk::Rect *) 0 ;
1849     otk::Point *arg2 = 0 ;
1850     otk::Point *arg3 = 0 ;
1851     PyObject * obj0  = 0 ;
1852     PyObject * obj1  = 0 ;
1853     PyObject * obj2  = 0 ;
1854     
1855     if(!PyArg_ParseTuple(args,(char *)"OOO:Rect_setCoords",&obj0,&obj1,&obj2)) goto fail;
1856     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1857     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1858     if (arg2 == NULL) {
1859         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
1860     }
1861     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1862     if (arg3 == NULL) {
1863         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
1864     }
1865     (arg1)->setCoords((otk::Point const &)*arg2,(otk::Point const &)*arg3);
1866     
1867     Py_INCREF(Py_None); resultobj = Py_None;
1868     return resultobj;
1869     fail:
1870     return NULL;
1871 }
1872
1873
1874 static PyObject *_wrap_Rect_setCoords(PyObject *self, PyObject *args) {
1875     int argc;
1876     PyObject *argv[6];
1877     int ii;
1878     
1879     argc = PyObject_Length(args);
1880     for (ii = 0; (ii < argc) && (ii < 5); ii++) {
1881         argv[ii] = PyTuple_GetItem(args,ii);
1882     }
1883     if (argc == 3) {
1884         int _v;
1885         {
1886             void *ptr;
1887             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
1888                 _v = 0;
1889                 PyErr_Clear();
1890             }else {
1891                 _v = 1;
1892             }
1893         }
1894         if (_v) {
1895             {
1896                 void *ptr;
1897                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
1898                     _v = 0;
1899                     PyErr_Clear();
1900                 }else {
1901                     _v = 1;
1902                 }
1903             }
1904             if (_v) {
1905                 {
1906                     void *ptr;
1907                     if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
1908                         _v = 0;
1909                         PyErr_Clear();
1910                     }else {
1911                         _v = 1;
1912                     }
1913                 }
1914                 if (_v) {
1915                     return _wrap_Rect_setCoords__SWIG_1(self,args);
1916                 }
1917             }
1918         }
1919     }
1920     if (argc == 5) {
1921         int _v;
1922         {
1923             void *ptr;
1924             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
1925                 _v = 0;
1926                 PyErr_Clear();
1927             }else {
1928                 _v = 1;
1929             }
1930         }
1931         if (_v) {
1932             {
1933                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1934             }
1935             if (_v) {
1936                 {
1937                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1938                 }
1939                 if (_v) {
1940                     {
1941                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1942                     }
1943                     if (_v) {
1944                         {
1945                             _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
1946                         }
1947                         if (_v) {
1948                             return _wrap_Rect_setCoords__SWIG_0(self,args);
1949                         }
1950                     }
1951                 }
1952             }
1953         }
1954     }
1955     
1956     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setCoords'");
1957     return NULL;
1958 }
1959
1960
1961 static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args) {
1962     PyObject *resultobj;
1963     otk::Rect *arg1 = (otk::Rect *) 0 ;
1964     otk::Rect *arg2 = 0 ;
1965     bool result;
1966     PyObject * obj0  = 0 ;
1967     PyObject * obj1  = 0 ;
1968     
1969     if(!PyArg_ParseTuple(args,(char *)"OO:Rect___eq__",&obj0,&obj1)) goto fail;
1970     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1971     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1972     if (arg2 == NULL) {
1973         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
1974     }
1975     result = (bool)(arg1)->operator ==((otk::Rect const &)*arg2);
1976     
1977     resultobj = PyInt_FromLong((long)result);
1978     return resultobj;
1979     fail:
1980     return NULL;
1981 }
1982
1983
1984 static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args) {
1985     PyObject *resultobj;
1986     otk::Rect *arg1 = (otk::Rect *) 0 ;
1987     otk::Rect *arg2 = 0 ;
1988     bool result;
1989     PyObject * obj0  = 0 ;
1990     PyObject * obj1  = 0 ;
1991     
1992     if(!PyArg_ParseTuple(args,(char *)"OO:Rect___ne__",&obj0,&obj1)) goto fail;
1993     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1994     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1995     if (arg2 == NULL) {
1996         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
1997     }
1998     result = (bool)(arg1)->operator !=((otk::Rect const &)*arg2);
1999     
2000     resultobj = PyInt_FromLong((long)result);
2001     return resultobj;
2002     fail:
2003     return NULL;
2004 }
2005
2006
2007 static PyObject *_wrap_Rect___or__(PyObject *self, PyObject *args) {
2008     PyObject *resultobj;
2009     otk::Rect *arg1 = (otk::Rect *) 0 ;
2010     otk::Rect *arg2 = 0 ;
2011     otk::Rect result;
2012     PyObject * obj0  = 0 ;
2013     PyObject * obj1  = 0 ;
2014     
2015     if(!PyArg_ParseTuple(args,(char *)"OO:Rect___or__",&obj0,&obj1)) goto fail;
2016     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2017     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2018     if (arg2 == NULL) {
2019         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2020     }
2021     result = ((otk::Rect const *)arg1)->operator |((otk::Rect const &)*arg2);
2022     
2023     {
2024         otk::Rect * resultptr;
2025         resultptr = new otk::Rect((otk::Rect &) result);
2026         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Rect, 1);
2027     }
2028     return resultobj;
2029     fail:
2030     return NULL;
2031 }
2032
2033
2034 static PyObject *_wrap_Rect___and__(PyObject *self, PyObject *args) {
2035     PyObject *resultobj;
2036     otk::Rect *arg1 = (otk::Rect *) 0 ;
2037     otk::Rect *arg2 = 0 ;
2038     otk::Rect result;
2039     PyObject * obj0  = 0 ;
2040     PyObject * obj1  = 0 ;
2041     
2042     if(!PyArg_ParseTuple(args,(char *)"OO:Rect___and__",&obj0,&obj1)) goto fail;
2043     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2044     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2045     if (arg2 == NULL) {
2046         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2047     }
2048     result = ((otk::Rect const *)arg1)->operator &((otk::Rect const &)*arg2);
2049     
2050     {
2051         otk::Rect * resultptr;
2052         resultptr = new otk::Rect((otk::Rect &) result);
2053         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Rect, 1);
2054     }
2055     return resultobj;
2056     fail:
2057     return NULL;
2058 }
2059
2060
2061 static PyObject *_wrap_Rect___ior__(PyObject *self, PyObject *args) {
2062     PyObject *resultobj;
2063     otk::Rect *arg1 = (otk::Rect *) 0 ;
2064     otk::Rect *arg2 = 0 ;
2065     otk::Rect *result;
2066     PyObject * obj0  = 0 ;
2067     PyObject * obj1  = 0 ;
2068     
2069     if(!PyArg_ParseTuple(args,(char *)"OO:Rect___ior__",&obj0,&obj1)) goto fail;
2070     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2071     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2072     if (arg2 == NULL) {
2073         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2074     }
2075     {
2076         otk::Rect &_result_ref = (arg1)->operator |=((otk::Rect const &)*arg2);
2077         result = (otk::Rect *) &_result_ref;
2078     }
2079     
2080     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
2081     return resultobj;
2082     fail:
2083     return NULL;
2084 }
2085
2086
2087 static PyObject *_wrap_Rect___iand__(PyObject *self, PyObject *args) {
2088     PyObject *resultobj;
2089     otk::Rect *arg1 = (otk::Rect *) 0 ;
2090     otk::Rect *arg2 = 0 ;
2091     otk::Rect *result;
2092     PyObject * obj0  = 0 ;
2093     PyObject * obj1  = 0 ;
2094     
2095     if(!PyArg_ParseTuple(args,(char *)"OO:Rect___iand__",&obj0,&obj1)) goto fail;
2096     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2097     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2098     if (arg2 == NULL) {
2099         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2100     }
2101     {
2102         otk::Rect &_result_ref = (arg1)->operator &=((otk::Rect const &)*arg2);
2103         result = (otk::Rect *) &_result_ref;
2104     }
2105     
2106     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
2107     return resultobj;
2108     fail:
2109     return NULL;
2110 }
2111
2112
2113 static PyObject *_wrap_Rect_valid(PyObject *self, PyObject *args) {
2114     PyObject *resultobj;
2115     otk::Rect *arg1 = (otk::Rect *) 0 ;
2116     bool result;
2117     PyObject * obj0  = 0 ;
2118     
2119     if(!PyArg_ParseTuple(args,(char *)"O:Rect_valid",&obj0)) goto fail;
2120     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2121     result = (bool)((otk::Rect const *)arg1)->valid();
2122     
2123     resultobj = PyInt_FromLong((long)result);
2124     return resultobj;
2125     fail:
2126     return NULL;
2127 }
2128
2129
2130 static PyObject *_wrap_Rect_intersects(PyObject *self, PyObject *args) {
2131     PyObject *resultobj;
2132     otk::Rect *arg1 = (otk::Rect *) 0 ;
2133     otk::Rect *arg2 = 0 ;
2134     bool result;
2135     PyObject * obj0  = 0 ;
2136     PyObject * obj1  = 0 ;
2137     
2138     if(!PyArg_ParseTuple(args,(char *)"OO:Rect_intersects",&obj0,&obj1)) goto fail;
2139     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2140     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2141     if (arg2 == NULL) {
2142         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2143     }
2144     result = (bool)((otk::Rect const *)arg1)->intersects((otk::Rect const &)*arg2);
2145     
2146     resultobj = PyInt_FromLong((long)result);
2147     return resultobj;
2148     fail:
2149     return NULL;
2150 }
2151
2152
2153 static PyObject *_wrap_Rect_contains__SWIG_0(PyObject *self, PyObject *args) {
2154     PyObject *resultobj;
2155     otk::Rect *arg1 = (otk::Rect *) 0 ;
2156     int arg2 ;
2157     int arg3 ;
2158     bool result;
2159     PyObject * obj0  = 0 ;
2160     
2161     if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_contains",&obj0,&arg2,&arg3)) goto fail;
2162     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2163     result = (bool)((otk::Rect const *)arg1)->contains(arg2,arg3);
2164     
2165     resultobj = PyInt_FromLong((long)result);
2166     return resultobj;
2167     fail:
2168     return NULL;
2169 }
2170
2171
2172 static PyObject *_wrap_Rect_contains__SWIG_1(PyObject *self, PyObject *args) {
2173     PyObject *resultobj;
2174     otk::Rect *arg1 = (otk::Rect *) 0 ;
2175     otk::Point *arg2 = 0 ;
2176     bool result;
2177     PyObject * obj0  = 0 ;
2178     PyObject * obj1  = 0 ;
2179     
2180     if(!PyArg_ParseTuple(args,(char *)"OO:Rect_contains",&obj0,&obj1)) goto fail;
2181     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2182     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2183     if (arg2 == NULL) {
2184         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2185     }
2186     result = (bool)((otk::Rect const *)arg1)->contains((otk::Point const &)*arg2);
2187     
2188     resultobj = PyInt_FromLong((long)result);
2189     return resultobj;
2190     fail:
2191     return NULL;
2192 }
2193
2194
2195 static PyObject *_wrap_Rect_contains__SWIG_2(PyObject *self, PyObject *args) {
2196     PyObject *resultobj;
2197     otk::Rect *arg1 = (otk::Rect *) 0 ;
2198     otk::Rect *arg2 = 0 ;
2199     bool result;
2200     PyObject * obj0  = 0 ;
2201     PyObject * obj1  = 0 ;
2202     
2203     if(!PyArg_ParseTuple(args,(char *)"OO:Rect_contains",&obj0,&obj1)) goto fail;
2204     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2205     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2206     if (arg2 == NULL) {
2207         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2208     }
2209     result = (bool)((otk::Rect const *)arg1)->contains((otk::Rect const &)*arg2);
2210     
2211     resultobj = PyInt_FromLong((long)result);
2212     return resultobj;
2213     fail:
2214     return NULL;
2215 }
2216
2217
2218 static PyObject *_wrap_Rect_contains(PyObject *self, PyObject *args) {
2219     int argc;
2220     PyObject *argv[4];
2221     int ii;
2222     
2223     argc = PyObject_Length(args);
2224     for (ii = 0; (ii < argc) && (ii < 3); ii++) {
2225         argv[ii] = PyTuple_GetItem(args,ii);
2226     }
2227     if (argc == 2) {
2228         int _v;
2229         {
2230             void *ptr;
2231             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2232                 _v = 0;
2233                 PyErr_Clear();
2234             }else {
2235                 _v = 1;
2236             }
2237         }
2238         if (_v) {
2239             {
2240                 void *ptr;
2241                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2242                     _v = 0;
2243                     PyErr_Clear();
2244                 }else {
2245                     _v = 1;
2246                 }
2247             }
2248             if (_v) {
2249                 return _wrap_Rect_contains__SWIG_1(self,args);
2250             }
2251         }
2252     }
2253     if (argc == 2) {
2254         int _v;
2255         {
2256             void *ptr;
2257             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2258                 _v = 0;
2259                 PyErr_Clear();
2260             }else {
2261                 _v = 1;
2262             }
2263         }
2264         if (_v) {
2265             {
2266                 void *ptr;
2267                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2268                     _v = 0;
2269                     PyErr_Clear();
2270                 }else {
2271                     _v = 1;
2272                 }
2273             }
2274             if (_v) {
2275                 return _wrap_Rect_contains__SWIG_2(self,args);
2276             }
2277         }
2278     }
2279     if (argc == 3) {
2280         int _v;
2281         {
2282             void *ptr;
2283             if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2284                 _v = 0;
2285                 PyErr_Clear();
2286             }else {
2287                 _v = 1;
2288             }
2289         }
2290         if (_v) {
2291             {
2292                 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2293             }
2294             if (_v) {
2295                 {
2296                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2297                 }
2298                 if (_v) {
2299                     return _wrap_Rect_contains__SWIG_0(self,args);
2300                 }
2301             }
2302         }
2303     }
2304     
2305     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_contains'");
2306     return NULL;
2307 }
2308
2309
2310 static PyObject * Rect_swigregister(PyObject *self, PyObject *args) {
2311     PyObject *obj;
2312     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2313     SWIG_TypeClientData(SWIGTYPE_p_otk__Rect, obj);
2314     Py_INCREF(obj);
2315     return Py_BuildValue((char *)"");
2316 }
2317 static PyObject *_wrap_Cursors_session_set(PyObject *self, PyObject *args) {
2318     PyObject *resultobj;
2319     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
2320     Cursor arg2 ;
2321     PyObject * obj0  = 0 ;
2322     PyObject * obj1  = 0 ;
2323     
2324     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_session_set",&obj0,&obj1)) goto fail;
2325     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2326     arg2 = (Cursor) PyInt_AsLong(obj1);
2327     if (PyErr_Occurred()) SWIG_fail;
2328     if (arg1) (arg1)->session = arg2;
2329     
2330     Py_INCREF(Py_None); resultobj = Py_None;
2331     return resultobj;
2332     fail:
2333     return NULL;
2334 }
2335
2336
2337 static PyObject *_wrap_Cursors_session_get(PyObject *self, PyObject *args) {
2338     PyObject *resultobj;
2339     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
2340     Cursor result;
2341     PyObject * obj0  = 0 ;
2342     
2343     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_session_get",&obj0)) goto fail;
2344     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2345     result = (Cursor) ((arg1)->session);
2346     
2347     resultobj = PyInt_FromLong((long)result);
2348     return resultobj;
2349     fail:
2350     return NULL;
2351 }
2352
2353
2354 static PyObject *_wrap_Cursors_move_set(PyObject *self, PyObject *args) {
2355     PyObject *resultobj;
2356     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
2357     Cursor arg2 ;
2358     PyObject * obj0  = 0 ;
2359     PyObject * obj1  = 0 ;
2360     
2361     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_move_set",&obj0,&obj1)) goto fail;
2362     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2363     arg2 = (Cursor) PyInt_AsLong(obj1);
2364     if (PyErr_Occurred()) SWIG_fail;
2365     if (arg1) (arg1)->move = arg2;
2366     
2367     Py_INCREF(Py_None); resultobj = Py_None;
2368     return resultobj;
2369     fail:
2370     return NULL;
2371 }
2372
2373
2374 static PyObject *_wrap_Cursors_move_get(PyObject *self, PyObject *args) {
2375     PyObject *resultobj;
2376     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
2377     Cursor result;
2378     PyObject * obj0  = 0 ;
2379     
2380     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_move_get",&obj0)) goto fail;
2381     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2382     result = (Cursor) ((arg1)->move);
2383     
2384     resultobj = PyInt_FromLong((long)result);
2385     return resultobj;
2386     fail:
2387     return NULL;
2388 }
2389
2390
2391 static PyObject *_wrap_Cursors_ll_angle_set(PyObject *self, PyObject *args) {
2392     PyObject *resultobj;
2393     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
2394     Cursor arg2 ;
2395     PyObject * obj0  = 0 ;
2396     PyObject * obj1  = 0 ;
2397     
2398     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ll_angle_set",&obj0,&obj1)) goto fail;
2399     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2400     arg2 = (Cursor) PyInt_AsLong(obj1);
2401     if (PyErr_Occurred()) SWIG_fail;
2402     if (arg1) (arg1)->ll_angle = arg2;
2403     
2404     Py_INCREF(Py_None); resultobj = Py_None;
2405     return resultobj;
2406     fail:
2407     return NULL;
2408 }
2409
2410
2411 static PyObject *_wrap_Cursors_ll_angle_get(PyObject *self, PyObject *args) {
2412     PyObject *resultobj;
2413     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
2414     Cursor result;
2415     PyObject * obj0  = 0 ;
2416     
2417     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ll_angle_get",&obj0)) goto fail;
2418     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2419     result = (Cursor) ((arg1)->ll_angle);
2420     
2421     resultobj = PyInt_FromLong((long)result);
2422     return resultobj;
2423     fail:
2424     return NULL;
2425 }
2426
2427
2428 static PyObject *_wrap_Cursors_lr_angle_set(PyObject *self, PyObject *args) {
2429     PyObject *resultobj;
2430     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
2431     Cursor arg2 ;
2432     PyObject * obj0  = 0 ;
2433     PyObject * obj1  = 0 ;
2434     
2435     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_lr_angle_set",&obj0,&obj1)) goto fail;
2436     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2437     arg2 = (Cursor) PyInt_AsLong(obj1);
2438     if (PyErr_Occurred()) SWIG_fail;
2439     if (arg1) (arg1)->lr_angle = arg2;
2440     
2441     Py_INCREF(Py_None); resultobj = Py_None;
2442     return resultobj;
2443     fail:
2444     return NULL;
2445 }
2446
2447
2448 static PyObject *_wrap_Cursors_lr_angle_get(PyObject *self, PyObject *args) {
2449     PyObject *resultobj;
2450     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
2451     Cursor result;
2452     PyObject * obj0  = 0 ;
2453     
2454     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_lr_angle_get",&obj0)) goto fail;
2455     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2456     result = (Cursor) ((arg1)->lr_angle);
2457     
2458     resultobj = PyInt_FromLong((long)result);
2459     return resultobj;
2460     fail:
2461     return NULL;
2462 }
2463
2464
2465 static PyObject *_wrap_Cursors_ul_angle_set(PyObject *self, PyObject *args) {
2466     PyObject *resultobj;
2467     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
2468     Cursor arg2 ;
2469     PyObject * obj0  = 0 ;
2470     PyObject * obj1  = 0 ;
2471     
2472     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ul_angle_set",&obj0,&obj1)) goto fail;
2473     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2474     arg2 = (Cursor) PyInt_AsLong(obj1);
2475     if (PyErr_Occurred()) SWIG_fail;
2476     if (arg1) (arg1)->ul_angle = arg2;
2477     
2478     Py_INCREF(Py_None); resultobj = Py_None;
2479     return resultobj;
2480     fail:
2481     return NULL;
2482 }
2483
2484
2485 static PyObject *_wrap_Cursors_ul_angle_get(PyObject *self, PyObject *args) {
2486     PyObject *resultobj;
2487     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
2488     Cursor result;
2489     PyObject * obj0  = 0 ;
2490     
2491     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ul_angle_get",&obj0)) goto fail;
2492     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2493     result = (Cursor) ((arg1)->ul_angle);
2494     
2495     resultobj = PyInt_FromLong((long)result);
2496     return resultobj;
2497     fail:
2498     return NULL;
2499 }
2500
2501
2502 static PyObject *_wrap_Cursors_ur_angle_set(PyObject *self, PyObject *args) {
2503     PyObject *resultobj;
2504     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
2505     Cursor arg2 ;
2506     PyObject * obj0  = 0 ;
2507     PyObject * obj1  = 0 ;
2508     
2509     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ur_angle_set",&obj0,&obj1)) goto fail;
2510     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2511     arg2 = (Cursor) PyInt_AsLong(obj1);
2512     if (PyErr_Occurred()) SWIG_fail;
2513     if (arg1) (arg1)->ur_angle = arg2;
2514     
2515     Py_INCREF(Py_None); resultobj = Py_None;
2516     return resultobj;
2517     fail:
2518     return NULL;
2519 }
2520
2521
2522 static PyObject *_wrap_Cursors_ur_angle_get(PyObject *self, PyObject *args) {
2523     PyObject *resultobj;
2524     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
2525     Cursor result;
2526     PyObject * obj0  = 0 ;
2527     
2528     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ur_angle_get",&obj0)) goto fail;
2529     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2530     result = (Cursor) ((arg1)->ur_angle);
2531     
2532     resultobj = PyInt_FromLong((long)result);
2533     return resultobj;
2534     fail:
2535     return NULL;
2536 }
2537
2538
2539 static PyObject * Cursors_swigregister(PyObject *self, PyObject *args) {
2540     PyObject *obj;
2541     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2542     SWIG_TypeClientData(SWIGTYPE_p_ob__Cursors, obj);
2543     Py_INCREF(obj);
2544     return Py_BuildValue((char *)"");
2545 }
2546 static PyObject *_wrap_Openbox_state(PyObject *self, PyObject *args) {
2547     PyObject *resultobj;
2548     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2549     int result;
2550     PyObject * obj0  = 0 ;
2551     
2552     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_state",&obj0)) goto fail;
2553     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2554     result = (int)((ob::Openbox const *)arg1)->state();
2555     
2556     resultobj = PyInt_FromLong((long)result);
2557     return resultobj;
2558     fail:
2559     return NULL;
2560 }
2561
2562
2563 static PyObject *_wrap_Openbox_timerManager(PyObject *self, PyObject *args) {
2564     PyObject *resultobj;
2565     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2566     otk::OBTimerQueueManager *result;
2567     PyObject * obj0  = 0 ;
2568     
2569     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_timerManager",&obj0)) goto fail;
2570     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2571     result = (otk::OBTimerQueueManager *)(arg1)->timerManager();
2572     
2573     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimerQueueManager, 0);
2574     return resultobj;
2575     fail:
2576     return NULL;
2577 }
2578
2579
2580 static PyObject *_wrap_Openbox_property(PyObject *self, PyObject *args) {
2581     PyObject *resultobj;
2582     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2583     otk::OBProperty *result;
2584     PyObject * obj0  = 0 ;
2585     
2586     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_property",&obj0)) goto fail;
2587     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2588     result = (otk::OBProperty *)((ob::Openbox const *)arg1)->property();
2589     
2590     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBProperty, 0);
2591     return resultobj;
2592     fail:
2593     return NULL;
2594 }
2595
2596
2597 static PyObject *_wrap_Openbox_actions(PyObject *self, PyObject *args) {
2598     PyObject *resultobj;
2599     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2600     ob::OBActions *result;
2601     PyObject * obj0  = 0 ;
2602     
2603     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_actions",&obj0)) goto fail;
2604     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2605     result = (ob::OBActions *)((ob::Openbox const *)arg1)->actions();
2606     
2607     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBActions, 0);
2608     return resultobj;
2609     fail:
2610     return NULL;
2611 }
2612
2613
2614 static PyObject *_wrap_Openbox_bindings(PyObject *self, PyObject *args) {
2615     PyObject *resultobj;
2616     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2617     ob::OBBindings *result;
2618     PyObject * obj0  = 0 ;
2619     
2620     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_bindings",&obj0)) goto fail;
2621     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2622     result = (ob::OBBindings *)((ob::Openbox const *)arg1)->bindings();
2623     
2624     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBBindings, 0);
2625     return resultobj;
2626     fail:
2627     return NULL;
2628 }
2629
2630
2631 static PyObject *_wrap_Openbox_screen(PyObject *self, PyObject *args) {
2632     PyObject *resultobj;
2633     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2634     int arg2 ;
2635     ob::OBScreen *result;
2636     PyObject * obj0  = 0 ;
2637     
2638     if(!PyArg_ParseTuple(args,(char *)"Oi:Openbox_screen",&obj0,&arg2)) goto fail;
2639     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2640     result = (ob::OBScreen *)(arg1)->screen(arg2);
2641     
2642     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
2643     return resultobj;
2644     fail:
2645     return NULL;
2646 }
2647
2648
2649 static PyObject *_wrap_Openbox_screenCount(PyObject *self, PyObject *args) {
2650     PyObject *resultobj;
2651     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2652     int result;
2653     PyObject * obj0  = 0 ;
2654     
2655     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_screenCount",&obj0)) goto fail;
2656     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2657     result = (int)((ob::Openbox const *)arg1)->screenCount();
2658     
2659     resultobj = PyInt_FromLong((long)result);
2660     return resultobj;
2661     fail:
2662     return NULL;
2663 }
2664
2665
2666 static PyObject *_wrap_Openbox_cursors(PyObject *self, PyObject *args) {
2667     PyObject *resultobj;
2668     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2669     ob::Cursors *result;
2670     PyObject * obj0  = 0 ;
2671     
2672     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_cursors",&obj0)) goto fail;
2673     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2674     {
2675         ob::Cursors const &_result_ref = ((ob::Openbox const *)arg1)->cursors();
2676         result = (ob::Cursors *) &_result_ref;
2677     }
2678     
2679     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Cursors, 0);
2680     return resultobj;
2681     fail:
2682     return NULL;
2683 }
2684
2685
2686 static PyObject *_wrap_Openbox_addClient(PyObject *self, PyObject *args) {
2687     PyObject *resultobj;
2688     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2689     Window arg2 ;
2690     ob::OBClient *arg3 = (ob::OBClient *) 0 ;
2691     PyObject * obj0  = 0 ;
2692     PyObject * obj1  = 0 ;
2693     PyObject * obj2  = 0 ;
2694     
2695     if(!PyArg_ParseTuple(args,(char *)"OOO:Openbox_addClient",&obj0,&obj1,&obj2)) goto fail;
2696     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2697     arg2 = (Window) PyInt_AsLong(obj1);
2698     if (PyErr_Occurred()) SWIG_fail;
2699     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2700     (arg1)->addClient(arg2,arg3);
2701     
2702     Py_INCREF(Py_None); resultobj = Py_None;
2703     return resultobj;
2704     fail:
2705     return NULL;
2706 }
2707
2708
2709 static PyObject *_wrap_Openbox_removeClient(PyObject *self, PyObject *args) {
2710     PyObject *resultobj;
2711     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2712     Window arg2 ;
2713     PyObject * obj0  = 0 ;
2714     PyObject * obj1  = 0 ;
2715     
2716     if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_removeClient",&obj0,&obj1)) goto fail;
2717     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2718     arg2 = (Window) PyInt_AsLong(obj1);
2719     if (PyErr_Occurred()) SWIG_fail;
2720     (arg1)->removeClient(arg2);
2721     
2722     Py_INCREF(Py_None); resultobj = Py_None;
2723     return resultobj;
2724     fail:
2725     return NULL;
2726 }
2727
2728
2729 static PyObject *_wrap_Openbox_findClient(PyObject *self, PyObject *args) {
2730     PyObject *resultobj;
2731     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2732     Window arg2 ;
2733     ob::OBClient *result;
2734     PyObject * obj0  = 0 ;
2735     PyObject * obj1  = 0 ;
2736     
2737     if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_findClient",&obj0,&obj1)) goto fail;
2738     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2739     arg2 = (Window) PyInt_AsLong(obj1);
2740     if (PyErr_Occurred()) SWIG_fail;
2741     result = (ob::OBClient *)(arg1)->findClient(arg2);
2742     
2743     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
2744     return resultobj;
2745     fail:
2746     return NULL;
2747 }
2748
2749
2750 static PyObject *_wrap_Openbox_focusedClient(PyObject *self, PyObject *args) {
2751     PyObject *resultobj;
2752     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2753     ob::OBClient *result;
2754     PyObject * obj0  = 0 ;
2755     
2756     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedClient",&obj0)) goto fail;
2757     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2758     result = (ob::OBClient *)(arg1)->focusedClient();
2759     
2760     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
2761     return resultobj;
2762     fail:
2763     return NULL;
2764 }
2765
2766
2767 static PyObject *_wrap_Openbox_setFocusedClient(PyObject *self, PyObject *args) {
2768     PyObject *resultobj;
2769     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2770     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
2771     PyObject * obj0  = 0 ;
2772     PyObject * obj1  = 0 ;
2773     
2774     if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_setFocusedClient",&obj0,&obj1)) goto fail;
2775     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2776     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2777     (arg1)->setFocusedClient(arg2);
2778     
2779     Py_INCREF(Py_None); resultobj = Py_None;
2780     return resultobj;
2781     fail:
2782     return NULL;
2783 }
2784
2785
2786 static PyObject *_wrap_Openbox_focusedScreen(PyObject *self, PyObject *args) {
2787     PyObject *resultobj;
2788     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2789     ob::OBScreen *result;
2790     PyObject * obj0  = 0 ;
2791     
2792     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedScreen",&obj0)) goto fail;
2793     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2794     result = (ob::OBScreen *)(arg1)->focusedScreen();
2795     
2796     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
2797     return resultobj;
2798     fail:
2799     return NULL;
2800 }
2801
2802
2803 static PyObject *_wrap_Openbox_shutdown(PyObject *self, PyObject *args) {
2804     PyObject *resultobj;
2805     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2806     PyObject * obj0  = 0 ;
2807     
2808     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_shutdown",&obj0)) goto fail;
2809     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2810     (arg1)->shutdown();
2811     
2812     Py_INCREF(Py_None); resultobj = Py_None;
2813     return resultobj;
2814     fail:
2815     return NULL;
2816 }
2817
2818
2819 static PyObject *_wrap_Openbox_restart(PyObject *self, PyObject *args) {
2820     PyObject *resultobj;
2821     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2822     std::string const &arg2_defvalue = "" ;
2823     std::string *arg2 = (std::string *) &arg2_defvalue ;
2824     std::string temp2 ;
2825     PyObject * obj0  = 0 ;
2826     PyObject * obj1  = 0 ;
2827     
2828     if(!PyArg_ParseTuple(args,(char *)"O|O:Openbox_restart",&obj0,&obj1)) goto fail;
2829     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2830     if (obj1) {
2831         {
2832             if (PyString_Check(obj1)) {
2833                 temp2 = std::string(PyString_AsString(obj1));
2834                 arg2 = &temp2;
2835             }else {
2836                 SWIG_exception(SWIG_TypeError, "string expected");
2837             }
2838         }
2839     }
2840     (arg1)->restart((std::string const &)*arg2);
2841     
2842     Py_INCREF(Py_None); resultobj = Py_None;
2843     return resultobj;
2844     fail:
2845     return NULL;
2846 }
2847
2848
2849 static PyObject *_wrap_Openbox_execute(PyObject *self, PyObject *args) {
2850     PyObject *resultobj;
2851     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
2852     int arg2 ;
2853     std::string *arg3 = 0 ;
2854     std::string temp3 ;
2855     PyObject * obj0  = 0 ;
2856     PyObject * obj2  = 0 ;
2857     
2858     if(!PyArg_ParseTuple(args,(char *)"OiO:Openbox_execute",&obj0,&arg2,&obj2)) goto fail;
2859     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2860     {
2861         if (PyString_Check(obj2)) {
2862             temp3 = std::string(PyString_AsString(obj2));
2863             arg3 = &temp3;
2864         }else {
2865             SWIG_exception(SWIG_TypeError, "string expected");
2866         }
2867     }
2868     (arg1)->execute(arg2,(std::string const &)*arg3);
2869     
2870     Py_INCREF(Py_None); resultobj = Py_None;
2871     return resultobj;
2872     fail:
2873     return NULL;
2874 }
2875
2876
2877 static PyObject * Openbox_swigregister(PyObject *self, PyObject *args) {
2878     PyObject *obj;
2879     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2880     SWIG_TypeClientData(SWIGTYPE_p_ob__Openbox, obj);
2881     Py_INCREF(obj);
2882     return Py_BuildValue((char *)"");
2883 }
2884 static PyObject *_wrap_OBScreen_client(PyObject *self, PyObject *args) {
2885     PyObject *resultobj;
2886     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
2887     int arg2 ;
2888     ob::OBClient *result;
2889     PyObject * obj0  = 0 ;
2890     
2891     if(!PyArg_ParseTuple(args,(char *)"Oi:OBScreen_client",&obj0,&arg2)) goto fail;
2892     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2893     result = (ob::OBClient *)ob_OBScreen_client(arg1,arg2);
2894     
2895     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
2896     return resultobj;
2897     fail:
2898     return NULL;
2899 }
2900
2901
2902 static PyObject *_wrap_OBScreen_clientCount(PyObject *self, PyObject *args) {
2903     PyObject *resultobj;
2904     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
2905     int result;
2906     PyObject * obj0  = 0 ;
2907     
2908     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_clientCount",&obj0)) goto fail;
2909     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2910     result = (int)ob_OBScreen_clientCount((ob::OBScreen const *)arg1);
2911     
2912     resultobj = PyInt_FromLong((long)result);
2913     return resultobj;
2914     fail:
2915     return NULL;
2916 }
2917
2918
2919 static PyObject *_wrap_OBScreen_number(PyObject *self, PyObject *args) {
2920     PyObject *resultobj;
2921     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
2922     int result;
2923     PyObject * obj0  = 0 ;
2924     
2925     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_number",&obj0)) goto fail;
2926     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2927     result = (int)((ob::OBScreen const *)arg1)->number();
2928     
2929     resultobj = PyInt_FromLong((long)result);
2930     return resultobj;
2931     fail:
2932     return NULL;
2933 }
2934
2935
2936 static PyObject *_wrap_OBScreen_managed(PyObject *self, PyObject *args) {
2937     PyObject *resultobj;
2938     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
2939     bool result;
2940     PyObject * obj0  = 0 ;
2941     
2942     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_managed",&obj0)) goto fail;
2943     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2944     result = (bool)((ob::OBScreen const *)arg1)->managed();
2945     
2946     resultobj = PyInt_FromLong((long)result);
2947     return resultobj;
2948     fail:
2949     return NULL;
2950 }
2951
2952
2953 static PyObject *_wrap_OBScreen_imageControl(PyObject *self, PyObject *args) {
2954     PyObject *resultobj;
2955     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
2956     otk::BImageControl *result;
2957     PyObject * obj0  = 0 ;
2958     
2959     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_imageControl",&obj0)) goto fail;
2960     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2961     result = (otk::BImageControl *)(arg1)->imageControl();
2962     
2963     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 0);
2964     return resultobj;
2965     fail:
2966     return NULL;
2967 }
2968
2969
2970 static PyObject *_wrap_OBScreen_area(PyObject *self, PyObject *args) {
2971     PyObject *resultobj;
2972     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
2973     otk::Rect *result;
2974     PyObject * obj0  = 0 ;
2975     
2976     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_area",&obj0)) goto fail;
2977     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2978     {
2979         otk::Rect const &_result_ref = ((ob::OBScreen const *)arg1)->area();
2980         result = (otk::Rect *) &_result_ref;
2981     }
2982     
2983     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
2984     return resultobj;
2985     fail:
2986     return NULL;
2987 }
2988
2989
2990 static PyObject *_wrap_OBScreen_style(PyObject *self, PyObject *args) {
2991     PyObject *resultobj;
2992     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
2993     otk::Style *result;
2994     PyObject * obj0  = 0 ;
2995     
2996     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_style",&obj0)) goto fail;
2997     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2998     result = (otk::Style *)((ob::OBScreen const *)arg1)->style();
2999     
3000     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
3001     return resultobj;
3002     fail:
3003     return NULL;
3004 }
3005
3006
3007 static PyObject *_wrap_OBScreen_focuswindow(PyObject *self, PyObject *args) {
3008     PyObject *resultobj;
3009     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
3010     Window result;
3011     PyObject * obj0  = 0 ;
3012     
3013     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_focuswindow",&obj0)) goto fail;
3014     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3015     result = (Window)((ob::OBScreen const *)arg1)->focuswindow();
3016     
3017     resultobj = PyInt_FromLong((long)result);
3018     return resultobj;
3019     fail:
3020     return NULL;
3021 }
3022
3023
3024 static PyObject *_wrap_OBScreen_desktop(PyObject *self, PyObject *args) {
3025     PyObject *resultobj;
3026     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
3027     long result;
3028     PyObject * obj0  = 0 ;
3029     
3030     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_desktop",&obj0)) goto fail;
3031     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3032     result = (long)((ob::OBScreen const *)arg1)->desktop();
3033     
3034     resultobj = PyInt_FromLong((long)result);
3035     return resultobj;
3036     fail:
3037     return NULL;
3038 }
3039
3040
3041 static PyObject *_wrap_OBScreen_numDesktops(PyObject *self, PyObject *args) {
3042     PyObject *resultobj;
3043     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
3044     long result;
3045     PyObject * obj0  = 0 ;
3046     
3047     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_numDesktops",&obj0)) goto fail;
3048     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3049     result = (long)((ob::OBScreen const *)arg1)->numDesktops();
3050     
3051     resultobj = PyInt_FromLong((long)result);
3052     return resultobj;
3053     fail:
3054     return NULL;
3055 }
3056
3057
3058 static PyObject *_wrap_OBScreen_updateStrut(PyObject *self, PyObject *args) {
3059     PyObject *resultobj;
3060     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
3061     PyObject * obj0  = 0 ;
3062     
3063     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_updateStrut",&obj0)) goto fail;
3064     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3065     (arg1)->updateStrut();
3066     
3067     Py_INCREF(Py_None); resultobj = Py_None;
3068     return resultobj;
3069     fail:
3070     return NULL;
3071 }
3072
3073
3074 static PyObject *_wrap_OBScreen_manageExisting(PyObject *self, PyObject *args) {
3075     PyObject *resultobj;
3076     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
3077     PyObject * obj0  = 0 ;
3078     
3079     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_manageExisting",&obj0)) goto fail;
3080     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3081     (arg1)->manageExisting();
3082     
3083     Py_INCREF(Py_None); resultobj = Py_None;
3084     return resultobj;
3085     fail:
3086     return NULL;
3087 }
3088
3089
3090 static PyObject *_wrap_OBScreen_manageWindow(PyObject *self, PyObject *args) {
3091     PyObject *resultobj;
3092     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
3093     Window arg2 ;
3094     PyObject * obj0  = 0 ;
3095     PyObject * obj1  = 0 ;
3096     
3097     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_manageWindow",&obj0,&obj1)) goto fail;
3098     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3099     arg2 = (Window) PyInt_AsLong(obj1);
3100     if (PyErr_Occurred()) SWIG_fail;
3101     (arg1)->manageWindow(arg2);
3102     
3103     Py_INCREF(Py_None); resultobj = Py_None;
3104     return resultobj;
3105     fail:
3106     return NULL;
3107 }
3108
3109
3110 static PyObject *_wrap_OBScreen_unmanageWindow(PyObject *self, PyObject *args) {
3111     PyObject *resultobj;
3112     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
3113     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
3114     PyObject * obj0  = 0 ;
3115     PyObject * obj1  = 0 ;
3116     
3117     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_unmanageWindow",&obj0,&obj1)) goto fail;
3118     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3119     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3120     (arg1)->unmanageWindow(arg2);
3121     
3122     Py_INCREF(Py_None); resultobj = Py_None;
3123     return resultobj;
3124     fail:
3125     return NULL;
3126 }
3127
3128
3129 static PyObject *_wrap_OBScreen_restack(PyObject *self, PyObject *args) {
3130     PyObject *resultobj;
3131     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
3132     bool arg2 ;
3133     ob::OBClient *arg3 = (ob::OBClient *) 0 ;
3134     PyObject * obj0  = 0 ;
3135     PyObject * obj1  = 0 ;
3136     PyObject * obj2  = 0 ;
3137     
3138     if(!PyArg_ParseTuple(args,(char *)"OOO:OBScreen_restack",&obj0,&obj1,&obj2)) goto fail;
3139     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3140     arg2 = (bool) PyInt_AsLong(obj1);
3141     if (PyErr_Occurred()) SWIG_fail;
3142     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3143     (arg1)->restack(arg2,arg3);
3144     
3145     Py_INCREF(Py_None); resultobj = Py_None;
3146     return resultobj;
3147     fail:
3148     return NULL;
3149 }
3150
3151
3152 static PyObject *_wrap_OBScreen_setDesktopName(PyObject *self, PyObject *args) {
3153     PyObject *resultobj;
3154     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
3155     long arg2 ;
3156     std::string *arg3 = 0 ;
3157     std::string temp3 ;
3158     PyObject * obj0  = 0 ;
3159     PyObject * obj2  = 0 ;
3160     
3161     if(!PyArg_ParseTuple(args,(char *)"OlO:OBScreen_setDesktopName",&obj0,&arg2,&obj2)) goto fail;
3162     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3163     {
3164         if (PyString_Check(obj2)) {
3165             temp3 = std::string(PyString_AsString(obj2));
3166             arg3 = &temp3;
3167         }else {
3168             SWIG_exception(SWIG_TypeError, "string expected");
3169         }
3170     }
3171     (arg1)->setDesktopName(arg2,(std::string const &)*arg3);
3172     
3173     Py_INCREF(Py_None); resultobj = Py_None;
3174     return resultobj;
3175     fail:
3176     return NULL;
3177 }
3178
3179
3180 static PyObject *_wrap_OBScreen_propertyHandler(PyObject *self, PyObject *args) {
3181     PyObject *resultobj;
3182     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
3183     XPropertyEvent *arg2 = 0 ;
3184     PyObject * obj0  = 0 ;
3185     PyObject * obj1  = 0 ;
3186     
3187     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_propertyHandler",&obj0,&obj1)) goto fail;
3188     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3189     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3190     if (arg2 == NULL) {
3191         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
3192     }
3193     (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
3194     
3195     Py_INCREF(Py_None); resultobj = Py_None;
3196     return resultobj;
3197     fail:
3198     return NULL;
3199 }
3200
3201
3202 static PyObject *_wrap_OBScreen_clientMessageHandler(PyObject *self, PyObject *args) {
3203     PyObject *resultobj;
3204     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
3205     XClientMessageEvent *arg2 = 0 ;
3206     PyObject * obj0  = 0 ;
3207     PyObject * obj1  = 0 ;
3208     
3209     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_clientMessageHandler",&obj0,&obj1)) goto fail;
3210     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3211     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3212     if (arg2 == NULL) {
3213         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
3214     }
3215     (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
3216     
3217     Py_INCREF(Py_None); resultobj = Py_None;
3218     return resultobj;
3219     fail:
3220     return NULL;
3221 }
3222
3223
3224 static PyObject *_wrap_OBScreen_mapRequestHandler(PyObject *self, PyObject *args) {
3225     PyObject *resultobj;
3226     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
3227     XMapRequestEvent *arg2 = 0 ;
3228     PyObject * obj0  = 0 ;
3229     PyObject * obj1  = 0 ;
3230     
3231     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_mapRequestHandler",&obj0,&obj1)) goto fail;
3232     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3233     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3234     if (arg2 == NULL) {
3235         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
3236     }
3237     (arg1)->mapRequestHandler((XMapRequestEvent const &)*arg2);
3238     
3239     Py_INCREF(Py_None); resultobj = Py_None;
3240     return resultobj;
3241     fail:
3242     return NULL;
3243 }
3244
3245
3246 static PyObject * OBScreen_swigregister(PyObject *self, PyObject *args) {
3247     PyObject *obj;
3248     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3249     SWIG_TypeClientData(SWIGTYPE_p_ob__OBScreen, obj);
3250     Py_INCREF(obj);
3251     return Py_BuildValue((char *)"");
3252 }
3253 static PyObject *_wrap_MwmHints_flags_set(PyObject *self, PyObject *args) {
3254     PyObject *resultobj;
3255     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
3256     unsigned long arg2 ;
3257     PyObject * obj0  = 0 ;
3258     PyObject * obj1  = 0 ;
3259     
3260     if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_flags_set",&obj0,&obj1)) goto fail;
3261     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3262     arg2 = (unsigned long) PyInt_AsLong(obj1);
3263     if (PyErr_Occurred()) SWIG_fail;
3264     if (arg1) (arg1)->flags = arg2;
3265     
3266     Py_INCREF(Py_None); resultobj = Py_None;
3267     return resultobj;
3268     fail:
3269     return NULL;
3270 }
3271
3272
3273 static PyObject *_wrap_MwmHints_flags_get(PyObject *self, PyObject *args) {
3274     PyObject *resultobj;
3275     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
3276     unsigned long result;
3277     PyObject * obj0  = 0 ;
3278     
3279     if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_flags_get",&obj0)) goto fail;
3280     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3281     result = (unsigned long) ((arg1)->flags);
3282     
3283     resultobj = PyInt_FromLong((long)result);
3284     return resultobj;
3285     fail:
3286     return NULL;
3287 }
3288
3289
3290 static PyObject *_wrap_MwmHints_functions_set(PyObject *self, PyObject *args) {
3291     PyObject *resultobj;
3292     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
3293     unsigned long arg2 ;
3294     PyObject * obj0  = 0 ;
3295     PyObject * obj1  = 0 ;
3296     
3297     if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_functions_set",&obj0,&obj1)) goto fail;
3298     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3299     arg2 = (unsigned long) PyInt_AsLong(obj1);
3300     if (PyErr_Occurred()) SWIG_fail;
3301     if (arg1) (arg1)->functions = arg2;
3302     
3303     Py_INCREF(Py_None); resultobj = Py_None;
3304     return resultobj;
3305     fail:
3306     return NULL;
3307 }
3308
3309
3310 static PyObject *_wrap_MwmHints_functions_get(PyObject *self, PyObject *args) {
3311     PyObject *resultobj;
3312     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
3313     unsigned long result;
3314     PyObject * obj0  = 0 ;
3315     
3316     if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_functions_get",&obj0)) goto fail;
3317     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3318     result = (unsigned long) ((arg1)->functions);
3319     
3320     resultobj = PyInt_FromLong((long)result);
3321     return resultobj;
3322     fail:
3323     return NULL;
3324 }
3325
3326
3327 static PyObject *_wrap_MwmHints_decorations_set(PyObject *self, PyObject *args) {
3328     PyObject *resultobj;
3329     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
3330     unsigned long arg2 ;
3331     PyObject * obj0  = 0 ;
3332     PyObject * obj1  = 0 ;
3333     
3334     if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_decorations_set",&obj0,&obj1)) goto fail;
3335     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3336     arg2 = (unsigned long) PyInt_AsLong(obj1);
3337     if (PyErr_Occurred()) SWIG_fail;
3338     if (arg1) (arg1)->decorations = arg2;
3339     
3340     Py_INCREF(Py_None); resultobj = Py_None;
3341     return resultobj;
3342     fail:
3343     return NULL;
3344 }
3345
3346
3347 static PyObject *_wrap_MwmHints_decorations_get(PyObject *self, PyObject *args) {
3348     PyObject *resultobj;
3349     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
3350     unsigned long result;
3351     PyObject * obj0  = 0 ;
3352     
3353     if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_decorations_get",&obj0)) goto fail;
3354     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3355     result = (unsigned long) ((arg1)->decorations);
3356     
3357     resultobj = PyInt_FromLong((long)result);
3358     return resultobj;
3359     fail:
3360     return NULL;
3361 }
3362
3363
3364 static PyObject * MwmHints_swigregister(PyObject *self, PyObject *args) {
3365     PyObject *obj;
3366     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3367     SWIG_TypeClientData(SWIGTYPE_p_ob__MwmHints, obj);
3368     Py_INCREF(obj);
3369     return Py_BuildValue((char *)"");
3370 }
3371 static PyObject *_wrap_OBClient_frame_set(PyObject *self, PyObject *args) {
3372     PyObject *resultobj;
3373     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3374     ob::OBFrame *arg2 = (ob::OBFrame *) 0 ;
3375     PyObject * obj0  = 0 ;
3376     PyObject * obj1  = 0 ;
3377     
3378     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_frame_set",&obj0,&obj1)) goto fail;
3379     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3380     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBFrame,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
3381     if (arg1) (arg1)->frame = arg2;
3382     
3383     Py_INCREF(Py_None); resultobj = Py_None;
3384     return resultobj;
3385     fail:
3386     return NULL;
3387 }
3388
3389
3390 static PyObject *_wrap_OBClient_frame_get(PyObject *self, PyObject *args) {
3391     PyObject *resultobj;
3392     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3393     ob::OBFrame *result;
3394     PyObject * obj0  = 0 ;
3395     
3396     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_frame_get",&obj0)) goto fail;
3397     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3398     result = (ob::OBFrame *) ((arg1)->frame);
3399     
3400     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBFrame, 0);
3401     return resultobj;
3402     fail:
3403     return NULL;
3404 }
3405
3406
3407 static PyObject *_wrap_OBClient_ignore_unmaps_set(PyObject *self, PyObject *args) {
3408     PyObject *resultobj;
3409     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3410     int arg2 ;
3411     PyObject * obj0  = 0 ;
3412     
3413     if(!PyArg_ParseTuple(args,(char *)"Oi:OBClient_ignore_unmaps_set",&obj0,&arg2)) goto fail;
3414     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3415     if (arg1) (arg1)->ignore_unmaps = arg2;
3416     
3417     Py_INCREF(Py_None); resultobj = Py_None;
3418     return resultobj;
3419     fail:
3420     return NULL;
3421 }
3422
3423
3424 static PyObject *_wrap_OBClient_ignore_unmaps_get(PyObject *self, PyObject *args) {
3425     PyObject *resultobj;
3426     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3427     int result;
3428     PyObject * obj0  = 0 ;
3429     
3430     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_ignore_unmaps_get",&obj0)) goto fail;
3431     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3432     result = (int) ((arg1)->ignore_unmaps);
3433     
3434     resultobj = PyInt_FromLong((long)result);
3435     return resultobj;
3436     fail:
3437     return NULL;
3438 }
3439
3440
3441 static PyObject *_wrap_OBClient_screen(PyObject *self, PyObject *args) {
3442     PyObject *resultobj;
3443     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3444     int result;
3445     PyObject * obj0  = 0 ;
3446     
3447     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_screen",&obj0)) goto fail;
3448     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3449     result = (int)((ob::OBClient const *)arg1)->screen();
3450     
3451     resultobj = PyInt_FromLong((long)result);
3452     return resultobj;
3453     fail:
3454     return NULL;
3455 }
3456
3457
3458 static PyObject *_wrap_OBClient_window(PyObject *self, PyObject *args) {
3459     PyObject *resultobj;
3460     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3461     Window result;
3462     PyObject * obj0  = 0 ;
3463     
3464     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_window",&obj0)) goto fail;
3465     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3466     result = (Window)((ob::OBClient const *)arg1)->window();
3467     
3468     resultobj = PyInt_FromLong((long)result);
3469     return resultobj;
3470     fail:
3471     return NULL;
3472 }
3473
3474
3475 static PyObject *_wrap_OBClient_type(PyObject *self, PyObject *args) {
3476     PyObject *resultobj;
3477     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3478     int result;
3479     PyObject * obj0  = 0 ;
3480     
3481     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_type",&obj0)) goto fail;
3482     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3483     result = (int)((ob::OBClient const *)arg1)->type();
3484     
3485     resultobj = PyInt_FromLong((long)result);
3486     return resultobj;
3487     fail:
3488     return NULL;
3489 }
3490
3491
3492 static PyObject *_wrap_OBClient_normal(PyObject *self, PyObject *args) {
3493     PyObject *resultobj;
3494     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3495     bool result;
3496     PyObject * obj0  = 0 ;
3497     
3498     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_normal",&obj0)) goto fail;
3499     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3500     result = (bool)((ob::OBClient const *)arg1)->normal();
3501     
3502     resultobj = PyInt_FromLong((long)result);
3503     return resultobj;
3504     fail:
3505     return NULL;
3506 }
3507
3508
3509 static PyObject *_wrap_OBClient_desktop(PyObject *self, PyObject *args) {
3510     PyObject *resultobj;
3511     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3512     long result;
3513     PyObject * obj0  = 0 ;
3514     
3515     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_desktop",&obj0)) goto fail;
3516     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3517     result = (long)((ob::OBClient const *)arg1)->desktop();
3518     
3519     resultobj = PyInt_FromLong((long)result);
3520     return resultobj;
3521     fail:
3522     return NULL;
3523 }
3524
3525
3526 static PyObject *_wrap_OBClient_title(PyObject *self, PyObject *args) {
3527     PyObject *resultobj;
3528     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3529     std::string *result;
3530     PyObject * obj0  = 0 ;
3531     
3532     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_title",&obj0)) goto fail;
3533     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3534     {
3535         std::string const &_result_ref = ((ob::OBClient const *)arg1)->title();
3536         result = (std::string *) &_result_ref;
3537     }
3538     
3539     {
3540         resultobj = PyString_FromString(result->c_str());
3541     }
3542     return resultobj;
3543     fail:
3544     return NULL;
3545 }
3546
3547
3548 static PyObject *_wrap_OBClient_iconTitle(PyObject *self, PyObject *args) {
3549     PyObject *resultobj;
3550     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3551     std::string *result;
3552     PyObject * obj0  = 0 ;
3553     
3554     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconTitle",&obj0)) goto fail;
3555     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3556     {
3557         std::string const &_result_ref = ((ob::OBClient const *)arg1)->iconTitle();
3558         result = (std::string *) &_result_ref;
3559     }
3560     
3561     {
3562         resultobj = PyString_FromString(result->c_str());
3563     }
3564     return resultobj;
3565     fail:
3566     return NULL;
3567 }
3568
3569
3570 static PyObject *_wrap_OBClient_appName(PyObject *self, PyObject *args) {
3571     PyObject *resultobj;
3572     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3573     std::string *result;
3574     PyObject * obj0  = 0 ;
3575     
3576     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appName",&obj0)) goto fail;
3577     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3578     {
3579         std::string const &_result_ref = ((ob::OBClient const *)arg1)->appName();
3580         result = (std::string *) &_result_ref;
3581     }
3582     
3583     {
3584         resultobj = PyString_FromString(result->c_str());
3585     }
3586     return resultobj;
3587     fail:
3588     return NULL;
3589 }
3590
3591
3592 static PyObject *_wrap_OBClient_appClass(PyObject *self, PyObject *args) {
3593     PyObject *resultobj;
3594     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3595     std::string *result;
3596     PyObject * obj0  = 0 ;
3597     
3598     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appClass",&obj0)) goto fail;
3599     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3600     {
3601         std::string const &_result_ref = ((ob::OBClient const *)arg1)->appClass();
3602         result = (std::string *) &_result_ref;
3603     }
3604     
3605     {
3606         resultobj = PyString_FromString(result->c_str());
3607     }
3608     return resultobj;
3609     fail:
3610     return NULL;
3611 }
3612
3613
3614 static PyObject *_wrap_OBClient_role(PyObject *self, PyObject *args) {
3615     PyObject *resultobj;
3616     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3617     std::string *result;
3618     PyObject * obj0  = 0 ;
3619     
3620     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_role",&obj0)) goto fail;
3621     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3622     {
3623         std::string const &_result_ref = ((ob::OBClient const *)arg1)->role();
3624         result = (std::string *) &_result_ref;
3625     }
3626     
3627     {
3628         resultobj = PyString_FromString(result->c_str());
3629     }
3630     return resultobj;
3631     fail:
3632     return NULL;
3633 }
3634
3635
3636 static PyObject *_wrap_OBClient_canFocus(PyObject *self, PyObject *args) {
3637     PyObject *resultobj;
3638     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3639     bool result;
3640     PyObject * obj0  = 0 ;
3641     
3642     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_canFocus",&obj0)) goto fail;
3643     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3644     result = (bool)((ob::OBClient const *)arg1)->canFocus();
3645     
3646     resultobj = PyInt_FromLong((long)result);
3647     return resultobj;
3648     fail:
3649     return NULL;
3650 }
3651
3652
3653 static PyObject *_wrap_OBClient_urgent(PyObject *self, PyObject *args) {
3654     PyObject *resultobj;
3655     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3656     bool result;
3657     PyObject * obj0  = 0 ;
3658     
3659     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_urgent",&obj0)) goto fail;
3660     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3661     result = (bool)((ob::OBClient const *)arg1)->urgent();
3662     
3663     resultobj = PyInt_FromLong((long)result);
3664     return resultobj;
3665     fail:
3666     return NULL;
3667 }
3668
3669
3670 static PyObject *_wrap_OBClient_focusNotify(PyObject *self, PyObject *args) {
3671     PyObject *resultobj;
3672     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3673     bool result;
3674     PyObject * obj0  = 0 ;
3675     
3676     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focusNotify",&obj0)) goto fail;
3677     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3678     result = (bool)((ob::OBClient const *)arg1)->focusNotify();
3679     
3680     resultobj = PyInt_FromLong((long)result);
3681     return resultobj;
3682     fail:
3683     return NULL;
3684 }
3685
3686
3687 static PyObject *_wrap_OBClient_shaped(PyObject *self, PyObject *args) {
3688     PyObject *resultobj;
3689     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3690     bool result;
3691     PyObject * obj0  = 0 ;
3692     
3693     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaped",&obj0)) goto fail;
3694     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3695     result = (bool)((ob::OBClient const *)arg1)->shaped();
3696     
3697     resultobj = PyInt_FromLong((long)result);
3698     return resultobj;
3699     fail:
3700     return NULL;
3701 }
3702
3703
3704 static PyObject *_wrap_OBClient_gravity(PyObject *self, PyObject *args) {
3705     PyObject *resultobj;
3706     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3707     int result;
3708     PyObject * obj0  = 0 ;
3709     
3710     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_gravity",&obj0)) goto fail;
3711     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3712     result = (int)((ob::OBClient const *)arg1)->gravity();
3713     
3714     resultobj = PyInt_FromLong((long)result);
3715     return resultobj;
3716     fail:
3717     return NULL;
3718 }
3719
3720
3721 static PyObject *_wrap_OBClient_positionRequested(PyObject *self, PyObject *args) {
3722     PyObject *resultobj;
3723     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3724     bool result;
3725     PyObject * obj0  = 0 ;
3726     
3727     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_positionRequested",&obj0)) goto fail;
3728     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3729     result = (bool)((ob::OBClient const *)arg1)->positionRequested();
3730     
3731     resultobj = PyInt_FromLong((long)result);
3732     return resultobj;
3733     fail:
3734     return NULL;
3735 }
3736
3737
3738 static PyObject *_wrap_OBClient_decorations(PyObject *self, PyObject *args) {
3739     PyObject *resultobj;
3740     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3741     ob::OBClient::DecorationFlags result;
3742     PyObject * obj0  = 0 ;
3743     
3744     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_decorations",&obj0)) goto fail;
3745     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3746     result = (ob::OBClient::DecorationFlags)((ob::OBClient const *)arg1)->decorations();
3747     
3748     resultobj = PyInt_FromLong((long)result);
3749     return resultobj;
3750     fail:
3751     return NULL;
3752 }
3753
3754
3755 static PyObject *_wrap_OBClient_funtions(PyObject *self, PyObject *args) {
3756     PyObject *resultobj;
3757     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3758     ob::OBClient::FunctionFlags result;
3759     PyObject * obj0  = 0 ;
3760     
3761     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_funtions",&obj0)) goto fail;
3762     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3763     result = (ob::OBClient::FunctionFlags)((ob::OBClient const *)arg1)->funtions();
3764     
3765     resultobj = PyInt_FromLong((long)result);
3766     return resultobj;
3767     fail:
3768     return NULL;
3769 }
3770
3771
3772 static PyObject *_wrap_OBClient_transientFor(PyObject *self, PyObject *args) {
3773     PyObject *resultobj;
3774     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3775     ob::OBClient *result;
3776     PyObject * obj0  = 0 ;
3777     
3778     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_transientFor",&obj0)) goto fail;
3779     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3780     result = (ob::OBClient *)((ob::OBClient const *)arg1)->transientFor();
3781     
3782     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
3783     return resultobj;
3784     fail:
3785     return NULL;
3786 }
3787
3788
3789 static PyObject *_wrap_OBClient_modal(PyObject *self, PyObject *args) {
3790     PyObject *resultobj;
3791     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3792     bool result;
3793     PyObject * obj0  = 0 ;
3794     
3795     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_modal",&obj0)) goto fail;
3796     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3797     result = (bool)((ob::OBClient const *)arg1)->modal();
3798     
3799     resultobj = PyInt_FromLong((long)result);
3800     return resultobj;
3801     fail:
3802     return NULL;
3803 }
3804
3805
3806 static PyObject *_wrap_OBClient_shaded(PyObject *self, PyObject *args) {
3807     PyObject *resultobj;
3808     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3809     bool result;
3810     PyObject * obj0  = 0 ;
3811     
3812     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaded",&obj0)) goto fail;
3813     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3814     result = (bool)((ob::OBClient const *)arg1)->shaded();
3815     
3816     resultobj = PyInt_FromLong((long)result);
3817     return resultobj;
3818     fail:
3819     return NULL;
3820 }
3821
3822
3823 static PyObject *_wrap_OBClient_iconic(PyObject *self, PyObject *args) {
3824     PyObject *resultobj;
3825     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3826     bool result;
3827     PyObject * obj0  = 0 ;
3828     
3829     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconic",&obj0)) goto fail;
3830     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3831     result = (bool)((ob::OBClient const *)arg1)->iconic();
3832     
3833     resultobj = PyInt_FromLong((long)result);
3834     return resultobj;
3835     fail:
3836     return NULL;
3837 }
3838
3839
3840 static PyObject *_wrap_OBClient_maxVert(PyObject *self, PyObject *args) {
3841     PyObject *resultobj;
3842     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3843     bool result;
3844     PyObject * obj0  = 0 ;
3845     
3846     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxVert",&obj0)) goto fail;
3847     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3848     result = (bool)((ob::OBClient const *)arg1)->maxVert();
3849     
3850     resultobj = PyInt_FromLong((long)result);
3851     return resultobj;
3852     fail:
3853     return NULL;
3854 }
3855
3856
3857 static PyObject *_wrap_OBClient_maxHorz(PyObject *self, PyObject *args) {
3858     PyObject *resultobj;
3859     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3860     bool result;
3861     PyObject * obj0  = 0 ;
3862     
3863     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxHorz",&obj0)) goto fail;
3864     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3865     result = (bool)((ob::OBClient const *)arg1)->maxHorz();
3866     
3867     resultobj = PyInt_FromLong((long)result);
3868     return resultobj;
3869     fail:
3870     return NULL;
3871 }
3872
3873
3874 static PyObject *_wrap_OBClient_layer(PyObject *self, PyObject *args) {
3875     PyObject *resultobj;
3876     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3877     int result;
3878     PyObject * obj0  = 0 ;
3879     
3880     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_layer",&obj0)) goto fail;
3881     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3882     result = (int)((ob::OBClient const *)arg1)->layer();
3883     
3884     resultobj = PyInt_FromLong((long)result);
3885     return resultobj;
3886     fail:
3887     return NULL;
3888 }
3889
3890
3891 static PyObject *_wrap_OBClient_toggleClientBorder(PyObject *self, PyObject *args) {
3892     PyObject *resultobj;
3893     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3894     bool arg2 ;
3895     PyObject * obj0  = 0 ;
3896     PyObject * obj1  = 0 ;
3897     
3898     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_toggleClientBorder",&obj0,&obj1)) goto fail;
3899     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3900     arg2 = (bool) PyInt_AsLong(obj1);
3901     if (PyErr_Occurred()) SWIG_fail;
3902     (arg1)->toggleClientBorder(arg2);
3903     
3904     Py_INCREF(Py_None); resultobj = Py_None;
3905     return resultobj;
3906     fail:
3907     return NULL;
3908 }
3909
3910
3911 static PyObject *_wrap_OBClient_area(PyObject *self, PyObject *args) {
3912     PyObject *resultobj;
3913     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3914     otk::Rect *result;
3915     PyObject * obj0  = 0 ;
3916     
3917     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_area",&obj0)) goto fail;
3918     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3919     {
3920         otk::Rect const &_result_ref = ((ob::OBClient const *)arg1)->area();
3921         result = (otk::Rect *) &_result_ref;
3922     }
3923     
3924     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
3925     return resultobj;
3926     fail:
3927     return NULL;
3928 }
3929
3930
3931 static PyObject *_wrap_OBClient_strut(PyObject *self, PyObject *args) {
3932     PyObject *resultobj;
3933     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3934     otk::Strut *result;
3935     PyObject * obj0  = 0 ;
3936     
3937     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_strut",&obj0)) goto fail;
3938     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3939     {
3940         otk::Strut const &_result_ref = ((ob::OBClient const *)arg1)->strut();
3941         result = (otk::Strut *) &_result_ref;
3942     }
3943     
3944     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 0);
3945     return resultobj;
3946     fail:
3947     return NULL;
3948 }
3949
3950
3951 static PyObject *_wrap_OBClient_move(PyObject *self, PyObject *args) {
3952     PyObject *resultobj;
3953     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3954     int arg2 ;
3955     int arg3 ;
3956     PyObject * obj0  = 0 ;
3957     
3958     if(!PyArg_ParseTuple(args,(char *)"Oii:OBClient_move",&obj0,&arg2,&arg3)) goto fail;
3959     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3960     (arg1)->move(arg2,arg3);
3961     
3962     Py_INCREF(Py_None); resultobj = Py_None;
3963     return resultobj;
3964     fail:
3965     return NULL;
3966 }
3967
3968
3969 static PyObject *_wrap_OBClient_resize(PyObject *self, PyObject *args) {
3970     PyObject *resultobj;
3971     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3972     int arg2 ;
3973     int arg3 ;
3974     int arg4 ;
3975     int arg5 = (int) INT_MIN ;
3976     int arg6 = (int) INT_MIN ;
3977     PyObject * obj0  = 0 ;
3978     
3979     if(!PyArg_ParseTuple(args,(char *)"Oiii|ii:OBClient_resize",&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
3980     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3981     (arg1)->resize((ob::OBClient::Corner )arg2,arg3,arg4,arg5,arg6);
3982     
3983     Py_INCREF(Py_None); resultobj = Py_None;
3984     return resultobj;
3985     fail:
3986     return NULL;
3987 }
3988
3989
3990 static PyObject *_wrap_OBClient_focus(PyObject *self, PyObject *args) {
3991     PyObject *resultobj;
3992     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
3993     bool result;
3994     PyObject * obj0  = 0 ;
3995     
3996     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focus",&obj0)) goto fail;
3997     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3998     result = (bool)((ob::OBClient const *)arg1)->focus();
3999     
4000     resultobj = PyInt_FromLong((long)result);
4001     return resultobj;
4002     fail:
4003     return NULL;
4004 }
4005
4006
4007 static PyObject *_wrap_OBClient_unfocus(PyObject *self, PyObject *args) {
4008     PyObject *resultobj;
4009     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
4010     PyObject * obj0  = 0 ;
4011     
4012     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_unfocus",&obj0)) goto fail;
4013     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4014     ((ob::OBClient const *)arg1)->unfocus();
4015     
4016     Py_INCREF(Py_None); resultobj = Py_None;
4017     return resultobj;
4018     fail:
4019     return NULL;
4020 }
4021
4022
4023 static PyObject *_wrap_OBClient_focusHandler(PyObject *self, PyObject *args) {
4024     PyObject *resultobj;
4025     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
4026     XFocusChangeEvent *arg2 = 0 ;
4027     PyObject * obj0  = 0 ;
4028     PyObject * obj1  = 0 ;
4029     
4030     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_focusHandler",&obj0,&obj1)) goto fail;
4031     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4032     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4033     if (arg2 == NULL) {
4034         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4035     }
4036     (arg1)->focusHandler((XFocusChangeEvent const &)*arg2);
4037     
4038     Py_INCREF(Py_None); resultobj = Py_None;
4039     return resultobj;
4040     fail:
4041     return NULL;
4042 }
4043
4044
4045 static PyObject *_wrap_OBClient_unfocusHandler(PyObject *self, PyObject *args) {
4046     PyObject *resultobj;
4047     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
4048     XFocusChangeEvent *arg2 = 0 ;
4049     PyObject * obj0  = 0 ;
4050     PyObject * obj1  = 0 ;
4051     
4052     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unfocusHandler",&obj0,&obj1)) goto fail;
4053     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4054     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4055     if (arg2 == NULL) {
4056         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4057     }
4058     (arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2);
4059     
4060     Py_INCREF(Py_None); resultobj = Py_None;
4061     return resultobj;
4062     fail:
4063     return NULL;
4064 }
4065
4066
4067 static PyObject *_wrap_OBClient_propertyHandler(PyObject *self, PyObject *args) {
4068     PyObject *resultobj;
4069     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
4070     XPropertyEvent *arg2 = 0 ;
4071     PyObject * obj0  = 0 ;
4072     PyObject * obj1  = 0 ;
4073     
4074     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_propertyHandler",&obj0,&obj1)) goto fail;
4075     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4076     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4077     if (arg2 == NULL) {
4078         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4079     }
4080     (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
4081     
4082     Py_INCREF(Py_None); resultobj = Py_None;
4083     return resultobj;
4084     fail:
4085     return NULL;
4086 }
4087
4088
4089 static PyObject *_wrap_OBClient_clientMessageHandler(PyObject *self, PyObject *args) {
4090     PyObject *resultobj;
4091     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
4092     XClientMessageEvent *arg2 = 0 ;
4093     PyObject * obj0  = 0 ;
4094     PyObject * obj1  = 0 ;
4095     
4096     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_clientMessageHandler",&obj0,&obj1)) goto fail;
4097     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4098     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4099     if (arg2 == NULL) {
4100         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4101     }
4102     (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
4103     
4104     Py_INCREF(Py_None); resultobj = Py_None;
4105     return resultobj;
4106     fail:
4107     return NULL;
4108 }
4109
4110
4111 static PyObject *_wrap_OBClient_configureRequestHandler(PyObject *self, PyObject *args) {
4112     PyObject *resultobj;
4113     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
4114     XConfigureRequestEvent *arg2 = 0 ;
4115     PyObject * obj0  = 0 ;
4116     PyObject * obj1  = 0 ;
4117     
4118     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_configureRequestHandler",&obj0,&obj1)) goto fail;
4119     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4120     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4121     if (arg2 == NULL) {
4122         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4123     }
4124     (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2);
4125     
4126     Py_INCREF(Py_None); resultobj = Py_None;
4127     return resultobj;
4128     fail:
4129     return NULL;
4130 }
4131
4132
4133 static PyObject *_wrap_OBClient_unmapHandler(PyObject *self, PyObject *args) {
4134     PyObject *resultobj;
4135     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
4136     XUnmapEvent *arg2 = 0 ;
4137     PyObject * obj0  = 0 ;
4138     PyObject * obj1  = 0 ;
4139     
4140     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unmapHandler",&obj0,&obj1)) goto fail;
4141     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4142     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4143     if (arg2 == NULL) {
4144         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4145     }
4146     (arg1)->unmapHandler((XUnmapEvent const &)*arg2);
4147     
4148     Py_INCREF(Py_None); resultobj = Py_None;
4149     return resultobj;
4150     fail:
4151     return NULL;
4152 }
4153
4154
4155 static PyObject *_wrap_OBClient_destroyHandler(PyObject *self, PyObject *args) {
4156     PyObject *resultobj;
4157     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
4158     XDestroyWindowEvent *arg2 = 0 ;
4159     PyObject * obj0  = 0 ;
4160     PyObject * obj1  = 0 ;
4161     
4162     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_destroyHandler",&obj0,&obj1)) goto fail;
4163     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4164     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4165     if (arg2 == NULL) {
4166         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4167     }
4168     (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2);
4169     
4170     Py_INCREF(Py_None); resultobj = Py_None;
4171     return resultobj;
4172     fail:
4173     return NULL;
4174 }
4175
4176
4177 static PyObject *_wrap_OBClient_reparentHandler(PyObject *self, PyObject *args) {
4178     PyObject *resultobj;
4179     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
4180     XReparentEvent *arg2 = 0 ;
4181     PyObject * obj0  = 0 ;
4182     PyObject * obj1  = 0 ;
4183     
4184     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_reparentHandler",&obj0,&obj1)) goto fail;
4185     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4186     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4187     if (arg2 == NULL) {
4188         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4189     }
4190     (arg1)->reparentHandler((XReparentEvent const &)*arg2);
4191     
4192     Py_INCREF(Py_None); resultobj = Py_None;
4193     return resultobj;
4194     fail:
4195     return NULL;
4196 }
4197
4198
4199 static PyObject * OBClient_swigregister(PyObject *self, PyObject *args) {
4200     PyObject *obj;
4201     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4202     SWIG_TypeClientData(SWIGTYPE_p_ob__OBClient, obj);
4203     Py_INCREF(obj);
4204     return Py_BuildValue((char *)"");
4205 }
4206 static PyObject *_wrap_MouseData_screen_set(PyObject *self, PyObject *args) {
4207     PyObject *resultobj;
4208     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4209     int arg2 ;
4210     PyObject * obj0  = 0 ;
4211     
4212     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_screen_set",&obj0,&arg2)) goto fail;
4213     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4214     if (arg1) (arg1)->screen = arg2;
4215     
4216     Py_INCREF(Py_None); resultobj = Py_None;
4217     return resultobj;
4218     fail:
4219     return NULL;
4220 }
4221
4222
4223 static PyObject *_wrap_MouseData_screen_get(PyObject *self, PyObject *args) {
4224     PyObject *resultobj;
4225     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4226     int result;
4227     PyObject * obj0  = 0 ;
4228     
4229     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_screen_get",&obj0)) goto fail;
4230     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4231     result = (int) ((arg1)->screen);
4232     
4233     resultobj = PyInt_FromLong((long)result);
4234     return resultobj;
4235     fail:
4236     return NULL;
4237 }
4238
4239
4240 static PyObject *_wrap_MouseData_client_set(PyObject *self, PyObject *args) {
4241     PyObject *resultobj;
4242     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4243     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
4244     PyObject * obj0  = 0 ;
4245     PyObject * obj1  = 0 ;
4246     
4247     if(!PyArg_ParseTuple(args,(char *)"OO:MouseData_client_set",&obj0,&obj1)) goto fail;
4248     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4249     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
4250     if (arg1) (arg1)->client = arg2;
4251     
4252     Py_INCREF(Py_None); resultobj = Py_None;
4253     return resultobj;
4254     fail:
4255     return NULL;
4256 }
4257
4258
4259 static PyObject *_wrap_MouseData_client_get(PyObject *self, PyObject *args) {
4260     PyObject *resultobj;
4261     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4262     ob::OBClient *result;
4263     PyObject * obj0  = 0 ;
4264     
4265     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_client_get",&obj0)) goto fail;
4266     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4267     result = (ob::OBClient *) ((arg1)->client);
4268     
4269     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
4270     return resultobj;
4271     fail:
4272     return NULL;
4273 }
4274
4275
4276 static PyObject *_wrap_MouseData_time_set(PyObject *self, PyObject *args) {
4277     PyObject *resultobj;
4278     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4279     Time arg2 ;
4280     PyObject * obj0  = 0 ;
4281     PyObject * obj1  = 0 ;
4282     
4283     if(!PyArg_ParseTuple(args,(char *)"OO:MouseData_time_set",&obj0,&obj1)) goto fail;
4284     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4285     arg2 = (Time) PyInt_AsLong(obj1);
4286     if (PyErr_Occurred()) SWIG_fail;
4287     if (arg1) (arg1)->time = arg2;
4288     
4289     Py_INCREF(Py_None); resultobj = Py_None;
4290     return resultobj;
4291     fail:
4292     return NULL;
4293 }
4294
4295
4296 static PyObject *_wrap_MouseData_time_get(PyObject *self, PyObject *args) {
4297     PyObject *resultobj;
4298     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4299     Time result;
4300     PyObject * obj0  = 0 ;
4301     
4302     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_time_get",&obj0)) goto fail;
4303     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4304     result = (Time) ((arg1)->time);
4305     
4306     resultobj = PyInt_FromLong((long)result);
4307     return resultobj;
4308     fail:
4309     return NULL;
4310 }
4311
4312
4313 static PyObject *_wrap_MouseData_state_set(PyObject *self, PyObject *args) {
4314     PyObject *resultobj;
4315     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4316     unsigned int arg2 ;
4317     PyObject * obj0  = 0 ;
4318     PyObject * obj1  = 0 ;
4319     
4320     if(!PyArg_ParseTuple(args,(char *)"OO:MouseData_state_set",&obj0,&obj1)) goto fail;
4321     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4322     arg2 = (unsigned int) PyInt_AsLong(obj1);
4323     if (PyErr_Occurred()) SWIG_fail;
4324     if (arg1) (arg1)->state = arg2;
4325     
4326     Py_INCREF(Py_None); resultobj = Py_None;
4327     return resultobj;
4328     fail:
4329     return NULL;
4330 }
4331
4332
4333 static PyObject *_wrap_MouseData_state_get(PyObject *self, PyObject *args) {
4334     PyObject *resultobj;
4335     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4336     unsigned int result;
4337     PyObject * obj0  = 0 ;
4338     
4339     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_state_get",&obj0)) goto fail;
4340     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4341     result = (unsigned int) ((arg1)->state);
4342     
4343     resultobj = PyInt_FromLong((long)result);
4344     return resultobj;
4345     fail:
4346     return NULL;
4347 }
4348
4349
4350 static PyObject *_wrap_MouseData_button_set(PyObject *self, PyObject *args) {
4351     PyObject *resultobj;
4352     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4353     unsigned int arg2 ;
4354     PyObject * obj0  = 0 ;
4355     PyObject * obj1  = 0 ;
4356     
4357     if(!PyArg_ParseTuple(args,(char *)"OO:MouseData_button_set",&obj0,&obj1)) goto fail;
4358     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4359     arg2 = (unsigned int) PyInt_AsLong(obj1);
4360     if (PyErr_Occurred()) SWIG_fail;
4361     if (arg1) (arg1)->button = arg2;
4362     
4363     Py_INCREF(Py_None); resultobj = Py_None;
4364     return resultobj;
4365     fail:
4366     return NULL;
4367 }
4368
4369
4370 static PyObject *_wrap_MouseData_button_get(PyObject *self, PyObject *args) {
4371     PyObject *resultobj;
4372     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4373     unsigned int result;
4374     PyObject * obj0  = 0 ;
4375     
4376     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_button_get",&obj0)) goto fail;
4377     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4378     result = (unsigned int) ((arg1)->button);
4379     
4380     resultobj = PyInt_FromLong((long)result);
4381     return resultobj;
4382     fail:
4383     return NULL;
4384 }
4385
4386
4387 static PyObject *_wrap_MouseData_context_set(PyObject *self, PyObject *args) {
4388     PyObject *resultobj;
4389     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4390     int arg2 ;
4391     PyObject * obj0  = 0 ;
4392     
4393     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_context_set",&obj0,&arg2)) goto fail;
4394     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4395     if (arg1) (arg1)->context = (ob::MouseContext )arg2;
4396     
4397     Py_INCREF(Py_None); resultobj = Py_None;
4398     return resultobj;
4399     fail:
4400     return NULL;
4401 }
4402
4403
4404 static PyObject *_wrap_MouseData_context_get(PyObject *self, PyObject *args) {
4405     PyObject *resultobj;
4406     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4407     int result;
4408     PyObject * obj0  = 0 ;
4409     
4410     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_context_get",&obj0)) goto fail;
4411     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4412     result = (int) ((arg1)->context);
4413     
4414     resultobj = PyInt_FromLong((long)result);
4415     return resultobj;
4416     fail:
4417     return NULL;
4418 }
4419
4420
4421 static PyObject *_wrap_MouseData_action_set(PyObject *self, PyObject *args) {
4422     PyObject *resultobj;
4423     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4424     int arg2 ;
4425     PyObject * obj0  = 0 ;
4426     
4427     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_action_set",&obj0,&arg2)) goto fail;
4428     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4429     if (arg1) (arg1)->action = (ob::MouseAction )arg2;
4430     
4431     Py_INCREF(Py_None); resultobj = Py_None;
4432     return resultobj;
4433     fail:
4434     return NULL;
4435 }
4436
4437
4438 static PyObject *_wrap_MouseData_action_get(PyObject *self, PyObject *args) {
4439     PyObject *resultobj;
4440     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4441     int result;
4442     PyObject * obj0  = 0 ;
4443     
4444     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_action_get",&obj0)) goto fail;
4445     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4446     result = (int) ((arg1)->action);
4447     
4448     resultobj = PyInt_FromLong((long)result);
4449     return resultobj;
4450     fail:
4451     return NULL;
4452 }
4453
4454
4455 static PyObject *_wrap_MouseData_xroot_set(PyObject *self, PyObject *args) {
4456     PyObject *resultobj;
4457     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4458     int arg2 ;
4459     PyObject * obj0  = 0 ;
4460     
4461     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_xroot_set",&obj0,&arg2)) goto fail;
4462     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4463     if (arg1) (arg1)->xroot = arg2;
4464     
4465     Py_INCREF(Py_None); resultobj = Py_None;
4466     return resultobj;
4467     fail:
4468     return NULL;
4469 }
4470
4471
4472 static PyObject *_wrap_MouseData_xroot_get(PyObject *self, PyObject *args) {
4473     PyObject *resultobj;
4474     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4475     int result;
4476     PyObject * obj0  = 0 ;
4477     
4478     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_xroot_get",&obj0)) goto fail;
4479     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4480     result = (int) ((arg1)->xroot);
4481     
4482     resultobj = PyInt_FromLong((long)result);
4483     return resultobj;
4484     fail:
4485     return NULL;
4486 }
4487
4488
4489 static PyObject *_wrap_MouseData_yroot_set(PyObject *self, PyObject *args) {
4490     PyObject *resultobj;
4491     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4492     int arg2 ;
4493     PyObject * obj0  = 0 ;
4494     
4495     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_yroot_set",&obj0,&arg2)) goto fail;
4496     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4497     if (arg1) (arg1)->yroot = arg2;
4498     
4499     Py_INCREF(Py_None); resultobj = Py_None;
4500     return resultobj;
4501     fail:
4502     return NULL;
4503 }
4504
4505
4506 static PyObject *_wrap_MouseData_yroot_get(PyObject *self, PyObject *args) {
4507     PyObject *resultobj;
4508     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4509     int result;
4510     PyObject * obj0  = 0 ;
4511     
4512     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_yroot_get",&obj0)) goto fail;
4513     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4514     result = (int) ((arg1)->yroot);
4515     
4516     resultobj = PyInt_FromLong((long)result);
4517     return resultobj;
4518     fail:
4519     return NULL;
4520 }
4521
4522
4523 static PyObject *_wrap_MouseData_pressx_set(PyObject *self, PyObject *args) {
4524     PyObject *resultobj;
4525     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4526     int arg2 ;
4527     PyObject * obj0  = 0 ;
4528     
4529     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_pressx_set",&obj0,&arg2)) goto fail;
4530     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4531     if (arg1) (arg1)->pressx = arg2;
4532     
4533     Py_INCREF(Py_None); resultobj = Py_None;
4534     return resultobj;
4535     fail:
4536     return NULL;
4537 }
4538
4539
4540 static PyObject *_wrap_MouseData_pressx_get(PyObject *self, PyObject *args) {
4541     PyObject *resultobj;
4542     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4543     int result;
4544     PyObject * obj0  = 0 ;
4545     
4546     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_pressx_get",&obj0)) goto fail;
4547     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4548     result = (int) ((arg1)->pressx);
4549     
4550     resultobj = PyInt_FromLong((long)result);
4551     return resultobj;
4552     fail:
4553     return NULL;
4554 }
4555
4556
4557 static PyObject *_wrap_MouseData_pressy_set(PyObject *self, PyObject *args) {
4558     PyObject *resultobj;
4559     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4560     int arg2 ;
4561     PyObject * obj0  = 0 ;
4562     
4563     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_pressy_set",&obj0,&arg2)) goto fail;
4564     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4565     if (arg1) (arg1)->pressy = arg2;
4566     
4567     Py_INCREF(Py_None); resultobj = Py_None;
4568     return resultobj;
4569     fail:
4570     return NULL;
4571 }
4572
4573
4574 static PyObject *_wrap_MouseData_pressy_get(PyObject *self, PyObject *args) {
4575     PyObject *resultobj;
4576     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4577     int result;
4578     PyObject * obj0  = 0 ;
4579     
4580     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_pressy_get",&obj0)) goto fail;
4581     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4582     result = (int) ((arg1)->pressy);
4583     
4584     resultobj = PyInt_FromLong((long)result);
4585     return resultobj;
4586     fail:
4587     return NULL;
4588 }
4589
4590
4591 static PyObject *_wrap_MouseData_press_clientx_set(PyObject *self, PyObject *args) {
4592     PyObject *resultobj;
4593     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4594     int arg2 ;
4595     PyObject * obj0  = 0 ;
4596     
4597     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_press_clientx_set",&obj0,&arg2)) goto fail;
4598     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4599     if (arg1) (arg1)->press_clientx = arg2;
4600     
4601     Py_INCREF(Py_None); resultobj = Py_None;
4602     return resultobj;
4603     fail:
4604     return NULL;
4605 }
4606
4607
4608 static PyObject *_wrap_MouseData_press_clientx_get(PyObject *self, PyObject *args) {
4609     PyObject *resultobj;
4610     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4611     int result;
4612     PyObject * obj0  = 0 ;
4613     
4614     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_press_clientx_get",&obj0)) goto fail;
4615     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4616     result = (int) ((arg1)->press_clientx);
4617     
4618     resultobj = PyInt_FromLong((long)result);
4619     return resultobj;
4620     fail:
4621     return NULL;
4622 }
4623
4624
4625 static PyObject *_wrap_MouseData_press_clienty_set(PyObject *self, PyObject *args) {
4626     PyObject *resultobj;
4627     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4628     int arg2 ;
4629     PyObject * obj0  = 0 ;
4630     
4631     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_press_clienty_set",&obj0,&arg2)) goto fail;
4632     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4633     if (arg1) (arg1)->press_clienty = arg2;
4634     
4635     Py_INCREF(Py_None); resultobj = Py_None;
4636     return resultobj;
4637     fail:
4638     return NULL;
4639 }
4640
4641
4642 static PyObject *_wrap_MouseData_press_clienty_get(PyObject *self, PyObject *args) {
4643     PyObject *resultobj;
4644     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4645     int result;
4646     PyObject * obj0  = 0 ;
4647     
4648     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_press_clienty_get",&obj0)) goto fail;
4649     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4650     result = (int) ((arg1)->press_clienty);
4651     
4652     resultobj = PyInt_FromLong((long)result);
4653     return resultobj;
4654     fail:
4655     return NULL;
4656 }
4657
4658
4659 static PyObject *_wrap_MouseData_press_clientwidth_set(PyObject *self, PyObject *args) {
4660     PyObject *resultobj;
4661     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4662     int arg2 ;
4663     PyObject * obj0  = 0 ;
4664     
4665     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_press_clientwidth_set",&obj0,&arg2)) goto fail;
4666     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4667     if (arg1) (arg1)->press_clientwidth = arg2;
4668     
4669     Py_INCREF(Py_None); resultobj = Py_None;
4670     return resultobj;
4671     fail:
4672     return NULL;
4673 }
4674
4675
4676 static PyObject *_wrap_MouseData_press_clientwidth_get(PyObject *self, PyObject *args) {
4677     PyObject *resultobj;
4678     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4679     int result;
4680     PyObject * obj0  = 0 ;
4681     
4682     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_press_clientwidth_get",&obj0)) goto fail;
4683     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4684     result = (int) ((arg1)->press_clientwidth);
4685     
4686     resultobj = PyInt_FromLong((long)result);
4687     return resultobj;
4688     fail:
4689     return NULL;
4690 }
4691
4692
4693 static PyObject *_wrap_MouseData_press_clientheight_set(PyObject *self, PyObject *args) {
4694     PyObject *resultobj;
4695     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4696     int arg2 ;
4697     PyObject * obj0  = 0 ;
4698     
4699     if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_press_clientheight_set",&obj0,&arg2)) goto fail;
4700     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4701     if (arg1) (arg1)->press_clientheight = arg2;
4702     
4703     Py_INCREF(Py_None); resultobj = Py_None;
4704     return resultobj;
4705     fail:
4706     return NULL;
4707 }
4708
4709
4710 static PyObject *_wrap_MouseData_press_clientheight_get(PyObject *self, PyObject *args) {
4711     PyObject *resultobj;
4712     ob::MouseData *arg1 = (ob::MouseData *) 0 ;
4713     int result;
4714     PyObject * obj0  = 0 ;
4715     
4716     if(!PyArg_ParseTuple(args,(char *)"O:MouseData_press_clientheight_get",&obj0)) goto fail;
4717     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4718     result = (int) ((arg1)->press_clientheight);
4719     
4720     resultobj = PyInt_FromLong((long)result);
4721     return resultobj;
4722     fail:
4723     return NULL;
4724 }
4725
4726
4727 static PyObject *_wrap_new_MouseData__SWIG_0(PyObject *self, PyObject *args) {
4728     PyObject *resultobj;
4729     int arg1 ;
4730     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
4731     Time arg3 ;
4732     unsigned int arg4 ;
4733     unsigned int arg5 ;
4734     int arg6 ;
4735     int arg7 ;
4736     int arg8 ;
4737     int arg9 ;
4738     otk::Point *arg10 = 0 ;
4739     otk::Rect *arg11 = 0 ;
4740     ob::MouseData *result;
4741     PyObject * obj1  = 0 ;
4742     PyObject * obj2  = 0 ;
4743     PyObject * obj3  = 0 ;
4744     PyObject * obj4  = 0 ;
4745     PyObject * obj9  = 0 ;
4746     PyObject * obj10  = 0 ;
4747     
4748     if(!PyArg_ParseTuple(args,(char *)"iOOOOiiiiOO:new_MouseData",&arg1,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7,&arg8,&arg9,&obj9,&obj10)) goto fail;
4749     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4750     arg3 = (Time) PyInt_AsLong(obj2);
4751     if (PyErr_Occurred()) SWIG_fail;
4752     arg4 = (unsigned int) PyInt_AsLong(obj3);
4753     if (PyErr_Occurred()) SWIG_fail;
4754     arg5 = (unsigned int) PyInt_AsLong(obj4);
4755     if (PyErr_Occurred()) SWIG_fail;
4756     if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4757     if (arg10 == NULL) {
4758         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4759     }
4760     if ((SWIG_ConvertPtr(obj10,(void **) &arg11, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4761     if (arg11 == NULL) {
4762         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
4763     }
4764     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);
4765     
4766     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__MouseData, 1);
4767     return resultobj;
4768     fail:
4769     return NULL;
4770 }
4771
4772
4773 static PyObject *_wrap_new_MouseData__SWIG_1(PyObject *self, PyObject *args) {
4774     PyObject *resultobj;
4775     int arg1 ;
4776     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
4777     Time arg3 ;
4778     unsigned int arg4 ;
4779     unsigned int arg5 ;
4780     int arg6 ;
4781     int arg7 ;
4782     ob::MouseData *result;
4783     PyObject * obj1  = 0 ;
4784     PyObject * obj2  = 0 ;
4785     PyObject * obj3  = 0 ;
4786     PyObject * obj4  = 0 ;
4787     
4788     if(!PyArg_ParseTuple(args,(char *)"iOOOOii:new_MouseData",&arg1,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7)) goto fail;
4789     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4790     arg3 = (Time) PyInt_AsLong(obj2);
4791     if (PyErr_Occurred()) SWIG_fail;
4792     arg4 = (unsigned int) PyInt_AsLong(obj3);
4793     if (PyErr_Occurred()) SWIG_fail;
4794     arg5 = (unsigned int) PyInt_AsLong(obj4);
4795     if (PyErr_Occurred()) SWIG_fail;
4796     result = (ob::MouseData *)new ob::MouseData(arg1,arg2,arg3,arg4,arg5,(ob::MouseContext )arg6,(ob::MouseAction )arg7);
4797     
4798     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__MouseData, 1);
4799     return resultobj;
4800     fail:
4801     return NULL;
4802 }
4803
4804
4805 static PyObject *_wrap_new_MouseData(PyObject *self, PyObject *args) {
4806     int argc;
4807     PyObject *argv[12];
4808     int ii;
4809     
4810     argc = PyObject_Length(args);
4811     for (ii = 0; (ii < argc) && (ii < 11); ii++) {
4812         argv[ii] = PyTuple_GetItem(args,ii);
4813     }
4814     if (argc == 7) {
4815         int _v;
4816         {
4817             _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
4818         }
4819         if (_v) {
4820             {
4821                 void *ptr;
4822                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_ob__OBClient, 0) == -1) {
4823                     _v = 0;
4824                     PyErr_Clear();
4825                 }else {
4826                     _v = 1;
4827                 }
4828             }
4829             if (_v) {
4830                 {
4831                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
4832                 }
4833                 if (_v) {
4834                     {
4835                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
4836                     }
4837                     if (_v) {
4838                         {
4839                             _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
4840                         }
4841                         if (_v) {
4842                             {
4843                                 _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
4844                             }
4845                             if (_v) {
4846                                 {
4847                                     _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
4848                                 }
4849                                 if (_v) {
4850                                     return _wrap_new_MouseData__SWIG_1(self,args);
4851                                 }
4852                             }
4853                         }
4854                     }
4855                 }
4856             }
4857         }
4858     }
4859     if (argc == 11) {
4860         int _v;
4861         {
4862             _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
4863         }
4864         if (_v) {
4865             {
4866                 void *ptr;
4867                 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_ob__OBClient, 0) == -1) {
4868                     _v = 0;
4869                     PyErr_Clear();
4870                 }else {
4871                     _v = 1;
4872                 }
4873             }
4874             if (_v) {
4875                 {
4876                     _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
4877                 }
4878                 if (_v) {
4879                     {
4880                         _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
4881                     }
4882                     if (_v) {
4883                         {
4884                             _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
4885                         }
4886                         if (_v) {
4887                             {
4888                                 _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
4889                             }
4890                             if (_v) {
4891                                 {
4892                                     _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
4893                                 }
4894                                 if (_v) {
4895                                     {
4896                                         _v = (PyInt_Check(argv[7]) || PyLong_Check(argv[7])) ? 1 : 0;
4897                                     }
4898                                     if (_v) {
4899                                         {
4900                                             _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
4901                                         }
4902                                         if (_v) {
4903                                             {
4904                                                 void *ptr;
4905                                                 if (SWIG_ConvertPtr(argv[9], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
4906                                                     _v = 0;
4907                                                     PyErr_Clear();
4908                                                 }else {
4909                                                     _v = 1;
4910                                                 }
4911                                             }
4912                                             if (_v) {
4913                                                 {
4914                                                     void *ptr;
4915                                                     if (SWIG_ConvertPtr(argv[10], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
4916                                                         _v = 0;
4917                                                         PyErr_Clear();
4918                                                     }else {
4919                                                         _v = 1;
4920                                                     }
4921                                                 }
4922                                                 if (_v) {
4923                                                     return _wrap_new_MouseData__SWIG_0(self,args);
4924                                                 }
4925                                             }
4926                                         }
4927                                     }
4928                                 }
4929                             }
4930                         }
4931                     }
4932                 }
4933             }
4934         }
4935     }
4936     
4937     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_MouseData'");
4938     return NULL;
4939 }
4940
4941
4942 static PyObject * MouseData_swigregister(PyObject *self, PyObject *args) {
4943     PyObject *obj;
4944     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4945     SWIG_TypeClientData(SWIGTYPE_p_ob__MouseData, obj);
4946     Py_INCREF(obj);
4947     return Py_BuildValue((char *)"");
4948 }
4949 static PyObject *_wrap_EventData_screen_set(PyObject *self, PyObject *args) {
4950     PyObject *resultobj;
4951     ob::EventData *arg1 = (ob::EventData *) 0 ;
4952     int arg2 ;
4953     PyObject * obj0  = 0 ;
4954     
4955     if(!PyArg_ParseTuple(args,(char *)"Oi:EventData_screen_set",&obj0,&arg2)) goto fail;
4956     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4957     if (arg1) (arg1)->screen = arg2;
4958     
4959     Py_INCREF(Py_None); resultobj = Py_None;
4960     return resultobj;
4961     fail:
4962     return NULL;
4963 }
4964
4965
4966 static PyObject *_wrap_EventData_screen_get(PyObject *self, PyObject *args) {
4967     PyObject *resultobj;
4968     ob::EventData *arg1 = (ob::EventData *) 0 ;
4969     int result;
4970     PyObject * obj0  = 0 ;
4971     
4972     if(!PyArg_ParseTuple(args,(char *)"O:EventData_screen_get",&obj0)) goto fail;
4973     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4974     result = (int) ((arg1)->screen);
4975     
4976     resultobj = PyInt_FromLong((long)result);
4977     return resultobj;
4978     fail:
4979     return NULL;
4980 }
4981
4982
4983 static PyObject *_wrap_EventData_client_set(PyObject *self, PyObject *args) {
4984     PyObject *resultobj;
4985     ob::EventData *arg1 = (ob::EventData *) 0 ;
4986     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
4987     PyObject * obj0  = 0 ;
4988     PyObject * obj1  = 0 ;
4989     
4990     if(!PyArg_ParseTuple(args,(char *)"OO:EventData_client_set",&obj0,&obj1)) goto fail;
4991     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4992     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
4993     if (arg1) (arg1)->client = arg2;
4994     
4995     Py_INCREF(Py_None); resultobj = Py_None;
4996     return resultobj;
4997     fail:
4998     return NULL;
4999 }
5000
5001
5002 static PyObject *_wrap_EventData_client_get(PyObject *self, PyObject *args) {
5003     PyObject *resultobj;
5004     ob::EventData *arg1 = (ob::EventData *) 0 ;
5005     ob::OBClient *result;
5006     PyObject * obj0  = 0 ;
5007     
5008     if(!PyArg_ParseTuple(args,(char *)"O:EventData_client_get",&obj0)) goto fail;
5009     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5010     result = (ob::OBClient *) ((arg1)->client);
5011     
5012     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
5013     return resultobj;
5014     fail:
5015     return NULL;
5016 }
5017
5018
5019 static PyObject *_wrap_EventData_state_set(PyObject *self, PyObject *args) {
5020     PyObject *resultobj;
5021     ob::EventData *arg1 = (ob::EventData *) 0 ;
5022     unsigned int arg2 ;
5023     PyObject * obj0  = 0 ;
5024     PyObject * obj1  = 0 ;
5025     
5026     if(!PyArg_ParseTuple(args,(char *)"OO:EventData_state_set",&obj0,&obj1)) goto fail;
5027     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5028     arg2 = (unsigned int) PyInt_AsLong(obj1);
5029     if (PyErr_Occurred()) SWIG_fail;
5030     if (arg1) (arg1)->state = arg2;
5031     
5032     Py_INCREF(Py_None); resultobj = Py_None;
5033     return resultobj;
5034     fail:
5035     return NULL;
5036 }
5037
5038
5039 static PyObject *_wrap_EventData_state_get(PyObject *self, PyObject *args) {
5040     PyObject *resultobj;
5041     ob::EventData *arg1 = (ob::EventData *) 0 ;
5042     unsigned int result;
5043     PyObject * obj0  = 0 ;
5044     
5045     if(!PyArg_ParseTuple(args,(char *)"O:EventData_state_get",&obj0)) goto fail;
5046     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5047     result = (unsigned int) ((arg1)->state);
5048     
5049     resultobj = PyInt_FromLong((long)result);
5050     return resultobj;
5051     fail:
5052     return NULL;
5053 }
5054
5055
5056 static PyObject *_wrap_EventData_action_set(PyObject *self, PyObject *args) {
5057     PyObject *resultobj;
5058     ob::EventData *arg1 = (ob::EventData *) 0 ;
5059     int arg2 ;
5060     PyObject * obj0  = 0 ;
5061     
5062     if(!PyArg_ParseTuple(args,(char *)"Oi:EventData_action_set",&obj0,&arg2)) goto fail;
5063     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5064     if (arg1) (arg1)->action = (ob::EventAction )arg2;
5065     
5066     Py_INCREF(Py_None); resultobj = Py_None;
5067     return resultobj;
5068     fail:
5069     return NULL;
5070 }
5071
5072
5073 static PyObject *_wrap_EventData_action_get(PyObject *self, PyObject *args) {
5074     PyObject *resultobj;
5075     ob::EventData *arg1 = (ob::EventData *) 0 ;
5076     int result;
5077     PyObject * obj0  = 0 ;
5078     
5079     if(!PyArg_ParseTuple(args,(char *)"O:EventData_action_get",&obj0)) goto fail;
5080     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5081     result = (int) ((arg1)->action);
5082     
5083     resultobj = PyInt_FromLong((long)result);
5084     return resultobj;
5085     fail:
5086     return NULL;
5087 }
5088
5089
5090 static PyObject *_wrap_new_EventData(PyObject *self, PyObject *args) {
5091     PyObject *resultobj;
5092     int arg1 ;
5093     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
5094     int arg3 ;
5095     unsigned int arg4 ;
5096     ob::EventData *result;
5097     PyObject * obj1  = 0 ;
5098     PyObject * obj3  = 0 ;
5099     
5100     if(!PyArg_ParseTuple(args,(char *)"iOiO:new_EventData",&arg1,&obj1,&arg3,&obj3)) goto fail;
5101     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5102     arg4 = (unsigned int) PyInt_AsLong(obj3);
5103     if (PyErr_Occurred()) SWIG_fail;
5104     result = (ob::EventData *)new ob::EventData(arg1,arg2,(ob::EventAction )arg3,arg4);
5105     
5106     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__EventData, 1);
5107     return resultobj;
5108     fail:
5109     return NULL;
5110 }
5111
5112
5113 static PyObject * EventData_swigregister(PyObject *self, PyObject *args) {
5114     PyObject *obj;
5115     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5116     SWIG_TypeClientData(SWIGTYPE_p_ob__EventData, obj);
5117     Py_INCREF(obj);
5118     return Py_BuildValue((char *)"");
5119 }
5120 static PyObject *_wrap_KeyData_screen_set(PyObject *self, PyObject *args) {
5121     PyObject *resultobj;
5122     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
5123     int arg2 ;
5124     PyObject * obj0  = 0 ;
5125     
5126     if(!PyArg_ParseTuple(args,(char *)"Oi:KeyData_screen_set",&obj0,&arg2)) goto fail;
5127     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5128     if (arg1) (arg1)->screen = arg2;
5129     
5130     Py_INCREF(Py_None); resultobj = Py_None;
5131     return resultobj;
5132     fail:
5133     return NULL;
5134 }
5135
5136
5137 static PyObject *_wrap_KeyData_screen_get(PyObject *self, PyObject *args) {
5138     PyObject *resultobj;
5139     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
5140     int result;
5141     PyObject * obj0  = 0 ;
5142     
5143     if(!PyArg_ParseTuple(args,(char *)"O:KeyData_screen_get",&obj0)) goto fail;
5144     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5145     result = (int) ((arg1)->screen);
5146     
5147     resultobj = PyInt_FromLong((long)result);
5148     return resultobj;
5149     fail:
5150     return NULL;
5151 }
5152
5153
5154 static PyObject *_wrap_KeyData_client_set(PyObject *self, PyObject *args) {
5155     PyObject *resultobj;
5156     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
5157     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
5158     PyObject * obj0  = 0 ;
5159     PyObject * obj1  = 0 ;
5160     
5161     if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_client_set",&obj0,&obj1)) goto fail;
5162     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5163     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
5164     if (arg1) (arg1)->client = arg2;
5165     
5166     Py_INCREF(Py_None); resultobj = Py_None;
5167     return resultobj;
5168     fail:
5169     return NULL;
5170 }
5171
5172
5173 static PyObject *_wrap_KeyData_client_get(PyObject *self, PyObject *args) {
5174     PyObject *resultobj;
5175     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
5176     ob::OBClient *result;
5177     PyObject * obj0  = 0 ;
5178     
5179     if(!PyArg_ParseTuple(args,(char *)"O:KeyData_client_get",&obj0)) goto fail;
5180     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5181     result = (ob::OBClient *) ((arg1)->client);
5182     
5183     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
5184     return resultobj;
5185     fail:
5186     return NULL;
5187 }
5188
5189
5190 static PyObject *_wrap_KeyData_time_set(PyObject *self, PyObject *args) {
5191     PyObject *resultobj;
5192     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
5193     Time arg2 ;
5194     PyObject * obj0  = 0 ;
5195     PyObject * obj1  = 0 ;
5196     
5197     if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_time_set",&obj0,&obj1)) goto fail;
5198     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5199     arg2 = (Time) PyInt_AsLong(obj1);
5200     if (PyErr_Occurred()) SWIG_fail;
5201     if (arg1) (arg1)->time = arg2;
5202     
5203     Py_INCREF(Py_None); resultobj = Py_None;
5204     return resultobj;
5205     fail:
5206     return NULL;
5207 }
5208
5209
5210 static PyObject *_wrap_KeyData_time_get(PyObject *self, PyObject *args) {
5211     PyObject *resultobj;
5212     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
5213     Time result;
5214     PyObject * obj0  = 0 ;
5215     
5216     if(!PyArg_ParseTuple(args,(char *)"O:KeyData_time_get",&obj0)) goto fail;
5217     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5218     result = (Time) ((arg1)->time);
5219     
5220     resultobj = PyInt_FromLong((long)result);
5221     return resultobj;
5222     fail:
5223     return NULL;
5224 }
5225
5226
5227 static PyObject *_wrap_KeyData_state_set(PyObject *self, PyObject *args) {
5228     PyObject *resultobj;
5229     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
5230     unsigned int arg2 ;
5231     PyObject * obj0  = 0 ;
5232     PyObject * obj1  = 0 ;
5233     
5234     if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_state_set",&obj0,&obj1)) goto fail;
5235     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5236     arg2 = (unsigned int) PyInt_AsLong(obj1);
5237     if (PyErr_Occurred()) SWIG_fail;
5238     if (arg1) (arg1)->state = arg2;
5239     
5240     Py_INCREF(Py_None); resultobj = Py_None;
5241     return resultobj;
5242     fail:
5243     return NULL;
5244 }
5245
5246
5247 static PyObject *_wrap_KeyData_state_get(PyObject *self, PyObject *args) {
5248     PyObject *resultobj;
5249     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
5250     unsigned int result;
5251     PyObject * obj0  = 0 ;
5252     
5253     if(!PyArg_ParseTuple(args,(char *)"O:KeyData_state_get",&obj0)) goto fail;
5254     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5255     result = (unsigned int) ((arg1)->state);
5256     
5257     resultobj = PyInt_FromLong((long)result);
5258     return resultobj;
5259     fail:
5260     return NULL;
5261 }
5262
5263
5264 static PyObject *_wrap_KeyData_key_set(PyObject *self, PyObject *args) {
5265     PyObject *resultobj;
5266     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
5267     std::string *arg2 = (std::string *) 0 ;
5268     PyObject * obj0  = 0 ;
5269     PyObject * obj1  = 0 ;
5270     
5271     if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_key_set",&obj0,&obj1)) goto fail;
5272     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5273     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5274     if (arg1) (arg1)->key = *arg2;
5275     
5276     Py_INCREF(Py_None); resultobj = Py_None;
5277     return resultobj;
5278     fail:
5279     return NULL;
5280 }
5281
5282
5283 static PyObject *_wrap_KeyData_key_get(PyObject *self, PyObject *args) {
5284     PyObject *resultobj;
5285     ob::KeyData *arg1 = (ob::KeyData *) 0 ;
5286     std::string *result;
5287     PyObject * obj0  = 0 ;
5288     
5289     if(!PyArg_ParseTuple(args,(char *)"O:KeyData_key_get",&obj0)) goto fail;
5290     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5291     result = (std::string *)& ((arg1)->key);
5292     
5293     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__string, 0);
5294     return resultobj;
5295     fail:
5296     return NULL;
5297 }
5298
5299
5300 static PyObject *_wrap_new_KeyData(PyObject *self, PyObject *args) {
5301     PyObject *resultobj;
5302     int arg1 ;
5303     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
5304     Time arg3 ;
5305     unsigned int arg4 ;
5306     unsigned int arg5 ;
5307     ob::KeyData *result;
5308     PyObject * obj1  = 0 ;
5309     PyObject * obj2  = 0 ;
5310     PyObject * obj3  = 0 ;
5311     PyObject * obj4  = 0 ;
5312     
5313     if(!PyArg_ParseTuple(args,(char *)"iOOOO:new_KeyData",&arg1,&obj1,&obj2,&obj3,&obj4)) goto fail;
5314     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5315     arg3 = (Time) PyInt_AsLong(obj2);
5316     if (PyErr_Occurred()) SWIG_fail;
5317     arg4 = (unsigned int) PyInt_AsLong(obj3);
5318     if (PyErr_Occurred()) SWIG_fail;
5319     arg5 = (unsigned int) PyInt_AsLong(obj4);
5320     if (PyErr_Occurred()) SWIG_fail;
5321     result = (ob::KeyData *)new ob::KeyData(arg1,arg2,arg3,arg4,arg5);
5322     
5323     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__KeyData, 1);
5324     return resultobj;
5325     fail:
5326     return NULL;
5327 }
5328
5329
5330 static PyObject * KeyData_swigregister(PyObject *self, PyObject *args) {
5331     PyObject *obj;
5332     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5333     SWIG_TypeClientData(SWIGTYPE_p_ob__KeyData, obj);
5334     Py_INCREF(obj);
5335     return Py_BuildValue((char *)"");
5336 }
5337 static PyObject *_wrap_mbind(PyObject *self, PyObject *args) {
5338     PyObject *resultobj;
5339     std::string *arg1 = 0 ;
5340     int arg2 ;
5341     int arg3 ;
5342     PyObject *arg4 = (PyObject *) 0 ;
5343     PyObject *result;
5344     std::string temp1 ;
5345     PyObject * obj0  = 0 ;
5346     PyObject * obj3  = 0 ;
5347     
5348     if(!PyArg_ParseTuple(args,(char *)"OiiO:mbind",&obj0,&arg2,&arg3,&obj3)) goto fail;
5349     {
5350         if (PyString_Check(obj0)) {
5351             temp1 = std::string(PyString_AsString(obj0));
5352             arg1 = &temp1;
5353         }else {
5354             SWIG_exception(SWIG_TypeError, "string expected");
5355         }
5356     }
5357     arg4 = obj3;
5358     result = (PyObject *)ob::mbind((std::string const &)*arg1,(ob::MouseContext )arg2,(ob::MouseAction )arg3,arg4);
5359     
5360     resultobj = result;
5361     return resultobj;
5362     fail:
5363     return NULL;
5364 }
5365
5366
5367 static PyObject *_wrap_kbind(PyObject *self, PyObject *args) {
5368     PyObject *resultobj;
5369     PyObject *arg1 = (PyObject *) 0 ;
5370     int arg2 ;
5371     PyObject *arg3 = (PyObject *) 0 ;
5372     PyObject *result;
5373     PyObject * obj0  = 0 ;
5374     PyObject * obj2  = 0 ;
5375     
5376     if(!PyArg_ParseTuple(args,(char *)"OiO:kbind",&obj0,&arg2,&obj2)) goto fail;
5377     arg1 = obj0;
5378     arg3 = obj2;
5379     result = (PyObject *)ob::kbind(arg1,(ob::KeyContext )arg2,arg3);
5380     
5381     resultobj = result;
5382     return resultobj;
5383     fail:
5384     return NULL;
5385 }
5386
5387
5388 static PyObject *_wrap_ebind(PyObject *self, PyObject *args) {
5389     PyObject *resultobj;
5390     int arg1 ;
5391     PyObject *arg2 = (PyObject *) 0 ;
5392     PyObject *result;
5393     PyObject * obj1  = 0 ;
5394     
5395     if(!PyArg_ParseTuple(args,(char *)"iO:ebind",&arg1,&obj1)) goto fail;
5396     arg2 = obj1;
5397     result = (PyObject *)ob::ebind((ob::EventAction )arg1,arg2);
5398     
5399     resultobj = result;
5400     return resultobj;
5401     fail:
5402     return NULL;
5403 }
5404
5405
5406 static PyObject *_wrap_set_reset_key(PyObject *self, PyObject *args) {
5407     PyObject *resultobj;
5408     std::string *arg1 = 0 ;
5409     std::string temp1 ;
5410     PyObject * obj0  = 0 ;
5411     
5412     if(!PyArg_ParseTuple(args,(char *)"O:set_reset_key",&obj0)) goto fail;
5413     {
5414         if (PyString_Check(obj0)) {
5415             temp1 = std::string(PyString_AsString(obj0));
5416             arg1 = &temp1;
5417         }else {
5418             SWIG_exception(SWIG_TypeError, "string expected");
5419         }
5420     }
5421     ob::set_reset_key((std::string const &)*arg1);
5422     
5423     Py_INCREF(Py_None); resultobj = Py_None;
5424     return resultobj;
5425     fail:
5426     return NULL;
5427 }
5428
5429
5430 static PyObject *_wrap_send_client_msg(PyObject *self, PyObject *args) {
5431     PyObject *resultobj;
5432     Window arg1 ;
5433     int arg2 ;
5434     Window arg3 ;
5435     long arg4 ;
5436     long arg5 = (long) 0 ;
5437     long arg6 = (long) 0 ;
5438     long arg7 = (long) 0 ;
5439     long arg8 = (long) 0 ;
5440     PyObject *result;
5441     PyObject * obj0  = 0 ;
5442     PyObject * obj2  = 0 ;
5443     
5444     if(!PyArg_ParseTuple(args,(char *)"OiOl|llll:send_client_msg",&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&arg7,&arg8)) goto fail;
5445     arg1 = (Window) PyInt_AsLong(obj0);
5446     if (PyErr_Occurred()) SWIG_fail;
5447     arg3 = (Window) PyInt_AsLong(obj2);
5448     if (PyErr_Occurred()) SWIG_fail;
5449     result = (PyObject *)ob::send_client_msg(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
5450     
5451     resultobj = result;
5452     return resultobj;
5453     fail:
5454     return NULL;
5455 }
5456
5457
5458 static PyMethodDef SwigMethods[] = {
5459          { (char *)"Openbox_instance", _wrap_Openbox_instance, METH_VARARGS },
5460          { (char *)"new_Point", _wrap_new_Point, METH_VARARGS },
5461          { (char *)"Point_setX", _wrap_Point_setX, METH_VARARGS },
5462          { (char *)"Point_x", _wrap_Point_x, METH_VARARGS },
5463          { (char *)"Point_setY", _wrap_Point_setY, METH_VARARGS },
5464          { (char *)"Point_y", _wrap_Point_y, METH_VARARGS },
5465          { (char *)"Point_setPoint", _wrap_Point_setPoint, METH_VARARGS },
5466          { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS },
5467          { (char *)"new_Rect", _wrap_new_Rect, METH_VARARGS },
5468          { (char *)"Rect_left", _wrap_Rect_left, METH_VARARGS },
5469          { (char *)"Rect_top", _wrap_Rect_top, METH_VARARGS },
5470          { (char *)"Rect_right", _wrap_Rect_right, METH_VARARGS },
5471          { (char *)"Rect_bottom", _wrap_Rect_bottom, METH_VARARGS },
5472          { (char *)"Rect_x", _wrap_Rect_x, METH_VARARGS },
5473          { (char *)"Rect_y", _wrap_Rect_y, METH_VARARGS },
5474          { (char *)"Rect_location", _wrap_Rect_location, METH_VARARGS },
5475          { (char *)"Rect_setX", _wrap_Rect_setX, METH_VARARGS },
5476          { (char *)"Rect_setY", _wrap_Rect_setY, METH_VARARGS },
5477          { (char *)"Rect_setPos", _wrap_Rect_setPos, METH_VARARGS },
5478          { (char *)"Rect_width", _wrap_Rect_width, METH_VARARGS },
5479          { (char *)"Rect_height", _wrap_Rect_height, METH_VARARGS },
5480          { (char *)"Rect_size", _wrap_Rect_size, METH_VARARGS },
5481          { (char *)"Rect_setWidth", _wrap_Rect_setWidth, METH_VARARGS },
5482          { (char *)"Rect_setHeight", _wrap_Rect_setHeight, METH_VARARGS },
5483          { (char *)"Rect_setSize", _wrap_Rect_setSize, METH_VARARGS },
5484          { (char *)"Rect_setRect", _wrap_Rect_setRect, METH_VARARGS },
5485          { (char *)"Rect_setCoords", _wrap_Rect_setCoords, METH_VARARGS },
5486          { (char *)"Rect___eq__", _wrap_Rect___eq__, METH_VARARGS },
5487          { (char *)"Rect___ne__", _wrap_Rect___ne__, METH_VARARGS },
5488          { (char *)"Rect___or__", _wrap_Rect___or__, METH_VARARGS },
5489          { (char *)"Rect___and__", _wrap_Rect___and__, METH_VARARGS },
5490          { (char *)"Rect___ior__", _wrap_Rect___ior__, METH_VARARGS },
5491          { (char *)"Rect___iand__", _wrap_Rect___iand__, METH_VARARGS },
5492          { (char *)"Rect_valid", _wrap_Rect_valid, METH_VARARGS },
5493          { (char *)"Rect_intersects", _wrap_Rect_intersects, METH_VARARGS },
5494          { (char *)"Rect_contains", _wrap_Rect_contains, METH_VARARGS },
5495          { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS },
5496          { (char *)"Cursors_session_set", _wrap_Cursors_session_set, METH_VARARGS },
5497          { (char *)"Cursors_session_get", _wrap_Cursors_session_get, METH_VARARGS },
5498          { (char *)"Cursors_move_set", _wrap_Cursors_move_set, METH_VARARGS },
5499          { (char *)"Cursors_move_get", _wrap_Cursors_move_get, METH_VARARGS },
5500          { (char *)"Cursors_ll_angle_set", _wrap_Cursors_ll_angle_set, METH_VARARGS },
5501          { (char *)"Cursors_ll_angle_get", _wrap_Cursors_ll_angle_get, METH_VARARGS },
5502          { (char *)"Cursors_lr_angle_set", _wrap_Cursors_lr_angle_set, METH_VARARGS },
5503          { (char *)"Cursors_lr_angle_get", _wrap_Cursors_lr_angle_get, METH_VARARGS },
5504          { (char *)"Cursors_ul_angle_set", _wrap_Cursors_ul_angle_set, METH_VARARGS },
5505          { (char *)"Cursors_ul_angle_get", _wrap_Cursors_ul_angle_get, METH_VARARGS },
5506          { (char *)"Cursors_ur_angle_set", _wrap_Cursors_ur_angle_set, METH_VARARGS },
5507          { (char *)"Cursors_ur_angle_get", _wrap_Cursors_ur_angle_get, METH_VARARGS },
5508          { (char *)"Cursors_swigregister", Cursors_swigregister, METH_VARARGS },
5509          { (char *)"Openbox_state", _wrap_Openbox_state, METH_VARARGS },
5510          { (char *)"Openbox_timerManager", _wrap_Openbox_timerManager, METH_VARARGS },
5511          { (char *)"Openbox_property", _wrap_Openbox_property, METH_VARARGS },
5512          { (char *)"Openbox_actions", _wrap_Openbox_actions, METH_VARARGS },
5513          { (char *)"Openbox_bindings", _wrap_Openbox_bindings, METH_VARARGS },
5514          { (char *)"Openbox_screen", _wrap_Openbox_screen, METH_VARARGS },
5515          { (char *)"Openbox_screenCount", _wrap_Openbox_screenCount, METH_VARARGS },
5516          { (char *)"Openbox_cursors", _wrap_Openbox_cursors, METH_VARARGS },
5517          { (char *)"Openbox_addClient", _wrap_Openbox_addClient, METH_VARARGS },
5518          { (char *)"Openbox_removeClient", _wrap_Openbox_removeClient, METH_VARARGS },
5519          { (char *)"Openbox_findClient", _wrap_Openbox_findClient, METH_VARARGS },
5520          { (char *)"Openbox_focusedClient", _wrap_Openbox_focusedClient, METH_VARARGS },
5521          { (char *)"Openbox_setFocusedClient", _wrap_Openbox_setFocusedClient, METH_VARARGS },
5522          { (char *)"Openbox_focusedScreen", _wrap_Openbox_focusedScreen, METH_VARARGS },
5523          { (char *)"Openbox_shutdown", _wrap_Openbox_shutdown, METH_VARARGS },
5524          { (char *)"Openbox_restart", _wrap_Openbox_restart, METH_VARARGS },
5525          { (char *)"Openbox_execute", _wrap_Openbox_execute, METH_VARARGS },
5526          { (char *)"Openbox_swigregister", Openbox_swigregister, METH_VARARGS },
5527          { (char *)"OBScreen_client", _wrap_OBScreen_client, METH_VARARGS },
5528          { (char *)"OBScreen_clientCount", _wrap_OBScreen_clientCount, METH_VARARGS },
5529          { (char *)"OBScreen_number", _wrap_OBScreen_number, METH_VARARGS },
5530          { (char *)"OBScreen_managed", _wrap_OBScreen_managed, METH_VARARGS },
5531          { (char *)"OBScreen_imageControl", _wrap_OBScreen_imageControl, METH_VARARGS },
5532          { (char *)"OBScreen_area", _wrap_OBScreen_area, METH_VARARGS },
5533          { (char *)"OBScreen_style", _wrap_OBScreen_style, METH_VARARGS },
5534          { (char *)"OBScreen_focuswindow", _wrap_OBScreen_focuswindow, METH_VARARGS },
5535          { (char *)"OBScreen_desktop", _wrap_OBScreen_desktop, METH_VARARGS },
5536          { (char *)"OBScreen_numDesktops", _wrap_OBScreen_numDesktops, METH_VARARGS },
5537          { (char *)"OBScreen_updateStrut", _wrap_OBScreen_updateStrut, METH_VARARGS },
5538          { (char *)"OBScreen_manageExisting", _wrap_OBScreen_manageExisting, METH_VARARGS },
5539          { (char *)"OBScreen_manageWindow", _wrap_OBScreen_manageWindow, METH_VARARGS },
5540          { (char *)"OBScreen_unmanageWindow", _wrap_OBScreen_unmanageWindow, METH_VARARGS },
5541          { (char *)"OBScreen_restack", _wrap_OBScreen_restack, METH_VARARGS },
5542          { (char *)"OBScreen_setDesktopName", _wrap_OBScreen_setDesktopName, METH_VARARGS },
5543          { (char *)"OBScreen_propertyHandler", _wrap_OBScreen_propertyHandler, METH_VARARGS },
5544          { (char *)"OBScreen_clientMessageHandler", _wrap_OBScreen_clientMessageHandler, METH_VARARGS },
5545          { (char *)"OBScreen_mapRequestHandler", _wrap_OBScreen_mapRequestHandler, METH_VARARGS },
5546          { (char *)"OBScreen_swigregister", OBScreen_swigregister, METH_VARARGS },
5547          { (char *)"MwmHints_flags_set", _wrap_MwmHints_flags_set, METH_VARARGS },
5548          { (char *)"MwmHints_flags_get", _wrap_MwmHints_flags_get, METH_VARARGS },
5549          { (char *)"MwmHints_functions_set", _wrap_MwmHints_functions_set, METH_VARARGS },
5550          { (char *)"MwmHints_functions_get", _wrap_MwmHints_functions_get, METH_VARARGS },
5551          { (char *)"MwmHints_decorations_set", _wrap_MwmHints_decorations_set, METH_VARARGS },
5552          { (char *)"MwmHints_decorations_get", _wrap_MwmHints_decorations_get, METH_VARARGS },
5553          { (char *)"MwmHints_swigregister", MwmHints_swigregister, METH_VARARGS },
5554          { (char *)"OBClient_frame_set", _wrap_OBClient_frame_set, METH_VARARGS },
5555          { (char *)"OBClient_frame_get", _wrap_OBClient_frame_get, METH_VARARGS },
5556          { (char *)"OBClient_ignore_unmaps_set", _wrap_OBClient_ignore_unmaps_set, METH_VARARGS },
5557          { (char *)"OBClient_ignore_unmaps_get", _wrap_OBClient_ignore_unmaps_get, METH_VARARGS },
5558          { (char *)"OBClient_screen", _wrap_OBClient_screen, METH_VARARGS },
5559          { (char *)"OBClient_window", _wrap_OBClient_window, METH_VARARGS },
5560          { (char *)"OBClient_type", _wrap_OBClient_type, METH_VARARGS },
5561          { (char *)"OBClient_normal", _wrap_OBClient_normal, METH_VARARGS },
5562          { (char *)"OBClient_desktop", _wrap_OBClient_desktop, METH_VARARGS },
5563          { (char *)"OBClient_title", _wrap_OBClient_title, METH_VARARGS },
5564          { (char *)"OBClient_iconTitle", _wrap_OBClient_iconTitle, METH_VARARGS },
5565          { (char *)"OBClient_appName", _wrap_OBClient_appName, METH_VARARGS },
5566          { (char *)"OBClient_appClass", _wrap_OBClient_appClass, METH_VARARGS },
5567          { (char *)"OBClient_role", _wrap_OBClient_role, METH_VARARGS },
5568          { (char *)"OBClient_canFocus", _wrap_OBClient_canFocus, METH_VARARGS },
5569          { (char *)"OBClient_urgent", _wrap_OBClient_urgent, METH_VARARGS },
5570          { (char *)"OBClient_focusNotify", _wrap_OBClient_focusNotify, METH_VARARGS },
5571          { (char *)"OBClient_shaped", _wrap_OBClient_shaped, METH_VARARGS },
5572          { (char *)"OBClient_gravity", _wrap_OBClient_gravity, METH_VARARGS },
5573          { (char *)"OBClient_positionRequested", _wrap_OBClient_positionRequested, METH_VARARGS },
5574          { (char *)"OBClient_decorations", _wrap_OBClient_decorations, METH_VARARGS },
5575          { (char *)"OBClient_funtions", _wrap_OBClient_funtions, METH_VARARGS },
5576          { (char *)"OBClient_transientFor", _wrap_OBClient_transientFor, METH_VARARGS },
5577          { (char *)"OBClient_modal", _wrap_OBClient_modal, METH_VARARGS },
5578          { (char *)"OBClient_shaded", _wrap_OBClient_shaded, METH_VARARGS },
5579          { (char *)"OBClient_iconic", _wrap_OBClient_iconic, METH_VARARGS },
5580          { (char *)"OBClient_maxVert", _wrap_OBClient_maxVert, METH_VARARGS },
5581          { (char *)"OBClient_maxHorz", _wrap_OBClient_maxHorz, METH_VARARGS },
5582          { (char *)"OBClient_layer", _wrap_OBClient_layer, METH_VARARGS },
5583          { (char *)"OBClient_toggleClientBorder", _wrap_OBClient_toggleClientBorder, METH_VARARGS },
5584          { (char *)"OBClient_area", _wrap_OBClient_area, METH_VARARGS },
5585          { (char *)"OBClient_strut", _wrap_OBClient_strut, METH_VARARGS },
5586          { (char *)"OBClient_move", _wrap_OBClient_move, METH_VARARGS },
5587          { (char *)"OBClient_resize", _wrap_OBClient_resize, METH_VARARGS },
5588          { (char *)"OBClient_focus", _wrap_OBClient_focus, METH_VARARGS },
5589          { (char *)"OBClient_unfocus", _wrap_OBClient_unfocus, METH_VARARGS },
5590          { (char *)"OBClient_focusHandler", _wrap_OBClient_focusHandler, METH_VARARGS },
5591          { (char *)"OBClient_unfocusHandler", _wrap_OBClient_unfocusHandler, METH_VARARGS },
5592          { (char *)"OBClient_propertyHandler", _wrap_OBClient_propertyHandler, METH_VARARGS },
5593          { (char *)"OBClient_clientMessageHandler", _wrap_OBClient_clientMessageHandler, METH_VARARGS },
5594          { (char *)"OBClient_configureRequestHandler", _wrap_OBClient_configureRequestHandler, METH_VARARGS },
5595          { (char *)"OBClient_unmapHandler", _wrap_OBClient_unmapHandler, METH_VARARGS },
5596          { (char *)"OBClient_destroyHandler", _wrap_OBClient_destroyHandler, METH_VARARGS },
5597          { (char *)"OBClient_reparentHandler", _wrap_OBClient_reparentHandler, METH_VARARGS },
5598          { (char *)"OBClient_swigregister", OBClient_swigregister, METH_VARARGS },
5599          { (char *)"MouseData_screen_set", _wrap_MouseData_screen_set, METH_VARARGS },
5600          { (char *)"MouseData_screen_get", _wrap_MouseData_screen_get, METH_VARARGS },
5601          { (char *)"MouseData_client_set", _wrap_MouseData_client_set, METH_VARARGS },
5602          { (char *)"MouseData_client_get", _wrap_MouseData_client_get, METH_VARARGS },
5603          { (char *)"MouseData_time_set", _wrap_MouseData_time_set, METH_VARARGS },
5604          { (char *)"MouseData_time_get", _wrap_MouseData_time_get, METH_VARARGS },
5605          { (char *)"MouseData_state_set", _wrap_MouseData_state_set, METH_VARARGS },
5606          { (char *)"MouseData_state_get", _wrap_MouseData_state_get, METH_VARARGS },
5607          { (char *)"MouseData_button_set", _wrap_MouseData_button_set, METH_VARARGS },
5608          { (char *)"MouseData_button_get", _wrap_MouseData_button_get, METH_VARARGS },
5609          { (char *)"MouseData_context_set", _wrap_MouseData_context_set, METH_VARARGS },
5610          { (char *)"MouseData_context_get", _wrap_MouseData_context_get, METH_VARARGS },
5611          { (char *)"MouseData_action_set", _wrap_MouseData_action_set, METH_VARARGS },
5612          { (char *)"MouseData_action_get", _wrap_MouseData_action_get, METH_VARARGS },
5613          { (char *)"MouseData_xroot_set", _wrap_MouseData_xroot_set, METH_VARARGS },
5614          { (char *)"MouseData_xroot_get", _wrap_MouseData_xroot_get, METH_VARARGS },
5615          { (char *)"MouseData_yroot_set", _wrap_MouseData_yroot_set, METH_VARARGS },
5616          { (char *)"MouseData_yroot_get", _wrap_MouseData_yroot_get, METH_VARARGS },
5617          { (char *)"MouseData_pressx_set", _wrap_MouseData_pressx_set, METH_VARARGS },
5618          { (char *)"MouseData_pressx_get", _wrap_MouseData_pressx_get, METH_VARARGS },
5619          { (char *)"MouseData_pressy_set", _wrap_MouseData_pressy_set, METH_VARARGS },
5620          { (char *)"MouseData_pressy_get", _wrap_MouseData_pressy_get, METH_VARARGS },
5621          { (char *)"MouseData_press_clientx_set", _wrap_MouseData_press_clientx_set, METH_VARARGS },
5622          { (char *)"MouseData_press_clientx_get", _wrap_MouseData_press_clientx_get, METH_VARARGS },
5623          { (char *)"MouseData_press_clienty_set", _wrap_MouseData_press_clienty_set, METH_VARARGS },
5624          { (char *)"MouseData_press_clienty_get", _wrap_MouseData_press_clienty_get, METH_VARARGS },
5625          { (char *)"MouseData_press_clientwidth_set", _wrap_MouseData_press_clientwidth_set, METH_VARARGS },
5626          { (char *)"MouseData_press_clientwidth_get", _wrap_MouseData_press_clientwidth_get, METH_VARARGS },
5627          { (char *)"MouseData_press_clientheight_set", _wrap_MouseData_press_clientheight_set, METH_VARARGS },
5628          { (char *)"MouseData_press_clientheight_get", _wrap_MouseData_press_clientheight_get, METH_VARARGS },
5629          { (char *)"new_MouseData", _wrap_new_MouseData, METH_VARARGS },
5630          { (char *)"MouseData_swigregister", MouseData_swigregister, METH_VARARGS },
5631          { (char *)"EventData_screen_set", _wrap_EventData_screen_set, METH_VARARGS },
5632          { (char *)"EventData_screen_get", _wrap_EventData_screen_get, METH_VARARGS },
5633          { (char *)"EventData_client_set", _wrap_EventData_client_set, METH_VARARGS },
5634          { (char *)"EventData_client_get", _wrap_EventData_client_get, METH_VARARGS },
5635          { (char *)"EventData_state_set", _wrap_EventData_state_set, METH_VARARGS },
5636          { (char *)"EventData_state_get", _wrap_EventData_state_get, METH_VARARGS },
5637          { (char *)"EventData_action_set", _wrap_EventData_action_set, METH_VARARGS },
5638          { (char *)"EventData_action_get", _wrap_EventData_action_get, METH_VARARGS },
5639          { (char *)"new_EventData", _wrap_new_EventData, METH_VARARGS },
5640          { (char *)"EventData_swigregister", EventData_swigregister, METH_VARARGS },
5641          { (char *)"KeyData_screen_set", _wrap_KeyData_screen_set, METH_VARARGS },
5642          { (char *)"KeyData_screen_get", _wrap_KeyData_screen_get, METH_VARARGS },
5643          { (char *)"KeyData_client_set", _wrap_KeyData_client_set, METH_VARARGS },
5644          { (char *)"KeyData_client_get", _wrap_KeyData_client_get, METH_VARARGS },
5645          { (char *)"KeyData_time_set", _wrap_KeyData_time_set, METH_VARARGS },
5646          { (char *)"KeyData_time_get", _wrap_KeyData_time_get, METH_VARARGS },
5647          { (char *)"KeyData_state_set", _wrap_KeyData_state_set, METH_VARARGS },
5648          { (char *)"KeyData_state_get", _wrap_KeyData_state_get, METH_VARARGS },
5649          { (char *)"KeyData_key_set", _wrap_KeyData_key_set, METH_VARARGS },
5650          { (char *)"KeyData_key_get", _wrap_KeyData_key_get, METH_VARARGS },
5651          { (char *)"new_KeyData", _wrap_new_KeyData, METH_VARARGS },
5652          { (char *)"KeyData_swigregister", KeyData_swigregister, METH_VARARGS },
5653          { (char *)"mbind", _wrap_mbind, METH_VARARGS },
5654          { (char *)"kbind", _wrap_kbind, METH_VARARGS },
5655          { (char *)"ebind", _wrap_ebind, METH_VARARGS },
5656          { (char *)"set_reset_key", _wrap_set_reset_key, METH_VARARGS },
5657          { (char *)"send_client_msg", _wrap_send_client_msg, METH_VARARGS },
5658          { NULL, NULL }
5659 };
5660
5661
5662 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5663
5664 static void *_p_ob__OBScreenTo_p_ob__OBWidget(void *x) {
5665     return (void *)((ob::OBWidget *)  ((ob::OBScreen *) x));
5666 }
5667 static void *_p_ob__OBClientTo_p_ob__OBWidget(void *x) {
5668     return (void *)((ob::OBWidget *)  ((ob::OBClient *) x));
5669 }
5670 static void *_p_ob__OBActionsTo_p_otk__OtkEventHandler(void *x) {
5671     return (void *)((otk::OtkEventHandler *)  ((ob::OBActions *) x));
5672 }
5673 static void *_p_ob__OpenboxTo_p_otk__OtkEventHandler(void *x) {
5674     return (void *)((otk::OtkEventHandler *)  ((ob::Openbox *) x));
5675 }
5676 static void *_p_ob__OBScreenTo_p_otk__OtkEventHandler(void *x) {
5677     return (void *)((otk::OtkEventHandler *)  ((ob::OBScreen *) x));
5678 }
5679 static void *_p_ob__OBClientTo_p_otk__OtkEventHandler(void *x) {
5680     return (void *)((otk::OtkEventHandler *)  ((ob::OBClient *) x));
5681 }
5682 static void *_p_ob__OpenboxTo_p_otk__OtkEventDispatcher(void *x) {
5683     return (void *)((otk::OtkEventDispatcher *)  ((ob::Openbox *) x));
5684 }
5685 static swig_type_info _swigt__p_otk__OBTimerQueueManager[] = {{"_p_otk__OBTimerQueueManager", 0, "otk::OBTimerQueueManager *", 0},{"_p_otk__OBTimerQueueManager"},{0}};
5686 static swig_type_info _swigt__p_ob__OBActions[] = {{"_p_ob__OBActions", 0, "ob::OBActions *", 0},{"_p_ob__OBActions"},{0}};
5687 static swig_type_info _swigt__p_ob__Cursors[] = {{"_p_ob__Cursors", 0, "ob::Cursors *", 0},{"_p_ob__Cursors"},{0}};
5688 static swig_type_info _swigt__p_ob__OBScreen[] = {{"_p_ob__OBScreen", 0, "ob::OBScreen *", 0},{"_p_ob__OBScreen"},{0}};
5689 static swig_type_info _swigt__p_otk__Style[] = {{"_p_otk__Style", 0, "otk::Style *", 0},{"_p_otk__Style"},{0}};
5690 static swig_type_info _swigt__p_ob__OBFrame[] = {{"_p_ob__OBFrame", 0, "ob::OBFrame *", 0},{"_p_ob__OBFrame"},{0}};
5691 static swig_type_info _swigt__p_XReparentEvent[] = {{"_p_XReparentEvent", 0, "XReparentEvent *", 0},{"_p_XReparentEvent"},{0}};
5692 static swig_type_info _swigt__p_ob__MouseData[] = {{"_p_ob__MouseData", 0, "ob::MouseData *", 0},{"_p_ob__MouseData"},{0}};
5693 static swig_type_info _swigt__p_ob__OBClient[] = {{"_p_ob__OBClient", 0, "ob::OBClient *", 0},{"_p_ob__OBClient"},{0}};
5694 static swig_type_info _swigt__p_ob__Openbox[] = {{"_p_ob__Openbox", 0, "ob::Openbox *", 0},{"_p_ob__Openbox"},{0}};
5695 static swig_type_info _swigt__p_otk__Strut[] = {{"_p_otk__Strut", 0, "otk::Strut *", 0},{"_p_otk__Strut"},{0}};
5696 static swig_type_info _swigt__p_XRectangle[] = {{"_p_XRectangle", 0, "XRectangle *", 0},{"_p_XRectangle"},{0}};
5697 static swig_type_info _swigt__p_ob__KeyData[] = {{"_p_ob__KeyData", 0, "ob::KeyData *", 0},{"_p_ob__KeyData"},{0}};
5698 static swig_type_info _swigt__p_XMapRequestEvent[] = {{"_p_XMapRequestEvent", 0, "XMapRequestEvent *", 0},{"_p_XMapRequestEvent"},{0}};
5699 static swig_type_info _swigt__p_XConfigureRequestEvent[] = {{"_p_XConfigureRequestEvent", 0, "XConfigureRequestEvent *", 0},{"_p_XConfigureRequestEvent"},{0}};
5700 static swig_type_info _swigt__p_otk__Point[] = {{"_p_otk__Point", 0, "otk::Point *", 0},{"_p_otk__Point"},{0}};
5701 static swig_type_info _swigt__p_otk__OtkEventHandler[] = {{"_p_otk__OtkEventHandler", 0, "otk::OtkEventHandler *", 0},{"_p_ob__OBActions", _p_ob__OBActionsTo_p_otk__OtkEventHandler},{"_p_otk__OtkEventHandler"},{"_p_ob__Openbox", _p_ob__OpenboxTo_p_otk__OtkEventHandler},{"_p_ob__OBScreen", _p_ob__OBScreenTo_p_otk__OtkEventHandler},{"_p_ob__OBClient", _p_ob__OBClientTo_p_otk__OtkEventHandler},{0}};
5702 static swig_type_info _swigt__p_std__string[] = {{"_p_std__string", 0, "std::string *", 0},{"_p_std__string"},{0}};
5703 static swig_type_info _swigt__p_otk__Rect[] = {{"_p_otk__Rect", 0, "otk::Rect *", 0},{"_p_otk__Rect"},{0}};
5704 static swig_type_info _swigt__p_ob__OBWidget[] = {{"_p_ob__OBWidget", 0, "ob::OBWidget *", 0},{"_p_ob__OBWidget"},{"_p_ob__OBScreen", _p_ob__OBScreenTo_p_ob__OBWidget},{"_p_ob__OBClient", _p_ob__OBClientTo_p_ob__OBWidget},{0}};
5705 static swig_type_info _swigt__p_XClientMessageEvent[] = {{"_p_XClientMessageEvent", 0, "XClientMessageEvent *", 0},{"_p_XClientMessageEvent"},{0}};
5706 static swig_type_info _swigt__p_XFocusChangeEvent[] = {{"_p_XFocusChangeEvent", 0, "XFocusChangeEvent *", 0},{"_p_XFocusChangeEvent"},{0}};
5707 static swig_type_info _swigt__p_otk__OBProperty[] = {{"_p_otk__OBProperty", 0, "otk::OBProperty *", 0},{"_p_otk__OBProperty"},{0}};
5708 static swig_type_info _swigt__p_ob__EventData[] = {{"_p_ob__EventData", 0, "ob::EventData *", 0},{"_p_ob__EventData"},{0}};
5709 static swig_type_info _swigt__p_otk__OtkEventDispatcher[] = {{"_p_otk__OtkEventDispatcher", 0, "otk::OtkEventDispatcher *", 0},{"_p_otk__OtkEventDispatcher"},{"_p_ob__Openbox", _p_ob__OpenboxTo_p_otk__OtkEventDispatcher},{0}};
5710 static swig_type_info _swigt__p_XPropertyEvent[] = {{"_p_XPropertyEvent", 0, "XPropertyEvent *", 0},{"_p_XPropertyEvent"},{0}};
5711 static swig_type_info _swigt__p_XDestroyWindowEvent[] = {{"_p_XDestroyWindowEvent", 0, "XDestroyWindowEvent *", 0},{"_p_XDestroyWindowEvent"},{0}};
5712 static swig_type_info _swigt__p_otk__BImageControl[] = {{"_p_otk__BImageControl", 0, "otk::BImageControl *", 0},{"_p_otk__BImageControl"},{0}};
5713 static swig_type_info _swigt__p_PyObject[] = {{"_p_PyObject", 0, "PyObject *", 0},{"_p_PyObject"},{0}};
5714 static swig_type_info _swigt__p_ob__OBBindings[] = {{"_p_ob__OBBindings", 0, "ob::OBBindings *", 0},{"_p_ob__OBBindings"},{0}};
5715 static swig_type_info _swigt__p_ob__MwmHints[] = {{"_p_ob__MwmHints", 0, "ob::MwmHints *", 0},{"_p_ob__MwmHints"},{0}};
5716 static swig_type_info _swigt__p_XUnmapEvent[] = {{"_p_XUnmapEvent", 0, "XUnmapEvent *", 0},{"_p_XUnmapEvent"},{0}};
5717
5718 static swig_type_info *swig_types_initial[] = {
5719 _swigt__p_otk__OBTimerQueueManager, 
5720 _swigt__p_ob__OBActions, 
5721 _swigt__p_ob__Cursors, 
5722 _swigt__p_ob__OBScreen, 
5723 _swigt__p_otk__Style, 
5724 _swigt__p_ob__OBFrame, 
5725 _swigt__p_XReparentEvent, 
5726 _swigt__p_ob__MouseData, 
5727 _swigt__p_ob__OBClient, 
5728 _swigt__p_ob__Openbox, 
5729 _swigt__p_otk__Strut, 
5730 _swigt__p_XRectangle, 
5731 _swigt__p_ob__KeyData, 
5732 _swigt__p_XMapRequestEvent, 
5733 _swigt__p_XConfigureRequestEvent, 
5734 _swigt__p_otk__Point, 
5735 _swigt__p_otk__OtkEventHandler, 
5736 _swigt__p_std__string, 
5737 _swigt__p_otk__Rect, 
5738 _swigt__p_ob__OBWidget, 
5739 _swigt__p_XClientMessageEvent, 
5740 _swigt__p_XFocusChangeEvent, 
5741 _swigt__p_otk__OBProperty, 
5742 _swigt__p_ob__EventData, 
5743 _swigt__p_otk__OtkEventDispatcher, 
5744 _swigt__p_XPropertyEvent, 
5745 _swigt__p_XDestroyWindowEvent, 
5746 _swigt__p_otk__BImageControl, 
5747 _swigt__p_PyObject, 
5748 _swigt__p_ob__OBBindings, 
5749 _swigt__p_ob__MwmHints, 
5750 _swigt__p_XUnmapEvent, 
5751 0
5752 };
5753
5754
5755 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5756
5757 static swig_const_info swig_const_table[] = {
5758 { SWIG_PY_INT,     (char *)"Openbox_State_Starting", (long) ob::Openbox::State_Starting, 0, 0, 0},
5759 { SWIG_PY_INT,     (char *)"Openbox_State_Normal", (long) ob::Openbox::State_Normal, 0, 0, 0},
5760 { SWIG_PY_INT,     (char *)"Openbox_State_Exiting", (long) ob::Openbox::State_Exiting, 0, 0, 0},
5761 { SWIG_PY_INT,     (char *)"OBScreen_event_mask", (long) ob::OBScreen::event_mask, 0, 0, 0},
5762 { SWIG_PY_INT,     (char *)"MwmHints_elements", (long) ob::MwmHints::elements, 0, 0, 0},
5763 { SWIG_PY_INT,     (char *)"OBClient_Layer_Icon", (long) ob::OBClient::Layer_Icon, 0, 0, 0},
5764 { SWIG_PY_INT,     (char *)"OBClient_Layer_Desktop", (long) ob::OBClient::Layer_Desktop, 0, 0, 0},
5765 { SWIG_PY_INT,     (char *)"OBClient_Layer_Below", (long) ob::OBClient::Layer_Below, 0, 0, 0},
5766 { SWIG_PY_INT,     (char *)"OBClient_Layer_Normal", (long) ob::OBClient::Layer_Normal, 0, 0, 0},
5767 { SWIG_PY_INT,     (char *)"OBClient_Layer_Above", (long) ob::OBClient::Layer_Above, 0, 0, 0},
5768 { SWIG_PY_INT,     (char *)"OBClient_Layer_Top", (long) ob::OBClient::Layer_Top, 0, 0, 0},
5769 { SWIG_PY_INT,     (char *)"OBClient_Layer_Fullscreen", (long) ob::OBClient::Layer_Fullscreen, 0, 0, 0},
5770 { SWIG_PY_INT,     (char *)"OBClient_Layer_Internal", (long) ob::OBClient::Layer_Internal, 0, 0, 0},
5771 { SWIG_PY_INT,     (char *)"OBClient_NUM_LAYERS", (long) ob::OBClient::NUM_LAYERS, 0, 0, 0},
5772 { SWIG_PY_INT,     (char *)"OBClient_TopLeft", (long) ob::OBClient::TopLeft, 0, 0, 0},
5773 { SWIG_PY_INT,     (char *)"OBClient_TopRight", (long) ob::OBClient::TopRight, 0, 0, 0},
5774 { SWIG_PY_INT,     (char *)"OBClient_BottomLeft", (long) ob::OBClient::BottomLeft, 0, 0, 0},
5775 { SWIG_PY_INT,     (char *)"OBClient_BottomRight", (long) ob::OBClient::BottomRight, 0, 0, 0},
5776 { SWIG_PY_INT,     (char *)"OBClient_Type_Desktop", (long) ob::OBClient::Type_Desktop, 0, 0, 0},
5777 { SWIG_PY_INT,     (char *)"OBClient_Type_Dock", (long) ob::OBClient::Type_Dock, 0, 0, 0},
5778 { SWIG_PY_INT,     (char *)"OBClient_Type_Toolbar", (long) ob::OBClient::Type_Toolbar, 0, 0, 0},
5779 { SWIG_PY_INT,     (char *)"OBClient_Type_Menu", (long) ob::OBClient::Type_Menu, 0, 0, 0},
5780 { SWIG_PY_INT,     (char *)"OBClient_Type_Utility", (long) ob::OBClient::Type_Utility, 0, 0, 0},
5781 { SWIG_PY_INT,     (char *)"OBClient_Type_Splash", (long) ob::OBClient::Type_Splash, 0, 0, 0},
5782 { SWIG_PY_INT,     (char *)"OBClient_Type_Dialog", (long) ob::OBClient::Type_Dialog, 0, 0, 0},
5783 { SWIG_PY_INT,     (char *)"OBClient_Type_Normal", (long) ob::OBClient::Type_Normal, 0, 0, 0},
5784 { SWIG_PY_INT,     (char *)"OBClient_MwmFlag_Functions", (long) ob::OBClient::MwmFlag_Functions, 0, 0, 0},
5785 { SWIG_PY_INT,     (char *)"OBClient_MwmFlag_Decorations", (long) ob::OBClient::MwmFlag_Decorations, 0, 0, 0},
5786 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_All", (long) ob::OBClient::MwmFunc_All, 0, 0, 0},
5787 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Resize", (long) ob::OBClient::MwmFunc_Resize, 0, 0, 0},
5788 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Move", (long) ob::OBClient::MwmFunc_Move, 0, 0, 0},
5789 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Iconify", (long) ob::OBClient::MwmFunc_Iconify, 0, 0, 0},
5790 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Maximize", (long) ob::OBClient::MwmFunc_Maximize, 0, 0, 0},
5791 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_All", (long) ob::OBClient::MwmDecor_All, 0, 0, 0},
5792 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Border", (long) ob::OBClient::MwmDecor_Border, 0, 0, 0},
5793 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Handle", (long) ob::OBClient::MwmDecor_Handle, 0, 0, 0},
5794 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Title", (long) ob::OBClient::MwmDecor_Title, 0, 0, 0},
5795 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Iconify", (long) ob::OBClient::MwmDecor_Iconify, 0, 0, 0},
5796 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Maximize", (long) ob::OBClient::MwmDecor_Maximize, 0, 0, 0},
5797 { SWIG_PY_INT,     (char *)"OBClient_Func_Resize", (long) ob::OBClient::Func_Resize, 0, 0, 0},
5798 { SWIG_PY_INT,     (char *)"OBClient_Func_Move", (long) ob::OBClient::Func_Move, 0, 0, 0},
5799 { SWIG_PY_INT,     (char *)"OBClient_Func_Iconify", (long) ob::OBClient::Func_Iconify, 0, 0, 0},
5800 { SWIG_PY_INT,     (char *)"OBClient_Func_Maximize", (long) ob::OBClient::Func_Maximize, 0, 0, 0},
5801 { SWIG_PY_INT,     (char *)"OBClient_Func_Close", (long) ob::OBClient::Func_Close, 0, 0, 0},
5802 { SWIG_PY_INT,     (char *)"OBClient_Decor_Titlebar", (long) ob::OBClient::Decor_Titlebar, 0, 0, 0},
5803 { SWIG_PY_INT,     (char *)"OBClient_Decor_Handle", (long) ob::OBClient::Decor_Handle, 0, 0, 0},
5804 { SWIG_PY_INT,     (char *)"OBClient_Decor_Border", (long) ob::OBClient::Decor_Border, 0, 0, 0},
5805 { SWIG_PY_INT,     (char *)"OBClient_Decor_Iconify", (long) ob::OBClient::Decor_Iconify, 0, 0, 0},
5806 { SWIG_PY_INT,     (char *)"OBClient_Decor_Maximize", (long) ob::OBClient::Decor_Maximize, 0, 0, 0},
5807 { SWIG_PY_INT,     (char *)"OBClient_Decor_Sticky", (long) ob::OBClient::Decor_Sticky, 0, 0, 0},
5808 { SWIG_PY_INT,     (char *)"OBClient_Decor_Close", (long) ob::OBClient::Decor_Close, 0, 0, 0},
5809 { SWIG_PY_INT,     (char *)"OBClient_State_Remove", (long) ob::OBClient::State_Remove, 0, 0, 0},
5810 { SWIG_PY_INT,     (char *)"OBClient_State_Add", (long) ob::OBClient::State_Add, 0, 0, 0},
5811 { SWIG_PY_INT,     (char *)"OBClient_State_Toggle", (long) ob::OBClient::State_Toggle, 0, 0, 0},
5812 { SWIG_PY_INT,     (char *)"OBClient_event_mask", (long) ob::OBClient::event_mask, 0, 0, 0},
5813 { SWIG_PY_INT,     (char *)"OBClient_no_propagate_mask", (long) ob::OBClient::no_propagate_mask, 0, 0, 0},
5814 { SWIG_PY_INT,     (char *)"MC_Frame", (long) ob::MC_Frame, 0, 0, 0},
5815 { SWIG_PY_INT,     (char *)"MC_Titlebar", (long) ob::MC_Titlebar, 0, 0, 0},
5816 { SWIG_PY_INT,     (char *)"MC_Handle", (long) ob::MC_Handle, 0, 0, 0},
5817 { SWIG_PY_INT,     (char *)"MC_Window", (long) ob::MC_Window, 0, 0, 0},
5818 { SWIG_PY_INT,     (char *)"MC_MaximizeButton", (long) ob::MC_MaximizeButton, 0, 0, 0},
5819 { SWIG_PY_INT,     (char *)"MC_CloseButton", (long) ob::MC_CloseButton, 0, 0, 0},
5820 { SWIG_PY_INT,     (char *)"MC_IconifyButton", (long) ob::MC_IconifyButton, 0, 0, 0},
5821 { SWIG_PY_INT,     (char *)"MC_StickyButton", (long) ob::MC_StickyButton, 0, 0, 0},
5822 { SWIG_PY_INT,     (char *)"MC_Grip", (long) ob::MC_Grip, 0, 0, 0},
5823 { SWIG_PY_INT,     (char *)"MC_Root", (long) ob::MC_Root, 0, 0, 0},
5824 { SWIG_PY_INT,     (char *)"MC_MenuItem", (long) ob::MC_MenuItem, 0, 0, 0},
5825 { SWIG_PY_INT,     (char *)"NUM_MOUSE_CONTEXT", (long) ob::NUM_MOUSE_CONTEXT, 0, 0, 0},
5826 { SWIG_PY_INT,     (char *)"MousePress", (long) ob::MousePress, 0, 0, 0},
5827 { SWIG_PY_INT,     (char *)"MouseClick", (long) ob::MouseClick, 0, 0, 0},
5828 { SWIG_PY_INT,     (char *)"MouseDoubleClick", (long) ob::MouseDoubleClick, 0, 0, 0},
5829 { SWIG_PY_INT,     (char *)"MouseMotion", (long) ob::MouseMotion, 0, 0, 0},
5830 { SWIG_PY_INT,     (char *)"NUM_MOUSE_ACTION", (long) ob::NUM_MOUSE_ACTION, 0, 0, 0},
5831 { SWIG_PY_INT,     (char *)"KC_Menu", (long) ob::KC_Menu, 0, 0, 0},
5832 { SWIG_PY_INT,     (char *)"KC_All", (long) ob::KC_All, 0, 0, 0},
5833 { SWIG_PY_INT,     (char *)"NUM_KEY_CONTEXT", (long) ob::NUM_KEY_CONTEXT, 0, 0, 0},
5834 { SWIG_PY_INT,     (char *)"EventEnterWindow", (long) ob::EventEnterWindow, 0, 0, 0},
5835 { SWIG_PY_INT,     (char *)"EventLeaveWindow", (long) ob::EventLeaveWindow, 0, 0, 0},
5836 { SWIG_PY_INT,     (char *)"EventPlaceWindow", (long) ob::EventPlaceWindow, 0, 0, 0},
5837 { SWIG_PY_INT,     (char *)"EventNewWindow", (long) ob::EventNewWindow, 0, 0, 0},
5838 { SWIG_PY_INT,     (char *)"EventCloseWindow", (long) ob::EventCloseWindow, 0, 0, 0},
5839 { SWIG_PY_INT,     (char *)"EventStartup", (long) ob::EventStartup, 0, 0, 0},
5840 { SWIG_PY_INT,     (char *)"EventShutdown", (long) ob::EventShutdown, 0, 0, 0},
5841 { SWIG_PY_INT,     (char *)"EventFocus", (long) ob::EventFocus, 0, 0, 0},
5842 { SWIG_PY_INT,     (char *)"EventBell", (long) ob::EventBell, 0, 0, 0},
5843 { SWIG_PY_INT,     (char *)"NUM_EVENTS", (long) ob::NUM_EVENTS, 0, 0, 0},
5844 { SWIG_PY_INT,     (char *)"X_PROTOCOL", (long) 11, 0, 0, 0},
5845 { SWIG_PY_INT,     (char *)"X_PROTOCOL_REVISION", (long) 0, 0, 0, 0},
5846 { SWIG_PY_INT,     (char *)"None", (long) 0L, 0, 0, 0},
5847 { SWIG_PY_INT,     (char *)"ParentRelative", (long) 1L, 0, 0, 0},
5848 { SWIG_PY_INT,     (char *)"CopyFromParent", (long) 0L, 0, 0, 0},
5849 { SWIG_PY_INT,     (char *)"PointerWindow", (long) 0L, 0, 0, 0},
5850 { SWIG_PY_INT,     (char *)"InputFocus", (long) 1L, 0, 0, 0},
5851 { SWIG_PY_INT,     (char *)"PointerRoot", (long) 1L, 0, 0, 0},
5852 { SWIG_PY_INT,     (char *)"AnyPropertyType", (long) 0L, 0, 0, 0},
5853 { SWIG_PY_INT,     (char *)"AnyKey", (long) 0L, 0, 0, 0},
5854 { SWIG_PY_INT,     (char *)"AnyButton", (long) 0L, 0, 0, 0},
5855 { SWIG_PY_INT,     (char *)"AllTemporary", (long) 0L, 0, 0, 0},
5856 { SWIG_PY_INT,     (char *)"CurrentTime", (long) 0L, 0, 0, 0},
5857 { SWIG_PY_INT,     (char *)"NoSymbol", (long) 0L, 0, 0, 0},
5858 { SWIG_PY_INT,     (char *)"NoEventMask", (long) 0L, 0, 0, 0},
5859 { SWIG_PY_INT,     (char *)"KeyPressMask", (long) (1L<<0), 0, 0, 0},
5860 { SWIG_PY_INT,     (char *)"KeyReleaseMask", (long) (1L<<1), 0, 0, 0},
5861 { SWIG_PY_INT,     (char *)"ButtonPressMask", (long) (1L<<2), 0, 0, 0},
5862 { SWIG_PY_INT,     (char *)"ButtonReleaseMask", (long) (1L<<3), 0, 0, 0},
5863 { SWIG_PY_INT,     (char *)"EnterWindowMask", (long) (1L<<4), 0, 0, 0},
5864 { SWIG_PY_INT,     (char *)"LeaveWindowMask", (long) (1L<<5), 0, 0, 0},
5865 { SWIG_PY_INT,     (char *)"PointerMotionMask", (long) (1L<<6), 0, 0, 0},
5866 { SWIG_PY_INT,     (char *)"PointerMotionHintMask", (long) (1L<<7), 0, 0, 0},
5867 { SWIG_PY_INT,     (char *)"Button1MotionMask", (long) (1L<<8), 0, 0, 0},
5868 { SWIG_PY_INT,     (char *)"Button2MotionMask", (long) (1L<<9), 0, 0, 0},
5869 { SWIG_PY_INT,     (char *)"Button3MotionMask", (long) (1L<<10), 0, 0, 0},
5870 { SWIG_PY_INT,     (char *)"Button4MotionMask", (long) (1L<<11), 0, 0, 0},
5871 { SWIG_PY_INT,     (char *)"Button5MotionMask", (long) (1L<<12), 0, 0, 0},
5872 { SWIG_PY_INT,     (char *)"ButtonMotionMask", (long) (1L<<13), 0, 0, 0},
5873 { SWIG_PY_INT,     (char *)"KeymapStateMask", (long) (1L<<14), 0, 0, 0},
5874 { SWIG_PY_INT,     (char *)"ExposureMask", (long) (1L<<15), 0, 0, 0},
5875 { SWIG_PY_INT,     (char *)"VisibilityChangeMask", (long) (1L<<16), 0, 0, 0},
5876 { SWIG_PY_INT,     (char *)"StructureNotifyMask", (long) (1L<<17), 0, 0, 0},
5877 { SWIG_PY_INT,     (char *)"ResizeRedirectMask", (long) (1L<<18), 0, 0, 0},
5878 { SWIG_PY_INT,     (char *)"SubstructureNotifyMask", (long) (1L<<19), 0, 0, 0},
5879 { SWIG_PY_INT,     (char *)"SubstructureRedirectMask", (long) (1L<<20), 0, 0, 0},
5880 { SWIG_PY_INT,     (char *)"FocusChangeMask", (long) (1L<<21), 0, 0, 0},
5881 { SWIG_PY_INT,     (char *)"PropertyChangeMask", (long) (1L<<22), 0, 0, 0},
5882 { SWIG_PY_INT,     (char *)"ColormapChangeMask", (long) (1L<<23), 0, 0, 0},
5883 { SWIG_PY_INT,     (char *)"OwnerGrabButtonMask", (long) (1L<<24), 0, 0, 0},
5884 { SWIG_PY_INT,     (char *)"KeyPress", (long) 2, 0, 0, 0},
5885 { SWIG_PY_INT,     (char *)"KeyRelease", (long) 3, 0, 0, 0},
5886 { SWIG_PY_INT,     (char *)"ButtonPress", (long) 4, 0, 0, 0},
5887 { SWIG_PY_INT,     (char *)"ButtonRelease", (long) 5, 0, 0, 0},
5888 { SWIG_PY_INT,     (char *)"MotionNotify", (long) 6, 0, 0, 0},
5889 { SWIG_PY_INT,     (char *)"EnterNotify", (long) 7, 0, 0, 0},
5890 { SWIG_PY_INT,     (char *)"LeaveNotify", (long) 8, 0, 0, 0},
5891 { SWIG_PY_INT,     (char *)"FocusIn", (long) 9, 0, 0, 0},
5892 { SWIG_PY_INT,     (char *)"FocusOut", (long) 10, 0, 0, 0},
5893 { SWIG_PY_INT,     (char *)"KeymapNotify", (long) 11, 0, 0, 0},
5894 { SWIG_PY_INT,     (char *)"Expose", (long) 12, 0, 0, 0},
5895 { SWIG_PY_INT,     (char *)"GraphicsExpose", (long) 13, 0, 0, 0},
5896 { SWIG_PY_INT,     (char *)"NoExpose", (long) 14, 0, 0, 0},
5897 { SWIG_PY_INT,     (char *)"VisibilityNotify", (long) 15, 0, 0, 0},
5898 { SWIG_PY_INT,     (char *)"CreateNotify", (long) 16, 0, 0, 0},
5899 { SWIG_PY_INT,     (char *)"DestroyNotify", (long) 17, 0, 0, 0},
5900 { SWIG_PY_INT,     (char *)"UnmapNotify", (long) 18, 0, 0, 0},
5901 { SWIG_PY_INT,     (char *)"MapNotify", (long) 19, 0, 0, 0},
5902 { SWIG_PY_INT,     (char *)"MapRequest", (long) 20, 0, 0, 0},
5903 { SWIG_PY_INT,     (char *)"ReparentNotify", (long) 21, 0, 0, 0},
5904 { SWIG_PY_INT,     (char *)"ConfigureNotify", (long) 22, 0, 0, 0},
5905 { SWIG_PY_INT,     (char *)"ConfigureRequest", (long) 23, 0, 0, 0},
5906 { SWIG_PY_INT,     (char *)"GravityNotify", (long) 24, 0, 0, 0},
5907 { SWIG_PY_INT,     (char *)"ResizeRequest", (long) 25, 0, 0, 0},
5908 { SWIG_PY_INT,     (char *)"CirculateNotify", (long) 26, 0, 0, 0},
5909 { SWIG_PY_INT,     (char *)"CirculateRequest", (long) 27, 0, 0, 0},
5910 { SWIG_PY_INT,     (char *)"PropertyNotify", (long) 28, 0, 0, 0},
5911 { SWIG_PY_INT,     (char *)"SelectionClear", (long) 29, 0, 0, 0},
5912 { SWIG_PY_INT,     (char *)"SelectionRequest", (long) 30, 0, 0, 0},
5913 { SWIG_PY_INT,     (char *)"SelectionNotify", (long) 31, 0, 0, 0},
5914 { SWIG_PY_INT,     (char *)"ColormapNotify", (long) 32, 0, 0, 0},
5915 { SWIG_PY_INT,     (char *)"ClientMessage", (long) 33, 0, 0, 0},
5916 { SWIG_PY_INT,     (char *)"MappingNotify", (long) 34, 0, 0, 0},
5917 { SWIG_PY_INT,     (char *)"LASTEvent", (long) 35, 0, 0, 0},
5918 { SWIG_PY_INT,     (char *)"ShiftMask", (long) (1<<0), 0, 0, 0},
5919 { SWIG_PY_INT,     (char *)"LockMask", (long) (1<<1), 0, 0, 0},
5920 { SWIG_PY_INT,     (char *)"ControlMask", (long) (1<<2), 0, 0, 0},
5921 { SWIG_PY_INT,     (char *)"Mod1Mask", (long) (1<<3), 0, 0, 0},
5922 { SWIG_PY_INT,     (char *)"Mod2Mask", (long) (1<<4), 0, 0, 0},
5923 { SWIG_PY_INT,     (char *)"Mod3Mask", (long) (1<<5), 0, 0, 0},
5924 { SWIG_PY_INT,     (char *)"Mod4Mask", (long) (1<<6), 0, 0, 0},
5925 { SWIG_PY_INT,     (char *)"Mod5Mask", (long) (1<<7), 0, 0, 0},
5926 { SWIG_PY_INT,     (char *)"ShiftMapIndex", (long) 0, 0, 0, 0},
5927 { SWIG_PY_INT,     (char *)"LockMapIndex", (long) 1, 0, 0, 0},
5928 { SWIG_PY_INT,     (char *)"ControlMapIndex", (long) 2, 0, 0, 0},
5929 { SWIG_PY_INT,     (char *)"Mod1MapIndex", (long) 3, 0, 0, 0},
5930 { SWIG_PY_INT,     (char *)"Mod2MapIndex", (long) 4, 0, 0, 0},
5931 { SWIG_PY_INT,     (char *)"Mod3MapIndex", (long) 5, 0, 0, 0},
5932 { SWIG_PY_INT,     (char *)"Mod4MapIndex", (long) 6, 0, 0, 0},
5933 { SWIG_PY_INT,     (char *)"Mod5MapIndex", (long) 7, 0, 0, 0},
5934 { SWIG_PY_INT,     (char *)"Button1Mask", (long) (1<<8), 0, 0, 0},
5935 { SWIG_PY_INT,     (char *)"Button2Mask", (long) (1<<9), 0, 0, 0},
5936 { SWIG_PY_INT,     (char *)"Button3Mask", (long) (1<<10), 0, 0, 0},
5937 { SWIG_PY_INT,     (char *)"Button4Mask", (long) (1<<11), 0, 0, 0},
5938 { SWIG_PY_INT,     (char *)"Button5Mask", (long) (1<<12), 0, 0, 0},
5939 { SWIG_PY_INT,     (char *)"AnyModifier", (long) (1<<15), 0, 0, 0},
5940 { SWIG_PY_INT,     (char *)"Button1", (long) 1, 0, 0, 0},
5941 { SWIG_PY_INT,     (char *)"Button2", (long) 2, 0, 0, 0},
5942 { SWIG_PY_INT,     (char *)"Button3", (long) 3, 0, 0, 0},
5943 { SWIG_PY_INT,     (char *)"Button4", (long) 4, 0, 0, 0},
5944 { SWIG_PY_INT,     (char *)"Button5", (long) 5, 0, 0, 0},
5945 { SWIG_PY_INT,     (char *)"NotifyNormal", (long) 0, 0, 0, 0},
5946 { SWIG_PY_INT,     (char *)"NotifyGrab", (long) 1, 0, 0, 0},
5947 { SWIG_PY_INT,     (char *)"NotifyUngrab", (long) 2, 0, 0, 0},
5948 { SWIG_PY_INT,     (char *)"NotifyWhileGrabbed", (long) 3, 0, 0, 0},
5949 { SWIG_PY_INT,     (char *)"NotifyHint", (long) 1, 0, 0, 0},
5950 { SWIG_PY_INT,     (char *)"NotifyAncestor", (long) 0, 0, 0, 0},
5951 { SWIG_PY_INT,     (char *)"NotifyVirtual", (long) 1, 0, 0, 0},
5952 { SWIG_PY_INT,     (char *)"NotifyInferior", (long) 2, 0, 0, 0},
5953 { SWIG_PY_INT,     (char *)"NotifyNonlinear", (long) 3, 0, 0, 0},
5954 { SWIG_PY_INT,     (char *)"NotifyNonlinearVirtual", (long) 4, 0, 0, 0},
5955 { SWIG_PY_INT,     (char *)"NotifyPointer", (long) 5, 0, 0, 0},
5956 { SWIG_PY_INT,     (char *)"NotifyPointerRoot", (long) 6, 0, 0, 0},
5957 { SWIG_PY_INT,     (char *)"NotifyDetailNone", (long) 7, 0, 0, 0},
5958 { SWIG_PY_INT,     (char *)"VisibilityUnobscured", (long) 0, 0, 0, 0},
5959 { SWIG_PY_INT,     (char *)"VisibilityPartiallyObscured", (long) 1, 0, 0, 0},
5960 { SWIG_PY_INT,     (char *)"VisibilityFullyObscured", (long) 2, 0, 0, 0},
5961 { SWIG_PY_INT,     (char *)"PlaceOnTop", (long) 0, 0, 0, 0},
5962 { SWIG_PY_INT,     (char *)"PlaceOnBottom", (long) 1, 0, 0, 0},
5963 { SWIG_PY_INT,     (char *)"FamilyInternet", (long) 0, 0, 0, 0},
5964 { SWIG_PY_INT,     (char *)"FamilyDECnet", (long) 1, 0, 0, 0},
5965 { SWIG_PY_INT,     (char *)"FamilyChaos", (long) 2, 0, 0, 0},
5966 { SWIG_PY_INT,     (char *)"PropertyNewValue", (long) 0, 0, 0, 0},
5967 { SWIG_PY_INT,     (char *)"PropertyDelete", (long) 1, 0, 0, 0},
5968 { SWIG_PY_INT,     (char *)"ColormapUninstalled", (long) 0, 0, 0, 0},
5969 { SWIG_PY_INT,     (char *)"ColormapInstalled", (long) 1, 0, 0, 0},
5970 { SWIG_PY_INT,     (char *)"GrabModeSync", (long) 0, 0, 0, 0},
5971 { SWIG_PY_INT,     (char *)"GrabModeAsync", (long) 1, 0, 0, 0},
5972 { SWIG_PY_INT,     (char *)"GrabSuccess", (long) 0, 0, 0, 0},
5973 { SWIG_PY_INT,     (char *)"AlreadyGrabbed", (long) 1, 0, 0, 0},
5974 { SWIG_PY_INT,     (char *)"GrabInvalidTime", (long) 2, 0, 0, 0},
5975 { SWIG_PY_INT,     (char *)"GrabNotViewable", (long) 3, 0, 0, 0},
5976 { SWIG_PY_INT,     (char *)"GrabFrozen", (long) 4, 0, 0, 0},
5977 { SWIG_PY_INT,     (char *)"AsyncPointer", (long) 0, 0, 0, 0},
5978 { SWIG_PY_INT,     (char *)"SyncPointer", (long) 1, 0, 0, 0},
5979 { SWIG_PY_INT,     (char *)"ReplayPointer", (long) 2, 0, 0, 0},
5980 { SWIG_PY_INT,     (char *)"AsyncKeyboard", (long) 3, 0, 0, 0},
5981 { SWIG_PY_INT,     (char *)"SyncKeyboard", (long) 4, 0, 0, 0},
5982 { SWIG_PY_INT,     (char *)"ReplayKeyboard", (long) 5, 0, 0, 0},
5983 { SWIG_PY_INT,     (char *)"AsyncBoth", (long) 6, 0, 0, 0},
5984 { SWIG_PY_INT,     (char *)"SyncBoth", (long) 7, 0, 0, 0},
5985 { SWIG_PY_INT,     (char *)"RevertToParent", (long) 2, 0, 0, 0},
5986 { SWIG_PY_INT,     (char *)"Success", (long) 0, 0, 0, 0},
5987 { SWIG_PY_INT,     (char *)"BadRequest", (long) 1, 0, 0, 0},
5988 { SWIG_PY_INT,     (char *)"BadValue", (long) 2, 0, 0, 0},
5989 { SWIG_PY_INT,     (char *)"BadWindow", (long) 3, 0, 0, 0},
5990 { SWIG_PY_INT,     (char *)"BadPixmap", (long) 4, 0, 0, 0},
5991 { SWIG_PY_INT,     (char *)"BadAtom", (long) 5, 0, 0, 0},
5992 { SWIG_PY_INT,     (char *)"BadCursor", (long) 6, 0, 0, 0},
5993 { SWIG_PY_INT,     (char *)"BadFont", (long) 7, 0, 0, 0},
5994 { SWIG_PY_INT,     (char *)"BadMatch", (long) 8, 0, 0, 0},
5995 { SWIG_PY_INT,     (char *)"BadDrawable", (long) 9, 0, 0, 0},
5996 { SWIG_PY_INT,     (char *)"BadAccess", (long) 10, 0, 0, 0},
5997 { SWIG_PY_INT,     (char *)"BadAlloc", (long) 11, 0, 0, 0},
5998 { SWIG_PY_INT,     (char *)"BadColor", (long) 12, 0, 0, 0},
5999 { SWIG_PY_INT,     (char *)"BadGC", (long) 13, 0, 0, 0},
6000 { SWIG_PY_INT,     (char *)"BadIDChoice", (long) 14, 0, 0, 0},
6001 { SWIG_PY_INT,     (char *)"BadName", (long) 15, 0, 0, 0},
6002 { SWIG_PY_INT,     (char *)"BadLength", (long) 16, 0, 0, 0},
6003 { SWIG_PY_INT,     (char *)"BadImplementation", (long) 17, 0, 0, 0},
6004 { SWIG_PY_INT,     (char *)"FirstExtensionError", (long) 128, 0, 0, 0},
6005 { SWIG_PY_INT,     (char *)"LastExtensionError", (long) 255, 0, 0, 0},
6006 { SWIG_PY_INT,     (char *)"InputOutput", (long) 1, 0, 0, 0},
6007 { SWIG_PY_INT,     (char *)"InputOnly", (long) 2, 0, 0, 0},
6008 { SWIG_PY_INT,     (char *)"CWBackPixmap", (long) (1L<<0), 0, 0, 0},
6009 { SWIG_PY_INT,     (char *)"CWBackPixel", (long) (1L<<1), 0, 0, 0},
6010 { SWIG_PY_INT,     (char *)"CWBorderPixmap", (long) (1L<<2), 0, 0, 0},
6011 { SWIG_PY_INT,     (char *)"CWBorderPixel", (long) (1L<<3), 0, 0, 0},
6012 { SWIG_PY_INT,     (char *)"CWBitGravity", (long) (1L<<4), 0, 0, 0},
6013 { SWIG_PY_INT,     (char *)"CWWinGravity", (long) (1L<<5), 0, 0, 0},
6014 { SWIG_PY_INT,     (char *)"CWBackingStore", (long) (1L<<6), 0, 0, 0},
6015 { SWIG_PY_INT,     (char *)"CWBackingPlanes", (long) (1L<<7), 0, 0, 0},
6016 { SWIG_PY_INT,     (char *)"CWBackingPixel", (long) (1L<<8), 0, 0, 0},
6017 { SWIG_PY_INT,     (char *)"CWOverrideRedirect", (long) (1L<<9), 0, 0, 0},
6018 { SWIG_PY_INT,     (char *)"CWSaveUnder", (long) (1L<<10), 0, 0, 0},
6019 { SWIG_PY_INT,     (char *)"CWEventMask", (long) (1L<<11), 0, 0, 0},
6020 { SWIG_PY_INT,     (char *)"CWDontPropagate", (long) (1L<<12), 0, 0, 0},
6021 { SWIG_PY_INT,     (char *)"CWColormap", (long) (1L<<13), 0, 0, 0},
6022 { SWIG_PY_INT,     (char *)"CWCursor", (long) (1L<<14), 0, 0, 0},
6023 { SWIG_PY_INT,     (char *)"CWX", (long) (1<<0), 0, 0, 0},
6024 { SWIG_PY_INT,     (char *)"CWY", (long) (1<<1), 0, 0, 0},
6025 { SWIG_PY_INT,     (char *)"CWWidth", (long) (1<<2), 0, 0, 0},
6026 { SWIG_PY_INT,     (char *)"CWHeight", (long) (1<<3), 0, 0, 0},
6027 { SWIG_PY_INT,     (char *)"CWBorderWidth", (long) (1<<4), 0, 0, 0},
6028 { SWIG_PY_INT,     (char *)"CWSibling", (long) (1<<5), 0, 0, 0},
6029 { SWIG_PY_INT,     (char *)"CWStackMode", (long) (1<<6), 0, 0, 0},
6030 { SWIG_PY_INT,     (char *)"ForgetGravity", (long) 0, 0, 0, 0},
6031 { SWIG_PY_INT,     (char *)"NorthWestGravity", (long) 1, 0, 0, 0},
6032 { SWIG_PY_INT,     (char *)"NorthGravity", (long) 2, 0, 0, 0},
6033 { SWIG_PY_INT,     (char *)"NorthEastGravity", (long) 3, 0, 0, 0},
6034 { SWIG_PY_INT,     (char *)"WestGravity", (long) 4, 0, 0, 0},
6035 { SWIG_PY_INT,     (char *)"CenterGravity", (long) 5, 0, 0, 0},
6036 { SWIG_PY_INT,     (char *)"EastGravity", (long) 6, 0, 0, 0},
6037 { SWIG_PY_INT,     (char *)"SouthWestGravity", (long) 7, 0, 0, 0},
6038 { SWIG_PY_INT,     (char *)"SouthGravity", (long) 8, 0, 0, 0},
6039 { SWIG_PY_INT,     (char *)"SouthEastGravity", (long) 9, 0, 0, 0},
6040 { SWIG_PY_INT,     (char *)"StaticGravity", (long) 10, 0, 0, 0},
6041 { SWIG_PY_INT,     (char *)"UnmapGravity", (long) 0, 0, 0, 0},
6042 { SWIG_PY_INT,     (char *)"NotUseful", (long) 0, 0, 0, 0},
6043 { SWIG_PY_INT,     (char *)"WhenMapped", (long) 1, 0, 0, 0},
6044 { SWIG_PY_INT,     (char *)"Always", (long) 2, 0, 0, 0},
6045 { SWIG_PY_INT,     (char *)"IsUnmapped", (long) 0, 0, 0, 0},
6046 { SWIG_PY_INT,     (char *)"IsUnviewable", (long) 1, 0, 0, 0},
6047 { SWIG_PY_INT,     (char *)"IsViewable", (long) 2, 0, 0, 0},
6048 { SWIG_PY_INT,     (char *)"SetModeInsert", (long) 0, 0, 0, 0},
6049 { SWIG_PY_INT,     (char *)"SetModeDelete", (long) 1, 0, 0, 0},
6050 { SWIG_PY_INT,     (char *)"DestroyAll", (long) 0, 0, 0, 0},
6051 { SWIG_PY_INT,     (char *)"RetainPermanent", (long) 1, 0, 0, 0},
6052 { SWIG_PY_INT,     (char *)"RetainTemporary", (long) 2, 0, 0, 0},
6053 { SWIG_PY_INT,     (char *)"Above", (long) 0, 0, 0, 0},
6054 { SWIG_PY_INT,     (char *)"Below", (long) 1, 0, 0, 0},
6055 { SWIG_PY_INT,     (char *)"TopIf", (long) 2, 0, 0, 0},
6056 { SWIG_PY_INT,     (char *)"BottomIf", (long) 3, 0, 0, 0},
6057 { SWIG_PY_INT,     (char *)"Opposite", (long) 4, 0, 0, 0},
6058 { SWIG_PY_INT,     (char *)"RaiseLowest", (long) 0, 0, 0, 0},
6059 { SWIG_PY_INT,     (char *)"LowerHighest", (long) 1, 0, 0, 0},
6060 { SWIG_PY_INT,     (char *)"PropModeReplace", (long) 0, 0, 0, 0},
6061 { SWIG_PY_INT,     (char *)"PropModePrepend", (long) 1, 0, 0, 0},
6062 { SWIG_PY_INT,     (char *)"PropModeAppend", (long) 2, 0, 0, 0},
6063 { SWIG_PY_INT,     (char *)"GXclear", (long) 0x0, 0, 0, 0},
6064 { SWIG_PY_INT,     (char *)"GXand", (long) 0x1, 0, 0, 0},
6065 { SWIG_PY_INT,     (char *)"GXandReverse", (long) 0x2, 0, 0, 0},
6066 { SWIG_PY_INT,     (char *)"GXcopy", (long) 0x3, 0, 0, 0},
6067 { SWIG_PY_INT,     (char *)"GXandInverted", (long) 0x4, 0, 0, 0},
6068 { SWIG_PY_INT,     (char *)"GXnoop", (long) 0x5, 0, 0, 0},
6069 { SWIG_PY_INT,     (char *)"GXxor", (long) 0x6, 0, 0, 0},
6070 { SWIG_PY_INT,     (char *)"GXor", (long) 0x7, 0, 0, 0},
6071 { SWIG_PY_INT,     (char *)"GXnor", (long) 0x8, 0, 0, 0},
6072 { SWIG_PY_INT,     (char *)"GXequiv", (long) 0x9, 0, 0, 0},
6073 { SWIG_PY_INT,     (char *)"GXinvert", (long) 0xa, 0, 0, 0},
6074 { SWIG_PY_INT,     (char *)"GXorReverse", (long) 0xb, 0, 0, 0},
6075 { SWIG_PY_INT,     (char *)"GXcopyInverted", (long) 0xc, 0, 0, 0},
6076 { SWIG_PY_INT,     (char *)"GXorInverted", (long) 0xd, 0, 0, 0},
6077 { SWIG_PY_INT,     (char *)"GXnand", (long) 0xe, 0, 0, 0},
6078 { SWIG_PY_INT,     (char *)"GXset", (long) 0xf, 0, 0, 0},
6079 { SWIG_PY_INT,     (char *)"LineSolid", (long) 0, 0, 0, 0},
6080 { SWIG_PY_INT,     (char *)"LineOnOffDash", (long) 1, 0, 0, 0},
6081 { SWIG_PY_INT,     (char *)"LineDoubleDash", (long) 2, 0, 0, 0},
6082 { SWIG_PY_INT,     (char *)"CapNotLast", (long) 0, 0, 0, 0},
6083 { SWIG_PY_INT,     (char *)"CapButt", (long) 1, 0, 0, 0},
6084 { SWIG_PY_INT,     (char *)"CapRound", (long) 2, 0, 0, 0},
6085 { SWIG_PY_INT,     (char *)"CapProjecting", (long) 3, 0, 0, 0},
6086 { SWIG_PY_INT,     (char *)"JoinMiter", (long) 0, 0, 0, 0},
6087 { SWIG_PY_INT,     (char *)"JoinRound", (long) 1, 0, 0, 0},
6088 { SWIG_PY_INT,     (char *)"JoinBevel", (long) 2, 0, 0, 0},
6089 { SWIG_PY_INT,     (char *)"FillSolid", (long) 0, 0, 0, 0},
6090 { SWIG_PY_INT,     (char *)"FillTiled", (long) 1, 0, 0, 0},
6091 { SWIG_PY_INT,     (char *)"FillStippled", (long) 2, 0, 0, 0},
6092 { SWIG_PY_INT,     (char *)"FillOpaqueStippled", (long) 3, 0, 0, 0},
6093 { SWIG_PY_INT,     (char *)"EvenOddRule", (long) 0, 0, 0, 0},
6094 { SWIG_PY_INT,     (char *)"WindingRule", (long) 1, 0, 0, 0},
6095 { SWIG_PY_INT,     (char *)"ClipByChildren", (long) 0, 0, 0, 0},
6096 { SWIG_PY_INT,     (char *)"IncludeInferiors", (long) 1, 0, 0, 0},
6097 { SWIG_PY_INT,     (char *)"Unsorted", (long) 0, 0, 0, 0},
6098 { SWIG_PY_INT,     (char *)"YSorted", (long) 1, 0, 0, 0},
6099 { SWIG_PY_INT,     (char *)"YXSorted", (long) 2, 0, 0, 0},
6100 { SWIG_PY_INT,     (char *)"YXBanded", (long) 3, 0, 0, 0},
6101 { SWIG_PY_INT,     (char *)"CoordModeOrigin", (long) 0, 0, 0, 0},
6102 { SWIG_PY_INT,     (char *)"CoordModePrevious", (long) 1, 0, 0, 0},
6103 { SWIG_PY_INT,     (char *)"Complex", (long) 0, 0, 0, 0},
6104 { SWIG_PY_INT,     (char *)"Nonconvex", (long) 1, 0, 0, 0},
6105 { SWIG_PY_INT,     (char *)"Convex", (long) 2, 0, 0, 0},
6106 { SWIG_PY_INT,     (char *)"ArcChord", (long) 0, 0, 0, 0},
6107 { SWIG_PY_INT,     (char *)"ArcPieSlice", (long) 1, 0, 0, 0},
6108 { SWIG_PY_INT,     (char *)"GCFunction", (long) (1L<<0), 0, 0, 0},
6109 { SWIG_PY_INT,     (char *)"GCPlaneMask", (long) (1L<<1), 0, 0, 0},
6110 { SWIG_PY_INT,     (char *)"GCForeground", (long) (1L<<2), 0, 0, 0},
6111 { SWIG_PY_INT,     (char *)"GCBackground", (long) (1L<<3), 0, 0, 0},
6112 { SWIG_PY_INT,     (char *)"GCLineWidth", (long) (1L<<4), 0, 0, 0},
6113 { SWIG_PY_INT,     (char *)"GCLineStyle", (long) (1L<<5), 0, 0, 0},
6114 { SWIG_PY_INT,     (char *)"GCCapStyle", (long) (1L<<6), 0, 0, 0},
6115 { SWIG_PY_INT,     (char *)"GCJoinStyle", (long) (1L<<7), 0, 0, 0},
6116 { SWIG_PY_INT,     (char *)"GCFillStyle", (long) (1L<<8), 0, 0, 0},
6117 { SWIG_PY_INT,     (char *)"GCFillRule", (long) (1L<<9), 0, 0, 0},
6118 { SWIG_PY_INT,     (char *)"GCTile", (long) (1L<<10), 0, 0, 0},
6119 { SWIG_PY_INT,     (char *)"GCStipple", (long) (1L<<11), 0, 0, 0},
6120 { SWIG_PY_INT,     (char *)"GCTileStipXOrigin", (long) (1L<<12), 0, 0, 0},
6121 { SWIG_PY_INT,     (char *)"GCTileStipYOrigin", (long) (1L<<13), 0, 0, 0},
6122 { SWIG_PY_INT,     (char *)"GCFont", (long) (1L<<14), 0, 0, 0},
6123 { SWIG_PY_INT,     (char *)"GCSubwindowMode", (long) (1L<<15), 0, 0, 0},
6124 { SWIG_PY_INT,     (char *)"GCGraphicsExposures", (long) (1L<<16), 0, 0, 0},
6125 { SWIG_PY_INT,     (char *)"GCClipXOrigin", (long) (1L<<17), 0, 0, 0},
6126 { SWIG_PY_INT,     (char *)"GCClipYOrigin", (long) (1L<<18), 0, 0, 0},
6127 { SWIG_PY_INT,     (char *)"GCClipMask", (long) (1L<<19), 0, 0, 0},
6128 { SWIG_PY_INT,     (char *)"GCDashOffset", (long) (1L<<20), 0, 0, 0},
6129 { SWIG_PY_INT,     (char *)"GCDashList", (long) (1L<<21), 0, 0, 0},
6130 { SWIG_PY_INT,     (char *)"GCArcMode", (long) (1L<<22), 0, 0, 0},
6131 { SWIG_PY_INT,     (char *)"GCLastBit", (long) 22, 0, 0, 0},
6132 { SWIG_PY_INT,     (char *)"FontLeftToRight", (long) 0, 0, 0, 0},
6133 { SWIG_PY_INT,     (char *)"FontRightToLeft", (long) 1, 0, 0, 0},
6134 { SWIG_PY_INT,     (char *)"FontChange", (long) 255, 0, 0, 0},
6135 { SWIG_PY_INT,     (char *)"XYBitmap", (long) 0, 0, 0, 0},
6136 { SWIG_PY_INT,     (char *)"XYPixmap", (long) 1, 0, 0, 0},
6137 { SWIG_PY_INT,     (char *)"ZPixmap", (long) 2, 0, 0, 0},
6138 { SWIG_PY_INT,     (char *)"AllocNone", (long) 0, 0, 0, 0},
6139 { SWIG_PY_INT,     (char *)"AllocAll", (long) 1, 0, 0, 0},
6140 { SWIG_PY_INT,     (char *)"DoRed", (long) (1<<0), 0, 0, 0},
6141 { SWIG_PY_INT,     (char *)"DoGreen", (long) (1<<1), 0, 0, 0},
6142 { SWIG_PY_INT,     (char *)"DoBlue", (long) (1<<2), 0, 0, 0},
6143 { SWIG_PY_INT,     (char *)"CursorShape", (long) 0, 0, 0, 0},
6144 { SWIG_PY_INT,     (char *)"TileShape", (long) 1, 0, 0, 0},
6145 { SWIG_PY_INT,     (char *)"StippleShape", (long) 2, 0, 0, 0},
6146 { SWIG_PY_INT,     (char *)"AutoRepeatModeOff", (long) 0, 0, 0, 0},
6147 { SWIG_PY_INT,     (char *)"AutoRepeatModeOn", (long) 1, 0, 0, 0},
6148 { SWIG_PY_INT,     (char *)"AutoRepeatModeDefault", (long) 2, 0, 0, 0},
6149 { SWIG_PY_INT,     (char *)"LedModeOff", (long) 0, 0, 0, 0},
6150 { SWIG_PY_INT,     (char *)"LedModeOn", (long) 1, 0, 0, 0},
6151 { SWIG_PY_INT,     (char *)"KBKeyClickPercent", (long) (1L<<0), 0, 0, 0},
6152 { SWIG_PY_INT,     (char *)"KBBellPercent", (long) (1L<<1), 0, 0, 0},
6153 { SWIG_PY_INT,     (char *)"KBBellPitch", (long) (1L<<2), 0, 0, 0},
6154 { SWIG_PY_INT,     (char *)"KBBellDuration", (long) (1L<<3), 0, 0, 0},
6155 { SWIG_PY_INT,     (char *)"KBLed", (long) (1L<<4), 0, 0, 0},
6156 { SWIG_PY_INT,     (char *)"KBLedMode", (long) (1L<<5), 0, 0, 0},
6157 { SWIG_PY_INT,     (char *)"KBKey", (long) (1L<<6), 0, 0, 0},
6158 { SWIG_PY_INT,     (char *)"KBAutoRepeatMode", (long) (1L<<7), 0, 0, 0},
6159 { SWIG_PY_INT,     (char *)"MappingSuccess", (long) 0, 0, 0, 0},
6160 { SWIG_PY_INT,     (char *)"MappingBusy", (long) 1, 0, 0, 0},
6161 { SWIG_PY_INT,     (char *)"MappingFailed", (long) 2, 0, 0, 0},
6162 { SWIG_PY_INT,     (char *)"MappingModifier", (long) 0, 0, 0, 0},
6163 { SWIG_PY_INT,     (char *)"MappingKeyboard", (long) 1, 0, 0, 0},
6164 { SWIG_PY_INT,     (char *)"MappingPointer", (long) 2, 0, 0, 0},
6165 { SWIG_PY_INT,     (char *)"DontPreferBlanking", (long) 0, 0, 0, 0},
6166 { SWIG_PY_INT,     (char *)"PreferBlanking", (long) 1, 0, 0, 0},
6167 { SWIG_PY_INT,     (char *)"DefaultBlanking", (long) 2, 0, 0, 0},
6168 { SWIG_PY_INT,     (char *)"DisableScreenSaver", (long) 0, 0, 0, 0},
6169 { SWIG_PY_INT,     (char *)"DisableScreenInterval", (long) 0, 0, 0, 0},
6170 { SWIG_PY_INT,     (char *)"DontAllowExposures", (long) 0, 0, 0, 0},
6171 { SWIG_PY_INT,     (char *)"AllowExposures", (long) 1, 0, 0, 0},
6172 { SWIG_PY_INT,     (char *)"DefaultExposures", (long) 2, 0, 0, 0},
6173 { SWIG_PY_INT,     (char *)"ScreenSaverReset", (long) 0, 0, 0, 0},
6174 { SWIG_PY_INT,     (char *)"ScreenSaverActive", (long) 1, 0, 0, 0},
6175 { SWIG_PY_INT,     (char *)"HostInsert", (long) 0, 0, 0, 0},
6176 { SWIG_PY_INT,     (char *)"HostDelete", (long) 1, 0, 0, 0},
6177 { SWIG_PY_INT,     (char *)"EnableAccess", (long) 1, 0, 0, 0},
6178 { SWIG_PY_INT,     (char *)"DisableAccess", (long) 0, 0, 0, 0},
6179 { SWIG_PY_INT,     (char *)"StaticGray", (long) 0, 0, 0, 0},
6180 { SWIG_PY_INT,     (char *)"GrayScale", (long) 1, 0, 0, 0},
6181 { SWIG_PY_INT,     (char *)"StaticColor", (long) 2, 0, 0, 0},
6182 { SWIG_PY_INT,     (char *)"PseudoColor", (long) 3, 0, 0, 0},
6183 { SWIG_PY_INT,     (char *)"TrueColor", (long) 4, 0, 0, 0},
6184 { SWIG_PY_INT,     (char *)"DirectColor", (long) 5, 0, 0, 0},
6185 { SWIG_PY_INT,     (char *)"LSBFirst", (long) 0, 0, 0, 0},
6186 { SWIG_PY_INT,     (char *)"MSBFirst", (long) 1, 0, 0, 0},
6187 {0}};
6188
6189 #ifdef __cplusplus
6190 }
6191 #endif
6192
6193 #ifdef __cplusplus
6194 extern "C"
6195 #endif
6196 SWIGEXPORT(void) SWIG_init(void) {
6197     static PyObject *SWIG_globals = 0; 
6198     static int       typeinit = 0;
6199     PyObject *m, *d;
6200     int       i;
6201     if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
6202     m = Py_InitModule((char *) SWIG_name, SwigMethods);
6203     d = PyModule_GetDict(m);
6204     
6205     if (!typeinit) {
6206         for (i = 0; swig_types_initial[i]; i++) {
6207             swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
6208         }
6209         typeinit = 1;
6210     }
6211     SWIG_InstallConstants(d,swig_const_table);
6212     
6213 }
6214