]> Dogcows Code - chaz/openbox/blob - src/openbox_wrap.cc
support net_wm_strut's! nothing to do with them yet however
[chaz/openbox] / src / openbox_wrap.cc
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.17u-20021226-0459
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12
13 #ifdef __cplusplus
14 template<class T> class SwigValueWrapper {
15 T *tt;
16 public:
17 inline SwigValueWrapper() : tt(0) { }
18 inline ~SwigValueWrapper() { if (tt) delete tt; }
19 inline SwigValueWrapper& operator=(const T& t) { tt = new T(t); return *this; }
20 inline operator T&() const { return *tt; }
21 inline T *operator&() { return tt; }
22 };
23 #endif
24
25
26 #include "Python.h"
27
28 /***********************************************************************
29 * common.swg
30 *
31 * This file contains generic SWIG runtime support for pointer
32 * type checking as well as a few commonly used macros to control
33 * external linkage.
34 *
35 * Author : David Beazley (beazley@cs.uchicago.edu)
36 *
37 * Copyright (c) 1999-2000, The University of Chicago
38 *
39 * This file may be freely redistributed without license or fee provided
40 * this copyright message remains intact.
41 ************************************************************************/
42
43 #include <string.h>
44
45 #if defined(_WIN32) || defined(__WIN32__)
46 # if defined(_MSC_VER)
47 # if defined(STATIC_LINKED)
48 # define SWIGEXPORT(a) a
49 # define SWIGIMPORT(a) extern a
50 # else
51 # define SWIGEXPORT(a) __declspec(dllexport) a
52 # define SWIGIMPORT(a) extern a
53 # endif
54 # else
55 # if defined(__BORLANDC__)
56 # define SWIGEXPORT(a) a _export
57 # define SWIGIMPORT(a) a _export
58 # else
59 # define SWIGEXPORT(a) a
60 # define SWIGIMPORT(a) a
61 # endif
62 # endif
63 #else
64 # define SWIGEXPORT(a) a
65 # define SWIGIMPORT(a) a
66 #endif
67
68 #ifdef SWIG_GLOBAL
69 #define SWIGRUNTIME(a) SWIGEXPORT(a)
70 #else
71 #define SWIGRUNTIME(a) static a
72 #endif
73
74 #ifdef __cplusplus
75 extern "C" {
76 #endif
77
78 typedef void *(*swig_converter_func)(void *);
79 typedef struct swig_type_info *(*swig_dycast_func)(void **);
80
81 typedef struct swig_type_info {
82 const char *name;
83 swig_converter_func converter;
84 const char *str;
85 void *clientdata;
86 swig_dycast_func dcast;
87 struct swig_type_info *next;
88 struct swig_type_info *prev;
89 } swig_type_info;
90
91 #ifdef SWIG_NOINCLUDE
92
93 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
94 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
95 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
96 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
97 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
98 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
99
100 #else
101
102 static swig_type_info *swig_type_list = 0;
103
104 /* Register a type mapping with the type-checking */
105 SWIGRUNTIME(swig_type_info *)
106 SWIG_TypeRegister(swig_type_info *ti)
107 {
108 swig_type_info *tc, *head, *ret, *next;
109 /* Check to see if this type has already been registered */
110 tc = swig_type_list;
111 while (tc) {
112 if (strcmp(tc->name, ti->name) == 0) {
113 /* Already exists in the table. Just add additional types to the list */
114 if (tc->clientdata) ti->clientdata = tc->clientdata;
115 head = tc;
116 next = tc->next;
117 goto l1;
118 }
119 tc = tc->prev;
120 }
121 head = ti;
122 next = 0;
123
124 /* Place in list */
125 ti->prev = swig_type_list;
126 swig_type_list = ti;
127
128 /* Build linked lists */
129 l1:
130 ret = head;
131 tc = ti + 1;
132 /* Patch up the rest of the links */
133 while (tc->name) {
134 head->next = tc;
135 tc->prev = head;
136 head = tc;
137 tc++;
138 }
139 head->next = next;
140 return ret;
141 }
142
143 /* Check the typename */
144 SWIGRUNTIME(swig_type_info *)
145 SWIG_TypeCheck(char *c, swig_type_info *ty)
146 {
147 swig_type_info *s;
148 if (!ty) return 0; /* Void pointer */
149 s = ty->next; /* First element always just a name */
150 do {
151 if (strcmp(s->name,c) == 0) {
152 if (s == ty->next) return s;
153 /* Move s to the top of the linked list */
154 s->prev->next = s->next;
155 if (s->next) {
156 s->next->prev = s->prev;
157 }
158 /* Insert s as second element in the list */
159 s->next = ty->next;
160 if (ty->next) ty->next->prev = s;
161 ty->next = s;
162 return s;
163 }
164 s = s->next;
165 } while (s && (s != ty->next));
166 return 0;
167 }
168
169 /* Cast a pointer up an inheritance hierarchy */
170 SWIGRUNTIME(void *)
171 SWIG_TypeCast(swig_type_info *ty, void *ptr)
172 {
173 if ((!ty) || (!ty->converter)) return ptr;
174 return (*ty->converter)(ptr);
175 }
176
177 /* Dynamic pointer casting. Down an inheritance hierarchy */
178 SWIGRUNTIME(swig_type_info *)
179 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
180 {
181 swig_type_info *lastty = ty;
182 if (!ty || !ty->dcast) return ty;
183 while (ty && (ty->dcast)) {
184 ty = (*ty->dcast)(ptr);
185 if (ty) lastty = ty;
186 }
187 return lastty;
188 }
189
190 /* Search for a swig_type_info structure */
191 SWIGRUNTIME(swig_type_info *)
192 SWIG_TypeQuery(const char *name) {
193 swig_type_info *ty = swig_type_list;
194 while (ty) {
195 if (ty->str && (strcmp(name,ty->str) == 0)) return ty;
196 if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
197 ty = ty->prev;
198 }
199 return 0;
200 }
201
202 /* Set the clientdata field for a type */
203 SWIGRUNTIME(void)
204 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
205 swig_type_info *tc, *equiv;
206 if (ti->clientdata == clientdata) return;
207 ti->clientdata = clientdata;
208 equiv = ti->next;
209 while (equiv) {
210 if (!equiv->converter) {
211 tc = swig_type_list;
212 while (tc) {
213 if ((strcmp(tc->name, equiv->name) == 0))
214 SWIG_TypeClientData(tc,clientdata);
215 tc = tc->prev;
216 }
217 }
218 equiv = equiv->next;
219 }
220 }
221 #endif
222
223 #ifdef __cplusplus
224 }
225
226 #endif
227
228 /***********************************************************************
229 * python.swg
230 *
231 * This file contains the runtime support for Python modules
232 * and includes code for managing global variables and pointer
233 * type checking.
234 *
235 * Author : David Beazley (beazley@cs.uchicago.edu)
236 ************************************************************************/
237
238 #include "Python.h"
239
240 #ifdef __cplusplus
241 extern "C" {
242 #endif
243
244 #define SWIG_PY_INT 1
245 #define SWIG_PY_FLOAT 2
246 #define SWIG_PY_STRING 3
247 #define SWIG_PY_POINTER 4
248 #define SWIG_PY_BINARY 5
249
250 /* Flags for pointer conversion */
251
252 #define SWIG_POINTER_EXCEPTION 0x1
253 #define SWIG_POINTER_DISOWN 0x2
254
255 /* Exception handling in wrappers */
256 #define SWIG_fail goto fail
257
258 /* Constant information structure */
259 typedef struct swig_const_info {
260 int type;
261 char *name;
262 long lvalue;
263 double dvalue;
264 void *pvalue;
265 swig_type_info **ptype;
266 } swig_const_info;
267
268 #ifdef SWIG_NOINCLUDE
269
270 SWIGEXPORT(PyObject *) SWIG_newvarlink();
271 SWIGEXPORT(void) SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
272 SWIGEXPORT(int) SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int);
273 SWIGEXPORT(int) SWIG_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
274 SWIGEXPORT(char *) SWIG_PackData(char *c, void *, int);
275 SWIGEXPORT(char *) SWIG_UnpackData(char *c, void *, int);
276 SWIGEXPORT(PyObject *) SWIG_NewPointerObj(void *, swig_type_info *,int own);
277 SWIGEXPORT(PyObject *) SWIG_NewPackedObj(void *, int sz, swig_type_info *);
278 SWIGEXPORT(void) SWIG_InstallConstants(PyObject *d, swig_const_info constants[]);
279 #else
280
281 /* -----------------------------------------------------------------------------
282 * global variable support code.
283 * ----------------------------------------------------------------------------- */
284
285 typedef struct swig_globalvar {
286 char *name; /* Name of global variable */
287 PyObject *(*get_attr)(void); /* Return the current value */
288 int (*set_attr)(PyObject *); /* Set the value */
289 struct swig_globalvar *next;
290 } swig_globalvar;
291
292 typedef struct swig_varlinkobject {
293 PyObject_HEAD
294 swig_globalvar *vars;
295 } swig_varlinkobject;
296
297 static PyObject *
298 swig_varlink_repr(swig_varlinkobject *v) {
299 v = v;
300 return PyString_FromString("<Global variables>");
301 }
302
303 static int
304 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
305 swig_globalvar *var;
306 flags = flags;
307 fprintf(fp,"Global variables { ");
308 for (var = v->vars; var; var=var->next) {
309 fprintf(fp,"%s", var->name);
310 if (var->next) fprintf(fp,", ");
311 }
312 fprintf(fp," }\n");
313 return 0;
314 }
315
316 static PyObject *
317 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
318 swig_globalvar *var = v->vars;
319 while (var) {
320 if (strcmp(var->name,n) == 0) {
321 return (*var->get_attr)();
322 }
323 var = var->next;
324 }
325 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
326 return NULL;
327 }
328
329 static int
330 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
331 swig_globalvar *var = v->vars;
332 while (var) {
333 if (strcmp(var->name,n) == 0) {
334 return (*var->set_attr)(p);
335 }
336 var = var->next;
337 }
338 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
339 return 1;
340 }
341
342 statichere PyTypeObject varlinktype = {
343 PyObject_HEAD_INIT(0)
344 0,
345 (char *)"swigvarlink", /* Type name */
346 sizeof(swig_varlinkobject), /* Basic size */
347 0, /* Itemsize */
348 0, /* Deallocator */
349 (printfunc) swig_varlink_print, /* Print */
350 (getattrfunc) swig_varlink_getattr, /* get attr */
351 (setattrfunc) swig_varlink_setattr, /* Set attr */
352 0, /* tp_compare */
353 (reprfunc) swig_varlink_repr, /* tp_repr */
354 0, /* tp_as_number */
355 0, /* tp_as_mapping*/
356 0, /* tp_hash */
357 };
358
359 /* Create a variable linking object for use later */
360 SWIGRUNTIME(PyObject *)
361 SWIG_newvarlink(void) {
362 swig_varlinkobject *result = 0;
363 result = PyMem_NEW(swig_varlinkobject,1);
364 varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
365 result->ob_type = &varlinktype;
366 result->vars = 0;
367 result->ob_refcnt = 0;
368 Py_XINCREF((PyObject *) result);
369 return ((PyObject*) result);
370 }
371
372 SWIGRUNTIME(void)
373 SWIG_addvarlink(PyObject *p, char *name,
374 PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
375 swig_varlinkobject *v;
376 swig_globalvar *gv;
377 v= (swig_varlinkobject *) p;
378 gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
379 gv->name = (char *) malloc(strlen(name)+1);
380 strcpy(gv->name,name);
381 gv->get_attr = get_attr;
382 gv->set_attr = set_attr;
383 gv->next = v->vars;
384 v->vars = gv;
385 }
386
387 /* Pack binary data into a string */
388 SWIGRUNTIME(char *)
389 SWIG_PackData(char *c, void *ptr, int sz) {
390 static char hex[17] = "0123456789abcdef";
391 int i;
392 unsigned char *u = (unsigned char *) ptr;
393 register unsigned char uu;
394 for (i = 0; i < sz; i++,u++) {
395 uu = *u;
396 *(c++) = hex[(uu & 0xf0) >> 4];
397 *(c++) = hex[uu & 0xf];
398 }
399 return c;
400 }
401
402 /* Unpack binary data from a string */
403 SWIGRUNTIME(char *)
404 SWIG_UnpackData(char *c, void *ptr, int sz) {
405 register unsigned char uu = 0;
406 register int d;
407 unsigned char *u = (unsigned char *) ptr;
408 int i;
409 for (i = 0; i < sz; i++, u++) {
410 d = *(c++);
411 if ((d >= '0') && (d <= '9'))
412 uu = ((d - '0') << 4);
413 else if ((d >= 'a') && (d <= 'f'))
414 uu = ((d - ('a'-10)) << 4);
415 d = *(c++);
416 if ((d >= '0') && (d <= '9'))
417 uu |= (d - '0');
418 else if ((d >= 'a') && (d <= 'f'))
419 uu |= (d - ('a'-10));
420 *u = uu;
421 }
422 return c;
423 }
424
425 /* Convert a pointer value */
426 SWIGRUNTIME(int)
427 SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
428 swig_type_info *tc;
429 char *c;
430 static PyObject *SWIG_this = 0;
431 int newref = 0;
432 PyObject *pyobj = 0;
433
434 if (!obj) return 0;
435 if (obj == Py_None) {
436 *ptr = 0;
437 return 0;
438 }
439 #ifdef SWIG_COBJECT_TYPES
440 if (!(PyCObject_Check(obj))) {
441 if (!SWIG_this)
442 SWIG_this = PyString_FromString("this");
443 pyobj = obj;
444 obj = PyObject_GetAttr(obj,SWIG_this);
445 newref = 1;
446 if (!obj) goto type_error;
447 if (!PyCObject_Check(obj)) {
448 Py_DECREF(obj);
449 goto type_error;
450 }
451 }
452 *ptr = PyCObject_AsVoidPtr(obj);
453 c = (char *) PyCObject_GetDesc(obj);
454 if (newref) Py_DECREF(obj);
455 goto cobject;
456 #else
457 if (!(PyString_Check(obj))) {
458 if (!SWIG_this)
459 SWIG_this = PyString_FromString("this");
460 pyobj = obj;
461 obj = PyObject_GetAttr(obj,SWIG_this);
462 newref = 1;
463 if (!obj) goto type_error;
464 if (!PyString_Check(obj)) {
465 Py_DECREF(obj);
466 goto type_error;
467 }
468 }
469 c = PyString_AsString(obj);
470 /* Pointer values must start with leading underscore */
471 if (*c != '_') {
472 *ptr = (void *) 0;
473 if (strcmp(c,"NULL") == 0) {
474 if (newref) { Py_DECREF(obj); }
475 return 0;
476 } else {
477 if (newref) { Py_DECREF(obj); }
478 goto type_error;
479 }
480 }
481 c++;
482 c = SWIG_UnpackData(c,ptr,sizeof(void *));
483 if (newref) { Py_DECREF(obj); }
484 #endif
485
486 #ifdef SWIG_COBJECT_TYPES
487 cobject:
488 #endif
489
490 if (ty) {
491 tc = SWIG_TypeCheck(c,ty);
492 if (!tc) goto type_error;
493 *ptr = SWIG_TypeCast(tc,(void*) *ptr);
494 }
495
496 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
497 PyObject *zero = PyInt_FromLong(0);
498 PyObject_SetAttrString(pyobj,(char*)"thisown",zero);
499 Py_DECREF(zero);
500 }
501 return 0;
502
503 type_error:
504 if (flags & SWIG_POINTER_EXCEPTION) {
505 if (ty) {
506 char *temp = (char *) malloc(64+strlen(ty->name));
507 sprintf(temp,"Type error. Expected %s", ty->name);
508 PyErr_SetString(PyExc_TypeError, temp);
509 free((char *) temp);
510 } else {
511 PyErr_SetString(PyExc_TypeError,"Expected a pointer");
512 }
513 }
514 return -1;
515 }
516
517 /* Convert a packed value value */
518 SWIGRUNTIME(int)
519 SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
520 swig_type_info *tc;
521 char *c;
522
523 if ((!obj) || (!PyString_Check(obj))) goto type_error;
524 c = PyString_AsString(obj);
525 /* Pointer values must start with leading underscore */
526 if (*c != '_') goto type_error;
527 c++;
528 c = SWIG_UnpackData(c,ptr,sz);
529 if (ty) {
530 tc = SWIG_TypeCheck(c,ty);
531 if (!tc) goto type_error;
532 }
533 return 0;
534
535 type_error:
536
537 if (flags) {
538 if (ty) {
539 char *temp = (char *) malloc(64+strlen(ty->name));
540 sprintf(temp,"Type error. Expected %s", ty->name);
541 PyErr_SetString(PyExc_TypeError, temp);
542 free((char *) temp);
543 } else {
544 PyErr_SetString(PyExc_TypeError,"Expected a pointer");
545 }
546 }
547 return -1;
548 }
549
550 /* Create a new pointer object */
551 SWIGRUNTIME(PyObject *)
552 SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
553 PyObject *robj;
554 if (!ptr) {
555 Py_INCREF(Py_None);
556 return Py_None;
557 }
558 #ifdef SWIG_COBJECT_TYPES
559 robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) type->name, NULL);
560 #else
561 {
562 char result[1024];
563 char *r = result;
564 *(r++) = '_';
565 r = SWIG_PackData(r,&ptr,sizeof(void *));
566 strcpy(r,type->name);
567 robj = PyString_FromString(result);
568 }
569 #endif
570 if (!robj || (robj == Py_None)) return robj;
571 if (type->clientdata) {
572 PyObject *inst;
573 PyObject *args = Py_BuildValue((char*)"(O)", robj);
574 Py_DECREF(robj);
575 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
576 Py_DECREF(args);
577 if (inst) {
578 if (own) {
579 PyObject *n = PyInt_FromLong(1);
580 PyObject_SetAttrString(inst,(char*)"thisown",n);
581 Py_DECREF(n);
582 }
583 robj = inst;
584 }
585 }
586 return robj;
587 }
588
589 SWIGRUNTIME(PyObject *)
590 SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
591 char result[1024];
592 char *r = result;
593 if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
594 *(r++) = '_';
595 r = SWIG_PackData(r,ptr,sz);
596 strcpy(r,type->name);
597 return PyString_FromString(result);
598 }
599
600 /* Install Constants */
601 SWIGRUNTIME(void)
602 SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
603 int i;
604 PyObject *obj;
605 for (i = 0; constants[i].type; i++) {
606 switch(constants[i].type) {
607 case SWIG_PY_INT:
608 obj = PyInt_FromLong(constants[i].lvalue);
609 break;
610 case SWIG_PY_FLOAT:
611 obj = PyFloat_FromDouble(constants[i].dvalue);
612 break;
613 case SWIG_PY_STRING:
614 obj = PyString_FromString((char *) constants[i].pvalue);
615 break;
616 case SWIG_PY_POINTER:
617 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
618 break;
619 case SWIG_PY_BINARY:
620 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
621 break;
622 default:
623 obj = 0;
624 break;
625 }
626 if (obj) {
627 PyDict_SetItemString(d,constants[i].name,obj);
628 Py_DECREF(obj);
629 }
630 }
631 }
632
633 #endif
634
635 #ifdef __cplusplus
636 }
637 #endif
638
639
640
641
642
643
644
645
646 /* -------- TYPES TABLE (BEGIN) -------- */
647
648 #define SWIGTYPE_p_otk__OBTimerQueueManager swig_types[0]
649 #define SWIGTYPE_p_ob__OBActions swig_types[1]
650 #define SWIGTYPE_p_ob__Cursors swig_types[2]
651 #define SWIGTYPE_p_ob__OBScreen swig_types[3]
652 #define SWIGTYPE_p_otk__Style swig_types[4]
653 #define SWIGTYPE_p_ob__OBFrame swig_types[5]
654 #define SWIGTYPE_p_XReparentEvent swig_types[6]
655 #define SWIGTYPE_p_ob__OBClient swig_types[7]
656 #define SWIGTYPE_p_ob__Openbox swig_types[8]
657 #define SWIGTYPE_p_otk__Strut swig_types[9]
658 #define SWIGTYPE_p_XConfigureRequestEvent swig_types[10]
659 #define SWIGTYPE_p_otk__OtkEventHandler swig_types[11]
660 #define SWIGTYPE_p_otk__Rect swig_types[12]
661 #define SWIGTYPE_p_ob__OBWidget swig_types[13]
662 #define SWIGTYPE_p_XFocusChangeEvent 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_PyObject swig_types[21]
670 #define SWIGTYPE_p_ob__OBBindings swig_types[22]
671 #define SWIGTYPE_p_ob__MwmHints swig_types[23]
672 #define SWIGTYPE_p_XUnmapEvent swig_types[24]
673 static swig_type_info *swig_types[26];
674
675 /* -------- TYPES TABLE (END) -------- */
676
677
678 /*-----------------------------------------------
679 @(target):= _openbox.so
680 ------------------------------------------------*/
681 #define SWIG_init init_openbox
682
683 #define SWIG_name "_openbox"
684
685 #ifdef HAVE_CONFIG_H
686 # include "../config.h"
687 #endif
688
689 #include "openbox.hh"
690 #include "screen.hh"
691 #include "client.hh"
692 #include "bindings.hh"
693 #include "actions.hh"
694
695
696 #define SWIG_MemoryError 1
697 #define SWIG_IOError 2
698 #define SWIG_RuntimeError 3
699 #define SWIG_IndexError 4
700 #define SWIG_TypeError 5
701 #define SWIG_DivisionByZero 6
702 #define SWIG_OverflowError 7
703 #define SWIG_SyntaxError 8
704 #define SWIG_ValueError 9
705 #define SWIG_SystemError 10
706 #define SWIG_UnknownError 99
707
708
709 static void _SWIG_exception(int code, const char *msg) {
710 switch(code) {
711 case SWIG_MemoryError:
712 PyErr_SetString(PyExc_MemoryError,msg);
713 break;
714 case SWIG_IOError:
715 PyErr_SetString(PyExc_IOError,msg);
716 break;
717 case SWIG_RuntimeError:
718 PyErr_SetString(PyExc_RuntimeError,msg);
719 break;
720 case SWIG_IndexError:
721 PyErr_SetString(PyExc_IndexError,msg);
722 break;
723 case SWIG_TypeError:
724 PyErr_SetString(PyExc_TypeError,msg);
725 break;
726 case SWIG_DivisionByZero:
727 PyErr_SetString(PyExc_ZeroDivisionError,msg);
728 break;
729 case SWIG_OverflowError:
730 PyErr_SetString(PyExc_OverflowError,msg);
731 break;
732 case SWIG_SyntaxError:
733 PyErr_SetString(PyExc_SyntaxError,msg);
734 break;
735 case SWIG_ValueError:
736 PyErr_SetString(PyExc_ValueError,msg);
737 break;
738 case SWIG_SystemError:
739 PyErr_SetString(PyExc_SystemError,msg);
740 break;
741 default:
742 PyErr_SetString(PyExc_RuntimeError,msg);
743 break;
744 }
745 }
746
747 #define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
748
749
750 #include <string>
751
752
753 #include <string>
754
755 static PyObject* SwigInt_FromBool(bool b) {
756 return PyInt_FromLong(b ? 1L : 0L);
757 }
758 static double SwigNumber_Check(PyObject* o) {
759 return PyFloat_Check(o) || PyInt_Check(o);
760 }
761 static double SwigNumber_AsDouble(PyObject* o) {
762 return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o)));
763 }
764 static PyObject* SwigString_FromString(const std::string& s) {
765 return PyString_FromString(s.c_str());
766 }
767 static std::string SwigString_AsString(PyObject* o) {
768 return std::string(PyString_AsString(o));
769 }
770
771
772 #include <vector>
773 #include <algorithm>
774 #include <stdexcept>
775
776
777 ob::Openbox *Openbox_instance() { return ob::Openbox::instance; }
778
779
780 #include <iterator>
781
782 ob::OBClient *ob_OBScreen_client(ob::OBScreen *self,int i){
783 if (i >= (int)self->clients.size())
784 return NULL;
785 ob::OBScreen::ClientList::iterator it = self->clients.begin();
786 std::advance(it,i);
787 return *it;
788 }
789 int ob_OBScreen_clientCount(ob::OBScreen const *self){
790 return (int) self->clients.size();
791 }
792 #ifdef __cplusplus
793 extern "C" {
794 #endif
795 static PyObject *_wrap_Openbox_instance(PyObject *self, PyObject *args) {
796 PyObject *resultobj;
797 ob::Openbox *result;
798
799 if(!PyArg_ParseTuple(args,(char *)":Openbox_instance")) goto fail;
800 result = (ob::Openbox *)Openbox_instance();
801
802 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Openbox, 0);
803 return resultobj;
804 fail:
805 return NULL;
806 }
807
808
809 static PyObject *_wrap_Cursors_session_set(PyObject *self, PyObject *args) {
810 PyObject *resultobj;
811 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
812 Cursor arg2 ;
813 PyObject * obj0 = 0 ;
814 PyObject * obj1 = 0 ;
815
816 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_session_set",&obj0,&obj1)) goto fail;
817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
818 arg2 = (Cursor) PyInt_AsLong(obj1);
819 if (PyErr_Occurred()) SWIG_fail;
820 if (arg1) (arg1)->session = arg2;
821
822 Py_INCREF(Py_None); resultobj = Py_None;
823 return resultobj;
824 fail:
825 return NULL;
826 }
827
828
829 static PyObject *_wrap_Cursors_session_get(PyObject *self, PyObject *args) {
830 PyObject *resultobj;
831 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
832 Cursor result;
833 PyObject * obj0 = 0 ;
834
835 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_session_get",&obj0)) goto fail;
836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
837 result = (Cursor) ((arg1)->session);
838
839 resultobj = PyInt_FromLong((long)result);
840 return resultobj;
841 fail:
842 return NULL;
843 }
844
845
846 static PyObject *_wrap_Cursors_move_set(PyObject *self, PyObject *args) {
847 PyObject *resultobj;
848 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
849 Cursor arg2 ;
850 PyObject * obj0 = 0 ;
851 PyObject * obj1 = 0 ;
852
853 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_move_set",&obj0,&obj1)) goto fail;
854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
855 arg2 = (Cursor) PyInt_AsLong(obj1);
856 if (PyErr_Occurred()) SWIG_fail;
857 if (arg1) (arg1)->move = arg2;
858
859 Py_INCREF(Py_None); resultobj = Py_None;
860 return resultobj;
861 fail:
862 return NULL;
863 }
864
865
866 static PyObject *_wrap_Cursors_move_get(PyObject *self, PyObject *args) {
867 PyObject *resultobj;
868 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
869 Cursor result;
870 PyObject * obj0 = 0 ;
871
872 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_move_get",&obj0)) goto fail;
873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
874 result = (Cursor) ((arg1)->move);
875
876 resultobj = PyInt_FromLong((long)result);
877 return resultobj;
878 fail:
879 return NULL;
880 }
881
882
883 static PyObject *_wrap_Cursors_ll_angle_set(PyObject *self, PyObject *args) {
884 PyObject *resultobj;
885 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
886 Cursor arg2 ;
887 PyObject * obj0 = 0 ;
888 PyObject * obj1 = 0 ;
889
890 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ll_angle_set",&obj0,&obj1)) goto fail;
891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
892 arg2 = (Cursor) PyInt_AsLong(obj1);
893 if (PyErr_Occurred()) SWIG_fail;
894 if (arg1) (arg1)->ll_angle = arg2;
895
896 Py_INCREF(Py_None); resultobj = Py_None;
897 return resultobj;
898 fail:
899 return NULL;
900 }
901
902
903 static PyObject *_wrap_Cursors_ll_angle_get(PyObject *self, PyObject *args) {
904 PyObject *resultobj;
905 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
906 Cursor result;
907 PyObject * obj0 = 0 ;
908
909 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ll_angle_get",&obj0)) goto fail;
910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
911 result = (Cursor) ((arg1)->ll_angle);
912
913 resultobj = PyInt_FromLong((long)result);
914 return resultobj;
915 fail:
916 return NULL;
917 }
918
919
920 static PyObject *_wrap_Cursors_lr_angle_set(PyObject *self, PyObject *args) {
921 PyObject *resultobj;
922 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
923 Cursor arg2 ;
924 PyObject * obj0 = 0 ;
925 PyObject * obj1 = 0 ;
926
927 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_lr_angle_set",&obj0,&obj1)) goto fail;
928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
929 arg2 = (Cursor) PyInt_AsLong(obj1);
930 if (PyErr_Occurred()) SWIG_fail;
931 if (arg1) (arg1)->lr_angle = arg2;
932
933 Py_INCREF(Py_None); resultobj = Py_None;
934 return resultobj;
935 fail:
936 return NULL;
937 }
938
939
940 static PyObject *_wrap_Cursors_lr_angle_get(PyObject *self, PyObject *args) {
941 PyObject *resultobj;
942 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
943 Cursor result;
944 PyObject * obj0 = 0 ;
945
946 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_lr_angle_get",&obj0)) goto fail;
947 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
948 result = (Cursor) ((arg1)->lr_angle);
949
950 resultobj = PyInt_FromLong((long)result);
951 return resultobj;
952 fail:
953 return NULL;
954 }
955
956
957 static PyObject *_wrap_Cursors_ul_angle_set(PyObject *self, PyObject *args) {
958 PyObject *resultobj;
959 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
960 Cursor arg2 ;
961 PyObject * obj0 = 0 ;
962 PyObject * obj1 = 0 ;
963
964 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ul_angle_set",&obj0,&obj1)) goto fail;
965 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
966 arg2 = (Cursor) PyInt_AsLong(obj1);
967 if (PyErr_Occurred()) SWIG_fail;
968 if (arg1) (arg1)->ul_angle = arg2;
969
970 Py_INCREF(Py_None); resultobj = Py_None;
971 return resultobj;
972 fail:
973 return NULL;
974 }
975
976
977 static PyObject *_wrap_Cursors_ul_angle_get(PyObject *self, PyObject *args) {
978 PyObject *resultobj;
979 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
980 Cursor result;
981 PyObject * obj0 = 0 ;
982
983 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ul_angle_get",&obj0)) goto fail;
984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
985 result = (Cursor) ((arg1)->ul_angle);
986
987 resultobj = PyInt_FromLong((long)result);
988 return resultobj;
989 fail:
990 return NULL;
991 }
992
993
994 static PyObject *_wrap_Cursors_ur_angle_set(PyObject *self, PyObject *args) {
995 PyObject *resultobj;
996 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
997 Cursor arg2 ;
998 PyObject * obj0 = 0 ;
999 PyObject * obj1 = 0 ;
1000
1001 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ur_angle_set",&obj0,&obj1)) goto fail;
1002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1003 arg2 = (Cursor) PyInt_AsLong(obj1);
1004 if (PyErr_Occurred()) SWIG_fail;
1005 if (arg1) (arg1)->ur_angle = arg2;
1006
1007 Py_INCREF(Py_None); resultobj = Py_None;
1008 return resultobj;
1009 fail:
1010 return NULL;
1011 }
1012
1013
1014 static PyObject *_wrap_Cursors_ur_angle_get(PyObject *self, PyObject *args) {
1015 PyObject *resultobj;
1016 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
1017 Cursor result;
1018 PyObject * obj0 = 0 ;
1019
1020 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ur_angle_get",&obj0)) goto fail;
1021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1022 result = (Cursor) ((arg1)->ur_angle);
1023
1024 resultobj = PyInt_FromLong((long)result);
1025 return resultobj;
1026 fail:
1027 return NULL;
1028 }
1029
1030
1031 static PyObject * Cursors_swigregister(PyObject *self, PyObject *args) {
1032 PyObject *obj;
1033 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1034 SWIG_TypeClientData(SWIGTYPE_p_ob__Cursors, obj);
1035 Py_INCREF(obj);
1036 return Py_BuildValue((char *)"");
1037 }
1038 static PyObject *_wrap_Openbox_state(PyObject *self, PyObject *args) {
1039 PyObject *resultobj;
1040 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1041 int result;
1042 PyObject * obj0 = 0 ;
1043
1044 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_state",&obj0)) goto fail;
1045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1046 result = (int)((ob::Openbox const *)arg1)->state();
1047
1048 resultobj = PyInt_FromLong((long)result);
1049 return resultobj;
1050 fail:
1051 return NULL;
1052 }
1053
1054
1055 static PyObject *_wrap_Openbox_timerManager(PyObject *self, PyObject *args) {
1056 PyObject *resultobj;
1057 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1058 otk::OBTimerQueueManager *result;
1059 PyObject * obj0 = 0 ;
1060
1061 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_timerManager",&obj0)) goto fail;
1062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1063 result = (otk::OBTimerQueueManager *)(arg1)->timerManager();
1064
1065 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimerQueueManager, 0);
1066 return resultobj;
1067 fail:
1068 return NULL;
1069 }
1070
1071
1072 static PyObject *_wrap_Openbox_property(PyObject *self, PyObject *args) {
1073 PyObject *resultobj;
1074 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1075 otk::OBProperty *result;
1076 PyObject * obj0 = 0 ;
1077
1078 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_property",&obj0)) goto fail;
1079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1080 result = (otk::OBProperty *)((ob::Openbox const *)arg1)->property();
1081
1082 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBProperty, 0);
1083 return resultobj;
1084 fail:
1085 return NULL;
1086 }
1087
1088
1089 static PyObject *_wrap_Openbox_actions(PyObject *self, PyObject *args) {
1090 PyObject *resultobj;
1091 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1092 ob::OBActions *result;
1093 PyObject * obj0 = 0 ;
1094
1095 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_actions",&obj0)) goto fail;
1096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1097 result = (ob::OBActions *)((ob::Openbox const *)arg1)->actions();
1098
1099 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBActions, 0);
1100 return resultobj;
1101 fail:
1102 return NULL;
1103 }
1104
1105
1106 static PyObject *_wrap_Openbox_bindings(PyObject *self, PyObject *args) {
1107 PyObject *resultobj;
1108 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1109 ob::OBBindings *result;
1110 PyObject * obj0 = 0 ;
1111
1112 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_bindings",&obj0)) goto fail;
1113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1114 result = (ob::OBBindings *)((ob::Openbox const *)arg1)->bindings();
1115
1116 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBBindings, 0);
1117 return resultobj;
1118 fail:
1119 return NULL;
1120 }
1121
1122
1123 static PyObject *_wrap_Openbox_screen(PyObject *self, PyObject *args) {
1124 PyObject *resultobj;
1125 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1126 int arg2 ;
1127 ob::OBScreen *result;
1128 PyObject * obj0 = 0 ;
1129
1130 if(!PyArg_ParseTuple(args,(char *)"Oi:Openbox_screen",&obj0,&arg2)) goto fail;
1131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1132 result = (ob::OBScreen *)(arg1)->screen(arg2);
1133
1134 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
1135 return resultobj;
1136 fail:
1137 return NULL;
1138 }
1139
1140
1141 static PyObject *_wrap_Openbox_screenCount(PyObject *self, PyObject *args) {
1142 PyObject *resultobj;
1143 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1144 int result;
1145 PyObject * obj0 = 0 ;
1146
1147 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_screenCount",&obj0)) goto fail;
1148 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1149 result = (int)((ob::Openbox const *)arg1)->screenCount();
1150
1151 resultobj = PyInt_FromLong((long)result);
1152 return resultobj;
1153 fail:
1154 return NULL;
1155 }
1156
1157
1158 static PyObject *_wrap_Openbox_cursors(PyObject *self, PyObject *args) {
1159 PyObject *resultobj;
1160 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1161 ob::Cursors *result;
1162 PyObject * obj0 = 0 ;
1163
1164 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_cursors",&obj0)) goto fail;
1165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1166 {
1167 ob::Cursors const &_result_ref = ((ob::Openbox const *)arg1)->cursors();
1168 result = (ob::Cursors *) &_result_ref;
1169 }
1170
1171 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Cursors, 0);
1172 return resultobj;
1173 fail:
1174 return NULL;
1175 }
1176
1177
1178 static PyObject *_wrap_Openbox_addClient(PyObject *self, PyObject *args) {
1179 PyObject *resultobj;
1180 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1181 Window arg2 ;
1182 ob::OBClient *arg3 = (ob::OBClient *) 0 ;
1183 PyObject * obj0 = 0 ;
1184 PyObject * obj1 = 0 ;
1185 PyObject * obj2 = 0 ;
1186
1187 if(!PyArg_ParseTuple(args,(char *)"OOO:Openbox_addClient",&obj0,&obj1,&obj2)) goto fail;
1188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1189 arg2 = (Window) PyInt_AsLong(obj1);
1190 if (PyErr_Occurred()) SWIG_fail;
1191 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1192 (arg1)->addClient(arg2,arg3);
1193
1194 Py_INCREF(Py_None); resultobj = Py_None;
1195 return resultobj;
1196 fail:
1197 return NULL;
1198 }
1199
1200
1201 static PyObject *_wrap_Openbox_removeClient(PyObject *self, PyObject *args) {
1202 PyObject *resultobj;
1203 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1204 Window arg2 ;
1205 PyObject * obj0 = 0 ;
1206 PyObject * obj1 = 0 ;
1207
1208 if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_removeClient",&obj0,&obj1)) goto fail;
1209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1210 arg2 = (Window) PyInt_AsLong(obj1);
1211 if (PyErr_Occurred()) SWIG_fail;
1212 (arg1)->removeClient(arg2);
1213
1214 Py_INCREF(Py_None); resultobj = Py_None;
1215 return resultobj;
1216 fail:
1217 return NULL;
1218 }
1219
1220
1221 static PyObject *_wrap_Openbox_findClient(PyObject *self, PyObject *args) {
1222 PyObject *resultobj;
1223 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1224 Window arg2 ;
1225 ob::OBClient *result;
1226 PyObject * obj0 = 0 ;
1227 PyObject * obj1 = 0 ;
1228
1229 if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_findClient",&obj0,&obj1)) goto fail;
1230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1231 arg2 = (Window) PyInt_AsLong(obj1);
1232 if (PyErr_Occurred()) SWIG_fail;
1233 result = (ob::OBClient *)(arg1)->findClient(arg2);
1234
1235 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1236 return resultobj;
1237 fail:
1238 return NULL;
1239 }
1240
1241
1242 static PyObject *_wrap_Openbox_focusedClient(PyObject *self, PyObject *args) {
1243 PyObject *resultobj;
1244 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1245 ob::OBClient *result;
1246 PyObject * obj0 = 0 ;
1247
1248 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedClient",&obj0)) goto fail;
1249 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1250 result = (ob::OBClient *)(arg1)->focusedClient();
1251
1252 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1253 return resultobj;
1254 fail:
1255 return NULL;
1256 }
1257
1258
1259 static PyObject *_wrap_Openbox_setFocusedClient(PyObject *self, PyObject *args) {
1260 PyObject *resultobj;
1261 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1262 ob::OBClient *arg2 = (ob::OBClient *) 0 ;
1263 PyObject * obj0 = 0 ;
1264 PyObject * obj1 = 0 ;
1265
1266 if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_setFocusedClient",&obj0,&obj1)) goto fail;
1267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1268 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1269 (arg1)->setFocusedClient(arg2);
1270
1271 Py_INCREF(Py_None); resultobj = Py_None;
1272 return resultobj;
1273 fail:
1274 return NULL;
1275 }
1276
1277
1278 static PyObject *_wrap_Openbox_focusedScreen(PyObject *self, PyObject *args) {
1279 PyObject *resultobj;
1280 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1281 ob::OBScreen *result;
1282 PyObject * obj0 = 0 ;
1283
1284 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedScreen",&obj0)) goto fail;
1285 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1286 result = (ob::OBScreen *)(arg1)->focusedScreen();
1287
1288 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
1289 return resultobj;
1290 fail:
1291 return NULL;
1292 }
1293
1294
1295 static PyObject *_wrap_Openbox_shutdown(PyObject *self, PyObject *args) {
1296 PyObject *resultobj;
1297 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1298 PyObject * obj0 = 0 ;
1299
1300 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_shutdown",&obj0)) goto fail;
1301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1302 (arg1)->shutdown();
1303
1304 Py_INCREF(Py_None); resultobj = Py_None;
1305 return resultobj;
1306 fail:
1307 return NULL;
1308 }
1309
1310
1311 static PyObject *_wrap_Openbox_restart(PyObject *self, PyObject *args) {
1312 PyObject *resultobj;
1313 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1314 std::string const &arg2_defvalue = "" ;
1315 std::string *arg2 = (std::string *) &arg2_defvalue ;
1316 std::string temp2 ;
1317 PyObject * obj0 = 0 ;
1318 PyObject * obj1 = 0 ;
1319
1320 if(!PyArg_ParseTuple(args,(char *)"O|O:Openbox_restart",&obj0,&obj1)) goto fail;
1321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1322 if (obj1) {
1323 {
1324 if (PyString_Check(obj1)) {
1325 temp2 = std::string(PyString_AsString(obj1));
1326 arg2 = &temp2;
1327 }else {
1328 SWIG_exception(SWIG_TypeError, "string expected");
1329 }
1330 }
1331 }
1332 (arg1)->restart((std::string const &)*arg2);
1333
1334 Py_INCREF(Py_None); resultobj = Py_None;
1335 return resultobj;
1336 fail:
1337 return NULL;
1338 }
1339
1340
1341 static PyObject *_wrap_Openbox_execute(PyObject *self, PyObject *args) {
1342 PyObject *resultobj;
1343 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1344 int arg2 ;
1345 std::string *arg3 = 0 ;
1346 std::string temp3 ;
1347 PyObject * obj0 = 0 ;
1348 PyObject * obj2 = 0 ;
1349
1350 if(!PyArg_ParseTuple(args,(char *)"OiO:Openbox_execute",&obj0,&arg2,&obj2)) goto fail;
1351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1352 {
1353 if (PyString_Check(obj2)) {
1354 temp3 = std::string(PyString_AsString(obj2));
1355 arg3 = &temp3;
1356 }else {
1357 SWIG_exception(SWIG_TypeError, "string expected");
1358 }
1359 }
1360 (arg1)->execute(arg2,(std::string const &)*arg3);
1361
1362 Py_INCREF(Py_None); resultobj = Py_None;
1363 return resultobj;
1364 fail:
1365 return NULL;
1366 }
1367
1368
1369 static PyObject * Openbox_swigregister(PyObject *self, PyObject *args) {
1370 PyObject *obj;
1371 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1372 SWIG_TypeClientData(SWIGTYPE_p_ob__Openbox, obj);
1373 Py_INCREF(obj);
1374 return Py_BuildValue((char *)"");
1375 }
1376 static PyObject *_wrap_OBScreen_client(PyObject *self, PyObject *args) {
1377 PyObject *resultobj;
1378 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1379 int arg2 ;
1380 ob::OBClient *result;
1381 PyObject * obj0 = 0 ;
1382
1383 if(!PyArg_ParseTuple(args,(char *)"Oi:OBScreen_client",&obj0,&arg2)) goto fail;
1384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1385 result = (ob::OBClient *)ob_OBScreen_client(arg1,arg2);
1386
1387 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1388 return resultobj;
1389 fail:
1390 return NULL;
1391 }
1392
1393
1394 static PyObject *_wrap_OBScreen_clientCount(PyObject *self, PyObject *args) {
1395 PyObject *resultobj;
1396 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1397 int result;
1398 PyObject * obj0 = 0 ;
1399
1400 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_clientCount",&obj0)) goto fail;
1401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1402 result = (int)ob_OBScreen_clientCount((ob::OBScreen const *)arg1);
1403
1404 resultobj = PyInt_FromLong((long)result);
1405 return resultobj;
1406 fail:
1407 return NULL;
1408 }
1409
1410
1411 static PyObject *_wrap_OBScreen_number(PyObject *self, PyObject *args) {
1412 PyObject *resultobj;
1413 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1414 int result;
1415 PyObject * obj0 = 0 ;
1416
1417 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_number",&obj0)) goto fail;
1418 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1419 result = (int)((ob::OBScreen const *)arg1)->number();
1420
1421 resultobj = PyInt_FromLong((long)result);
1422 return resultobj;
1423 fail:
1424 return NULL;
1425 }
1426
1427
1428 static PyObject *_wrap_OBScreen_managed(PyObject *self, PyObject *args) {
1429 PyObject *resultobj;
1430 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1431 bool result;
1432 PyObject * obj0 = 0 ;
1433
1434 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_managed",&obj0)) goto fail;
1435 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1436 result = (bool)((ob::OBScreen const *)arg1)->managed();
1437
1438 resultobj = PyInt_FromLong((long)result);
1439 return resultobj;
1440 fail:
1441 return NULL;
1442 }
1443
1444
1445 static PyObject *_wrap_OBScreen_imageControl(PyObject *self, PyObject *args) {
1446 PyObject *resultobj;
1447 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1448 otk::BImageControl *result;
1449 PyObject * obj0 = 0 ;
1450
1451 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_imageControl",&obj0)) goto fail;
1452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1453 result = (otk::BImageControl *)(arg1)->imageControl();
1454
1455 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 0);
1456 return resultobj;
1457 fail:
1458 return NULL;
1459 }
1460
1461
1462 static PyObject *_wrap_OBScreen_area(PyObject *self, PyObject *args) {
1463 PyObject *resultobj;
1464 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1465 otk::Rect *result;
1466 PyObject * obj0 = 0 ;
1467
1468 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_area",&obj0)) goto fail;
1469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1470 {
1471 otk::Rect const &_result_ref = ((ob::OBScreen const *)arg1)->area();
1472 result = (otk::Rect *) &_result_ref;
1473 }
1474
1475 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
1476 return resultobj;
1477 fail:
1478 return NULL;
1479 }
1480
1481
1482 static PyObject *_wrap_OBScreen_style(PyObject *self, PyObject *args) {
1483 PyObject *resultobj;
1484 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1485 otk::Style *result;
1486 PyObject * obj0 = 0 ;
1487
1488 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_style",&obj0)) goto fail;
1489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1490 result = (otk::Style *)((ob::OBScreen const *)arg1)->style();
1491
1492 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
1493 return resultobj;
1494 fail:
1495 return NULL;
1496 }
1497
1498
1499 static PyObject *_wrap_OBScreen_focuswindow(PyObject *self, PyObject *args) {
1500 PyObject *resultobj;
1501 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1502 Window result;
1503 PyObject * obj0 = 0 ;
1504
1505 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_focuswindow",&obj0)) goto fail;
1506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1507 result = (Window)((ob::OBScreen const *)arg1)->focuswindow();
1508
1509 resultobj = PyInt_FromLong((long)result);
1510 return resultobj;
1511 fail:
1512 return NULL;
1513 }
1514
1515
1516 static PyObject *_wrap_OBScreen_updateStrut(PyObject *self, PyObject *args) {
1517 PyObject *resultobj;
1518 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1519 PyObject * obj0 = 0 ;
1520
1521 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_updateStrut",&obj0)) goto fail;
1522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1523 (arg1)->updateStrut();
1524
1525 Py_INCREF(Py_None); resultobj = Py_None;
1526 return resultobj;
1527 fail:
1528 return NULL;
1529 }
1530
1531
1532 static PyObject *_wrap_OBScreen_manageExisting(PyObject *self, PyObject *args) {
1533 PyObject *resultobj;
1534 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1535 PyObject * obj0 = 0 ;
1536
1537 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_manageExisting",&obj0)) goto fail;
1538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1539 (arg1)->manageExisting();
1540
1541 Py_INCREF(Py_None); resultobj = Py_None;
1542 return resultobj;
1543 fail:
1544 return NULL;
1545 }
1546
1547
1548 static PyObject *_wrap_OBScreen_manageWindow(PyObject *self, PyObject *args) {
1549 PyObject *resultobj;
1550 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1551 Window arg2 ;
1552 PyObject * obj0 = 0 ;
1553 PyObject * obj1 = 0 ;
1554
1555 if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_manageWindow",&obj0,&obj1)) goto fail;
1556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1557 arg2 = (Window) PyInt_AsLong(obj1);
1558 if (PyErr_Occurred()) SWIG_fail;
1559 (arg1)->manageWindow(arg2);
1560
1561 Py_INCREF(Py_None); resultobj = Py_None;
1562 return resultobj;
1563 fail:
1564 return NULL;
1565 }
1566
1567
1568 static PyObject *_wrap_OBScreen_unmanageWindow(PyObject *self, PyObject *args) {
1569 PyObject *resultobj;
1570 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1571 ob::OBClient *arg2 = (ob::OBClient *) 0 ;
1572 PyObject * obj0 = 0 ;
1573 PyObject * obj1 = 0 ;
1574
1575 if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_unmanageWindow",&obj0,&obj1)) goto fail;
1576 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1577 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1578 (arg1)->unmanageWindow(arg2);
1579
1580 Py_INCREF(Py_None); resultobj = Py_None;
1581 return resultobj;
1582 fail:
1583 return NULL;
1584 }
1585
1586
1587 static PyObject *_wrap_OBScreen_restack(PyObject *self, PyObject *args) {
1588 PyObject *resultobj;
1589 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1590 bool arg2 ;
1591 ob::OBClient *arg3 = (ob::OBClient *) 0 ;
1592 PyObject * obj0 = 0 ;
1593 PyObject * obj1 = 0 ;
1594 PyObject * obj2 = 0 ;
1595
1596 if(!PyArg_ParseTuple(args,(char *)"OOO:OBScreen_restack",&obj0,&obj1,&obj2)) goto fail;
1597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1598 arg2 = (bool) PyInt_AsLong(obj1);
1599 if (PyErr_Occurred()) SWIG_fail;
1600 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1601 (arg1)->restack(arg2,arg3);
1602
1603 Py_INCREF(Py_None); resultobj = Py_None;
1604 return resultobj;
1605 fail:
1606 return NULL;
1607 }
1608
1609
1610 static PyObject * OBScreen_swigregister(PyObject *self, PyObject *args) {
1611 PyObject *obj;
1612 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1613 SWIG_TypeClientData(SWIGTYPE_p_ob__OBScreen, obj);
1614 Py_INCREF(obj);
1615 return Py_BuildValue((char *)"");
1616 }
1617 static PyObject *_wrap_MwmHints_flags_set(PyObject *self, PyObject *args) {
1618 PyObject *resultobj;
1619 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1620 unsigned long arg2 ;
1621 PyObject * obj0 = 0 ;
1622 PyObject * obj1 = 0 ;
1623
1624 if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_flags_set",&obj0,&obj1)) goto fail;
1625 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1626 arg2 = (unsigned long) PyInt_AsLong(obj1);
1627 if (PyErr_Occurred()) SWIG_fail;
1628 if (arg1) (arg1)->flags = arg2;
1629
1630 Py_INCREF(Py_None); resultobj = Py_None;
1631 return resultobj;
1632 fail:
1633 return NULL;
1634 }
1635
1636
1637 static PyObject *_wrap_MwmHints_flags_get(PyObject *self, PyObject *args) {
1638 PyObject *resultobj;
1639 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1640 unsigned long result;
1641 PyObject * obj0 = 0 ;
1642
1643 if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_flags_get",&obj0)) goto fail;
1644 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1645 result = (unsigned long) ((arg1)->flags);
1646
1647 resultobj = PyInt_FromLong((long)result);
1648 return resultobj;
1649 fail:
1650 return NULL;
1651 }
1652
1653
1654 static PyObject *_wrap_MwmHints_functions_set(PyObject *self, PyObject *args) {
1655 PyObject *resultobj;
1656 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1657 unsigned long arg2 ;
1658 PyObject * obj0 = 0 ;
1659 PyObject * obj1 = 0 ;
1660
1661 if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_functions_set",&obj0,&obj1)) goto fail;
1662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1663 arg2 = (unsigned long) PyInt_AsLong(obj1);
1664 if (PyErr_Occurred()) SWIG_fail;
1665 if (arg1) (arg1)->functions = arg2;
1666
1667 Py_INCREF(Py_None); resultobj = Py_None;
1668 return resultobj;
1669 fail:
1670 return NULL;
1671 }
1672
1673
1674 static PyObject *_wrap_MwmHints_functions_get(PyObject *self, PyObject *args) {
1675 PyObject *resultobj;
1676 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1677 unsigned long result;
1678 PyObject * obj0 = 0 ;
1679
1680 if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_functions_get",&obj0)) goto fail;
1681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1682 result = (unsigned long) ((arg1)->functions);
1683
1684 resultobj = PyInt_FromLong((long)result);
1685 return resultobj;
1686 fail:
1687 return NULL;
1688 }
1689
1690
1691 static PyObject *_wrap_MwmHints_decorations_set(PyObject *self, PyObject *args) {
1692 PyObject *resultobj;
1693 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1694 unsigned long arg2 ;
1695 PyObject * obj0 = 0 ;
1696 PyObject * obj1 = 0 ;
1697
1698 if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_decorations_set",&obj0,&obj1)) goto fail;
1699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1700 arg2 = (unsigned long) PyInt_AsLong(obj1);
1701 if (PyErr_Occurred()) SWIG_fail;
1702 if (arg1) (arg1)->decorations = arg2;
1703
1704 Py_INCREF(Py_None); resultobj = Py_None;
1705 return resultobj;
1706 fail:
1707 return NULL;
1708 }
1709
1710
1711 static PyObject *_wrap_MwmHints_decorations_get(PyObject *self, PyObject *args) {
1712 PyObject *resultobj;
1713 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1714 unsigned long result;
1715 PyObject * obj0 = 0 ;
1716
1717 if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_decorations_get",&obj0)) goto fail;
1718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1719 result = (unsigned long) ((arg1)->decorations);
1720
1721 resultobj = PyInt_FromLong((long)result);
1722 return resultobj;
1723 fail:
1724 return NULL;
1725 }
1726
1727
1728 static PyObject * MwmHints_swigregister(PyObject *self, PyObject *args) {
1729 PyObject *obj;
1730 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1731 SWIG_TypeClientData(SWIGTYPE_p_ob__MwmHints, obj);
1732 Py_INCREF(obj);
1733 return Py_BuildValue((char *)"");
1734 }
1735 static PyObject *_wrap_OBClient_frame_set(PyObject *self, PyObject *args) {
1736 PyObject *resultobj;
1737 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1738 ob::OBFrame *arg2 = (ob::OBFrame *) 0 ;
1739 PyObject * obj0 = 0 ;
1740 PyObject * obj1 = 0 ;
1741
1742 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_frame_set",&obj0,&obj1)) goto fail;
1743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1744 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBFrame,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
1745 if (arg1) (arg1)->frame = arg2;
1746
1747 Py_INCREF(Py_None); resultobj = Py_None;
1748 return resultobj;
1749 fail:
1750 return NULL;
1751 }
1752
1753
1754 static PyObject *_wrap_OBClient_frame_get(PyObject *self, PyObject *args) {
1755 PyObject *resultobj;
1756 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1757 ob::OBFrame *result;
1758 PyObject * obj0 = 0 ;
1759
1760 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_frame_get",&obj0)) goto fail;
1761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1762 result = (ob::OBFrame *) ((arg1)->frame);
1763
1764 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBFrame, 0);
1765 return resultobj;
1766 fail:
1767 return NULL;
1768 }
1769
1770
1771 static PyObject *_wrap_OBClient_ignore_unmaps_set(PyObject *self, PyObject *args) {
1772 PyObject *resultobj;
1773 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1774 int arg2 ;
1775 PyObject * obj0 = 0 ;
1776
1777 if(!PyArg_ParseTuple(args,(char *)"Oi:OBClient_ignore_unmaps_set",&obj0,&arg2)) goto fail;
1778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1779 if (arg1) (arg1)->ignore_unmaps = arg2;
1780
1781 Py_INCREF(Py_None); resultobj = Py_None;
1782 return resultobj;
1783 fail:
1784 return NULL;
1785 }
1786
1787
1788 static PyObject *_wrap_OBClient_ignore_unmaps_get(PyObject *self, PyObject *args) {
1789 PyObject *resultobj;
1790 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1791 int result;
1792 PyObject * obj0 = 0 ;
1793
1794 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_ignore_unmaps_get",&obj0)) goto fail;
1795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1796 result = (int) ((arg1)->ignore_unmaps);
1797
1798 resultobj = PyInt_FromLong((long)result);
1799 return resultobj;
1800 fail:
1801 return NULL;
1802 }
1803
1804
1805 static PyObject *_wrap_OBClient_screen(PyObject *self, PyObject *args) {
1806 PyObject *resultobj;
1807 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1808 int result;
1809 PyObject * obj0 = 0 ;
1810
1811 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_screen",&obj0)) goto fail;
1812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1813 result = (int)((ob::OBClient const *)arg1)->screen();
1814
1815 resultobj = PyInt_FromLong((long)result);
1816 return resultobj;
1817 fail:
1818 return NULL;
1819 }
1820
1821
1822 static PyObject *_wrap_OBClient_window(PyObject *self, PyObject *args) {
1823 PyObject *resultobj;
1824 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1825 Window result;
1826 PyObject * obj0 = 0 ;
1827
1828 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_window",&obj0)) goto fail;
1829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1830 result = (Window)((ob::OBClient const *)arg1)->window();
1831
1832 resultobj = PyInt_FromLong((long)result);
1833 return resultobj;
1834 fail:
1835 return NULL;
1836 }
1837
1838
1839 static PyObject *_wrap_OBClient_type(PyObject *self, PyObject *args) {
1840 PyObject *resultobj;
1841 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1842 int result;
1843 PyObject * obj0 = 0 ;
1844
1845 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_type",&obj0)) goto fail;
1846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1847 result = (int)((ob::OBClient const *)arg1)->type();
1848
1849 resultobj = PyInt_FromLong((long)result);
1850 return resultobj;
1851 fail:
1852 return NULL;
1853 }
1854
1855
1856 static PyObject *_wrap_OBClient_desktop(PyObject *self, PyObject *args) {
1857 PyObject *resultobj;
1858 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1859 unsigned long result;
1860 PyObject * obj0 = 0 ;
1861
1862 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_desktop",&obj0)) goto fail;
1863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1864 result = (unsigned long)((ob::OBClient const *)arg1)->desktop();
1865
1866 resultobj = PyInt_FromLong((long)result);
1867 return resultobj;
1868 fail:
1869 return NULL;
1870 }
1871
1872
1873 static PyObject *_wrap_OBClient_title(PyObject *self, PyObject *args) {
1874 PyObject *resultobj;
1875 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1876 std::string *result;
1877 PyObject * obj0 = 0 ;
1878
1879 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_title",&obj0)) goto fail;
1880 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1881 {
1882 std::string const &_result_ref = ((ob::OBClient const *)arg1)->title();
1883 result = (std::string *) &_result_ref;
1884 }
1885
1886 {
1887 resultobj = PyString_FromString(result->c_str());
1888 }
1889 return resultobj;
1890 fail:
1891 return NULL;
1892 }
1893
1894
1895 static PyObject *_wrap_OBClient_iconTitle(PyObject *self, PyObject *args) {
1896 PyObject *resultobj;
1897 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1898 std::string *result;
1899 PyObject * obj0 = 0 ;
1900
1901 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconTitle",&obj0)) goto fail;
1902 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1903 {
1904 std::string const &_result_ref = ((ob::OBClient const *)arg1)->iconTitle();
1905 result = (std::string *) &_result_ref;
1906 }
1907
1908 {
1909 resultobj = PyString_FromString(result->c_str());
1910 }
1911 return resultobj;
1912 fail:
1913 return NULL;
1914 }
1915
1916
1917 static PyObject *_wrap_OBClient_appName(PyObject *self, PyObject *args) {
1918 PyObject *resultobj;
1919 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1920 std::string *result;
1921 PyObject * obj0 = 0 ;
1922
1923 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appName",&obj0)) goto fail;
1924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1925 {
1926 std::string const &_result_ref = ((ob::OBClient const *)arg1)->appName();
1927 result = (std::string *) &_result_ref;
1928 }
1929
1930 {
1931 resultobj = PyString_FromString(result->c_str());
1932 }
1933 return resultobj;
1934 fail:
1935 return NULL;
1936 }
1937
1938
1939 static PyObject *_wrap_OBClient_appClass(PyObject *self, PyObject *args) {
1940 PyObject *resultobj;
1941 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1942 std::string *result;
1943 PyObject * obj0 = 0 ;
1944
1945 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appClass",&obj0)) goto fail;
1946 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1947 {
1948 std::string const &_result_ref = ((ob::OBClient const *)arg1)->appClass();
1949 result = (std::string *) &_result_ref;
1950 }
1951
1952 {
1953 resultobj = PyString_FromString(result->c_str());
1954 }
1955 return resultobj;
1956 fail:
1957 return NULL;
1958 }
1959
1960
1961 static PyObject *_wrap_OBClient_canFocus(PyObject *self, PyObject *args) {
1962 PyObject *resultobj;
1963 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1964 bool result;
1965 PyObject * obj0 = 0 ;
1966
1967 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_canFocus",&obj0)) goto fail;
1968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1969 result = (bool)((ob::OBClient const *)arg1)->canFocus();
1970
1971 resultobj = PyInt_FromLong((long)result);
1972 return resultobj;
1973 fail:
1974 return NULL;
1975 }
1976
1977
1978 static PyObject *_wrap_OBClient_urgent(PyObject *self, PyObject *args) {
1979 PyObject *resultobj;
1980 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1981 bool result;
1982 PyObject * obj0 = 0 ;
1983
1984 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_urgent",&obj0)) goto fail;
1985 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1986 result = (bool)((ob::OBClient const *)arg1)->urgent();
1987
1988 resultobj = PyInt_FromLong((long)result);
1989 return resultobj;
1990 fail:
1991 return NULL;
1992 }
1993
1994
1995 static PyObject *_wrap_OBClient_focusNotify(PyObject *self, PyObject *args) {
1996 PyObject *resultobj;
1997 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1998 bool result;
1999 PyObject * obj0 = 0 ;
2000
2001 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focusNotify",&obj0)) goto fail;
2002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2003 result = (bool)((ob::OBClient const *)arg1)->focusNotify();
2004
2005 resultobj = PyInt_FromLong((long)result);
2006 return resultobj;
2007 fail:
2008 return NULL;
2009 }
2010
2011
2012 static PyObject *_wrap_OBClient_shaped(PyObject *self, PyObject *args) {
2013 PyObject *resultobj;
2014 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2015 bool result;
2016 PyObject * obj0 = 0 ;
2017
2018 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaped",&obj0)) goto fail;
2019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2020 result = (bool)((ob::OBClient const *)arg1)->shaped();
2021
2022 resultobj = PyInt_FromLong((long)result);
2023 return resultobj;
2024 fail:
2025 return NULL;
2026 }
2027
2028
2029 static PyObject *_wrap_OBClient_gravity(PyObject *self, PyObject *args) {
2030 PyObject *resultobj;
2031 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2032 int result;
2033 PyObject * obj0 = 0 ;
2034
2035 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_gravity",&obj0)) goto fail;
2036 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2037 result = (int)((ob::OBClient const *)arg1)->gravity();
2038
2039 resultobj = PyInt_FromLong((long)result);
2040 return resultobj;
2041 fail:
2042 return NULL;
2043 }
2044
2045
2046 static PyObject *_wrap_OBClient_positionRequested(PyObject *self, PyObject *args) {
2047 PyObject *resultobj;
2048 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2049 bool result;
2050 PyObject * obj0 = 0 ;
2051
2052 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_positionRequested",&obj0)) goto fail;
2053 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2054 result = (bool)((ob::OBClient const *)arg1)->positionRequested();
2055
2056 resultobj = PyInt_FromLong((long)result);
2057 return resultobj;
2058 fail:
2059 return NULL;
2060 }
2061
2062
2063 static PyObject *_wrap_OBClient_decorations(PyObject *self, PyObject *args) {
2064 PyObject *resultobj;
2065 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2066 ob::OBClient::DecorationFlags result;
2067 PyObject * obj0 = 0 ;
2068
2069 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_decorations",&obj0)) goto fail;
2070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2071 result = (ob::OBClient::DecorationFlags)((ob::OBClient const *)arg1)->decorations();
2072
2073 resultobj = PyInt_FromLong((long)result);
2074 return resultobj;
2075 fail:
2076 return NULL;
2077 }
2078
2079
2080 static PyObject *_wrap_OBClient_funtions(PyObject *self, PyObject *args) {
2081 PyObject *resultobj;
2082 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2083 ob::OBClient::FunctionFlags result;
2084 PyObject * obj0 = 0 ;
2085
2086 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_funtions",&obj0)) goto fail;
2087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2088 result = (ob::OBClient::FunctionFlags)((ob::OBClient const *)arg1)->funtions();
2089
2090 resultobj = PyInt_FromLong((long)result);
2091 return resultobj;
2092 fail:
2093 return NULL;
2094 }
2095
2096
2097 static PyObject *_wrap_OBClient_modal(PyObject *self, PyObject *args) {
2098 PyObject *resultobj;
2099 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2100 bool result;
2101 PyObject * obj0 = 0 ;
2102
2103 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_modal",&obj0)) goto fail;
2104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2105 result = (bool)((ob::OBClient const *)arg1)->modal();
2106
2107 resultobj = PyInt_FromLong((long)result);
2108 return resultobj;
2109 fail:
2110 return NULL;
2111 }
2112
2113
2114 static PyObject *_wrap_OBClient_shaded(PyObject *self, PyObject *args) {
2115 PyObject *resultobj;
2116 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2117 bool result;
2118 PyObject * obj0 = 0 ;
2119
2120 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaded",&obj0)) goto fail;
2121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2122 result = (bool)((ob::OBClient const *)arg1)->shaded();
2123
2124 resultobj = PyInt_FromLong((long)result);
2125 return resultobj;
2126 fail:
2127 return NULL;
2128 }
2129
2130
2131 static PyObject *_wrap_OBClient_iconic(PyObject *self, PyObject *args) {
2132 PyObject *resultobj;
2133 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2134 bool result;
2135 PyObject * obj0 = 0 ;
2136
2137 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconic",&obj0)) goto fail;
2138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2139 result = (bool)((ob::OBClient const *)arg1)->iconic();
2140
2141 resultobj = PyInt_FromLong((long)result);
2142 return resultobj;
2143 fail:
2144 return NULL;
2145 }
2146
2147
2148 static PyObject *_wrap_OBClient_maxVert(PyObject *self, PyObject *args) {
2149 PyObject *resultobj;
2150 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2151 bool result;
2152 PyObject * obj0 = 0 ;
2153
2154 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxVert",&obj0)) goto fail;
2155 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2156 result = (bool)((ob::OBClient const *)arg1)->maxVert();
2157
2158 resultobj = PyInt_FromLong((long)result);
2159 return resultobj;
2160 fail:
2161 return NULL;
2162 }
2163
2164
2165 static PyObject *_wrap_OBClient_maxHorz(PyObject *self, PyObject *args) {
2166 PyObject *resultobj;
2167 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2168 bool result;
2169 PyObject * obj0 = 0 ;
2170
2171 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxHorz",&obj0)) goto fail;
2172 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2173 result = (bool)((ob::OBClient const *)arg1)->maxHorz();
2174
2175 resultobj = PyInt_FromLong((long)result);
2176 return resultobj;
2177 fail:
2178 return NULL;
2179 }
2180
2181
2182 static PyObject *_wrap_OBClient_layer(PyObject *self, PyObject *args) {
2183 PyObject *resultobj;
2184 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2185 int result;
2186 PyObject * obj0 = 0 ;
2187
2188 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_layer",&obj0)) goto fail;
2189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2190 result = (int)((ob::OBClient const *)arg1)->layer();
2191
2192 resultobj = PyInt_FromLong((long)result);
2193 return resultobj;
2194 fail:
2195 return NULL;
2196 }
2197
2198
2199 static PyObject *_wrap_OBClient_toggleClientBorder(PyObject *self, PyObject *args) {
2200 PyObject *resultobj;
2201 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2202 bool arg2 ;
2203 PyObject * obj0 = 0 ;
2204 PyObject * obj1 = 0 ;
2205
2206 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_toggleClientBorder",&obj0,&obj1)) goto fail;
2207 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2208 arg2 = (bool) PyInt_AsLong(obj1);
2209 if (PyErr_Occurred()) SWIG_fail;
2210 (arg1)->toggleClientBorder(arg2);
2211
2212 Py_INCREF(Py_None); resultobj = Py_None;
2213 return resultobj;
2214 fail:
2215 return NULL;
2216 }
2217
2218
2219 static PyObject *_wrap_OBClient_area(PyObject *self, PyObject *args) {
2220 PyObject *resultobj;
2221 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2222 otk::Rect *result;
2223 PyObject * obj0 = 0 ;
2224
2225 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_area",&obj0)) goto fail;
2226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2227 {
2228 otk::Rect const &_result_ref = ((ob::OBClient const *)arg1)->area();
2229 result = (otk::Rect *) &_result_ref;
2230 }
2231
2232 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
2233 return resultobj;
2234 fail:
2235 return NULL;
2236 }
2237
2238
2239 static PyObject *_wrap_OBClient_strut(PyObject *self, PyObject *args) {
2240 PyObject *resultobj;
2241 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2242 otk::Strut *result;
2243 PyObject * obj0 = 0 ;
2244
2245 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_strut",&obj0)) goto fail;
2246 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2247 {
2248 otk::Strut const &_result_ref = ((ob::OBClient const *)arg1)->strut();
2249 result = (otk::Strut *) &_result_ref;
2250 }
2251
2252 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 0);
2253 return resultobj;
2254 fail:
2255 return NULL;
2256 }
2257
2258
2259 static PyObject *_wrap_OBClient_move(PyObject *self, PyObject *args) {
2260 PyObject *resultobj;
2261 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2262 int arg2 ;
2263 int arg3 ;
2264 PyObject * obj0 = 0 ;
2265
2266 if(!PyArg_ParseTuple(args,(char *)"Oii:OBClient_move",&obj0,&arg2,&arg3)) goto fail;
2267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2268 (arg1)->move(arg2,arg3);
2269
2270 Py_INCREF(Py_None); resultobj = Py_None;
2271 return resultobj;
2272 fail:
2273 return NULL;
2274 }
2275
2276
2277 static PyObject *_wrap_OBClient_resize(PyObject *self, PyObject *args) {
2278 PyObject *resultobj;
2279 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2280 int arg2 ;
2281 int arg3 ;
2282 int arg4 ;
2283 int arg5 = (int) INT_MIN ;
2284 int arg6 = (int) INT_MIN ;
2285 PyObject * obj0 = 0 ;
2286
2287 if(!PyArg_ParseTuple(args,(char *)"Oiii|ii:OBClient_resize",&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
2288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2289 (arg1)->resize((ob::OBClient::Corner )arg2,arg3,arg4,arg5,arg6);
2290
2291 Py_INCREF(Py_None); resultobj = Py_None;
2292 return resultobj;
2293 fail:
2294 return NULL;
2295 }
2296
2297
2298 static PyObject *_wrap_OBClient_close(PyObject *self, PyObject *args) {
2299 PyObject *resultobj;
2300 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2301 PyObject * obj0 = 0 ;
2302
2303 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_close",&obj0)) goto fail;
2304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2305 (arg1)->close();
2306
2307 Py_INCREF(Py_None); resultobj = Py_None;
2308 return resultobj;
2309 fail:
2310 return NULL;
2311 }
2312
2313
2314 static PyObject *_wrap_OBClient_shade(PyObject *self, PyObject *args) {
2315 PyObject *resultobj;
2316 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2317 bool arg2 ;
2318 PyObject * obj0 = 0 ;
2319 PyObject * obj1 = 0 ;
2320
2321 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_shade",&obj0,&obj1)) goto fail;
2322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2323 arg2 = (bool) PyInt_AsLong(obj1);
2324 if (PyErr_Occurred()) SWIG_fail;
2325 (arg1)->shade(arg2);
2326
2327 Py_INCREF(Py_None); resultobj = Py_None;
2328 return resultobj;
2329 fail:
2330 return NULL;
2331 }
2332
2333
2334 static PyObject *_wrap_OBClient_focus(PyObject *self, PyObject *args) {
2335 PyObject *resultobj;
2336 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2337 bool result;
2338 PyObject * obj0 = 0 ;
2339
2340 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focus",&obj0)) goto fail;
2341 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2342 result = (bool)(arg1)->focus();
2343
2344 resultobj = PyInt_FromLong((long)result);
2345 return resultobj;
2346 fail:
2347 return NULL;
2348 }
2349
2350
2351 static PyObject *_wrap_OBClient_unfocus(PyObject *self, PyObject *args) {
2352 PyObject *resultobj;
2353 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2354 PyObject * obj0 = 0 ;
2355
2356 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_unfocus",&obj0)) goto fail;
2357 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2358 (arg1)->unfocus();
2359
2360 Py_INCREF(Py_None); resultobj = Py_None;
2361 return resultobj;
2362 fail:
2363 return NULL;
2364 }
2365
2366
2367 static PyObject *_wrap_OBClient_focusHandler(PyObject *self, PyObject *args) {
2368 PyObject *resultobj;
2369 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2370 XFocusChangeEvent *arg2 = 0 ;
2371 PyObject * obj0 = 0 ;
2372 PyObject * obj1 = 0 ;
2373
2374 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_focusHandler",&obj0,&obj1)) goto fail;
2375 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2376 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2377 if (arg2 == NULL) {
2378 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2379 }
2380 (arg1)->focusHandler((XFocusChangeEvent const &)*arg2);
2381
2382 Py_INCREF(Py_None); resultobj = Py_None;
2383 return resultobj;
2384 fail:
2385 return NULL;
2386 }
2387
2388
2389 static PyObject *_wrap_OBClient_unfocusHandler(PyObject *self, PyObject *args) {
2390 PyObject *resultobj;
2391 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2392 XFocusChangeEvent *arg2 = 0 ;
2393 PyObject * obj0 = 0 ;
2394 PyObject * obj1 = 0 ;
2395
2396 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unfocusHandler",&obj0,&obj1)) goto fail;
2397 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2398 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2399 if (arg2 == NULL) {
2400 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2401 }
2402 (arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2);
2403
2404 Py_INCREF(Py_None); resultobj = Py_None;
2405 return resultobj;
2406 fail:
2407 return NULL;
2408 }
2409
2410
2411 static PyObject *_wrap_OBClient_propertyHandler(PyObject *self, PyObject *args) {
2412 PyObject *resultobj;
2413 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2414 XPropertyEvent *arg2 = 0 ;
2415 PyObject * obj0 = 0 ;
2416 PyObject * obj1 = 0 ;
2417
2418 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_propertyHandler",&obj0,&obj1)) goto fail;
2419 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2420 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2421 if (arg2 == NULL) {
2422 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2423 }
2424 (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
2425
2426 Py_INCREF(Py_None); resultobj = Py_None;
2427 return resultobj;
2428 fail:
2429 return NULL;
2430 }
2431
2432
2433 static PyObject *_wrap_OBClient_clientMessageHandler(PyObject *self, PyObject *args) {
2434 PyObject *resultobj;
2435 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2436 XClientMessageEvent *arg2 = 0 ;
2437 PyObject * obj0 = 0 ;
2438 PyObject * obj1 = 0 ;
2439
2440 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_clientMessageHandler",&obj0,&obj1)) goto fail;
2441 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2442 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2443 if (arg2 == NULL) {
2444 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2445 }
2446 (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
2447
2448 Py_INCREF(Py_None); resultobj = Py_None;
2449 return resultobj;
2450 fail:
2451 return NULL;
2452 }
2453
2454
2455 static PyObject *_wrap_OBClient_configureRequestHandler(PyObject *self, PyObject *args) {
2456 PyObject *resultobj;
2457 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2458 XConfigureRequestEvent *arg2 = 0 ;
2459 PyObject * obj0 = 0 ;
2460 PyObject * obj1 = 0 ;
2461
2462 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_configureRequestHandler",&obj0,&obj1)) goto fail;
2463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2464 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2465 if (arg2 == NULL) {
2466 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2467 }
2468 (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2);
2469
2470 Py_INCREF(Py_None); resultobj = Py_None;
2471 return resultobj;
2472 fail:
2473 return NULL;
2474 }
2475
2476
2477 static PyObject *_wrap_OBClient_unmapHandler(PyObject *self, PyObject *args) {
2478 PyObject *resultobj;
2479 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2480 XUnmapEvent *arg2 = 0 ;
2481 PyObject * obj0 = 0 ;
2482 PyObject * obj1 = 0 ;
2483
2484 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unmapHandler",&obj0,&obj1)) goto fail;
2485 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2486 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2487 if (arg2 == NULL) {
2488 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2489 }
2490 (arg1)->unmapHandler((XUnmapEvent const &)*arg2);
2491
2492 Py_INCREF(Py_None); resultobj = Py_None;
2493 return resultobj;
2494 fail:
2495 return NULL;
2496 }
2497
2498
2499 static PyObject *_wrap_OBClient_destroyHandler(PyObject *self, PyObject *args) {
2500 PyObject *resultobj;
2501 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2502 XDestroyWindowEvent *arg2 = 0 ;
2503 PyObject * obj0 = 0 ;
2504 PyObject * obj1 = 0 ;
2505
2506 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_destroyHandler",&obj0,&obj1)) goto fail;
2507 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2508 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2509 if (arg2 == NULL) {
2510 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2511 }
2512 (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2);
2513
2514 Py_INCREF(Py_None); resultobj = Py_None;
2515 return resultobj;
2516 fail:
2517 return NULL;
2518 }
2519
2520
2521 static PyObject *_wrap_OBClient_reparentHandler(PyObject *self, PyObject *args) {
2522 PyObject *resultobj;
2523 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2524 XReparentEvent *arg2 = 0 ;
2525 PyObject * obj0 = 0 ;
2526 PyObject * obj1 = 0 ;
2527
2528 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_reparentHandler",&obj0,&obj1)) goto fail;
2529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2530 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2531 if (arg2 == NULL) {
2532 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2533 }
2534 (arg1)->reparentHandler((XReparentEvent const &)*arg2);
2535
2536 Py_INCREF(Py_None); resultobj = Py_None;
2537 return resultobj;
2538 fail:
2539 return NULL;
2540 }
2541
2542
2543 static PyObject * OBClient_swigregister(PyObject *self, PyObject *args) {
2544 PyObject *obj;
2545 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2546 SWIG_TypeClientData(SWIGTYPE_p_ob__OBClient, obj);
2547 Py_INCREF(obj);
2548 return Py_BuildValue((char *)"");
2549 }
2550 static PyObject *_wrap_mbind(PyObject *self, PyObject *args) {
2551 PyObject *resultobj;
2552 std::string *arg1 = 0 ;
2553 int arg2 ;
2554 int arg3 ;
2555 PyObject *arg4 = (PyObject *) 0 ;
2556 PyObject *result;
2557 std::string temp1 ;
2558 PyObject * obj0 = 0 ;
2559 PyObject * obj3 = 0 ;
2560
2561 if(!PyArg_ParseTuple(args,(char *)"OiiO:mbind",&obj0,&arg2,&arg3,&obj3)) goto fail;
2562 {
2563 if (PyString_Check(obj0)) {
2564 temp1 = std::string(PyString_AsString(obj0));
2565 arg1 = &temp1;
2566 }else {
2567 SWIG_exception(SWIG_TypeError, "string expected");
2568 }
2569 }
2570 arg4 = obj3;
2571 result = (PyObject *)ob::mbind((std::string const &)*arg1,(ob::MouseContext )arg2,(ob::MouseAction )arg3,arg4);
2572
2573 resultobj = result;
2574 return resultobj;
2575 fail:
2576 return NULL;
2577 }
2578
2579
2580 static PyObject *_wrap_kbind(PyObject *self, PyObject *args) {
2581 PyObject *resultobj;
2582 PyObject *arg1 = (PyObject *) 0 ;
2583 int arg2 ;
2584 PyObject *arg3 = (PyObject *) 0 ;
2585 PyObject *result;
2586 PyObject * obj0 = 0 ;
2587 PyObject * obj2 = 0 ;
2588
2589 if(!PyArg_ParseTuple(args,(char *)"OiO:kbind",&obj0,&arg2,&obj2)) goto fail;
2590 arg1 = obj0;
2591 arg3 = obj2;
2592 result = (PyObject *)ob::kbind(arg1,(ob::KeyContext )arg2,arg3);
2593
2594 resultobj = result;
2595 return resultobj;
2596 fail:
2597 return NULL;
2598 }
2599
2600
2601 static PyObject *_wrap_ebind(PyObject *self, PyObject *args) {
2602 PyObject *resultobj;
2603 int arg1 ;
2604 PyObject *arg2 = (PyObject *) 0 ;
2605 PyObject *result;
2606 PyObject * obj1 = 0 ;
2607
2608 if(!PyArg_ParseTuple(args,(char *)"iO:ebind",&arg1,&obj1)) goto fail;
2609 arg2 = obj1;
2610 result = (PyObject *)ob::ebind((ob::EventAction )arg1,arg2);
2611
2612 resultobj = result;
2613 return resultobj;
2614 fail:
2615 return NULL;
2616 }
2617
2618
2619 static PyObject *_wrap_set_reset_key(PyObject *self, PyObject *args) {
2620 PyObject *resultobj;
2621 std::string *arg1 = 0 ;
2622 std::string temp1 ;
2623 PyObject * obj0 = 0 ;
2624
2625 if(!PyArg_ParseTuple(args,(char *)"O:set_reset_key",&obj0)) goto fail;
2626 {
2627 if (PyString_Check(obj0)) {
2628 temp1 = std::string(PyString_AsString(obj0));
2629 arg1 = &temp1;
2630 }else {
2631 SWIG_exception(SWIG_TypeError, "string expected");
2632 }
2633 }
2634 ob::set_reset_key((std::string const &)*arg1);
2635
2636 Py_INCREF(Py_None); resultobj = Py_None;
2637 return resultobj;
2638 fail:
2639 return NULL;
2640 }
2641
2642
2643 static PyMethodDef SwigMethods[] = {
2644 { (char *)"Openbox_instance", _wrap_Openbox_instance, METH_VARARGS },
2645 { (char *)"Cursors_session_set", _wrap_Cursors_session_set, METH_VARARGS },
2646 { (char *)"Cursors_session_get", _wrap_Cursors_session_get, METH_VARARGS },
2647 { (char *)"Cursors_move_set", _wrap_Cursors_move_set, METH_VARARGS },
2648 { (char *)"Cursors_move_get", _wrap_Cursors_move_get, METH_VARARGS },
2649 { (char *)"Cursors_ll_angle_set", _wrap_Cursors_ll_angle_set, METH_VARARGS },
2650 { (char *)"Cursors_ll_angle_get", _wrap_Cursors_ll_angle_get, METH_VARARGS },
2651 { (char *)"Cursors_lr_angle_set", _wrap_Cursors_lr_angle_set, METH_VARARGS },
2652 { (char *)"Cursors_lr_angle_get", _wrap_Cursors_lr_angle_get, METH_VARARGS },
2653 { (char *)"Cursors_ul_angle_set", _wrap_Cursors_ul_angle_set, METH_VARARGS },
2654 { (char *)"Cursors_ul_angle_get", _wrap_Cursors_ul_angle_get, METH_VARARGS },
2655 { (char *)"Cursors_ur_angle_set", _wrap_Cursors_ur_angle_set, METH_VARARGS },
2656 { (char *)"Cursors_ur_angle_get", _wrap_Cursors_ur_angle_get, METH_VARARGS },
2657 { (char *)"Cursors_swigregister", Cursors_swigregister, METH_VARARGS },
2658 { (char *)"Openbox_state", _wrap_Openbox_state, METH_VARARGS },
2659 { (char *)"Openbox_timerManager", _wrap_Openbox_timerManager, METH_VARARGS },
2660 { (char *)"Openbox_property", _wrap_Openbox_property, METH_VARARGS },
2661 { (char *)"Openbox_actions", _wrap_Openbox_actions, METH_VARARGS },
2662 { (char *)"Openbox_bindings", _wrap_Openbox_bindings, METH_VARARGS },
2663 { (char *)"Openbox_screen", _wrap_Openbox_screen, METH_VARARGS },
2664 { (char *)"Openbox_screenCount", _wrap_Openbox_screenCount, METH_VARARGS },
2665 { (char *)"Openbox_cursors", _wrap_Openbox_cursors, METH_VARARGS },
2666 { (char *)"Openbox_addClient", _wrap_Openbox_addClient, METH_VARARGS },
2667 { (char *)"Openbox_removeClient", _wrap_Openbox_removeClient, METH_VARARGS },
2668 { (char *)"Openbox_findClient", _wrap_Openbox_findClient, METH_VARARGS },
2669 { (char *)"Openbox_focusedClient", _wrap_Openbox_focusedClient, METH_VARARGS },
2670 { (char *)"Openbox_setFocusedClient", _wrap_Openbox_setFocusedClient, METH_VARARGS },
2671 { (char *)"Openbox_focusedScreen", _wrap_Openbox_focusedScreen, METH_VARARGS },
2672 { (char *)"Openbox_shutdown", _wrap_Openbox_shutdown, METH_VARARGS },
2673 { (char *)"Openbox_restart", _wrap_Openbox_restart, METH_VARARGS },
2674 { (char *)"Openbox_execute", _wrap_Openbox_execute, METH_VARARGS },
2675 { (char *)"Openbox_swigregister", Openbox_swigregister, METH_VARARGS },
2676 { (char *)"OBScreen_client", _wrap_OBScreen_client, METH_VARARGS },
2677 { (char *)"OBScreen_clientCount", _wrap_OBScreen_clientCount, METH_VARARGS },
2678 { (char *)"OBScreen_number", _wrap_OBScreen_number, METH_VARARGS },
2679 { (char *)"OBScreen_managed", _wrap_OBScreen_managed, METH_VARARGS },
2680 { (char *)"OBScreen_imageControl", _wrap_OBScreen_imageControl, METH_VARARGS },
2681 { (char *)"OBScreen_area", _wrap_OBScreen_area, METH_VARARGS },
2682 { (char *)"OBScreen_style", _wrap_OBScreen_style, METH_VARARGS },
2683 { (char *)"OBScreen_focuswindow", _wrap_OBScreen_focuswindow, METH_VARARGS },
2684 { (char *)"OBScreen_updateStrut", _wrap_OBScreen_updateStrut, METH_VARARGS },
2685 { (char *)"OBScreen_manageExisting", _wrap_OBScreen_manageExisting, METH_VARARGS },
2686 { (char *)"OBScreen_manageWindow", _wrap_OBScreen_manageWindow, METH_VARARGS },
2687 { (char *)"OBScreen_unmanageWindow", _wrap_OBScreen_unmanageWindow, METH_VARARGS },
2688 { (char *)"OBScreen_restack", _wrap_OBScreen_restack, METH_VARARGS },
2689 { (char *)"OBScreen_swigregister", OBScreen_swigregister, METH_VARARGS },
2690 { (char *)"MwmHints_flags_set", _wrap_MwmHints_flags_set, METH_VARARGS },
2691 { (char *)"MwmHints_flags_get", _wrap_MwmHints_flags_get, METH_VARARGS },
2692 { (char *)"MwmHints_functions_set", _wrap_MwmHints_functions_set, METH_VARARGS },
2693 { (char *)"MwmHints_functions_get", _wrap_MwmHints_functions_get, METH_VARARGS },
2694 { (char *)"MwmHints_decorations_set", _wrap_MwmHints_decorations_set, METH_VARARGS },
2695 { (char *)"MwmHints_decorations_get", _wrap_MwmHints_decorations_get, METH_VARARGS },
2696 { (char *)"MwmHints_swigregister", MwmHints_swigregister, METH_VARARGS },
2697 { (char *)"OBClient_frame_set", _wrap_OBClient_frame_set, METH_VARARGS },
2698 { (char *)"OBClient_frame_get", _wrap_OBClient_frame_get, METH_VARARGS },
2699 { (char *)"OBClient_ignore_unmaps_set", _wrap_OBClient_ignore_unmaps_set, METH_VARARGS },
2700 { (char *)"OBClient_ignore_unmaps_get", _wrap_OBClient_ignore_unmaps_get, METH_VARARGS },
2701 { (char *)"OBClient_screen", _wrap_OBClient_screen, METH_VARARGS },
2702 { (char *)"OBClient_window", _wrap_OBClient_window, METH_VARARGS },
2703 { (char *)"OBClient_type", _wrap_OBClient_type, METH_VARARGS },
2704 { (char *)"OBClient_desktop", _wrap_OBClient_desktop, METH_VARARGS },
2705 { (char *)"OBClient_title", _wrap_OBClient_title, METH_VARARGS },
2706 { (char *)"OBClient_iconTitle", _wrap_OBClient_iconTitle, METH_VARARGS },
2707 { (char *)"OBClient_appName", _wrap_OBClient_appName, METH_VARARGS },
2708 { (char *)"OBClient_appClass", _wrap_OBClient_appClass, METH_VARARGS },
2709 { (char *)"OBClient_canFocus", _wrap_OBClient_canFocus, METH_VARARGS },
2710 { (char *)"OBClient_urgent", _wrap_OBClient_urgent, METH_VARARGS },
2711 { (char *)"OBClient_focusNotify", _wrap_OBClient_focusNotify, METH_VARARGS },
2712 { (char *)"OBClient_shaped", _wrap_OBClient_shaped, METH_VARARGS },
2713 { (char *)"OBClient_gravity", _wrap_OBClient_gravity, METH_VARARGS },
2714 { (char *)"OBClient_positionRequested", _wrap_OBClient_positionRequested, METH_VARARGS },
2715 { (char *)"OBClient_decorations", _wrap_OBClient_decorations, METH_VARARGS },
2716 { (char *)"OBClient_funtions", _wrap_OBClient_funtions, METH_VARARGS },
2717 { (char *)"OBClient_modal", _wrap_OBClient_modal, METH_VARARGS },
2718 { (char *)"OBClient_shaded", _wrap_OBClient_shaded, METH_VARARGS },
2719 { (char *)"OBClient_iconic", _wrap_OBClient_iconic, METH_VARARGS },
2720 { (char *)"OBClient_maxVert", _wrap_OBClient_maxVert, METH_VARARGS },
2721 { (char *)"OBClient_maxHorz", _wrap_OBClient_maxHorz, METH_VARARGS },
2722 { (char *)"OBClient_layer", _wrap_OBClient_layer, METH_VARARGS },
2723 { (char *)"OBClient_toggleClientBorder", _wrap_OBClient_toggleClientBorder, METH_VARARGS },
2724 { (char *)"OBClient_area", _wrap_OBClient_area, METH_VARARGS },
2725 { (char *)"OBClient_strut", _wrap_OBClient_strut, METH_VARARGS },
2726 { (char *)"OBClient_move", _wrap_OBClient_move, METH_VARARGS },
2727 { (char *)"OBClient_resize", _wrap_OBClient_resize, METH_VARARGS },
2728 { (char *)"OBClient_close", _wrap_OBClient_close, METH_VARARGS },
2729 { (char *)"OBClient_shade", _wrap_OBClient_shade, METH_VARARGS },
2730 { (char *)"OBClient_focus", _wrap_OBClient_focus, METH_VARARGS },
2731 { (char *)"OBClient_unfocus", _wrap_OBClient_unfocus, METH_VARARGS },
2732 { (char *)"OBClient_focusHandler", _wrap_OBClient_focusHandler, METH_VARARGS },
2733 { (char *)"OBClient_unfocusHandler", _wrap_OBClient_unfocusHandler, METH_VARARGS },
2734 { (char *)"OBClient_propertyHandler", _wrap_OBClient_propertyHandler, METH_VARARGS },
2735 { (char *)"OBClient_clientMessageHandler", _wrap_OBClient_clientMessageHandler, METH_VARARGS },
2736 { (char *)"OBClient_configureRequestHandler", _wrap_OBClient_configureRequestHandler, METH_VARARGS },
2737 { (char *)"OBClient_unmapHandler", _wrap_OBClient_unmapHandler, METH_VARARGS },
2738 { (char *)"OBClient_destroyHandler", _wrap_OBClient_destroyHandler, METH_VARARGS },
2739 { (char *)"OBClient_reparentHandler", _wrap_OBClient_reparentHandler, METH_VARARGS },
2740 { (char *)"OBClient_swigregister", OBClient_swigregister, METH_VARARGS },
2741 { (char *)"mbind", _wrap_mbind, METH_VARARGS },
2742 { (char *)"kbind", _wrap_kbind, METH_VARARGS },
2743 { (char *)"ebind", _wrap_ebind, METH_VARARGS },
2744 { (char *)"set_reset_key", _wrap_set_reset_key, METH_VARARGS },
2745 { NULL, NULL }
2746 };
2747
2748
2749 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2750
2751 static void *_p_ob__OBActionsTo_p_otk__OtkEventHandler(void *x) {
2752 return (void *)((otk::OtkEventHandler *) ((ob::OBActions *) x));
2753 }
2754 static void *_p_ob__OpenboxTo_p_otk__OtkEventHandler(void *x) {
2755 return (void *)((otk::OtkEventHandler *) ((ob::Openbox *) x));
2756 }
2757 static void *_p_ob__OBClientTo_p_otk__OtkEventHandler(void *x) {
2758 return (void *)((otk::OtkEventHandler *) ((ob::OBClient *) x));
2759 }
2760 static void *_p_ob__OBClientTo_p_ob__OBWidget(void *x) {
2761 return (void *)((ob::OBWidget *) ((ob::OBClient *) x));
2762 }
2763 static void *_p_ob__OpenboxTo_p_otk__OtkEventDispatcher(void *x) {
2764 return (void *)((otk::OtkEventDispatcher *) ((ob::Openbox *) x));
2765 }
2766 static swig_type_info _swigt__p_otk__OBTimerQueueManager[] = {{"_p_otk__OBTimerQueueManager", 0, "otk::OBTimerQueueManager *", 0},{"_p_otk__OBTimerQueueManager"},{0}};
2767 static swig_type_info _swigt__p_ob__OBActions[] = {{"_p_ob__OBActions", 0, "ob::OBActions *", 0},{"_p_ob__OBActions"},{0}};
2768 static swig_type_info _swigt__p_ob__Cursors[] = {{"_p_ob__Cursors", 0, "ob::Cursors *", 0},{"_p_ob__Cursors"},{0}};
2769 static swig_type_info _swigt__p_ob__OBScreen[] = {{"_p_ob__OBScreen", 0, "ob::OBScreen *", 0},{"_p_ob__OBScreen"},{0}};
2770 static swig_type_info _swigt__p_otk__Style[] = {{"_p_otk__Style", 0, "otk::Style *", 0},{"_p_otk__Style"},{0}};
2771 static swig_type_info _swigt__p_ob__OBFrame[] = {{"_p_ob__OBFrame", 0, "ob::OBFrame *", 0},{"_p_ob__OBFrame"},{0}};
2772 static swig_type_info _swigt__p_XReparentEvent[] = {{"_p_XReparentEvent", 0, "XReparentEvent *", 0},{"_p_XReparentEvent"},{0}};
2773 static swig_type_info _swigt__p_ob__OBClient[] = {{"_p_ob__OBClient", 0, "ob::OBClient *", 0},{"_p_ob__OBClient"},{0}};
2774 static swig_type_info _swigt__p_ob__Openbox[] = {{"_p_ob__Openbox", 0, "ob::Openbox *", 0},{"_p_ob__Openbox"},{0}};
2775 static swig_type_info _swigt__p_otk__Strut[] = {{"_p_otk__Strut", 0, "otk::Strut *", 0},{"_p_otk__Strut"},{0}};
2776 static swig_type_info _swigt__p_XConfigureRequestEvent[] = {{"_p_XConfigureRequestEvent", 0, "XConfigureRequestEvent *", 0},{"_p_XConfigureRequestEvent"},{0}};
2777 static swig_type_info _swigt__p_otk__OtkEventHandler[] = {{"_p_otk__OtkEventHandler", 0, "otk::OtkEventHandler *", 0},{"_p_ob__OBActions", _p_ob__OBActionsTo_p_otk__OtkEventHandler},{"_p_otk__OtkEventHandler"},{"_p_ob__Openbox", _p_ob__OpenboxTo_p_otk__OtkEventHandler},{"_p_ob__OBClient", _p_ob__OBClientTo_p_otk__OtkEventHandler},{0}};
2778 static swig_type_info _swigt__p_otk__Rect[] = {{"_p_otk__Rect", 0, "otk::Rect *", 0},{"_p_otk__Rect"},{0}};
2779 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}};
2780 static swig_type_info _swigt__p_XFocusChangeEvent[] = {{"_p_XFocusChangeEvent", 0, "XFocusChangeEvent *", 0},{"_p_XFocusChangeEvent"},{0}};
2781 static swig_type_info _swigt__p_XClientMessageEvent[] = {{"_p_XClientMessageEvent", 0, "XClientMessageEvent *", 0},{"_p_XClientMessageEvent"},{0}};
2782 static swig_type_info _swigt__p_otk__OBProperty[] = {{"_p_otk__OBProperty", 0, "otk::OBProperty *", 0},{"_p_otk__OBProperty"},{0}};
2783 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}};
2784 static swig_type_info _swigt__p_XPropertyEvent[] = {{"_p_XPropertyEvent", 0, "XPropertyEvent *", 0},{"_p_XPropertyEvent"},{0}};
2785 static swig_type_info _swigt__p_XDestroyWindowEvent[] = {{"_p_XDestroyWindowEvent", 0, "XDestroyWindowEvent *", 0},{"_p_XDestroyWindowEvent"},{0}};
2786 static swig_type_info _swigt__p_otk__BImageControl[] = {{"_p_otk__BImageControl", 0, "otk::BImageControl *", 0},{"_p_otk__BImageControl"},{0}};
2787 static swig_type_info _swigt__p_PyObject[] = {{"_p_PyObject", 0, "PyObject *", 0},{"_p_PyObject"},{0}};
2788 static swig_type_info _swigt__p_ob__OBBindings[] = {{"_p_ob__OBBindings", 0, "ob::OBBindings *", 0},{"_p_ob__OBBindings"},{0}};
2789 static swig_type_info _swigt__p_ob__MwmHints[] = {{"_p_ob__MwmHints", 0, "ob::MwmHints *", 0},{"_p_ob__MwmHints"},{0}};
2790 static swig_type_info _swigt__p_XUnmapEvent[] = {{"_p_XUnmapEvent", 0, "XUnmapEvent *", 0},{"_p_XUnmapEvent"},{0}};
2791
2792 static swig_type_info *swig_types_initial[] = {
2793 _swigt__p_otk__OBTimerQueueManager,
2794 _swigt__p_ob__OBActions,
2795 _swigt__p_ob__Cursors,
2796 _swigt__p_ob__OBScreen,
2797 _swigt__p_otk__Style,
2798 _swigt__p_ob__OBFrame,
2799 _swigt__p_XReparentEvent,
2800 _swigt__p_ob__OBClient,
2801 _swigt__p_ob__Openbox,
2802 _swigt__p_otk__Strut,
2803 _swigt__p_XConfigureRequestEvent,
2804 _swigt__p_otk__OtkEventHandler,
2805 _swigt__p_otk__Rect,
2806 _swigt__p_ob__OBWidget,
2807 _swigt__p_XFocusChangeEvent,
2808 _swigt__p_XClientMessageEvent,
2809 _swigt__p_otk__OBProperty,
2810 _swigt__p_otk__OtkEventDispatcher,
2811 _swigt__p_XPropertyEvent,
2812 _swigt__p_XDestroyWindowEvent,
2813 _swigt__p_otk__BImageControl,
2814 _swigt__p_PyObject,
2815 _swigt__p_ob__OBBindings,
2816 _swigt__p_ob__MwmHints,
2817 _swigt__p_XUnmapEvent,
2818 0
2819 };
2820
2821
2822 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2823
2824 static swig_const_info swig_const_table[] = {
2825 { SWIG_PY_INT, (char *)"Openbox_State_Starting", (long) ob::Openbox::State_Starting, 0, 0, 0},
2826 { SWIG_PY_INT, (char *)"Openbox_State_Normal", (long) ob::Openbox::State_Normal, 0, 0, 0},
2827 { SWIG_PY_INT, (char *)"Openbox_State_Exiting", (long) ob::Openbox::State_Exiting, 0, 0, 0},
2828 { SWIG_PY_INT, (char *)"OBScreen_event_mask", (long) ob::OBScreen::event_mask, 0, 0, 0},
2829 { SWIG_PY_INT, (char *)"OBScreen_Layer_Icon", (long) ob::OBScreen::Layer_Icon, 0, 0, 0},
2830 { SWIG_PY_INT, (char *)"OBScreen_Layer_Desktop", (long) ob::OBScreen::Layer_Desktop, 0, 0, 0},
2831 { SWIG_PY_INT, (char *)"OBScreen_Layer_Below", (long) ob::OBScreen::Layer_Below, 0, 0, 0},
2832 { SWIG_PY_INT, (char *)"OBScreen_Layer_Normal", (long) ob::OBScreen::Layer_Normal, 0, 0, 0},
2833 { SWIG_PY_INT, (char *)"OBScreen_Layer_Above", (long) ob::OBScreen::Layer_Above, 0, 0, 0},
2834 { SWIG_PY_INT, (char *)"OBScreen_Layer_Top", (long) ob::OBScreen::Layer_Top, 0, 0, 0},
2835 { SWIG_PY_INT, (char *)"OBScreen_Layer_Fullscreen", (long) ob::OBScreen::Layer_Fullscreen, 0, 0, 0},
2836 { SWIG_PY_INT, (char *)"OBScreen_Layer_Internal", (long) ob::OBScreen::Layer_Internal, 0, 0, 0},
2837 { SWIG_PY_INT, (char *)"OBScreen_NUM_LAYERS", (long) ob::OBScreen::NUM_LAYERS, 0, 0, 0},
2838 { SWIG_PY_INT, (char *)"MwmHints_elements", (long) ob::MwmHints::elements, 0, 0, 0},
2839 { SWIG_PY_INT, (char *)"OBClient_TopLeft", (long) ob::OBClient::TopLeft, 0, 0, 0},
2840 { SWIG_PY_INT, (char *)"OBClient_TopRight", (long) ob::OBClient::TopRight, 0, 0, 0},
2841 { SWIG_PY_INT, (char *)"OBClient_BottomLeft", (long) ob::OBClient::BottomLeft, 0, 0, 0},
2842 { SWIG_PY_INT, (char *)"OBClient_BottomRight", (long) ob::OBClient::BottomRight, 0, 0, 0},
2843 { SWIG_PY_INT, (char *)"OBClient_Type_Desktop", (long) ob::OBClient::Type_Desktop, 0, 0, 0},
2844 { SWIG_PY_INT, (char *)"OBClient_Type_Dock", (long) ob::OBClient::Type_Dock, 0, 0, 0},
2845 { SWIG_PY_INT, (char *)"OBClient_Type_Toolbar", (long) ob::OBClient::Type_Toolbar, 0, 0, 0},
2846 { SWIG_PY_INT, (char *)"OBClient_Type_Menu", (long) ob::OBClient::Type_Menu, 0, 0, 0},
2847 { SWIG_PY_INT, (char *)"OBClient_Type_Utility", (long) ob::OBClient::Type_Utility, 0, 0, 0},
2848 { SWIG_PY_INT, (char *)"OBClient_Type_Splash", (long) ob::OBClient::Type_Splash, 0, 0, 0},
2849 { SWIG_PY_INT, (char *)"OBClient_Type_Dialog", (long) ob::OBClient::Type_Dialog, 0, 0, 0},
2850 { SWIG_PY_INT, (char *)"OBClient_Type_Normal", (long) ob::OBClient::Type_Normal, 0, 0, 0},
2851 { SWIG_PY_INT, (char *)"OBClient_MwmFlag_Functions", (long) ob::OBClient::MwmFlag_Functions, 0, 0, 0},
2852 { SWIG_PY_INT, (char *)"OBClient_MwmFlag_Decorations", (long) ob::OBClient::MwmFlag_Decorations, 0, 0, 0},
2853 { SWIG_PY_INT, (char *)"OBClient_MwmFunc_All", (long) ob::OBClient::MwmFunc_All, 0, 0, 0},
2854 { SWIG_PY_INT, (char *)"OBClient_MwmFunc_Resize", (long) ob::OBClient::MwmFunc_Resize, 0, 0, 0},
2855 { SWIG_PY_INT, (char *)"OBClient_MwmFunc_Move", (long) ob::OBClient::MwmFunc_Move, 0, 0, 0},
2856 { SWIG_PY_INT, (char *)"OBClient_MwmFunc_Iconify", (long) ob::OBClient::MwmFunc_Iconify, 0, 0, 0},
2857 { SWIG_PY_INT, (char *)"OBClient_MwmFunc_Maximize", (long) ob::OBClient::MwmFunc_Maximize, 0, 0, 0},
2858 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_All", (long) ob::OBClient::MwmDecor_All, 0, 0, 0},
2859 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_Border", (long) ob::OBClient::MwmDecor_Border, 0, 0, 0},
2860 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_Handle", (long) ob::OBClient::MwmDecor_Handle, 0, 0, 0},
2861 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_Title", (long) ob::OBClient::MwmDecor_Title, 0, 0, 0},
2862 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_Iconify", (long) ob::OBClient::MwmDecor_Iconify, 0, 0, 0},
2863 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_Maximize", (long) ob::OBClient::MwmDecor_Maximize, 0, 0, 0},
2864 { SWIG_PY_INT, (char *)"OBClient_Func_Resize", (long) ob::OBClient::Func_Resize, 0, 0, 0},
2865 { SWIG_PY_INT, (char *)"OBClient_Func_Move", (long) ob::OBClient::Func_Move, 0, 0, 0},
2866 { SWIG_PY_INT, (char *)"OBClient_Func_Iconify", (long) ob::OBClient::Func_Iconify, 0, 0, 0},
2867 { SWIG_PY_INT, (char *)"OBClient_Func_Maximize", (long) ob::OBClient::Func_Maximize, 0, 0, 0},
2868 { SWIG_PY_INT, (char *)"OBClient_Func_Close", (long) ob::OBClient::Func_Close, 0, 0, 0},
2869 { SWIG_PY_INT, (char *)"OBClient_Decor_Titlebar", (long) ob::OBClient::Decor_Titlebar, 0, 0, 0},
2870 { SWIG_PY_INT, (char *)"OBClient_Decor_Handle", (long) ob::OBClient::Decor_Handle, 0, 0, 0},
2871 { SWIG_PY_INT, (char *)"OBClient_Decor_Border", (long) ob::OBClient::Decor_Border, 0, 0, 0},
2872 { SWIG_PY_INT, (char *)"OBClient_Decor_Iconify", (long) ob::OBClient::Decor_Iconify, 0, 0, 0},
2873 { SWIG_PY_INT, (char *)"OBClient_Decor_Maximize", (long) ob::OBClient::Decor_Maximize, 0, 0, 0},
2874 { SWIG_PY_INT, (char *)"OBClient_Decor_Sticky", (long) ob::OBClient::Decor_Sticky, 0, 0, 0},
2875 { SWIG_PY_INT, (char *)"OBClient_Decor_Close", (long) ob::OBClient::Decor_Close, 0, 0, 0},
2876 { SWIG_PY_INT, (char *)"OBClient_State_Remove", (long) ob::OBClient::State_Remove, 0, 0, 0},
2877 { SWIG_PY_INT, (char *)"OBClient_State_Add", (long) ob::OBClient::State_Add, 0, 0, 0},
2878 { SWIG_PY_INT, (char *)"OBClient_State_Toggle", (long) ob::OBClient::State_Toggle, 0, 0, 0},
2879 { SWIG_PY_INT, (char *)"OBClient_event_mask", (long) ob::OBClient::event_mask, 0, 0, 0},
2880 { SWIG_PY_INT, (char *)"OBClient_no_propagate_mask", (long) ob::OBClient::no_propagate_mask, 0, 0, 0},
2881 { SWIG_PY_INT, (char *)"MC_Frame", (long) ob::MC_Frame, 0, 0, 0},
2882 { SWIG_PY_INT, (char *)"MC_Titlebar", (long) ob::MC_Titlebar, 0, 0, 0},
2883 { SWIG_PY_INT, (char *)"MC_Handle", (long) ob::MC_Handle, 0, 0, 0},
2884 { SWIG_PY_INT, (char *)"MC_Window", (long) ob::MC_Window, 0, 0, 0},
2885 { SWIG_PY_INT, (char *)"MC_MaximizeButton", (long) ob::MC_MaximizeButton, 0, 0, 0},
2886 { SWIG_PY_INT, (char *)"MC_CloseButton", (long) ob::MC_CloseButton, 0, 0, 0},
2887 { SWIG_PY_INT, (char *)"MC_IconifyButton", (long) ob::MC_IconifyButton, 0, 0, 0},
2888 { SWIG_PY_INT, (char *)"MC_StickyButton", (long) ob::MC_StickyButton, 0, 0, 0},
2889 { SWIG_PY_INT, (char *)"MC_Grip", (long) ob::MC_Grip, 0, 0, 0},
2890 { SWIG_PY_INT, (char *)"MC_Root", (long) ob::MC_Root, 0, 0, 0},
2891 { SWIG_PY_INT, (char *)"MC_MenuItem", (long) ob::MC_MenuItem, 0, 0, 0},
2892 { SWIG_PY_INT, (char *)"NUM_MOUSE_CONTEXT", (long) ob::NUM_MOUSE_CONTEXT, 0, 0, 0},
2893 { SWIG_PY_INT, (char *)"MousePress", (long) ob::MousePress, 0, 0, 0},
2894 { SWIG_PY_INT, (char *)"MouseClick", (long) ob::MouseClick, 0, 0, 0},
2895 { SWIG_PY_INT, (char *)"MouseDoubleClick", (long) ob::MouseDoubleClick, 0, 0, 0},
2896 { SWIG_PY_INT, (char *)"MouseMotion", (long) ob::MouseMotion, 0, 0, 0},
2897 { SWIG_PY_INT, (char *)"NUM_MOUSE_ACTION", (long) ob::NUM_MOUSE_ACTION, 0, 0, 0},
2898 { SWIG_PY_INT, (char *)"KC_Menu", (long) ob::KC_Menu, 0, 0, 0},
2899 { SWIG_PY_INT, (char *)"KC_All", (long) ob::KC_All, 0, 0, 0},
2900 { SWIG_PY_INT, (char *)"NUM_KEY_CONTEXT", (long) ob::NUM_KEY_CONTEXT, 0, 0, 0},
2901 { SWIG_PY_INT, (char *)"EventEnterWindow", (long) ob::EventEnterWindow, 0, 0, 0},
2902 { SWIG_PY_INT, (char *)"EventLeaveWindow", (long) ob::EventLeaveWindow, 0, 0, 0},
2903 { SWIG_PY_INT, (char *)"EventNewWindow", (long) ob::EventNewWindow, 0, 0, 0},
2904 { SWIG_PY_INT, (char *)"EventCloseWindow", (long) ob::EventCloseWindow, 0, 0, 0},
2905 { SWIG_PY_INT, (char *)"NUM_EVENTS", (long) ob::NUM_EVENTS, 0, 0, 0},
2906 { SWIG_PY_INT, (char *)"X_PROTOCOL", (long) 11, 0, 0, 0},
2907 { SWIG_PY_INT, (char *)"X_PROTOCOL_REVISION", (long) 0, 0, 0, 0},
2908 { SWIG_PY_INT, (char *)"None", (long) 0L, 0, 0, 0},
2909 { SWIG_PY_INT, (char *)"ParentRelative", (long) 1L, 0, 0, 0},
2910 { SWIG_PY_INT, (char *)"CopyFromParent", (long) 0L, 0, 0, 0},
2911 { SWIG_PY_INT, (char *)"PointerWindow", (long) 0L, 0, 0, 0},
2912 { SWIG_PY_INT, (char *)"InputFocus", (long) 1L, 0, 0, 0},
2913 { SWIG_PY_INT, (char *)"PointerRoot", (long) 1L, 0, 0, 0},
2914 { SWIG_PY_INT, (char *)"AnyPropertyType", (long) 0L, 0, 0, 0},
2915 { SWIG_PY_INT, (char *)"AnyKey", (long) 0L, 0, 0, 0},
2916 { SWIG_PY_INT, (char *)"AnyButton", (long) 0L, 0, 0, 0},
2917 { SWIG_PY_INT, (char *)"AllTemporary", (long) 0L, 0, 0, 0},
2918 { SWIG_PY_INT, (char *)"CurrentTime", (long) 0L, 0, 0, 0},
2919 { SWIG_PY_INT, (char *)"NoSymbol", (long) 0L, 0, 0, 0},
2920 { SWIG_PY_INT, (char *)"NoEventMask", (long) 0L, 0, 0, 0},
2921 { SWIG_PY_INT, (char *)"KeyPressMask", (long) (1L<<0), 0, 0, 0},
2922 { SWIG_PY_INT, (char *)"KeyReleaseMask", (long) (1L<<1), 0, 0, 0},
2923 { SWIG_PY_INT, (char *)"ButtonPressMask", (long) (1L<<2), 0, 0, 0},
2924 { SWIG_PY_INT, (char *)"ButtonReleaseMask", (long) (1L<<3), 0, 0, 0},
2925 { SWIG_PY_INT, (char *)"EnterWindowMask", (long) (1L<<4), 0, 0, 0},
2926 { SWIG_PY_INT, (char *)"LeaveWindowMask", (long) (1L<<5), 0, 0, 0},
2927 { SWIG_PY_INT, (char *)"PointerMotionMask", (long) (1L<<6), 0, 0, 0},
2928 { SWIG_PY_INT, (char *)"PointerMotionHintMask", (long) (1L<<7), 0, 0, 0},
2929 { SWIG_PY_INT, (char *)"Button1MotionMask", (long) (1L<<8), 0, 0, 0},
2930 { SWIG_PY_INT, (char *)"Button2MotionMask", (long) (1L<<9), 0, 0, 0},
2931 { SWIG_PY_INT, (char *)"Button3MotionMask", (long) (1L<<10), 0, 0, 0},
2932 { SWIG_PY_INT, (char *)"Button4MotionMask", (long) (1L<<11), 0, 0, 0},
2933 { SWIG_PY_INT, (char *)"Button5MotionMask", (long) (1L<<12), 0, 0, 0},
2934 { SWIG_PY_INT, (char *)"ButtonMotionMask", (long) (1L<<13), 0, 0, 0},
2935 { SWIG_PY_INT, (char *)"KeymapStateMask", (long) (1L<<14), 0, 0, 0},
2936 { SWIG_PY_INT, (char *)"ExposureMask", (long) (1L<<15), 0, 0, 0},
2937 { SWIG_PY_INT, (char *)"VisibilityChangeMask", (long) (1L<<16), 0, 0, 0},
2938 { SWIG_PY_INT, (char *)"StructureNotifyMask", (long) (1L<<17), 0, 0, 0},
2939 { SWIG_PY_INT, (char *)"ResizeRedirectMask", (long) (1L<<18), 0, 0, 0},
2940 { SWIG_PY_INT, (char *)"SubstructureNotifyMask", (long) (1L<<19), 0, 0, 0},
2941 { SWIG_PY_INT, (char *)"SubstructureRedirectMask", (long) (1L<<20), 0, 0, 0},
2942 { SWIG_PY_INT, (char *)"FocusChangeMask", (long) (1L<<21), 0, 0, 0},
2943 { SWIG_PY_INT, (char *)"PropertyChangeMask", (long) (1L<<22), 0, 0, 0},
2944 { SWIG_PY_INT, (char *)"ColormapChangeMask", (long) (1L<<23), 0, 0, 0},
2945 { SWIG_PY_INT, (char *)"OwnerGrabButtonMask", (long) (1L<<24), 0, 0, 0},
2946 { SWIG_PY_INT, (char *)"KeyPress", (long) 2, 0, 0, 0},
2947 { SWIG_PY_INT, (char *)"KeyRelease", (long) 3, 0, 0, 0},
2948 { SWIG_PY_INT, (char *)"ButtonPress", (long) 4, 0, 0, 0},
2949 { SWIG_PY_INT, (char *)"ButtonRelease", (long) 5, 0, 0, 0},
2950 { SWIG_PY_INT, (char *)"MotionNotify", (long) 6, 0, 0, 0},
2951 { SWIG_PY_INT, (char *)"EnterNotify", (long) 7, 0, 0, 0},
2952 { SWIG_PY_INT, (char *)"LeaveNotify", (long) 8, 0, 0, 0},
2953 { SWIG_PY_INT, (char *)"FocusIn", (long) 9, 0, 0, 0},
2954 { SWIG_PY_INT, (char *)"FocusOut", (long) 10, 0, 0, 0},
2955 { SWIG_PY_INT, (char *)"KeymapNotify", (long) 11, 0, 0, 0},
2956 { SWIG_PY_INT, (char *)"Expose", (long) 12, 0, 0, 0},
2957 { SWIG_PY_INT, (char *)"GraphicsExpose", (long) 13, 0, 0, 0},
2958 { SWIG_PY_INT, (char *)"NoExpose", (long) 14, 0, 0, 0},
2959 { SWIG_PY_INT, (char *)"VisibilityNotify", (long) 15, 0, 0, 0},
2960 { SWIG_PY_INT, (char *)"CreateNotify", (long) 16, 0, 0, 0},
2961 { SWIG_PY_INT, (char *)"DestroyNotify", (long) 17, 0, 0, 0},
2962 { SWIG_PY_INT, (char *)"UnmapNotify", (long) 18, 0, 0, 0},
2963 { SWIG_PY_INT, (char *)"MapNotify", (long) 19, 0, 0, 0},
2964 { SWIG_PY_INT, (char *)"MapRequest", (long) 20, 0, 0, 0},
2965 { SWIG_PY_INT, (char *)"ReparentNotify", (long) 21, 0, 0, 0},
2966 { SWIG_PY_INT, (char *)"ConfigureNotify", (long) 22, 0, 0, 0},
2967 { SWIG_PY_INT, (char *)"ConfigureRequest", (long) 23, 0, 0, 0},
2968 { SWIG_PY_INT, (char *)"GravityNotify", (long) 24, 0, 0, 0},
2969 { SWIG_PY_INT, (char *)"ResizeRequest", (long) 25, 0, 0, 0},
2970 { SWIG_PY_INT, (char *)"CirculateNotify", (long) 26, 0, 0, 0},
2971 { SWIG_PY_INT, (char *)"CirculateRequest", (long) 27, 0, 0, 0},
2972 { SWIG_PY_INT, (char *)"PropertyNotify", (long) 28, 0, 0, 0},
2973 { SWIG_PY_INT, (char *)"SelectionClear", (long) 29, 0, 0, 0},
2974 { SWIG_PY_INT, (char *)"SelectionRequest", (long) 30, 0, 0, 0},
2975 { SWIG_PY_INT, (char *)"SelectionNotify", (long) 31, 0, 0, 0},
2976 { SWIG_PY_INT, (char *)"ColormapNotify", (long) 32, 0, 0, 0},
2977 { SWIG_PY_INT, (char *)"ClientMessage", (long) 33, 0, 0, 0},
2978 { SWIG_PY_INT, (char *)"MappingNotify", (long) 34, 0, 0, 0},
2979 { SWIG_PY_INT, (char *)"LASTEvent", (long) 35, 0, 0, 0},
2980 { SWIG_PY_INT, (char *)"ShiftMask", (long) (1<<0), 0, 0, 0},
2981 { SWIG_PY_INT, (char *)"LockMask", (long) (1<<1), 0, 0, 0},
2982 { SWIG_PY_INT, (char *)"ControlMask", (long) (1<<2), 0, 0, 0},
2983 { SWIG_PY_INT, (char *)"Mod1Mask", (long) (1<<3), 0, 0, 0},
2984 { SWIG_PY_INT, (char *)"Mod2Mask", (long) (1<<4), 0, 0, 0},
2985 { SWIG_PY_INT, (char *)"Mod3Mask", (long) (1<<5), 0, 0, 0},
2986 { SWIG_PY_INT, (char *)"Mod4Mask", (long) (1<<6), 0, 0, 0},
2987 { SWIG_PY_INT, (char *)"Mod5Mask", (long) (1<<7), 0, 0, 0},
2988 { SWIG_PY_INT, (char *)"ShiftMapIndex", (long) 0, 0, 0, 0},
2989 { SWIG_PY_INT, (char *)"LockMapIndex", (long) 1, 0, 0, 0},
2990 { SWIG_PY_INT, (char *)"ControlMapIndex", (long) 2, 0, 0, 0},
2991 { SWIG_PY_INT, (char *)"Mod1MapIndex", (long) 3, 0, 0, 0},
2992 { SWIG_PY_INT, (char *)"Mod2MapIndex", (long) 4, 0, 0, 0},
2993 { SWIG_PY_INT, (char *)"Mod3MapIndex", (long) 5, 0, 0, 0},
2994 { SWIG_PY_INT, (char *)"Mod4MapIndex", (long) 6, 0, 0, 0},
2995 { SWIG_PY_INT, (char *)"Mod5MapIndex", (long) 7, 0, 0, 0},
2996 { SWIG_PY_INT, (char *)"Button1Mask", (long) (1<<8), 0, 0, 0},
2997 { SWIG_PY_INT, (char *)"Button2Mask", (long) (1<<9), 0, 0, 0},
2998 { SWIG_PY_INT, (char *)"Button3Mask", (long) (1<<10), 0, 0, 0},
2999 { SWIG_PY_INT, (char *)"Button4Mask", (long) (1<<11), 0, 0, 0},
3000 { SWIG_PY_INT, (char *)"Button5Mask", (long) (1<<12), 0, 0, 0},
3001 { SWIG_PY_INT, (char *)"AnyModifier", (long) (1<<15), 0, 0, 0},
3002 { SWIG_PY_INT, (char *)"Button1", (long) 1, 0, 0, 0},
3003 { SWIG_PY_INT, (char *)"Button2", (long) 2, 0, 0, 0},
3004 { SWIG_PY_INT, (char *)"Button3", (long) 3, 0, 0, 0},
3005 { SWIG_PY_INT, (char *)"Button4", (long) 4, 0, 0, 0},
3006 { SWIG_PY_INT, (char *)"Button5", (long) 5, 0, 0, 0},
3007 { SWIG_PY_INT, (char *)"NotifyNormal", (long) 0, 0, 0, 0},
3008 { SWIG_PY_INT, (char *)"NotifyGrab", (long) 1, 0, 0, 0},
3009 { SWIG_PY_INT, (char *)"NotifyUngrab", (long) 2, 0, 0, 0},
3010 { SWIG_PY_INT, (char *)"NotifyWhileGrabbed", (long) 3, 0, 0, 0},
3011 { SWIG_PY_INT, (char *)"NotifyHint", (long) 1, 0, 0, 0},
3012 { SWIG_PY_INT, (char *)"NotifyAncestor", (long) 0, 0, 0, 0},
3013 { SWIG_PY_INT, (char *)"NotifyVirtual", (long) 1, 0, 0, 0},
3014 { SWIG_PY_INT, (char *)"NotifyInferior", (long) 2, 0, 0, 0},
3015 { SWIG_PY_INT, (char *)"NotifyNonlinear", (long) 3, 0, 0, 0},
3016 { SWIG_PY_INT, (char *)"NotifyNonlinearVirtual", (long) 4, 0, 0, 0},
3017 { SWIG_PY_INT, (char *)"NotifyPointer", (long) 5, 0, 0, 0},
3018 { SWIG_PY_INT, (char *)"NotifyPointerRoot", (long) 6, 0, 0, 0},
3019 { SWIG_PY_INT, (char *)"NotifyDetailNone", (long) 7, 0, 0, 0},
3020 { SWIG_PY_INT, (char *)"VisibilityUnobscured", (long) 0, 0, 0, 0},
3021 { SWIG_PY_INT, (char *)"VisibilityPartiallyObscured", (long) 1, 0, 0, 0},
3022 { SWIG_PY_INT, (char *)"VisibilityFullyObscured", (long) 2, 0, 0, 0},
3023 { SWIG_PY_INT, (char *)"PlaceOnTop", (long) 0, 0, 0, 0},
3024 { SWIG_PY_INT, (char *)"PlaceOnBottom", (long) 1, 0, 0, 0},
3025 { SWIG_PY_INT, (char *)"FamilyInternet", (long) 0, 0, 0, 0},
3026 { SWIG_PY_INT, (char *)"FamilyDECnet", (long) 1, 0, 0, 0},
3027 { SWIG_PY_INT, (char *)"FamilyChaos", (long) 2, 0, 0, 0},
3028 { SWIG_PY_INT, (char *)"PropertyNewValue", (long) 0, 0, 0, 0},
3029 { SWIG_PY_INT, (char *)"PropertyDelete", (long) 1, 0, 0, 0},
3030 { SWIG_PY_INT, (char *)"ColormapUninstalled", (long) 0, 0, 0, 0},
3031 { SWIG_PY_INT, (char *)"ColormapInstalled", (long) 1, 0, 0, 0},
3032 { SWIG_PY_INT, (char *)"GrabModeSync", (long) 0, 0, 0, 0},
3033 { SWIG_PY_INT, (char *)"GrabModeAsync", (long) 1, 0, 0, 0},
3034 { SWIG_PY_INT, (char *)"GrabSuccess", (long) 0, 0, 0, 0},
3035 { SWIG_PY_INT, (char *)"AlreadyGrabbed", (long) 1, 0, 0, 0},
3036 { SWIG_PY_INT, (char *)"GrabInvalidTime", (long) 2, 0, 0, 0},
3037 { SWIG_PY_INT, (char *)"GrabNotViewable", (long) 3, 0, 0, 0},
3038 { SWIG_PY_INT, (char *)"GrabFrozen", (long) 4, 0, 0, 0},
3039 { SWIG_PY_INT, (char *)"AsyncPointer", (long) 0, 0, 0, 0},
3040 { SWIG_PY_INT, (char *)"SyncPointer", (long) 1, 0, 0, 0},
3041 { SWIG_PY_INT, (char *)"ReplayPointer", (long) 2, 0, 0, 0},
3042 { SWIG_PY_INT, (char *)"AsyncKeyboard", (long) 3, 0, 0, 0},
3043 { SWIG_PY_INT, (char *)"SyncKeyboard", (long) 4, 0, 0, 0},
3044 { SWIG_PY_INT, (char *)"ReplayKeyboard", (long) 5, 0, 0, 0},
3045 { SWIG_PY_INT, (char *)"AsyncBoth", (long) 6, 0, 0, 0},
3046 { SWIG_PY_INT, (char *)"SyncBoth", (long) 7, 0, 0, 0},
3047 { SWIG_PY_INT, (char *)"RevertToParent", (long) 2, 0, 0, 0},
3048 { SWIG_PY_INT, (char *)"Success", (long) 0, 0, 0, 0},
3049 { SWIG_PY_INT, (char *)"BadRequest", (long) 1, 0, 0, 0},
3050 { SWIG_PY_INT, (char *)"BadValue", (long) 2, 0, 0, 0},
3051 { SWIG_PY_INT, (char *)"BadWindow", (long) 3, 0, 0, 0},
3052 { SWIG_PY_INT, (char *)"BadPixmap", (long) 4, 0, 0, 0},
3053 { SWIG_PY_INT, (char *)"BadAtom", (long) 5, 0, 0, 0},
3054 { SWIG_PY_INT, (char *)"BadCursor", (long) 6, 0, 0, 0},
3055 { SWIG_PY_INT, (char *)"BadFont", (long) 7, 0, 0, 0},
3056 { SWIG_PY_INT, (char *)"BadMatch", (long) 8, 0, 0, 0},
3057 { SWIG_PY_INT, (char *)"BadDrawable", (long) 9, 0, 0, 0},
3058 { SWIG_PY_INT, (char *)"BadAccess", (long) 10, 0, 0, 0},
3059 { SWIG_PY_INT, (char *)"BadAlloc", (long) 11, 0, 0, 0},
3060 { SWIG_PY_INT, (char *)"BadColor", (long) 12, 0, 0, 0},
3061 { SWIG_PY_INT, (char *)"BadGC", (long) 13, 0, 0, 0},
3062 { SWIG_PY_INT, (char *)"BadIDChoice", (long) 14, 0, 0, 0},
3063 { SWIG_PY_INT, (char *)"BadName", (long) 15, 0, 0, 0},
3064 { SWIG_PY_INT, (char *)"BadLength", (long) 16, 0, 0, 0},
3065 { SWIG_PY_INT, (char *)"BadImplementation", (long) 17, 0, 0, 0},
3066 { SWIG_PY_INT, (char *)"FirstExtensionError", (long) 128, 0, 0, 0},
3067 { SWIG_PY_INT, (char *)"LastExtensionError", (long) 255, 0, 0, 0},
3068 { SWIG_PY_INT, (char *)"InputOutput", (long) 1, 0, 0, 0},
3069 { SWIG_PY_INT, (char *)"InputOnly", (long) 2, 0, 0, 0},
3070 { SWIG_PY_INT, (char *)"CWBackPixmap", (long) (1L<<0), 0, 0, 0},
3071 { SWIG_PY_INT, (char *)"CWBackPixel", (long) (1L<<1), 0, 0, 0},
3072 { SWIG_PY_INT, (char *)"CWBorderPixmap", (long) (1L<<2), 0, 0, 0},
3073 { SWIG_PY_INT, (char *)"CWBorderPixel", (long) (1L<<3), 0, 0, 0},
3074 { SWIG_PY_INT, (char *)"CWBitGravity", (long) (1L<<4), 0, 0, 0},
3075 { SWIG_PY_INT, (char *)"CWWinGravity", (long) (1L<<5), 0, 0, 0},
3076 { SWIG_PY_INT, (char *)"CWBackingStore", (long) (1L<<6), 0, 0, 0},
3077 { SWIG_PY_INT, (char *)"CWBackingPlanes", (long) (1L<<7), 0, 0, 0},
3078 { SWIG_PY_INT, (char *)"CWBackingPixel", (long) (1L<<8), 0, 0, 0},
3079 { SWIG_PY_INT, (char *)"CWOverrideRedirect", (long) (1L<<9), 0, 0, 0},
3080 { SWIG_PY_INT, (char *)"CWSaveUnder", (long) (1L<<10), 0, 0, 0},
3081 { SWIG_PY_INT, (char *)"CWEventMask", (long) (1L<<11), 0, 0, 0},
3082 { SWIG_PY_INT, (char *)"CWDontPropagate", (long) (1L<<12), 0, 0, 0},
3083 { SWIG_PY_INT, (char *)"CWColormap", (long) (1L<<13), 0, 0, 0},
3084 { SWIG_PY_INT, (char *)"CWCursor", (long) (1L<<14), 0, 0, 0},
3085 { SWIG_PY_INT, (char *)"CWX", (long) (1<<0), 0, 0, 0},
3086 { SWIG_PY_INT, (char *)"CWY", (long) (1<<1), 0, 0, 0},
3087 { SWIG_PY_INT, (char *)"CWWidth", (long) (1<<2), 0, 0, 0},
3088 { SWIG_PY_INT, (char *)"CWHeight", (long) (1<<3), 0, 0, 0},
3089 { SWIG_PY_INT, (char *)"CWBorderWidth", (long) (1<<4), 0, 0, 0},
3090 { SWIG_PY_INT, (char *)"CWSibling", (long) (1<<5), 0, 0, 0},
3091 { SWIG_PY_INT, (char *)"CWStackMode", (long) (1<<6), 0, 0, 0},
3092 { SWIG_PY_INT, (char *)"ForgetGravity", (long) 0, 0, 0, 0},
3093 { SWIG_PY_INT, (char *)"NorthWestGravity", (long) 1, 0, 0, 0},
3094 { SWIG_PY_INT, (char *)"NorthGravity", (long) 2, 0, 0, 0},
3095 { SWIG_PY_INT, (char *)"NorthEastGravity", (long) 3, 0, 0, 0},
3096 { SWIG_PY_INT, (char *)"WestGravity", (long) 4, 0, 0, 0},
3097 { SWIG_PY_INT, (char *)"CenterGravity", (long) 5, 0, 0, 0},
3098 { SWIG_PY_INT, (char *)"EastGravity", (long) 6, 0, 0, 0},
3099 { SWIG_PY_INT, (char *)"SouthWestGravity", (long) 7, 0, 0, 0},
3100 { SWIG_PY_INT, (char *)"SouthGravity", (long) 8, 0, 0, 0},
3101 { SWIG_PY_INT, (char *)"SouthEastGravity", (long) 9, 0, 0, 0},
3102 { SWIG_PY_INT, (char *)"StaticGravity", (long) 10, 0, 0, 0},
3103 { SWIG_PY_INT, (char *)"UnmapGravity", (long) 0, 0, 0, 0},
3104 { SWIG_PY_INT, (char *)"NotUseful", (long) 0, 0, 0, 0},
3105 { SWIG_PY_INT, (char *)"WhenMapped", (long) 1, 0, 0, 0},
3106 { SWIG_PY_INT, (char *)"Always", (long) 2, 0, 0, 0},
3107 { SWIG_PY_INT, (char *)"IsUnmapped", (long) 0, 0, 0, 0},
3108 { SWIG_PY_INT, (char *)"IsUnviewable", (long) 1, 0, 0, 0},
3109 { SWIG_PY_INT, (char *)"IsViewable", (long) 2, 0, 0, 0},
3110 { SWIG_PY_INT, (char *)"SetModeInsert", (long) 0, 0, 0, 0},
3111 { SWIG_PY_INT, (char *)"SetModeDelete", (long) 1, 0, 0, 0},
3112 { SWIG_PY_INT, (char *)"DestroyAll", (long) 0, 0, 0, 0},
3113 { SWIG_PY_INT, (char *)"RetainPermanent", (long) 1, 0, 0, 0},
3114 { SWIG_PY_INT, (char *)"RetainTemporary", (long) 2, 0, 0, 0},
3115 { SWIG_PY_INT, (char *)"Above", (long) 0, 0, 0, 0},
3116 { SWIG_PY_INT, (char *)"Below", (long) 1, 0, 0, 0},
3117 { SWIG_PY_INT, (char *)"TopIf", (long) 2, 0, 0, 0},
3118 { SWIG_PY_INT, (char *)"BottomIf", (long) 3, 0, 0, 0},
3119 { SWIG_PY_INT, (char *)"Opposite", (long) 4, 0, 0, 0},
3120 { SWIG_PY_INT, (char *)"RaiseLowest", (long) 0, 0, 0, 0},
3121 { SWIG_PY_INT, (char *)"LowerHighest", (long) 1, 0, 0, 0},
3122 { SWIG_PY_INT, (char *)"PropModeReplace", (long) 0, 0, 0, 0},
3123 { SWIG_PY_INT, (char *)"PropModePrepend", (long) 1, 0, 0, 0},
3124 { SWIG_PY_INT, (char *)"PropModeAppend", (long) 2, 0, 0, 0},
3125 { SWIG_PY_INT, (char *)"GXclear", (long) 0x0, 0, 0, 0},
3126 { SWIG_PY_INT, (char *)"GXand", (long) 0x1, 0, 0, 0},
3127 { SWIG_PY_INT, (char *)"GXandReverse", (long) 0x2, 0, 0, 0},
3128 { SWIG_PY_INT, (char *)"GXcopy", (long) 0x3, 0, 0, 0},
3129 { SWIG_PY_INT, (char *)"GXandInverted", (long) 0x4, 0, 0, 0},
3130 { SWIG_PY_INT, (char *)"GXnoop", (long) 0x5, 0, 0, 0},
3131 { SWIG_PY_INT, (char *)"GXxor", (long) 0x6, 0, 0, 0},
3132 { SWIG_PY_INT, (char *)"GXor", (long) 0x7, 0, 0, 0},
3133 { SWIG_PY_INT, (char *)"GXnor", (long) 0x8, 0, 0, 0},
3134 { SWIG_PY_INT, (char *)"GXequiv", (long) 0x9, 0, 0, 0},
3135 { SWIG_PY_INT, (char *)"GXinvert", (long) 0xa, 0, 0, 0},
3136 { SWIG_PY_INT, (char *)"GXorReverse", (long) 0xb, 0, 0, 0},
3137 { SWIG_PY_INT, (char *)"GXcopyInverted", (long) 0xc, 0, 0, 0},
3138 { SWIG_PY_INT, (char *)"GXorInverted", (long) 0xd, 0, 0, 0},
3139 { SWIG_PY_INT, (char *)"GXnand", (long) 0xe, 0, 0, 0},
3140 { SWIG_PY_INT, (char *)"GXset", (long) 0xf, 0, 0, 0},
3141 { SWIG_PY_INT, (char *)"LineSolid", (long) 0, 0, 0, 0},
3142 { SWIG_PY_INT, (char *)"LineOnOffDash", (long) 1, 0, 0, 0},
3143 { SWIG_PY_INT, (char *)"LineDoubleDash", (long) 2, 0, 0, 0},
3144 { SWIG_PY_INT, (char *)"CapNotLast", (long) 0, 0, 0, 0},
3145 { SWIG_PY_INT, (char *)"CapButt", (long) 1, 0, 0, 0},
3146 { SWIG_PY_INT, (char *)"CapRound", (long) 2, 0, 0, 0},
3147 { SWIG_PY_INT, (char *)"CapProjecting", (long) 3, 0, 0, 0},
3148 { SWIG_PY_INT, (char *)"JoinMiter", (long) 0, 0, 0, 0},
3149 { SWIG_PY_INT, (char *)"JoinRound", (long) 1, 0, 0, 0},
3150 { SWIG_PY_INT, (char *)"JoinBevel", (long) 2, 0, 0, 0},
3151 { SWIG_PY_INT, (char *)"FillSolid", (long) 0, 0, 0, 0},
3152 { SWIG_PY_INT, (char *)"FillTiled", (long) 1, 0, 0, 0},
3153 { SWIG_PY_INT, (char *)"FillStippled", (long) 2, 0, 0, 0},
3154 { SWIG_PY_INT, (char *)"FillOpaqueStippled", (long) 3, 0, 0, 0},
3155 { SWIG_PY_INT, (char *)"EvenOddRule", (long) 0, 0, 0, 0},
3156 { SWIG_PY_INT, (char *)"WindingRule", (long) 1, 0, 0, 0},
3157 { SWIG_PY_INT, (char *)"ClipByChildren", (long) 0, 0, 0, 0},
3158 { SWIG_PY_INT, (char *)"IncludeInferiors", (long) 1, 0, 0, 0},
3159 { SWIG_PY_INT, (char *)"Unsorted", (long) 0, 0, 0, 0},
3160 { SWIG_PY_INT, (char *)"YSorted", (long) 1, 0, 0, 0},
3161 { SWIG_PY_INT, (char *)"YXSorted", (long) 2, 0, 0, 0},
3162 { SWIG_PY_INT, (char *)"YXBanded", (long) 3, 0, 0, 0},
3163 { SWIG_PY_INT, (char *)"CoordModeOrigin", (long) 0, 0, 0, 0},
3164 { SWIG_PY_INT, (char *)"CoordModePrevious", (long) 1, 0, 0, 0},
3165 { SWIG_PY_INT, (char *)"Complex", (long) 0, 0, 0, 0},
3166 { SWIG_PY_INT, (char *)"Nonconvex", (long) 1, 0, 0, 0},
3167 { SWIG_PY_INT, (char *)"Convex", (long) 2, 0, 0, 0},
3168 { SWIG_PY_INT, (char *)"ArcChord", (long) 0, 0, 0, 0},
3169 { SWIG_PY_INT, (char *)"ArcPieSlice", (long) 1, 0, 0, 0},
3170 { SWIG_PY_INT, (char *)"GCFunction", (long) (1L<<0), 0, 0, 0},
3171 { SWIG_PY_INT, (char *)"GCPlaneMask", (long) (1L<<1), 0, 0, 0},
3172 { SWIG_PY_INT, (char *)"GCForeground", (long) (1L<<2), 0, 0, 0},
3173 { SWIG_PY_INT, (char *)"GCBackground", (long) (1L<<3), 0, 0, 0},
3174 { SWIG_PY_INT, (char *)"GCLineWidth", (long) (1L<<4), 0, 0, 0},
3175 { SWIG_PY_INT, (char *)"GCLineStyle", (long) (1L<<5), 0, 0, 0},
3176 { SWIG_PY_INT, (char *)"GCCapStyle", (long) (1L<<6), 0, 0, 0},
3177 { SWIG_PY_INT, (char *)"GCJoinStyle", (long) (1L<<7), 0, 0, 0},
3178 { SWIG_PY_INT, (char *)"GCFillStyle", (long) (1L<<8), 0, 0, 0},
3179 { SWIG_PY_INT, (char *)"GCFillRule", (long) (1L<<9), 0, 0, 0},
3180 { SWIG_PY_INT, (char *)"GCTile", (long) (1L<<10), 0, 0, 0},
3181 { SWIG_PY_INT, (char *)"GCStipple", (long) (1L<<11), 0, 0, 0},
3182 { SWIG_PY_INT, (char *)"GCTileStipXOrigin", (long) (1L<<12), 0, 0, 0},
3183 { SWIG_PY_INT, (char *)"GCTileStipYOrigin", (long) (1L<<13), 0, 0, 0},
3184 { SWIG_PY_INT, (char *)"GCFont", (long) (1L<<14), 0, 0, 0},
3185 { SWIG_PY_INT, (char *)"GCSubwindowMode", (long) (1L<<15), 0, 0, 0},
3186 { SWIG_PY_INT, (char *)"GCGraphicsExposures", (long) (1L<<16), 0, 0, 0},
3187 { SWIG_PY_INT, (char *)"GCClipXOrigin", (long) (1L<<17), 0, 0, 0},
3188 { SWIG_PY_INT, (char *)"GCClipYOrigin", (long) (1L<<18), 0, 0, 0},
3189 { SWIG_PY_INT, (char *)"GCClipMask", (long) (1L<<19), 0, 0, 0},
3190 { SWIG_PY_INT, (char *)"GCDashOffset", (long) (1L<<20), 0, 0, 0},
3191 { SWIG_PY_INT, (char *)"GCDashList", (long) (1L<<21), 0, 0, 0},
3192 { SWIG_PY_INT, (char *)"GCArcMode", (long) (1L<<22), 0, 0, 0},
3193 { SWIG_PY_INT, (char *)"GCLastBit", (long) 22, 0, 0, 0},
3194 { SWIG_PY_INT, (char *)"FontLeftToRight", (long) 0, 0, 0, 0},
3195 { SWIG_PY_INT, (char *)"FontRightToLeft", (long) 1, 0, 0, 0},
3196 { SWIG_PY_INT, (char *)"FontChange", (long) 255, 0, 0, 0},
3197 { SWIG_PY_INT, (char *)"XYBitmap", (long) 0, 0, 0, 0},
3198 { SWIG_PY_INT, (char *)"XYPixmap", (long) 1, 0, 0, 0},
3199 { SWIG_PY_INT, (char *)"ZPixmap", (long) 2, 0, 0, 0},
3200 { SWIG_PY_INT, (char *)"AllocNone", (long) 0, 0, 0, 0},
3201 { SWIG_PY_INT, (char *)"AllocAll", (long) 1, 0, 0, 0},
3202 { SWIG_PY_INT, (char *)"DoRed", (long) (1<<0), 0, 0, 0},
3203 { SWIG_PY_INT, (char *)"DoGreen", (long) (1<<1), 0, 0, 0},
3204 { SWIG_PY_INT, (char *)"DoBlue", (long) (1<<2), 0, 0, 0},
3205 { SWIG_PY_INT, (char *)"CursorShape", (long) 0, 0, 0, 0},
3206 { SWIG_PY_INT, (char *)"TileShape", (long) 1, 0, 0, 0},
3207 { SWIG_PY_INT, (char *)"StippleShape", (long) 2, 0, 0, 0},
3208 { SWIG_PY_INT, (char *)"AutoRepeatModeOff", (long) 0, 0, 0, 0},
3209 { SWIG_PY_INT, (char *)"AutoRepeatModeOn", (long) 1, 0, 0, 0},
3210 { SWIG_PY_INT, (char *)"AutoRepeatModeDefault", (long) 2, 0, 0, 0},
3211 { SWIG_PY_INT, (char *)"LedModeOff", (long) 0, 0, 0, 0},
3212 { SWIG_PY_INT, (char *)"LedModeOn", (long) 1, 0, 0, 0},
3213 { SWIG_PY_INT, (char *)"KBKeyClickPercent", (long) (1L<<0), 0, 0, 0},
3214 { SWIG_PY_INT, (char *)"KBBellPercent", (long) (1L<<1), 0, 0, 0},
3215 { SWIG_PY_INT, (char *)"KBBellPitch", (long) (1L<<2), 0, 0, 0},
3216 { SWIG_PY_INT, (char *)"KBBellDuration", (long) (1L<<3), 0, 0, 0},
3217 { SWIG_PY_INT, (char *)"KBLed", (long) (1L<<4), 0, 0, 0},
3218 { SWIG_PY_INT, (char *)"KBLedMode", (long) (1L<<5), 0, 0, 0},
3219 { SWIG_PY_INT, (char *)"KBKey", (long) (1L<<6), 0, 0, 0},
3220 { SWIG_PY_INT, (char *)"KBAutoRepeatMode", (long) (1L<<7), 0, 0, 0},
3221 { SWIG_PY_INT, (char *)"MappingSuccess", (long) 0, 0, 0, 0},
3222 { SWIG_PY_INT, (char *)"MappingBusy", (long) 1, 0, 0, 0},
3223 { SWIG_PY_INT, (char *)"MappingFailed", (long) 2, 0, 0, 0},
3224 { SWIG_PY_INT, (char *)"MappingModifier", (long) 0, 0, 0, 0},
3225 { SWIG_PY_INT, (char *)"MappingKeyboard", (long) 1, 0, 0, 0},
3226 { SWIG_PY_INT, (char *)"MappingPointer", (long) 2, 0, 0, 0},
3227 { SWIG_PY_INT, (char *)"DontPreferBlanking", (long) 0, 0, 0, 0},
3228 { SWIG_PY_INT, (char *)"PreferBlanking", (long) 1, 0, 0, 0},
3229 { SWIG_PY_INT, (char *)"DefaultBlanking", (long) 2, 0, 0, 0},
3230 { SWIG_PY_INT, (char *)"DisableScreenSaver", (long) 0, 0, 0, 0},
3231 { SWIG_PY_INT, (char *)"DisableScreenInterval", (long) 0, 0, 0, 0},
3232 { SWIG_PY_INT, (char *)"DontAllowExposures", (long) 0, 0, 0, 0},
3233 { SWIG_PY_INT, (char *)"AllowExposures", (long) 1, 0, 0, 0},
3234 { SWIG_PY_INT, (char *)"DefaultExposures", (long) 2, 0, 0, 0},
3235 { SWIG_PY_INT, (char *)"ScreenSaverReset", (long) 0, 0, 0, 0},
3236 { SWIG_PY_INT, (char *)"ScreenSaverActive", (long) 1, 0, 0, 0},
3237 { SWIG_PY_INT, (char *)"HostInsert", (long) 0, 0, 0, 0},
3238 { SWIG_PY_INT, (char *)"HostDelete", (long) 1, 0, 0, 0},
3239 { SWIG_PY_INT, (char *)"EnableAccess", (long) 1, 0, 0, 0},
3240 { SWIG_PY_INT, (char *)"DisableAccess", (long) 0, 0, 0, 0},
3241 { SWIG_PY_INT, (char *)"StaticGray", (long) 0, 0, 0, 0},
3242 { SWIG_PY_INT, (char *)"GrayScale", (long) 1, 0, 0, 0},
3243 { SWIG_PY_INT, (char *)"StaticColor", (long) 2, 0, 0, 0},
3244 { SWIG_PY_INT, (char *)"PseudoColor", (long) 3, 0, 0, 0},
3245 { SWIG_PY_INT, (char *)"TrueColor", (long) 4, 0, 0, 0},
3246 { SWIG_PY_INT, (char *)"DirectColor", (long) 5, 0, 0, 0},
3247 { SWIG_PY_INT, (char *)"LSBFirst", (long) 0, 0, 0, 0},
3248 { SWIG_PY_INT, (char *)"MSBFirst", (long) 1, 0, 0, 0},
3249 {0}};
3250
3251 #ifdef __cplusplus
3252 }
3253 #endif
3254
3255 #ifdef __cplusplus
3256 extern "C"
3257 #endif
3258 SWIGEXPORT(void) SWIG_init(void) {
3259 static PyObject *SWIG_globals = 0;
3260 static int typeinit = 0;
3261 PyObject *m, *d;
3262 int i;
3263 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
3264 m = Py_InitModule((char *) SWIG_name, SwigMethods);
3265 d = PyModule_GetDict(m);
3266
3267 if (!typeinit) {
3268 for (i = 0; swig_types_initial[i]; i++) {
3269 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
3270 }
3271 typeinit = 1;
3272 }
3273 SWIG_InstallConstants(d,swig_const_table);
3274
3275 }
3276
This page took 0.227517 seconds and 4 git commands to generate.