]> icculus.org git repositories - dana/openbox.git/blob - src/openbox_wrap.cc
python. no more guile. python.
[dana/openbox.git] / src / openbox_wrap.cc
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 1.3.17u-20021222-0248
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_Window swig_types[0] 
649 #define  SWIGTYPE_p_otk__OBTimerQueueManager 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_ob__OBClient swig_types[6] 
655 #define  SWIGTYPE_p_ob__Openbox swig_types[7] 
656 #define  SWIGTYPE_p_Cursor swig_types[8] 
657 #define  SWIGTYPE_p_otk__Strut swig_types[9] 
658 #define  SWIGTYPE_p_XShapeEvent swig_types[10] 
659 #define  SWIGTYPE_p_XConfigureRequestEvent swig_types[11] 
660 #define  SWIGTYPE_p_otk__OtkEventHandler swig_types[12] 
661 #define  SWIGTYPE_p_otk__Rect swig_types[13] 
662 #define  SWIGTYPE_p_ob__OBWidget swig_types[14] 
663 #define  SWIGTYPE_p_XClientMessageEvent swig_types[15] 
664 #define  SWIGTYPE_p_otk__OBProperty swig_types[16] 
665 #define  SWIGTYPE_p_otk__OtkEventDispatcher swig_types[17] 
666 #define  SWIGTYPE_p_XPropertyEvent swig_types[18] 
667 #define  SWIGTYPE_p_XDestroyWindowEvent swig_types[19] 
668 #define  SWIGTYPE_p_otk__BImageControl swig_types[20] 
669 #define  SWIGTYPE_p_ob__MwmHints swig_types[21] 
670 #define  SWIGTYPE_p_otk__Configuration swig_types[22] 
671 #define  SWIGTYPE_p_XUnmapEvent swig_types[23] 
672 static swig_type_info *swig_types[25];
673
674 /* -------- TYPES TABLE (END) -------- */
675
676
677 /*-----------------------------------------------
678               @(target):= _openbox.so
679   ------------------------------------------------*/
680 #define SWIG_init    init_openbox
681
682 #define SWIG_name    "_openbox"
683
684 #ifdef HAVE_CONFIG_H
685 #  include "../config.h"
686 #endif
687
688 #include "openbox.hh"
689 #include "screen.hh"
690 #include "client.hh"
691
692
693 #define  SWIG_MemoryError    1
694 #define  SWIG_IOError        2
695 #define  SWIG_RuntimeError   3
696 #define  SWIG_IndexError     4
697 #define  SWIG_TypeError      5
698 #define  SWIG_DivisionByZero 6
699 #define  SWIG_OverflowError  7
700 #define  SWIG_SyntaxError    8
701 #define  SWIG_ValueError     9
702 #define  SWIG_SystemError   10
703 #define  SWIG_UnknownError  99
704
705
706 static void _SWIG_exception(int code, const char *msg) {
707   switch(code) {
708   case SWIG_MemoryError:
709     PyErr_SetString(PyExc_MemoryError,msg);
710     break;
711   case SWIG_IOError:
712     PyErr_SetString(PyExc_IOError,msg);
713     break;
714   case SWIG_RuntimeError:
715     PyErr_SetString(PyExc_RuntimeError,msg);
716     break;
717   case SWIG_IndexError:
718     PyErr_SetString(PyExc_IndexError,msg);
719     break;
720   case SWIG_TypeError:
721     PyErr_SetString(PyExc_TypeError,msg);
722     break;
723   case SWIG_DivisionByZero:
724     PyErr_SetString(PyExc_ZeroDivisionError,msg);
725     break;
726   case SWIG_OverflowError:
727     PyErr_SetString(PyExc_OverflowError,msg);
728     break;
729   case SWIG_SyntaxError:
730     PyErr_SetString(PyExc_SyntaxError,msg);
731     break;
732   case SWIG_ValueError:
733     PyErr_SetString(PyExc_ValueError,msg);
734     break;
735   case SWIG_SystemError:
736     PyErr_SetString(PyExc_SystemError,msg);
737     break;
738   default:
739     PyErr_SetString(PyExc_RuntimeError,msg);
740     break;
741   }
742 }
743
744 #define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
745
746
747 #include <string>
748
749
750 #include <string>
751
752 static PyObject* SwigInt_FromBool(bool b) {
753     return PyInt_FromLong(b ? 1L : 0L);
754 }
755 static double SwigNumber_Check(PyObject* o) {
756     return PyFloat_Check(o) || PyInt_Check(o);
757 }
758 static double SwigNumber_AsDouble(PyObject* o) {
759     return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o)));
760 }
761 static PyObject* SwigString_FromString(const std::string& s) {
762     return PyString_FromString(s.c_str());
763 }
764 static std::string SwigString_AsString(PyObject* o) {
765     return std::string(PyString_AsString(o));
766 }
767
768
769 #include <vector>
770 #include <algorithm>
771 #include <stdexcept>
772
773 ob::OBClient *ob_OBScreen_client(ob::OBScreen *self,int i){
774     ob::OBScreen::ClientList::iterator it = self->clients.begin();
775     std::advance(it,i);
776     return *it;
777   }
778 int ob_OBScreen_clientCount(ob::OBScreen const *self){
779     return (int) self->clients.size();
780   }
781
782   ob::Openbox *Openbox_instance() { return ob::Openbox::instance; }
783
784
785   #include <iterator>
786
787 #ifdef __cplusplus
788 extern "C" {
789 #endif
790 static PyObject *_wrap_Cursors_session_set(PyObject *self, PyObject *args) {
791     PyObject *resultobj;
792     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
793     Cursor arg2 ;
794     Cursor *argp2 ;
795     PyObject * obj0  = 0 ;
796     PyObject * obj1  = 0 ;
797     
798     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_session_set",&obj0,&obj1)) goto fail;
799     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
800     if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Cursor,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
801     arg2 = *argp2; 
802     if (arg1) (arg1)->session = arg2;
803     
804     Py_INCREF(Py_None); resultobj = Py_None;
805     return resultobj;
806     fail:
807     return NULL;
808 }
809
810
811 static PyObject *_wrap_Cursors_session_get(PyObject *self, PyObject *args) {
812     PyObject *resultobj;
813     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
814     Cursor result;
815     PyObject * obj0  = 0 ;
816     
817     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_session_get",&obj0)) goto fail;
818     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
819     result =  ((arg1)->session);
820     
821     {
822         Cursor * resultptr;
823         resultptr = new Cursor((Cursor &) result);
824         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Cursor, 1);
825     }
826     return resultobj;
827     fail:
828     return NULL;
829 }
830
831
832 static PyObject *_wrap_Cursors_move_set(PyObject *self, PyObject *args) {
833     PyObject *resultobj;
834     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
835     Cursor arg2 ;
836     Cursor *argp2 ;
837     PyObject * obj0  = 0 ;
838     PyObject * obj1  = 0 ;
839     
840     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_move_set",&obj0,&obj1)) goto fail;
841     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
842     if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Cursor,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
843     arg2 = *argp2; 
844     if (arg1) (arg1)->move = arg2;
845     
846     Py_INCREF(Py_None); resultobj = Py_None;
847     return resultobj;
848     fail:
849     return NULL;
850 }
851
852
853 static PyObject *_wrap_Cursors_move_get(PyObject *self, PyObject *args) {
854     PyObject *resultobj;
855     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
856     Cursor result;
857     PyObject * obj0  = 0 ;
858     
859     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_move_get",&obj0)) goto fail;
860     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
861     result =  ((arg1)->move);
862     
863     {
864         Cursor * resultptr;
865         resultptr = new Cursor((Cursor &) result);
866         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Cursor, 1);
867     }
868     return resultobj;
869     fail:
870     return NULL;
871 }
872
873
874 static PyObject *_wrap_Cursors_ll_angle_set(PyObject *self, PyObject *args) {
875     PyObject *resultobj;
876     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
877     Cursor arg2 ;
878     Cursor *argp2 ;
879     PyObject * obj0  = 0 ;
880     PyObject * obj1  = 0 ;
881     
882     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ll_angle_set",&obj0,&obj1)) goto fail;
883     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
884     if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Cursor,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
885     arg2 = *argp2; 
886     if (arg1) (arg1)->ll_angle = arg2;
887     
888     Py_INCREF(Py_None); resultobj = Py_None;
889     return resultobj;
890     fail:
891     return NULL;
892 }
893
894
895 static PyObject *_wrap_Cursors_ll_angle_get(PyObject *self, PyObject *args) {
896     PyObject *resultobj;
897     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
898     Cursor result;
899     PyObject * obj0  = 0 ;
900     
901     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ll_angle_get",&obj0)) goto fail;
902     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
903     result =  ((arg1)->ll_angle);
904     
905     {
906         Cursor * resultptr;
907         resultptr = new Cursor((Cursor &) result);
908         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Cursor, 1);
909     }
910     return resultobj;
911     fail:
912     return NULL;
913 }
914
915
916 static PyObject *_wrap_Cursors_lr_angle_set(PyObject *self, PyObject *args) {
917     PyObject *resultobj;
918     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
919     Cursor arg2 ;
920     Cursor *argp2 ;
921     PyObject * obj0  = 0 ;
922     PyObject * obj1  = 0 ;
923     
924     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_lr_angle_set",&obj0,&obj1)) goto fail;
925     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
926     if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Cursor,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
927     arg2 = *argp2; 
928     if (arg1) (arg1)->lr_angle = arg2;
929     
930     Py_INCREF(Py_None); resultobj = Py_None;
931     return resultobj;
932     fail:
933     return NULL;
934 }
935
936
937 static PyObject *_wrap_Cursors_lr_angle_get(PyObject *self, PyObject *args) {
938     PyObject *resultobj;
939     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
940     Cursor result;
941     PyObject * obj0  = 0 ;
942     
943     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_lr_angle_get",&obj0)) goto fail;
944     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
945     result =  ((arg1)->lr_angle);
946     
947     {
948         Cursor * resultptr;
949         resultptr = new Cursor((Cursor &) result);
950         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Cursor, 1);
951     }
952     return resultobj;
953     fail:
954     return NULL;
955 }
956
957
958 static PyObject *_wrap_Cursors_ul_angle_set(PyObject *self, PyObject *args) {
959     PyObject *resultobj;
960     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
961     Cursor arg2 ;
962     Cursor *argp2 ;
963     PyObject * obj0  = 0 ;
964     PyObject * obj1  = 0 ;
965     
966     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ul_angle_set",&obj0,&obj1)) goto fail;
967     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
968     if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Cursor,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
969     arg2 = *argp2; 
970     if (arg1) (arg1)->ul_angle = arg2;
971     
972     Py_INCREF(Py_None); resultobj = Py_None;
973     return resultobj;
974     fail:
975     return NULL;
976 }
977
978
979 static PyObject *_wrap_Cursors_ul_angle_get(PyObject *self, PyObject *args) {
980     PyObject *resultobj;
981     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
982     Cursor result;
983     PyObject * obj0  = 0 ;
984     
985     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ul_angle_get",&obj0)) goto fail;
986     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
987     result =  ((arg1)->ul_angle);
988     
989     {
990         Cursor * resultptr;
991         resultptr = new Cursor((Cursor &) result);
992         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Cursor, 1);
993     }
994     return resultobj;
995     fail:
996     return NULL;
997 }
998
999
1000 static PyObject *_wrap_Cursors_ur_angle_set(PyObject *self, PyObject *args) {
1001     PyObject *resultobj;
1002     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
1003     Cursor arg2 ;
1004     Cursor *argp2 ;
1005     PyObject * obj0  = 0 ;
1006     PyObject * obj1  = 0 ;
1007     
1008     if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ur_angle_set",&obj0,&obj1)) goto fail;
1009     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1010     if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Cursor,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
1011     arg2 = *argp2; 
1012     if (arg1) (arg1)->ur_angle = arg2;
1013     
1014     Py_INCREF(Py_None); resultobj = Py_None;
1015     return resultobj;
1016     fail:
1017     return NULL;
1018 }
1019
1020
1021 static PyObject *_wrap_Cursors_ur_angle_get(PyObject *self, PyObject *args) {
1022     PyObject *resultobj;
1023     ob::Cursors *arg1 = (ob::Cursors *) 0 ;
1024     Cursor result;
1025     PyObject * obj0  = 0 ;
1026     
1027     if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ur_angle_get",&obj0)) goto fail;
1028     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1029     result =  ((arg1)->ur_angle);
1030     
1031     {
1032         Cursor * resultptr;
1033         resultptr = new Cursor((Cursor &) result);
1034         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Cursor, 1);
1035     }
1036     return resultobj;
1037     fail:
1038     return NULL;
1039 }
1040
1041
1042 static PyObject * Cursors_swigregister(PyObject *self, PyObject *args) {
1043     PyObject *obj;
1044     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1045     SWIG_TypeClientData(SWIGTYPE_p_ob__Cursors, obj);
1046     Py_INCREF(obj);
1047     return Py_BuildValue((char *)"");
1048 }
1049 static PyObject *_wrap_Openbox_state(PyObject *self, PyObject *args) {
1050     PyObject *resultobj;
1051     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1052     int result;
1053     PyObject * obj0  = 0 ;
1054     
1055     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_state",&obj0)) goto fail;
1056     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1057     result = (int)((ob::Openbox const *)arg1)->state();
1058     
1059     resultobj = PyInt_FromLong((long)result);
1060     return resultobj;
1061     fail:
1062     return NULL;
1063 }
1064
1065
1066 static PyObject *_wrap_Openbox_timerManager(PyObject *self, PyObject *args) {
1067     PyObject *resultobj;
1068     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1069     otk::OBTimerQueueManager *result;
1070     PyObject * obj0  = 0 ;
1071     
1072     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_timerManager",&obj0)) goto fail;
1073     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1074     result = (otk::OBTimerQueueManager *)(arg1)->timerManager();
1075     
1076     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimerQueueManager, 0);
1077     return resultobj;
1078     fail:
1079     return NULL;
1080 }
1081
1082
1083 static PyObject *_wrap_Openbox_property(PyObject *self, PyObject *args) {
1084     PyObject *resultobj;
1085     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1086     otk::OBProperty *result;
1087     PyObject * obj0  = 0 ;
1088     
1089     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_property",&obj0)) goto fail;
1090     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1091     result = (otk::OBProperty *)((ob::Openbox const *)arg1)->property();
1092     
1093     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBProperty, 0);
1094     return resultobj;
1095     fail:
1096     return NULL;
1097 }
1098
1099
1100 static PyObject *_wrap_Openbox_screen(PyObject *self, PyObject *args) {
1101     PyObject *resultobj;
1102     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1103     int arg2 ;
1104     ob::OBScreen *result;
1105     PyObject * obj0  = 0 ;
1106     
1107     if(!PyArg_ParseTuple(args,(char *)"Oi:Openbox_screen",&obj0,&arg2)) goto fail;
1108     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1109     result = (ob::OBScreen *)(arg1)->screen(arg2);
1110     
1111     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
1112     return resultobj;
1113     fail:
1114     return NULL;
1115 }
1116
1117
1118 static PyObject *_wrap_Openbox_cursors(PyObject *self, PyObject *args) {
1119     PyObject *resultobj;
1120     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1121     ob::Cursors *result;
1122     PyObject * obj0  = 0 ;
1123     
1124     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_cursors",&obj0)) goto fail;
1125     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1126     {
1127         ob::Cursors const &_result_ref = ((ob::Openbox const *)arg1)->cursors();
1128         result = (ob::Cursors *) &_result_ref;
1129     }
1130     
1131     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Cursors, 0);
1132     return resultobj;
1133     fail:
1134     return NULL;
1135 }
1136
1137
1138 static PyObject *_wrap_Openbox_addClient(PyObject *self, PyObject *args) {
1139     PyObject *resultobj;
1140     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1141     Window arg2 ;
1142     ob::OBClient *arg3 = (ob::OBClient *) 0 ;
1143     Window *argp2 ;
1144     PyObject * obj0  = 0 ;
1145     PyObject * obj1  = 0 ;
1146     PyObject * obj2  = 0 ;
1147     
1148     if(!PyArg_ParseTuple(args,(char *)"OOO:Openbox_addClient",&obj0,&obj1,&obj2)) goto fail;
1149     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1150     if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
1151     arg2 = *argp2; 
1152     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1153     (arg1)->addClient(arg2,arg3);
1154     
1155     Py_INCREF(Py_None); resultobj = Py_None;
1156     return resultobj;
1157     fail:
1158     return NULL;
1159 }
1160
1161
1162 static PyObject *_wrap_Openbox_removeClient(PyObject *self, PyObject *args) {
1163     PyObject *resultobj;
1164     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1165     Window arg2 ;
1166     Window *argp2 ;
1167     PyObject * obj0  = 0 ;
1168     PyObject * obj1  = 0 ;
1169     
1170     if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_removeClient",&obj0,&obj1)) goto fail;
1171     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1172     if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
1173     arg2 = *argp2; 
1174     (arg1)->removeClient(arg2);
1175     
1176     Py_INCREF(Py_None); resultobj = Py_None;
1177     return resultobj;
1178     fail:
1179     return NULL;
1180 }
1181
1182
1183 static PyObject *_wrap_Openbox_findClient(PyObject *self, PyObject *args) {
1184     PyObject *resultobj;
1185     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1186     Window arg2 ;
1187     ob::OBClient *result;
1188     Window *argp2 ;
1189     PyObject * obj0  = 0 ;
1190     PyObject * obj1  = 0 ;
1191     
1192     if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_findClient",&obj0,&obj1)) goto fail;
1193     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1194     if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
1195     arg2 = *argp2; 
1196     result = (ob::OBClient *)(arg1)->findClient(arg2);
1197     
1198     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1199     return resultobj;
1200     fail:
1201     return NULL;
1202 }
1203
1204
1205 static PyObject *_wrap_Openbox_shutdown(PyObject *self, PyObject *args) {
1206     PyObject *resultobj;
1207     ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1208     PyObject * obj0  = 0 ;
1209     
1210     if(!PyArg_ParseTuple(args,(char *)"O:Openbox_shutdown",&obj0)) goto fail;
1211     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1212     (arg1)->shutdown();
1213     
1214     Py_INCREF(Py_None); resultobj = Py_None;
1215     return resultobj;
1216     fail:
1217     return NULL;
1218 }
1219
1220
1221 static PyObject * Openbox_swigregister(PyObject *self, PyObject *args) {
1222     PyObject *obj;
1223     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1224     SWIG_TypeClientData(SWIGTYPE_p_ob__Openbox, obj);
1225     Py_INCREF(obj);
1226     return Py_BuildValue((char *)"");
1227 }
1228 static PyObject *_wrap_OBScreen_managed(PyObject *self, PyObject *args) {
1229     PyObject *resultobj;
1230     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1231     bool result;
1232     PyObject * obj0  = 0 ;
1233     
1234     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_managed",&obj0)) goto fail;
1235     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1236     result = (bool)((ob::OBScreen const *)arg1)->managed();
1237     
1238     resultobj = PyInt_FromLong((long)result);
1239     return resultobj;
1240     fail:
1241     return NULL;
1242 }
1243
1244
1245 static PyObject *_wrap_OBScreen_imageControl(PyObject *self, PyObject *args) {
1246     PyObject *resultobj;
1247     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1248     otk::BImageControl *result;
1249     PyObject * obj0  = 0 ;
1250     
1251     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_imageControl",&obj0)) goto fail;
1252     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1253     result = (otk::BImageControl *)(arg1)->imageControl();
1254     
1255     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 0);
1256     return resultobj;
1257     fail:
1258     return NULL;
1259 }
1260
1261
1262 static PyObject *_wrap_OBScreen_area(PyObject *self, PyObject *args) {
1263     PyObject *resultobj;
1264     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1265     otk::Rect *result;
1266     PyObject * obj0  = 0 ;
1267     
1268     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_area",&obj0)) goto fail;
1269     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1270     {
1271         otk::Rect const &_result_ref = ((ob::OBScreen const *)arg1)->area();
1272         result = (otk::Rect *) &_result_ref;
1273     }
1274     
1275     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
1276     return resultobj;
1277     fail:
1278     return NULL;
1279 }
1280
1281
1282 static PyObject *_wrap_OBScreen_style(PyObject *self, PyObject *args) {
1283     PyObject *resultobj;
1284     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1285     otk::Style *result;
1286     PyObject * obj0  = 0 ;
1287     
1288     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_style",&obj0)) goto fail;
1289     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1290     result = (otk::Style *)((ob::OBScreen const *)arg1)->style();
1291     
1292     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
1293     return resultobj;
1294     fail:
1295     return NULL;
1296 }
1297
1298
1299 static PyObject *_wrap_OBScreen_addStrut(PyObject *self, PyObject *args) {
1300     PyObject *resultobj;
1301     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1302     otk::Strut *arg2 = (otk::Strut *) 0 ;
1303     PyObject * obj0  = 0 ;
1304     PyObject * obj1  = 0 ;
1305     
1306     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_addStrut",&obj0,&obj1)) goto fail;
1307     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1308     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1309     (arg1)->addStrut(arg2);
1310     
1311     Py_INCREF(Py_None); resultobj = Py_None;
1312     return resultobj;
1313     fail:
1314     return NULL;
1315 }
1316
1317
1318 static PyObject *_wrap_OBScreen_removeStrut(PyObject *self, PyObject *args) {
1319     PyObject *resultobj;
1320     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1321     otk::Strut *arg2 = (otk::Strut *) 0 ;
1322     PyObject * obj0  = 0 ;
1323     PyObject * obj1  = 0 ;
1324     
1325     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_removeStrut",&obj0,&obj1)) goto fail;
1326     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1327     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1328     (arg1)->removeStrut(arg2);
1329     
1330     Py_INCREF(Py_None); resultobj = Py_None;
1331     return resultobj;
1332     fail:
1333     return NULL;
1334 }
1335
1336
1337 static PyObject *_wrap_OBScreen_loadStyle(PyObject *self, PyObject *args) {
1338     PyObject *resultobj;
1339     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1340     otk::Configuration *arg2 = 0 ;
1341     PyObject * obj0  = 0 ;
1342     PyObject * obj1  = 0 ;
1343     
1344     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_loadStyle",&obj0,&obj1)) goto fail;
1345     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1346     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1347     if (arg2 == NULL) {
1348         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
1349     }
1350     (arg1)->loadStyle((otk::Configuration const &)*arg2);
1351     
1352     Py_INCREF(Py_None); resultobj = Py_None;
1353     return resultobj;
1354     fail:
1355     return NULL;
1356 }
1357
1358
1359 static PyObject *_wrap_OBScreen_manageExisting(PyObject *self, PyObject *args) {
1360     PyObject *resultobj;
1361     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1362     PyObject * obj0  = 0 ;
1363     
1364     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_manageExisting",&obj0)) goto fail;
1365     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1366     (arg1)->manageExisting();
1367     
1368     Py_INCREF(Py_None); resultobj = Py_None;
1369     return resultobj;
1370     fail:
1371     return NULL;
1372 }
1373
1374
1375 static PyObject *_wrap_OBScreen_manageWindow(PyObject *self, PyObject *args) {
1376     PyObject *resultobj;
1377     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1378     Window arg2 ;
1379     Window *argp2 ;
1380     PyObject * obj0  = 0 ;
1381     PyObject * obj1  = 0 ;
1382     
1383     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_manageWindow",&obj0,&obj1)) goto fail;
1384     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1385     if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
1386     arg2 = *argp2; 
1387     (arg1)->manageWindow(arg2);
1388     
1389     Py_INCREF(Py_None); resultobj = Py_None;
1390     return resultobj;
1391     fail:
1392     return NULL;
1393 }
1394
1395
1396 static PyObject *_wrap_OBScreen_unmanageWindow(PyObject *self, PyObject *args) {
1397     PyObject *resultobj;
1398     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1399     ob::OBClient *arg2 = (ob::OBClient *) 0 ;
1400     PyObject * obj0  = 0 ;
1401     PyObject * obj1  = 0 ;
1402     
1403     if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_unmanageWindow",&obj0,&obj1)) goto fail;
1404     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1405     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1406     (arg1)->unmanageWindow(arg2);
1407     
1408     Py_INCREF(Py_None); resultobj = Py_None;
1409     return resultobj;
1410     fail:
1411     return NULL;
1412 }
1413
1414
1415 static PyObject *_wrap_OBScreen_client(PyObject *self, PyObject *args) {
1416     PyObject *resultobj;
1417     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1418     int arg2 ;
1419     ob::OBClient *result;
1420     PyObject * obj0  = 0 ;
1421     
1422     if(!PyArg_ParseTuple(args,(char *)"Oi:OBScreen_client",&obj0,&arg2)) goto fail;
1423     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1424     result = (ob::OBClient *)ob_OBScreen_client(arg1,arg2);
1425     
1426     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1427     return resultobj;
1428     fail:
1429     return NULL;
1430 }
1431
1432
1433 static PyObject *_wrap_OBScreen_clientCount(PyObject *self, PyObject *args) {
1434     PyObject *resultobj;
1435     ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1436     int result;
1437     PyObject * obj0  = 0 ;
1438     
1439     if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_clientCount",&obj0)) goto fail;
1440     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1441     result = (int)ob_OBScreen_clientCount((ob::OBScreen const *)arg1);
1442     
1443     resultobj = PyInt_FromLong((long)result);
1444     return resultobj;
1445     fail:
1446     return NULL;
1447 }
1448
1449
1450 static PyObject * OBScreen_swigregister(PyObject *self, PyObject *args) {
1451     PyObject *obj;
1452     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1453     SWIG_TypeClientData(SWIGTYPE_p_ob__OBScreen, obj);
1454     Py_INCREF(obj);
1455     return Py_BuildValue((char *)"");
1456 }
1457 static PyObject *_wrap_MwmHints_flags_set(PyObject *self, PyObject *args) {
1458     PyObject *resultobj;
1459     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1460     unsigned long arg2 ;
1461     PyObject * obj0  = 0 ;
1462     PyObject * obj1  = 0 ;
1463     
1464     if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_flags_set",&obj0,&obj1)) goto fail;
1465     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1466     arg2 = (unsigned long) PyInt_AsLong(obj1);
1467     if (PyErr_Occurred()) SWIG_fail;
1468     if (arg1) (arg1)->flags = arg2;
1469     
1470     Py_INCREF(Py_None); resultobj = Py_None;
1471     return resultobj;
1472     fail:
1473     return NULL;
1474 }
1475
1476
1477 static PyObject *_wrap_MwmHints_flags_get(PyObject *self, PyObject *args) {
1478     PyObject *resultobj;
1479     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1480     unsigned long result;
1481     PyObject * obj0  = 0 ;
1482     
1483     if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_flags_get",&obj0)) goto fail;
1484     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1485     result = (unsigned long) ((arg1)->flags);
1486     
1487     resultobj = PyInt_FromLong((long)result);
1488     return resultobj;
1489     fail:
1490     return NULL;
1491 }
1492
1493
1494 static PyObject *_wrap_MwmHints_functions_set(PyObject *self, PyObject *args) {
1495     PyObject *resultobj;
1496     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1497     unsigned long arg2 ;
1498     PyObject * obj0  = 0 ;
1499     PyObject * obj1  = 0 ;
1500     
1501     if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_functions_set",&obj0,&obj1)) goto fail;
1502     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1503     arg2 = (unsigned long) PyInt_AsLong(obj1);
1504     if (PyErr_Occurred()) SWIG_fail;
1505     if (arg1) (arg1)->functions = arg2;
1506     
1507     Py_INCREF(Py_None); resultobj = Py_None;
1508     return resultobj;
1509     fail:
1510     return NULL;
1511 }
1512
1513
1514 static PyObject *_wrap_MwmHints_functions_get(PyObject *self, PyObject *args) {
1515     PyObject *resultobj;
1516     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1517     unsigned long result;
1518     PyObject * obj0  = 0 ;
1519     
1520     if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_functions_get",&obj0)) goto fail;
1521     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1522     result = (unsigned long) ((arg1)->functions);
1523     
1524     resultobj = PyInt_FromLong((long)result);
1525     return resultobj;
1526     fail:
1527     return NULL;
1528 }
1529
1530
1531 static PyObject *_wrap_MwmHints_decorations_set(PyObject *self, PyObject *args) {
1532     PyObject *resultobj;
1533     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1534     unsigned long arg2 ;
1535     PyObject * obj0  = 0 ;
1536     PyObject * obj1  = 0 ;
1537     
1538     if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_decorations_set",&obj0,&obj1)) goto fail;
1539     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1540     arg2 = (unsigned long) PyInt_AsLong(obj1);
1541     if (PyErr_Occurred()) SWIG_fail;
1542     if (arg1) (arg1)->decorations = arg2;
1543     
1544     Py_INCREF(Py_None); resultobj = Py_None;
1545     return resultobj;
1546     fail:
1547     return NULL;
1548 }
1549
1550
1551 static PyObject *_wrap_MwmHints_decorations_get(PyObject *self, PyObject *args) {
1552     PyObject *resultobj;
1553     ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1554     unsigned long result;
1555     PyObject * obj0  = 0 ;
1556     
1557     if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_decorations_get",&obj0)) goto fail;
1558     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1559     result = (unsigned long) ((arg1)->decorations);
1560     
1561     resultobj = PyInt_FromLong((long)result);
1562     return resultobj;
1563     fail:
1564     return NULL;
1565 }
1566
1567
1568 static PyObject * MwmHints_swigregister(PyObject *self, PyObject *args) {
1569     PyObject *obj;
1570     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1571     SWIG_TypeClientData(SWIGTYPE_p_ob__MwmHints, obj);
1572     Py_INCREF(obj);
1573     return Py_BuildValue((char *)"");
1574 }
1575 static PyObject *_wrap_OBClient_frame_set(PyObject *self, PyObject *args) {
1576     PyObject *resultobj;
1577     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1578     ob::OBFrame *arg2 = (ob::OBFrame *) 0 ;
1579     PyObject * obj0  = 0 ;
1580     PyObject * obj1  = 0 ;
1581     
1582     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_frame_set",&obj0,&obj1)) goto fail;
1583     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1584     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBFrame,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
1585     if (arg1) (arg1)->frame = arg2;
1586     
1587     Py_INCREF(Py_None); resultobj = Py_None;
1588     return resultobj;
1589     fail:
1590     return NULL;
1591 }
1592
1593
1594 static PyObject *_wrap_OBClient_frame_get(PyObject *self, PyObject *args) {
1595     PyObject *resultobj;
1596     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1597     ob::OBFrame *result;
1598     PyObject * obj0  = 0 ;
1599     
1600     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_frame_get",&obj0)) goto fail;
1601     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1602     result = (ob::OBFrame *) ((arg1)->frame);
1603     
1604     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBFrame, 0);
1605     return resultobj;
1606     fail:
1607     return NULL;
1608 }
1609
1610
1611 static PyObject *_wrap_OBClient_ignore_unmaps_set(PyObject *self, PyObject *args) {
1612     PyObject *resultobj;
1613     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1614     int arg2 ;
1615     PyObject * obj0  = 0 ;
1616     
1617     if(!PyArg_ParseTuple(args,(char *)"Oi:OBClient_ignore_unmaps_set",&obj0,&arg2)) goto fail;
1618     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1619     if (arg1) (arg1)->ignore_unmaps = arg2;
1620     
1621     Py_INCREF(Py_None); resultobj = Py_None;
1622     return resultobj;
1623     fail:
1624     return NULL;
1625 }
1626
1627
1628 static PyObject *_wrap_OBClient_ignore_unmaps_get(PyObject *self, PyObject *args) {
1629     PyObject *resultobj;
1630     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1631     int result;
1632     PyObject * obj0  = 0 ;
1633     
1634     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_ignore_unmaps_get",&obj0)) goto fail;
1635     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1636     result = (int) ((arg1)->ignore_unmaps);
1637     
1638     resultobj = PyInt_FromLong((long)result);
1639     return resultobj;
1640     fail:
1641     return NULL;
1642 }
1643
1644
1645 static PyObject *_wrap_OBClient_screen(PyObject *self, PyObject *args) {
1646     PyObject *resultobj;
1647     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1648     int result;
1649     PyObject * obj0  = 0 ;
1650     
1651     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_screen",&obj0)) goto fail;
1652     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1653     result = (int)((ob::OBClient const *)arg1)->screen();
1654     
1655     resultobj = PyInt_FromLong((long)result);
1656     return resultobj;
1657     fail:
1658     return NULL;
1659 }
1660
1661
1662 static PyObject *_wrap_OBClient_window(PyObject *self, PyObject *args) {
1663     PyObject *resultobj;
1664     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1665     Window result;
1666     PyObject * obj0  = 0 ;
1667     
1668     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_window",&obj0)) goto fail;
1669     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1670     result = ((ob::OBClient const *)arg1)->window();
1671     
1672     {
1673         Window * resultptr;
1674         resultptr = new Window((Window &) result);
1675         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Window, 1);
1676     }
1677     return resultobj;
1678     fail:
1679     return NULL;
1680 }
1681
1682
1683 static PyObject *_wrap_OBClient_type(PyObject *self, PyObject *args) {
1684     PyObject *resultobj;
1685     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1686     int result;
1687     PyObject * obj0  = 0 ;
1688     
1689     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_type",&obj0)) goto fail;
1690     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1691     result = (int)((ob::OBClient const *)arg1)->type();
1692     
1693     resultobj = PyInt_FromLong((long)result);
1694     return resultobj;
1695     fail:
1696     return NULL;
1697 }
1698
1699
1700 static PyObject *_wrap_OBClient_desktop(PyObject *self, PyObject *args) {
1701     PyObject *resultobj;
1702     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1703     unsigned long result;
1704     PyObject * obj0  = 0 ;
1705     
1706     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_desktop",&obj0)) goto fail;
1707     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1708     result = (unsigned long)((ob::OBClient const *)arg1)->desktop();
1709     
1710     resultobj = PyInt_FromLong((long)result);
1711     return resultobj;
1712     fail:
1713     return NULL;
1714 }
1715
1716
1717 static PyObject *_wrap_OBClient_title(PyObject *self, PyObject *args) {
1718     PyObject *resultobj;
1719     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1720     std::string *result;
1721     PyObject * obj0  = 0 ;
1722     
1723     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_title",&obj0)) goto fail;
1724     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1725     {
1726         std::string const &_result_ref = ((ob::OBClient const *)arg1)->title();
1727         result = (std::string *) &_result_ref;
1728     }
1729     
1730     {
1731         resultobj = PyString_FromString(result->c_str());
1732     }
1733     return resultobj;
1734     fail:
1735     return NULL;
1736 }
1737
1738
1739 static PyObject *_wrap_OBClient_iconTitle(PyObject *self, PyObject *args) {
1740     PyObject *resultobj;
1741     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1742     std::string *result;
1743     PyObject * obj0  = 0 ;
1744     
1745     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconTitle",&obj0)) goto fail;
1746     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1747     {
1748         std::string const &_result_ref = ((ob::OBClient const *)arg1)->iconTitle();
1749         result = (std::string *) &_result_ref;
1750     }
1751     
1752     {
1753         resultobj = PyString_FromString(result->c_str());
1754     }
1755     return resultobj;
1756     fail:
1757     return NULL;
1758 }
1759
1760
1761 static PyObject *_wrap_OBClient_appName(PyObject *self, PyObject *args) {
1762     PyObject *resultobj;
1763     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1764     std::string *result;
1765     PyObject * obj0  = 0 ;
1766     
1767     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appName",&obj0)) goto fail;
1768     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1769     {
1770         std::string const &_result_ref = ((ob::OBClient const *)arg1)->appName();
1771         result = (std::string *) &_result_ref;
1772     }
1773     
1774     {
1775         resultobj = PyString_FromString(result->c_str());
1776     }
1777     return resultobj;
1778     fail:
1779     return NULL;
1780 }
1781
1782
1783 static PyObject *_wrap_OBClient_appClass(PyObject *self, PyObject *args) {
1784     PyObject *resultobj;
1785     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1786     std::string *result;
1787     PyObject * obj0  = 0 ;
1788     
1789     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appClass",&obj0)) goto fail;
1790     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1791     {
1792         std::string const &_result_ref = ((ob::OBClient const *)arg1)->appClass();
1793         result = (std::string *) &_result_ref;
1794     }
1795     
1796     {
1797         resultobj = PyString_FromString(result->c_str());
1798     }
1799     return resultobj;
1800     fail:
1801     return NULL;
1802 }
1803
1804
1805 static PyObject *_wrap_OBClient_canFocus(PyObject *self, PyObject *args) {
1806     PyObject *resultobj;
1807     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1808     bool result;
1809     PyObject * obj0  = 0 ;
1810     
1811     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_canFocus",&obj0)) goto fail;
1812     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1813     result = (bool)((ob::OBClient const *)arg1)->canFocus();
1814     
1815     resultobj = PyInt_FromLong((long)result);
1816     return resultobj;
1817     fail:
1818     return NULL;
1819 }
1820
1821
1822 static PyObject *_wrap_OBClient_urgent(PyObject *self, PyObject *args) {
1823     PyObject *resultobj;
1824     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1825     bool result;
1826     PyObject * obj0  = 0 ;
1827     
1828     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_urgent",&obj0)) goto fail;
1829     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1830     result = (bool)((ob::OBClient const *)arg1)->urgent();
1831     
1832     resultobj = PyInt_FromLong((long)result);
1833     return resultobj;
1834     fail:
1835     return NULL;
1836 }
1837
1838
1839 static PyObject *_wrap_OBClient_focusNotify(PyObject *self, PyObject *args) {
1840     PyObject *resultobj;
1841     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1842     bool result;
1843     PyObject * obj0  = 0 ;
1844     
1845     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focusNotify",&obj0)) goto fail;
1846     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1847     result = (bool)((ob::OBClient const *)arg1)->focusNotify();
1848     
1849     resultobj = PyInt_FromLong((long)result);
1850     return resultobj;
1851     fail:
1852     return NULL;
1853 }
1854
1855
1856 static PyObject *_wrap_OBClient_shaped(PyObject *self, PyObject *args) {
1857     PyObject *resultobj;
1858     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1859     bool result;
1860     PyObject * obj0  = 0 ;
1861     
1862     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaped",&obj0)) goto fail;
1863     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1864     result = (bool)((ob::OBClient const *)arg1)->shaped();
1865     
1866     resultobj = PyInt_FromLong((long)result);
1867     return resultobj;
1868     fail:
1869     return NULL;
1870 }
1871
1872
1873 static PyObject *_wrap_OBClient_gravity(PyObject *self, PyObject *args) {
1874     PyObject *resultobj;
1875     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1876     int result;
1877     PyObject * obj0  = 0 ;
1878     
1879     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_gravity",&obj0)) goto fail;
1880     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1881     result = (int)((ob::OBClient const *)arg1)->gravity();
1882     
1883     resultobj = PyInt_FromLong((long)result);
1884     return resultobj;
1885     fail:
1886     return NULL;
1887 }
1888
1889
1890 static PyObject *_wrap_OBClient_positionRequested(PyObject *self, PyObject *args) {
1891     PyObject *resultobj;
1892     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1893     bool result;
1894     PyObject * obj0  = 0 ;
1895     
1896     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_positionRequested",&obj0)) goto fail;
1897     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1898     result = (bool)((ob::OBClient const *)arg1)->positionRequested();
1899     
1900     resultobj = PyInt_FromLong((long)result);
1901     return resultobj;
1902     fail:
1903     return NULL;
1904 }
1905
1906
1907 static PyObject *_wrap_OBClient_decorations(PyObject *self, PyObject *args) {
1908     PyObject *resultobj;
1909     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1910     ob::OBClient::DecorationFlags result;
1911     PyObject * obj0  = 0 ;
1912     
1913     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_decorations",&obj0)) goto fail;
1914     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1915     result = (ob::OBClient::DecorationFlags)((ob::OBClient const *)arg1)->decorations();
1916     
1917     resultobj = PyInt_FromLong((long)result);
1918     return resultobj;
1919     fail:
1920     return NULL;
1921 }
1922
1923
1924 static PyObject *_wrap_OBClient_funtions(PyObject *self, PyObject *args) {
1925     PyObject *resultobj;
1926     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1927     ob::OBClient::FunctionFlags result;
1928     PyObject * obj0  = 0 ;
1929     
1930     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_funtions",&obj0)) goto fail;
1931     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1932     result = (ob::OBClient::FunctionFlags)((ob::OBClient const *)arg1)->funtions();
1933     
1934     resultobj = PyInt_FromLong((long)result);
1935     return resultobj;
1936     fail:
1937     return NULL;
1938 }
1939
1940
1941 static PyObject *_wrap_OBClient_modal(PyObject *self, PyObject *args) {
1942     PyObject *resultobj;
1943     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1944     bool result;
1945     PyObject * obj0  = 0 ;
1946     
1947     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_modal",&obj0)) goto fail;
1948     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1949     result = (bool)((ob::OBClient const *)arg1)->modal();
1950     
1951     resultobj = PyInt_FromLong((long)result);
1952     return resultobj;
1953     fail:
1954     return NULL;
1955 }
1956
1957
1958 static PyObject *_wrap_OBClient_shaded(PyObject *self, PyObject *args) {
1959     PyObject *resultobj;
1960     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1961     bool result;
1962     PyObject * obj0  = 0 ;
1963     
1964     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaded",&obj0)) goto fail;
1965     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1966     result = (bool)((ob::OBClient const *)arg1)->shaded();
1967     
1968     resultobj = PyInt_FromLong((long)result);
1969     return resultobj;
1970     fail:
1971     return NULL;
1972 }
1973
1974
1975 static PyObject *_wrap_OBClient_iconic(PyObject *self, PyObject *args) {
1976     PyObject *resultobj;
1977     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1978     bool result;
1979     PyObject * obj0  = 0 ;
1980     
1981     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconic",&obj0)) goto fail;
1982     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1983     result = (bool)((ob::OBClient const *)arg1)->iconic();
1984     
1985     resultobj = PyInt_FromLong((long)result);
1986     return resultobj;
1987     fail:
1988     return NULL;
1989 }
1990
1991
1992 static PyObject *_wrap_OBClient_maxVert(PyObject *self, PyObject *args) {
1993     PyObject *resultobj;
1994     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1995     bool result;
1996     PyObject * obj0  = 0 ;
1997     
1998     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxVert",&obj0)) goto fail;
1999     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2000     result = (bool)((ob::OBClient const *)arg1)->maxVert();
2001     
2002     resultobj = PyInt_FromLong((long)result);
2003     return resultobj;
2004     fail:
2005     return NULL;
2006 }
2007
2008
2009 static PyObject *_wrap_OBClient_maxHorz(PyObject *self, PyObject *args) {
2010     PyObject *resultobj;
2011     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2012     bool result;
2013     PyObject * obj0  = 0 ;
2014     
2015     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxHorz",&obj0)) goto fail;
2016     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2017     result = (bool)((ob::OBClient const *)arg1)->maxHorz();
2018     
2019     resultobj = PyInt_FromLong((long)result);
2020     return resultobj;
2021     fail:
2022     return NULL;
2023 }
2024
2025
2026 static PyObject *_wrap_OBClient_fullscreen(PyObject *self, PyObject *args) {
2027     PyObject *resultobj;
2028     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2029     bool result;
2030     PyObject * obj0  = 0 ;
2031     
2032     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_fullscreen",&obj0)) goto fail;
2033     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2034     result = (bool)((ob::OBClient const *)arg1)->fullscreen();
2035     
2036     resultobj = PyInt_FromLong((long)result);
2037     return resultobj;
2038     fail:
2039     return NULL;
2040 }
2041
2042
2043 static PyObject *_wrap_OBClient_floating(PyObject *self, PyObject *args) {
2044     PyObject *resultobj;
2045     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2046     bool result;
2047     PyObject * obj0  = 0 ;
2048     
2049     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_floating",&obj0)) goto fail;
2050     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2051     result = (bool)((ob::OBClient const *)arg1)->floating();
2052     
2053     resultobj = PyInt_FromLong((long)result);
2054     return resultobj;
2055     fail:
2056     return NULL;
2057 }
2058
2059
2060 static PyObject *_wrap_OBClient_toggleClientBorder(PyObject *self, PyObject *args) {
2061     PyObject *resultobj;
2062     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2063     bool arg2 ;
2064     PyObject * obj0  = 0 ;
2065     PyObject * obj1  = 0 ;
2066     
2067     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_toggleClientBorder",&obj0,&obj1)) goto fail;
2068     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2069     arg2 = (bool) PyInt_AsLong(obj1);
2070     if (PyErr_Occurred()) SWIG_fail;
2071     (arg1)->toggleClientBorder(arg2);
2072     
2073     Py_INCREF(Py_None); resultobj = Py_None;
2074     return resultobj;
2075     fail:
2076     return NULL;
2077 }
2078
2079
2080 static PyObject *_wrap_OBClient_area(PyObject *self, PyObject *args) {
2081     PyObject *resultobj;
2082     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2083     otk::Rect *result;
2084     PyObject * obj0  = 0 ;
2085     
2086     if(!PyArg_ParseTuple(args,(char *)"O:OBClient_area",&obj0)) goto fail;
2087     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2088     {
2089         otk::Rect const &_result_ref = ((ob::OBClient const *)arg1)->area();
2090         result = (otk::Rect *) &_result_ref;
2091     }
2092     
2093     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
2094     return resultobj;
2095     fail:
2096     return NULL;
2097 }
2098
2099
2100 static PyObject *_wrap_OBClient_move(PyObject *self, PyObject *args) {
2101     PyObject *resultobj;
2102     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2103     int arg2 ;
2104     int arg3 ;
2105     PyObject * obj0  = 0 ;
2106     
2107     if(!PyArg_ParseTuple(args,(char *)"Oii:OBClient_move",&obj0,&arg2,&arg3)) goto fail;
2108     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2109     (arg1)->move(arg2,arg3);
2110     
2111     Py_INCREF(Py_None); resultobj = Py_None;
2112     return resultobj;
2113     fail:
2114     return NULL;
2115 }
2116
2117
2118 static PyObject *_wrap_OBClient_resize(PyObject *self, PyObject *args) {
2119     PyObject *resultobj;
2120     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2121     int arg2 ;
2122     int arg3 ;
2123     int arg4 ;
2124     PyObject * obj0  = 0 ;
2125     
2126     if(!PyArg_ParseTuple(args,(char *)"Oiii:OBClient_resize",&obj0,&arg2,&arg3,&arg4)) goto fail;
2127     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2128     (arg1)->resize((ob::OBClient::Corner )arg2,arg3,arg4);
2129     
2130     Py_INCREF(Py_None); resultobj = Py_None;
2131     return resultobj;
2132     fail:
2133     return NULL;
2134 }
2135
2136
2137 static PyObject *_wrap_OBClient_propertyHandler(PyObject *self, PyObject *args) {
2138     PyObject *resultobj;
2139     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2140     XPropertyEvent *arg2 = 0 ;
2141     PyObject * obj0  = 0 ;
2142     PyObject * obj1  = 0 ;
2143     
2144     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_propertyHandler",&obj0,&obj1)) goto fail;
2145     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2146     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2147     if (arg2 == NULL) {
2148         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2149     }
2150     (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
2151     
2152     Py_INCREF(Py_None); resultobj = Py_None;
2153     return resultobj;
2154     fail:
2155     return NULL;
2156 }
2157
2158
2159 static PyObject *_wrap_OBClient_clientMessageHandler(PyObject *self, PyObject *args) {
2160     PyObject *resultobj;
2161     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2162     XClientMessageEvent *arg2 = 0 ;
2163     PyObject * obj0  = 0 ;
2164     PyObject * obj1  = 0 ;
2165     
2166     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_clientMessageHandler",&obj0,&obj1)) goto fail;
2167     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2168     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2169     if (arg2 == NULL) {
2170         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2171     }
2172     (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
2173     
2174     Py_INCREF(Py_None); resultobj = Py_None;
2175     return resultobj;
2176     fail:
2177     return NULL;
2178 }
2179
2180
2181 static PyObject *_wrap_OBClient_shapeHandler(PyObject *self, PyObject *args) {
2182     PyObject *resultobj;
2183     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2184     XShapeEvent *arg2 = 0 ;
2185     PyObject * obj0  = 0 ;
2186     PyObject * obj1  = 0 ;
2187     
2188     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_shapeHandler",&obj0,&obj1)) goto fail;
2189     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2190     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XShapeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2191     if (arg2 == NULL) {
2192         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2193     }
2194     (arg1)->shapeHandler((XShapeEvent const &)*arg2);
2195     
2196     Py_INCREF(Py_None); resultobj = Py_None;
2197     return resultobj;
2198     fail:
2199     return NULL;
2200 }
2201
2202
2203 static PyObject *_wrap_OBClient_configureRequestHandler(PyObject *self, PyObject *args) {
2204     PyObject *resultobj;
2205     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2206     XConfigureRequestEvent *arg2 = 0 ;
2207     PyObject * obj0  = 0 ;
2208     PyObject * obj1  = 0 ;
2209     
2210     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_configureRequestHandler",&obj0,&obj1)) goto fail;
2211     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2212     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2213     if (arg2 == NULL) {
2214         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2215     }
2216     (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2);
2217     
2218     Py_INCREF(Py_None); resultobj = Py_None;
2219     return resultobj;
2220     fail:
2221     return NULL;
2222 }
2223
2224
2225 static PyObject *_wrap_OBClient_unmapHandler(PyObject *self, PyObject *args) {
2226     PyObject *resultobj;
2227     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2228     XUnmapEvent *arg2 = 0 ;
2229     PyObject * obj0  = 0 ;
2230     PyObject * obj1  = 0 ;
2231     
2232     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unmapHandler",&obj0,&obj1)) goto fail;
2233     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2234     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2235     if (arg2 == NULL) {
2236         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2237     }
2238     (arg1)->unmapHandler((XUnmapEvent const &)*arg2);
2239     
2240     Py_INCREF(Py_None); resultobj = Py_None;
2241     return resultobj;
2242     fail:
2243     return NULL;
2244 }
2245
2246
2247 static PyObject *_wrap_OBClient_destroyHandler(PyObject *self, PyObject *args) {
2248     PyObject *resultobj;
2249     ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2250     XDestroyWindowEvent *arg2 = 0 ;
2251     PyObject * obj0  = 0 ;
2252     PyObject * obj1  = 0 ;
2253     
2254     if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_destroyHandler",&obj0,&obj1)) goto fail;
2255     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2256     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2257     if (arg2 == NULL) {
2258         PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
2259     }
2260     (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2);
2261     
2262     Py_INCREF(Py_None); resultobj = Py_None;
2263     return resultobj;
2264     fail:
2265     return NULL;
2266 }
2267
2268
2269 static PyObject * OBClient_swigregister(PyObject *self, PyObject *args) {
2270     PyObject *obj;
2271     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2272     SWIG_TypeClientData(SWIGTYPE_p_ob__OBClient, obj);
2273     Py_INCREF(obj);
2274     return Py_BuildValue((char *)"");
2275 }
2276 static PyObject *_wrap_Openbox_instance(PyObject *self, PyObject *args) {
2277     PyObject *resultobj;
2278     ob::Openbox *result;
2279     
2280     if(!PyArg_ParseTuple(args,(char *)":Openbox_instance")) goto fail;
2281     result = (ob::Openbox *)Openbox_instance();
2282     
2283     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Openbox, 0);
2284     return resultobj;
2285     fail:
2286     return NULL;
2287 }
2288
2289
2290 static PyMethodDef SwigMethods[] = {
2291          { (char *)"Cursors_session_set", _wrap_Cursors_session_set, METH_VARARGS },
2292          { (char *)"Cursors_session_get", _wrap_Cursors_session_get, METH_VARARGS },
2293          { (char *)"Cursors_move_set", _wrap_Cursors_move_set, METH_VARARGS },
2294          { (char *)"Cursors_move_get", _wrap_Cursors_move_get, METH_VARARGS },
2295          { (char *)"Cursors_ll_angle_set", _wrap_Cursors_ll_angle_set, METH_VARARGS },
2296          { (char *)"Cursors_ll_angle_get", _wrap_Cursors_ll_angle_get, METH_VARARGS },
2297          { (char *)"Cursors_lr_angle_set", _wrap_Cursors_lr_angle_set, METH_VARARGS },
2298          { (char *)"Cursors_lr_angle_get", _wrap_Cursors_lr_angle_get, METH_VARARGS },
2299          { (char *)"Cursors_ul_angle_set", _wrap_Cursors_ul_angle_set, METH_VARARGS },
2300          { (char *)"Cursors_ul_angle_get", _wrap_Cursors_ul_angle_get, METH_VARARGS },
2301          { (char *)"Cursors_ur_angle_set", _wrap_Cursors_ur_angle_set, METH_VARARGS },
2302          { (char *)"Cursors_ur_angle_get", _wrap_Cursors_ur_angle_get, METH_VARARGS },
2303          { (char *)"Cursors_swigregister", Cursors_swigregister, METH_VARARGS },
2304          { (char *)"Openbox_state", _wrap_Openbox_state, METH_VARARGS },
2305          { (char *)"Openbox_timerManager", _wrap_Openbox_timerManager, METH_VARARGS },
2306          { (char *)"Openbox_property", _wrap_Openbox_property, METH_VARARGS },
2307          { (char *)"Openbox_screen", _wrap_Openbox_screen, METH_VARARGS },
2308          { (char *)"Openbox_cursors", _wrap_Openbox_cursors, METH_VARARGS },
2309          { (char *)"Openbox_addClient", _wrap_Openbox_addClient, METH_VARARGS },
2310          { (char *)"Openbox_removeClient", _wrap_Openbox_removeClient, METH_VARARGS },
2311          { (char *)"Openbox_findClient", _wrap_Openbox_findClient, METH_VARARGS },
2312          { (char *)"Openbox_shutdown", _wrap_Openbox_shutdown, METH_VARARGS },
2313          { (char *)"Openbox_swigregister", Openbox_swigregister, METH_VARARGS },
2314          { (char *)"OBScreen_managed", _wrap_OBScreen_managed, METH_VARARGS },
2315          { (char *)"OBScreen_imageControl", _wrap_OBScreen_imageControl, METH_VARARGS },
2316          { (char *)"OBScreen_area", _wrap_OBScreen_area, METH_VARARGS },
2317          { (char *)"OBScreen_style", _wrap_OBScreen_style, METH_VARARGS },
2318          { (char *)"OBScreen_addStrut", _wrap_OBScreen_addStrut, METH_VARARGS },
2319          { (char *)"OBScreen_removeStrut", _wrap_OBScreen_removeStrut, METH_VARARGS },
2320          { (char *)"OBScreen_loadStyle", _wrap_OBScreen_loadStyle, METH_VARARGS },
2321          { (char *)"OBScreen_manageExisting", _wrap_OBScreen_manageExisting, METH_VARARGS },
2322          { (char *)"OBScreen_manageWindow", _wrap_OBScreen_manageWindow, METH_VARARGS },
2323          { (char *)"OBScreen_unmanageWindow", _wrap_OBScreen_unmanageWindow, METH_VARARGS },
2324          { (char *)"OBScreen_client", _wrap_OBScreen_client, METH_VARARGS },
2325          { (char *)"OBScreen_clientCount", _wrap_OBScreen_clientCount, METH_VARARGS },
2326          { (char *)"OBScreen_swigregister", OBScreen_swigregister, METH_VARARGS },
2327          { (char *)"MwmHints_flags_set", _wrap_MwmHints_flags_set, METH_VARARGS },
2328          { (char *)"MwmHints_flags_get", _wrap_MwmHints_flags_get, METH_VARARGS },
2329          { (char *)"MwmHints_functions_set", _wrap_MwmHints_functions_set, METH_VARARGS },
2330          { (char *)"MwmHints_functions_get", _wrap_MwmHints_functions_get, METH_VARARGS },
2331          { (char *)"MwmHints_decorations_set", _wrap_MwmHints_decorations_set, METH_VARARGS },
2332          { (char *)"MwmHints_decorations_get", _wrap_MwmHints_decorations_get, METH_VARARGS },
2333          { (char *)"MwmHints_swigregister", MwmHints_swigregister, METH_VARARGS },
2334          { (char *)"OBClient_frame_set", _wrap_OBClient_frame_set, METH_VARARGS },
2335          { (char *)"OBClient_frame_get", _wrap_OBClient_frame_get, METH_VARARGS },
2336          { (char *)"OBClient_ignore_unmaps_set", _wrap_OBClient_ignore_unmaps_set, METH_VARARGS },
2337          { (char *)"OBClient_ignore_unmaps_get", _wrap_OBClient_ignore_unmaps_get, METH_VARARGS },
2338          { (char *)"OBClient_screen", _wrap_OBClient_screen, METH_VARARGS },
2339          { (char *)"OBClient_window", _wrap_OBClient_window, METH_VARARGS },
2340          { (char *)"OBClient_type", _wrap_OBClient_type, METH_VARARGS },
2341          { (char *)"OBClient_desktop", _wrap_OBClient_desktop, METH_VARARGS },
2342          { (char *)"OBClient_title", _wrap_OBClient_title, METH_VARARGS },
2343          { (char *)"OBClient_iconTitle", _wrap_OBClient_iconTitle, METH_VARARGS },
2344          { (char *)"OBClient_appName", _wrap_OBClient_appName, METH_VARARGS },
2345          { (char *)"OBClient_appClass", _wrap_OBClient_appClass, METH_VARARGS },
2346          { (char *)"OBClient_canFocus", _wrap_OBClient_canFocus, METH_VARARGS },
2347          { (char *)"OBClient_urgent", _wrap_OBClient_urgent, METH_VARARGS },
2348          { (char *)"OBClient_focusNotify", _wrap_OBClient_focusNotify, METH_VARARGS },
2349          { (char *)"OBClient_shaped", _wrap_OBClient_shaped, METH_VARARGS },
2350          { (char *)"OBClient_gravity", _wrap_OBClient_gravity, METH_VARARGS },
2351          { (char *)"OBClient_positionRequested", _wrap_OBClient_positionRequested, METH_VARARGS },
2352          { (char *)"OBClient_decorations", _wrap_OBClient_decorations, METH_VARARGS },
2353          { (char *)"OBClient_funtions", _wrap_OBClient_funtions, METH_VARARGS },
2354          { (char *)"OBClient_modal", _wrap_OBClient_modal, METH_VARARGS },
2355          { (char *)"OBClient_shaded", _wrap_OBClient_shaded, METH_VARARGS },
2356          { (char *)"OBClient_iconic", _wrap_OBClient_iconic, METH_VARARGS },
2357          { (char *)"OBClient_maxVert", _wrap_OBClient_maxVert, METH_VARARGS },
2358          { (char *)"OBClient_maxHorz", _wrap_OBClient_maxHorz, METH_VARARGS },
2359          { (char *)"OBClient_fullscreen", _wrap_OBClient_fullscreen, METH_VARARGS },
2360          { (char *)"OBClient_floating", _wrap_OBClient_floating, METH_VARARGS },
2361          { (char *)"OBClient_toggleClientBorder", _wrap_OBClient_toggleClientBorder, METH_VARARGS },
2362          { (char *)"OBClient_area", _wrap_OBClient_area, METH_VARARGS },
2363          { (char *)"OBClient_move", _wrap_OBClient_move, METH_VARARGS },
2364          { (char *)"OBClient_resize", _wrap_OBClient_resize, METH_VARARGS },
2365          { (char *)"OBClient_propertyHandler", _wrap_OBClient_propertyHandler, METH_VARARGS },
2366          { (char *)"OBClient_clientMessageHandler", _wrap_OBClient_clientMessageHandler, METH_VARARGS },
2367          { (char *)"OBClient_shapeHandler", _wrap_OBClient_shapeHandler, METH_VARARGS },
2368          { (char *)"OBClient_configureRequestHandler", _wrap_OBClient_configureRequestHandler, METH_VARARGS },
2369          { (char *)"OBClient_unmapHandler", _wrap_OBClient_unmapHandler, METH_VARARGS },
2370          { (char *)"OBClient_destroyHandler", _wrap_OBClient_destroyHandler, METH_VARARGS },
2371          { (char *)"OBClient_swigregister", OBClient_swigregister, METH_VARARGS },
2372          { (char *)"Openbox_instance", _wrap_Openbox_instance, METH_VARARGS },
2373          { NULL, NULL }
2374 };
2375
2376
2377 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2378
2379 static void *_p_ob__OpenboxTo_p_otk__OtkEventHandler(void *x) {
2380     return (void *)((otk::OtkEventHandler *)  ((ob::Openbox *) x));
2381 }
2382 static void *_p_ob__OBClientTo_p_otk__OtkEventHandler(void *x) {
2383     return (void *)((otk::OtkEventHandler *)  ((ob::OBClient *) x));
2384 }
2385 static void *_p_ob__OBClientTo_p_ob__OBWidget(void *x) {
2386     return (void *)((ob::OBWidget *)  ((ob::OBClient *) x));
2387 }
2388 static void *_p_ob__OpenboxTo_p_otk__OtkEventDispatcher(void *x) {
2389     return (void *)((otk::OtkEventDispatcher *)  ((ob::Openbox *) x));
2390 }
2391 static swig_type_info _swigt__p_Window[] = {{"_p_Window", 0, "Window *", 0},{"_p_Window"},{0}};
2392 static swig_type_info _swigt__p_otk__OBTimerQueueManager[] = {{"_p_otk__OBTimerQueueManager", 0, "otk::OBTimerQueueManager *", 0},{"_p_otk__OBTimerQueueManager"},{0}};
2393 static swig_type_info _swigt__p_ob__Cursors[] = {{"_p_ob__Cursors", 0, "ob::Cursors *", 0},{"_p_ob__Cursors"},{0}};
2394 static swig_type_info _swigt__p_ob__OBScreen[] = {{"_p_ob__OBScreen", 0, "ob::OBScreen *", 0},{"_p_ob__OBScreen"},{0}};
2395 static swig_type_info _swigt__p_otk__Style[] = {{"_p_otk__Style", 0, "otk::Style *", 0},{"_p_otk__Style"},{0}};
2396 static swig_type_info _swigt__p_ob__OBFrame[] = {{"_p_ob__OBFrame", 0, "ob::OBFrame *", 0},{"_p_ob__OBFrame"},{0}};
2397 static swig_type_info _swigt__p_ob__OBClient[] = {{"_p_ob__OBClient", 0, "ob::OBClient *", 0},{"_p_ob__OBClient"},{0}};
2398 static swig_type_info _swigt__p_ob__Openbox[] = {{"_p_ob__Openbox", 0, "ob::Openbox *", 0},{"_p_ob__Openbox"},{0}};
2399 static swig_type_info _swigt__p_Cursor[] = {{"_p_Cursor", 0, "Cursor *", 0},{"_p_Cursor"},{0}};
2400 static swig_type_info _swigt__p_otk__Strut[] = {{"_p_otk__Strut", 0, "otk::Strut *", 0},{"_p_otk__Strut"},{0}};
2401 static swig_type_info _swigt__p_XShapeEvent[] = {{"_p_XShapeEvent", 0, "XShapeEvent *", 0},{"_p_XShapeEvent"},{0}};
2402 static swig_type_info _swigt__p_XConfigureRequestEvent[] = {{"_p_XConfigureRequestEvent", 0, "XConfigureRequestEvent *", 0},{"_p_XConfigureRequestEvent"},{0}};
2403 static swig_type_info _swigt__p_otk__OtkEventHandler[] = {{"_p_otk__OtkEventHandler", 0, "otk::OtkEventHandler *", 0},{"_p_otk__OtkEventHandler"},{"_p_ob__Openbox", _p_ob__OpenboxTo_p_otk__OtkEventHandler},{"_p_ob__OBClient", _p_ob__OBClientTo_p_otk__OtkEventHandler},{0}};
2404 static swig_type_info _swigt__p_otk__Rect[] = {{"_p_otk__Rect", 0, "otk::Rect *", 0},{"_p_otk__Rect"},{0}};
2405 static swig_type_info _swigt__p_ob__OBWidget[] = {{"_p_ob__OBWidget", 0, "ob::OBWidget *", 0},{"_p_ob__OBWidget"},{"_p_ob__OBClient", _p_ob__OBClientTo_p_ob__OBWidget},{0}};
2406 static swig_type_info _swigt__p_XClientMessageEvent[] = {{"_p_XClientMessageEvent", 0, "XClientMessageEvent *", 0},{"_p_XClientMessageEvent"},{0}};
2407 static swig_type_info _swigt__p_otk__OBProperty[] = {{"_p_otk__OBProperty", 0, "otk::OBProperty *", 0},{"_p_otk__OBProperty"},{0}};
2408 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}};
2409 static swig_type_info _swigt__p_XPropertyEvent[] = {{"_p_XPropertyEvent", 0, "XPropertyEvent *", 0},{"_p_XPropertyEvent"},{0}};
2410 static swig_type_info _swigt__p_XDestroyWindowEvent[] = {{"_p_XDestroyWindowEvent", 0, "XDestroyWindowEvent *", 0},{"_p_XDestroyWindowEvent"},{0}};
2411 static swig_type_info _swigt__p_otk__BImageControl[] = {{"_p_otk__BImageControl", 0, "otk::BImageControl *", 0},{"_p_otk__BImageControl"},{0}};
2412 static swig_type_info _swigt__p_ob__MwmHints[] = {{"_p_ob__MwmHints", 0, "ob::MwmHints *", 0},{"_p_ob__MwmHints"},{0}};
2413 static swig_type_info _swigt__p_otk__Configuration[] = {{"_p_otk__Configuration", 0, "otk::Configuration *", 0},{"_p_otk__Configuration"},{0}};
2414 static swig_type_info _swigt__p_XUnmapEvent[] = {{"_p_XUnmapEvent", 0, "XUnmapEvent *", 0},{"_p_XUnmapEvent"},{0}};
2415
2416 static swig_type_info *swig_types_initial[] = {
2417 _swigt__p_Window, 
2418 _swigt__p_otk__OBTimerQueueManager, 
2419 _swigt__p_ob__Cursors, 
2420 _swigt__p_ob__OBScreen, 
2421 _swigt__p_otk__Style, 
2422 _swigt__p_ob__OBFrame, 
2423 _swigt__p_ob__OBClient, 
2424 _swigt__p_ob__Openbox, 
2425 _swigt__p_Cursor, 
2426 _swigt__p_otk__Strut, 
2427 _swigt__p_XShapeEvent, 
2428 _swigt__p_XConfigureRequestEvent, 
2429 _swigt__p_otk__OtkEventHandler, 
2430 _swigt__p_otk__Rect, 
2431 _swigt__p_ob__OBWidget, 
2432 _swigt__p_XClientMessageEvent, 
2433 _swigt__p_otk__OBProperty, 
2434 _swigt__p_otk__OtkEventDispatcher, 
2435 _swigt__p_XPropertyEvent, 
2436 _swigt__p_XDestroyWindowEvent, 
2437 _swigt__p_otk__BImageControl, 
2438 _swigt__p_ob__MwmHints, 
2439 _swigt__p_otk__Configuration, 
2440 _swigt__p_XUnmapEvent, 
2441 0
2442 };
2443
2444
2445 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2446
2447 static swig_const_info swig_const_table[] = {
2448 { SWIG_PY_INT,     (char *)"Openbox_State_Starting", (long) ob::Openbox::State_Starting, 0, 0, 0},
2449 { SWIG_PY_INT,     (char *)"Openbox_State_Normal", (long) ob::Openbox::State_Normal, 0, 0, 0},
2450 { SWIG_PY_INT,     (char *)"Openbox_State_Exiting", (long) ob::Openbox::State_Exiting, 0, 0, 0},
2451 { SWIG_PY_INT,     (char *)"OBScreen_event_mask", (long) ob::OBScreen::event_mask, 0, 0, 0},
2452 { SWIG_PY_INT,     (char *)"MwmHints_elements", (long) ob::MwmHints::elements, 0, 0, 0},
2453 { SWIG_PY_INT,     (char *)"OBClient_TopLeft", (long) ob::OBClient::TopLeft, 0, 0, 0},
2454 { SWIG_PY_INT,     (char *)"OBClient_TopRight", (long) ob::OBClient::TopRight, 0, 0, 0},
2455 { SWIG_PY_INT,     (char *)"OBClient_BottomLeft", (long) ob::OBClient::BottomLeft, 0, 0, 0},
2456 { SWIG_PY_INT,     (char *)"OBClient_BottomRight", (long) ob::OBClient::BottomRight, 0, 0, 0},
2457 { SWIG_PY_INT,     (char *)"OBClient_Type_Desktop", (long) ob::OBClient::Type_Desktop, 0, 0, 0},
2458 { SWIG_PY_INT,     (char *)"OBClient_Type_Dock", (long) ob::OBClient::Type_Dock, 0, 0, 0},
2459 { SWIG_PY_INT,     (char *)"OBClient_Type_Toolbar", (long) ob::OBClient::Type_Toolbar, 0, 0, 0},
2460 { SWIG_PY_INT,     (char *)"OBClient_Type_Menu", (long) ob::OBClient::Type_Menu, 0, 0, 0},
2461 { SWIG_PY_INT,     (char *)"OBClient_Type_Utility", (long) ob::OBClient::Type_Utility, 0, 0, 0},
2462 { SWIG_PY_INT,     (char *)"OBClient_Type_Splash", (long) ob::OBClient::Type_Splash, 0, 0, 0},
2463 { SWIG_PY_INT,     (char *)"OBClient_Type_Dialog", (long) ob::OBClient::Type_Dialog, 0, 0, 0},
2464 { SWIG_PY_INT,     (char *)"OBClient_Type_Normal", (long) ob::OBClient::Type_Normal, 0, 0, 0},
2465 { SWIG_PY_INT,     (char *)"OBClient_MwmFlag_Functions", (long) ob::OBClient::MwmFlag_Functions, 0, 0, 0},
2466 { SWIG_PY_INT,     (char *)"OBClient_MwmFlag_Decorations", (long) ob::OBClient::MwmFlag_Decorations, 0, 0, 0},
2467 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_All", (long) ob::OBClient::MwmFunc_All, 0, 0, 0},
2468 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Resize", (long) ob::OBClient::MwmFunc_Resize, 0, 0, 0},
2469 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Move", (long) ob::OBClient::MwmFunc_Move, 0, 0, 0},
2470 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Iconify", (long) ob::OBClient::MwmFunc_Iconify, 0, 0, 0},
2471 { SWIG_PY_INT,     (char *)"OBClient_MwmFunc_Maximize", (long) ob::OBClient::MwmFunc_Maximize, 0, 0, 0},
2472 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_All", (long) ob::OBClient::MwmDecor_All, 0, 0, 0},
2473 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Border", (long) ob::OBClient::MwmDecor_Border, 0, 0, 0},
2474 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Handle", (long) ob::OBClient::MwmDecor_Handle, 0, 0, 0},
2475 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Title", (long) ob::OBClient::MwmDecor_Title, 0, 0, 0},
2476 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Iconify", (long) ob::OBClient::MwmDecor_Iconify, 0, 0, 0},
2477 { SWIG_PY_INT,     (char *)"OBClient_MwmDecor_Maximize", (long) ob::OBClient::MwmDecor_Maximize, 0, 0, 0},
2478 { SWIG_PY_INT,     (char *)"OBClient_Func_Resize", (long) ob::OBClient::Func_Resize, 0, 0, 0},
2479 { SWIG_PY_INT,     (char *)"OBClient_Func_Move", (long) ob::OBClient::Func_Move, 0, 0, 0},
2480 { SWIG_PY_INT,     (char *)"OBClient_Func_Iconify", (long) ob::OBClient::Func_Iconify, 0, 0, 0},
2481 { SWIG_PY_INT,     (char *)"OBClient_Func_Maximize", (long) ob::OBClient::Func_Maximize, 0, 0, 0},
2482 { SWIG_PY_INT,     (char *)"OBClient_Func_Close", (long) ob::OBClient::Func_Close, 0, 0, 0},
2483 { SWIG_PY_INT,     (char *)"OBClient_Decor_Titlebar", (long) ob::OBClient::Decor_Titlebar, 0, 0, 0},
2484 { SWIG_PY_INT,     (char *)"OBClient_Decor_Handle", (long) ob::OBClient::Decor_Handle, 0, 0, 0},
2485 { SWIG_PY_INT,     (char *)"OBClient_Decor_Border", (long) ob::OBClient::Decor_Border, 0, 0, 0},
2486 { SWIG_PY_INT,     (char *)"OBClient_Decor_Iconify", (long) ob::OBClient::Decor_Iconify, 0, 0, 0},
2487 { SWIG_PY_INT,     (char *)"OBClient_Decor_Maximize", (long) ob::OBClient::Decor_Maximize, 0, 0, 0},
2488 { SWIG_PY_INT,     (char *)"OBClient_Decor_Sticky", (long) ob::OBClient::Decor_Sticky, 0, 0, 0},
2489 { SWIG_PY_INT,     (char *)"OBClient_Decor_Close", (long) ob::OBClient::Decor_Close, 0, 0, 0},
2490 { SWIG_PY_INT,     (char *)"OBClient_State_Remove", (long) ob::OBClient::State_Remove, 0, 0, 0},
2491 { SWIG_PY_INT,     (char *)"OBClient_State_Add", (long) ob::OBClient::State_Add, 0, 0, 0},
2492 { SWIG_PY_INT,     (char *)"OBClient_State_Toggle", (long) ob::OBClient::State_Toggle, 0, 0, 0},
2493 { SWIG_PY_INT,     (char *)"OBClient_event_mask", (long) ob::OBClient::event_mask, 0, 0, 0},
2494 { SWIG_PY_INT,     (char *)"OBClient_no_propagate_mask", (long) ob::OBClient::no_propagate_mask, 0, 0, 0},
2495 {0}};
2496
2497 #ifdef __cplusplus
2498 }
2499 #endif
2500
2501 #ifdef __cplusplus
2502 extern "C"
2503 #endif
2504 SWIGEXPORT(void) SWIG_init(void) {
2505     static PyObject *SWIG_globals = 0; 
2506     static int       typeinit = 0;
2507     PyObject *m, *d;
2508     int       i;
2509     if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
2510     m = Py_InitModule((char *) SWIG_name, SwigMethods);
2511     d = PyModule_GetDict(m);
2512     
2513     if (!typeinit) {
2514         for (i = 0; swig_types_initial[i]; i++) {
2515             swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
2516         }
2517         typeinit = 1;
2518     }
2519     SWIG_InstallConstants(d,swig_const_table);
2520     
2521 }
2522