]> Dogcows Code - chaz/openbox/blob - src/openbox_wrap.cc
new mouse button code is seeming to work. you can move windows
[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_XShapeEvent swig_types[10]
659 #define SWIGTYPE_p_XConfigureRequestEvent swig_types[11]
660 #define SWIGTYPE_p_otk__OtkEventHandler swig_types[12]
661 #define SWIGTYPE_p_otk__Rect swig_types[13]
662 #define SWIGTYPE_p_ob__OBWidget swig_types[14]
663 #define SWIGTYPE_p_XFocusChangeEvent swig_types[15]
664 #define SWIGTYPE_p_XClientMessageEvent swig_types[16]
665 #define SWIGTYPE_p_otk__OBProperty swig_types[17]
666 #define SWIGTYPE_p_otk__OtkEventDispatcher swig_types[18]
667 #define SWIGTYPE_p_XPropertyEvent swig_types[19]
668 #define SWIGTYPE_p_XDestroyWindowEvent swig_types[20]
669 #define SWIGTYPE_p_otk__BImageControl swig_types[21]
670 #define SWIGTYPE_p_PyObject swig_types[22]
671 #define SWIGTYPE_p_ob__OBBindings swig_types[23]
672 #define SWIGTYPE_p_ob__MwmHints swig_types[24]
673 #define SWIGTYPE_p_XUnmapEvent swig_types[25]
674 static swig_type_info *swig_types[27];
675
676 /* -------- TYPES TABLE (END) -------- */
677
678
679 /*-----------------------------------------------
680 @(target):= _openbox.so
681 ------------------------------------------------*/
682 #define SWIG_init init_openbox
683
684 #define SWIG_name "_openbox"
685
686 #ifdef HAVE_CONFIG_H
687 # include "../config.h"
688 #endif
689
690 #include "openbox.hh"
691 #include "screen.hh"
692 #include "client.hh"
693 #include "bindings.hh"
694 #include "actions.hh"
695
696
697 #define SWIG_MemoryError 1
698 #define SWIG_IOError 2
699 #define SWIG_RuntimeError 3
700 #define SWIG_IndexError 4
701 #define SWIG_TypeError 5
702 #define SWIG_DivisionByZero 6
703 #define SWIG_OverflowError 7
704 #define SWIG_SyntaxError 8
705 #define SWIG_ValueError 9
706 #define SWIG_SystemError 10
707 #define SWIG_UnknownError 99
708
709
710 static void _SWIG_exception(int code, const char *msg) {
711 switch(code) {
712 case SWIG_MemoryError:
713 PyErr_SetString(PyExc_MemoryError,msg);
714 break;
715 case SWIG_IOError:
716 PyErr_SetString(PyExc_IOError,msg);
717 break;
718 case SWIG_RuntimeError:
719 PyErr_SetString(PyExc_RuntimeError,msg);
720 break;
721 case SWIG_IndexError:
722 PyErr_SetString(PyExc_IndexError,msg);
723 break;
724 case SWIG_TypeError:
725 PyErr_SetString(PyExc_TypeError,msg);
726 break;
727 case SWIG_DivisionByZero:
728 PyErr_SetString(PyExc_ZeroDivisionError,msg);
729 break;
730 case SWIG_OverflowError:
731 PyErr_SetString(PyExc_OverflowError,msg);
732 break;
733 case SWIG_SyntaxError:
734 PyErr_SetString(PyExc_SyntaxError,msg);
735 break;
736 case SWIG_ValueError:
737 PyErr_SetString(PyExc_ValueError,msg);
738 break;
739 case SWIG_SystemError:
740 PyErr_SetString(PyExc_SystemError,msg);
741 break;
742 default:
743 PyErr_SetString(PyExc_RuntimeError,msg);
744 break;
745 }
746 }
747
748 #define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
749
750
751 #include <string>
752
753
754 #include <string>
755
756 static PyObject* SwigInt_FromBool(bool b) {
757 return PyInt_FromLong(b ? 1L : 0L);
758 }
759 static double SwigNumber_Check(PyObject* o) {
760 return PyFloat_Check(o) || PyInt_Check(o);
761 }
762 static double SwigNumber_AsDouble(PyObject* o) {
763 return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o)));
764 }
765 static PyObject* SwigString_FromString(const std::string& s) {
766 return PyString_FromString(s.c_str());
767 }
768 static std::string SwigString_AsString(PyObject* o) {
769 return std::string(PyString_AsString(o));
770 }
771
772
773 #include <vector>
774 #include <algorithm>
775 #include <stdexcept>
776
777
778 ob::Openbox *Openbox_instance() { return ob::Openbox::instance; }
779
780
781 #include <iterator>
782
783 ob::OBClient *ob_OBScreen_client(ob::OBScreen *self,int i){
784 if (i >= (int)self->clients.size())
785 return NULL;
786 ob::OBScreen::ClientList::iterator it = self->clients.begin();
787 std::advance(it,i);
788 return *it;
789 }
790 int ob_OBScreen_clientCount(ob::OBScreen const *self){
791 return (int) self->clients.size();
792 }
793 #ifdef __cplusplus
794 extern "C" {
795 #endif
796 static PyObject *_wrap_Openbox_instance(PyObject *self, PyObject *args) {
797 PyObject *resultobj;
798 ob::Openbox *result;
799
800 if(!PyArg_ParseTuple(args,(char *)":Openbox_instance")) goto fail;
801 result = (ob::Openbox *)Openbox_instance();
802
803 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Openbox, 0);
804 return resultobj;
805 fail:
806 return NULL;
807 }
808
809
810 static PyObject *_wrap_Cursors_session_set(PyObject *self, PyObject *args) {
811 PyObject *resultobj;
812 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
813 Cursor arg2 ;
814 PyObject * obj0 = 0 ;
815 PyObject * obj1 = 0 ;
816
817 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_session_set",&obj0,&obj1)) goto fail;
818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
819 arg2 = (Cursor) PyInt_AsLong(obj1);
820 if (PyErr_Occurred()) SWIG_fail;
821 if (arg1) (arg1)->session = arg2;
822
823 Py_INCREF(Py_None); resultobj = Py_None;
824 return resultobj;
825 fail:
826 return NULL;
827 }
828
829
830 static PyObject *_wrap_Cursors_session_get(PyObject *self, PyObject *args) {
831 PyObject *resultobj;
832 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
833 Cursor result;
834 PyObject * obj0 = 0 ;
835
836 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_session_get",&obj0)) goto fail;
837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
838 result = (Cursor) ((arg1)->session);
839
840 resultobj = PyInt_FromLong((long)result);
841 return resultobj;
842 fail:
843 return NULL;
844 }
845
846
847 static PyObject *_wrap_Cursors_move_set(PyObject *self, PyObject *args) {
848 PyObject *resultobj;
849 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
850 Cursor arg2 ;
851 PyObject * obj0 = 0 ;
852 PyObject * obj1 = 0 ;
853
854 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_move_set",&obj0,&obj1)) goto fail;
855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
856 arg2 = (Cursor) PyInt_AsLong(obj1);
857 if (PyErr_Occurred()) SWIG_fail;
858 if (arg1) (arg1)->move = arg2;
859
860 Py_INCREF(Py_None); resultobj = Py_None;
861 return resultobj;
862 fail:
863 return NULL;
864 }
865
866
867 static PyObject *_wrap_Cursors_move_get(PyObject *self, PyObject *args) {
868 PyObject *resultobj;
869 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
870 Cursor result;
871 PyObject * obj0 = 0 ;
872
873 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_move_get",&obj0)) goto fail;
874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
875 result = (Cursor) ((arg1)->move);
876
877 resultobj = PyInt_FromLong((long)result);
878 return resultobj;
879 fail:
880 return NULL;
881 }
882
883
884 static PyObject *_wrap_Cursors_ll_angle_set(PyObject *self, PyObject *args) {
885 PyObject *resultobj;
886 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
887 Cursor arg2 ;
888 PyObject * obj0 = 0 ;
889 PyObject * obj1 = 0 ;
890
891 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ll_angle_set",&obj0,&obj1)) goto fail;
892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
893 arg2 = (Cursor) PyInt_AsLong(obj1);
894 if (PyErr_Occurred()) SWIG_fail;
895 if (arg1) (arg1)->ll_angle = arg2;
896
897 Py_INCREF(Py_None); resultobj = Py_None;
898 return resultobj;
899 fail:
900 return NULL;
901 }
902
903
904 static PyObject *_wrap_Cursors_ll_angle_get(PyObject *self, PyObject *args) {
905 PyObject *resultobj;
906 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
907 Cursor result;
908 PyObject * obj0 = 0 ;
909
910 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ll_angle_get",&obj0)) goto fail;
911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
912 result = (Cursor) ((arg1)->ll_angle);
913
914 resultobj = PyInt_FromLong((long)result);
915 return resultobj;
916 fail:
917 return NULL;
918 }
919
920
921 static PyObject *_wrap_Cursors_lr_angle_set(PyObject *self, PyObject *args) {
922 PyObject *resultobj;
923 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
924 Cursor arg2 ;
925 PyObject * obj0 = 0 ;
926 PyObject * obj1 = 0 ;
927
928 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_lr_angle_set",&obj0,&obj1)) goto fail;
929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
930 arg2 = (Cursor) PyInt_AsLong(obj1);
931 if (PyErr_Occurred()) SWIG_fail;
932 if (arg1) (arg1)->lr_angle = arg2;
933
934 Py_INCREF(Py_None); resultobj = Py_None;
935 return resultobj;
936 fail:
937 return NULL;
938 }
939
940
941 static PyObject *_wrap_Cursors_lr_angle_get(PyObject *self, PyObject *args) {
942 PyObject *resultobj;
943 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
944 Cursor result;
945 PyObject * obj0 = 0 ;
946
947 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_lr_angle_get",&obj0)) goto fail;
948 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
949 result = (Cursor) ((arg1)->lr_angle);
950
951 resultobj = PyInt_FromLong((long)result);
952 return resultobj;
953 fail:
954 return NULL;
955 }
956
957
958 static PyObject *_wrap_Cursors_ul_angle_set(PyObject *self, PyObject *args) {
959 PyObject *resultobj;
960 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
961 Cursor arg2 ;
962 PyObject * obj0 = 0 ;
963 PyObject * obj1 = 0 ;
964
965 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ul_angle_set",&obj0,&obj1)) goto fail;
966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
967 arg2 = (Cursor) PyInt_AsLong(obj1);
968 if (PyErr_Occurred()) SWIG_fail;
969 if (arg1) (arg1)->ul_angle = arg2;
970
971 Py_INCREF(Py_None); resultobj = Py_None;
972 return resultobj;
973 fail:
974 return NULL;
975 }
976
977
978 static PyObject *_wrap_Cursors_ul_angle_get(PyObject *self, PyObject *args) {
979 PyObject *resultobj;
980 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
981 Cursor result;
982 PyObject * obj0 = 0 ;
983
984 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ul_angle_get",&obj0)) goto fail;
985 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
986 result = (Cursor) ((arg1)->ul_angle);
987
988 resultobj = PyInt_FromLong((long)result);
989 return resultobj;
990 fail:
991 return NULL;
992 }
993
994
995 static PyObject *_wrap_Cursors_ur_angle_set(PyObject *self, PyObject *args) {
996 PyObject *resultobj;
997 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
998 Cursor arg2 ;
999 PyObject * obj0 = 0 ;
1000 PyObject * obj1 = 0 ;
1001
1002 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ur_angle_set",&obj0,&obj1)) goto fail;
1003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1004 arg2 = (Cursor) PyInt_AsLong(obj1);
1005 if (PyErr_Occurred()) SWIG_fail;
1006 if (arg1) (arg1)->ur_angle = arg2;
1007
1008 Py_INCREF(Py_None); resultobj = Py_None;
1009 return resultobj;
1010 fail:
1011 return NULL;
1012 }
1013
1014
1015 static PyObject *_wrap_Cursors_ur_angle_get(PyObject *self, PyObject *args) {
1016 PyObject *resultobj;
1017 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
1018 Cursor result;
1019 PyObject * obj0 = 0 ;
1020
1021 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ur_angle_get",&obj0)) goto fail;
1022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1023 result = (Cursor) ((arg1)->ur_angle);
1024
1025 resultobj = PyInt_FromLong((long)result);
1026 return resultobj;
1027 fail:
1028 return NULL;
1029 }
1030
1031
1032 static PyObject * Cursors_swigregister(PyObject *self, PyObject *args) {
1033 PyObject *obj;
1034 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1035 SWIG_TypeClientData(SWIGTYPE_p_ob__Cursors, obj);
1036 Py_INCREF(obj);
1037 return Py_BuildValue((char *)"");
1038 }
1039 static PyObject *_wrap_Openbox_state(PyObject *self, PyObject *args) {
1040 PyObject *resultobj;
1041 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1042 int result;
1043 PyObject * obj0 = 0 ;
1044
1045 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_state",&obj0)) goto fail;
1046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1047 result = (int)((ob::Openbox const *)arg1)->state();
1048
1049 resultobj = PyInt_FromLong((long)result);
1050 return resultobj;
1051 fail:
1052 return NULL;
1053 }
1054
1055
1056 static PyObject *_wrap_Openbox_timerManager(PyObject *self, PyObject *args) {
1057 PyObject *resultobj;
1058 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1059 otk::OBTimerQueueManager *result;
1060 PyObject * obj0 = 0 ;
1061
1062 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_timerManager",&obj0)) goto fail;
1063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1064 result = (otk::OBTimerQueueManager *)(arg1)->timerManager();
1065
1066 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimerQueueManager, 0);
1067 return resultobj;
1068 fail:
1069 return NULL;
1070 }
1071
1072
1073 static PyObject *_wrap_Openbox_property(PyObject *self, PyObject *args) {
1074 PyObject *resultobj;
1075 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1076 otk::OBProperty *result;
1077 PyObject * obj0 = 0 ;
1078
1079 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_property",&obj0)) goto fail;
1080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1081 result = (otk::OBProperty *)((ob::Openbox const *)arg1)->property();
1082
1083 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBProperty, 0);
1084 return resultobj;
1085 fail:
1086 return NULL;
1087 }
1088
1089
1090 static PyObject *_wrap_Openbox_actions(PyObject *self, PyObject *args) {
1091 PyObject *resultobj;
1092 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1093 ob::OBActions *result;
1094 PyObject * obj0 = 0 ;
1095
1096 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_actions",&obj0)) goto fail;
1097 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1098 result = (ob::OBActions *)((ob::Openbox const *)arg1)->actions();
1099
1100 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBActions, 0);
1101 return resultobj;
1102 fail:
1103 return NULL;
1104 }
1105
1106
1107 static PyObject *_wrap_Openbox_bindings(PyObject *self, PyObject *args) {
1108 PyObject *resultobj;
1109 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1110 ob::OBBindings *result;
1111 PyObject * obj0 = 0 ;
1112
1113 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_bindings",&obj0)) goto fail;
1114 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1115 result = (ob::OBBindings *)((ob::Openbox const *)arg1)->bindings();
1116
1117 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBBindings, 0);
1118 return resultobj;
1119 fail:
1120 return NULL;
1121 }
1122
1123
1124 static PyObject *_wrap_Openbox_screen(PyObject *self, PyObject *args) {
1125 PyObject *resultobj;
1126 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1127 int arg2 ;
1128 ob::OBScreen *result;
1129 PyObject * obj0 = 0 ;
1130
1131 if(!PyArg_ParseTuple(args,(char *)"Oi:Openbox_screen",&obj0,&arg2)) goto fail;
1132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1133 result = (ob::OBScreen *)(arg1)->screen(arg2);
1134
1135 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
1136 return resultobj;
1137 fail:
1138 return NULL;
1139 }
1140
1141
1142 static PyObject *_wrap_Openbox_screenCount(PyObject *self, PyObject *args) {
1143 PyObject *resultobj;
1144 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1145 int result;
1146 PyObject * obj0 = 0 ;
1147
1148 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_screenCount",&obj0)) goto fail;
1149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1150 result = (int)((ob::Openbox const *)arg1)->screenCount();
1151
1152 resultobj = PyInt_FromLong((long)result);
1153 return resultobj;
1154 fail:
1155 return NULL;
1156 }
1157
1158
1159 static PyObject *_wrap_Openbox_cursors(PyObject *self, PyObject *args) {
1160 PyObject *resultobj;
1161 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1162 ob::Cursors *result;
1163 PyObject * obj0 = 0 ;
1164
1165 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_cursors",&obj0)) goto fail;
1166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1167 {
1168 ob::Cursors const &_result_ref = ((ob::Openbox const *)arg1)->cursors();
1169 result = (ob::Cursors *) &_result_ref;
1170 }
1171
1172 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Cursors, 0);
1173 return resultobj;
1174 fail:
1175 return NULL;
1176 }
1177
1178
1179 static PyObject *_wrap_Openbox_addClient(PyObject *self, PyObject *args) {
1180 PyObject *resultobj;
1181 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1182 Window arg2 ;
1183 ob::OBClient *arg3 = (ob::OBClient *) 0 ;
1184 PyObject * obj0 = 0 ;
1185 PyObject * obj1 = 0 ;
1186 PyObject * obj2 = 0 ;
1187
1188 if(!PyArg_ParseTuple(args,(char *)"OOO:Openbox_addClient",&obj0,&obj1,&obj2)) goto fail;
1189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1190 arg2 = (Window) PyInt_AsLong(obj1);
1191 if (PyErr_Occurred()) SWIG_fail;
1192 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1193 (arg1)->addClient(arg2,arg3);
1194
1195 Py_INCREF(Py_None); resultobj = Py_None;
1196 return resultobj;
1197 fail:
1198 return NULL;
1199 }
1200
1201
1202 static PyObject *_wrap_Openbox_removeClient(PyObject *self, PyObject *args) {
1203 PyObject *resultobj;
1204 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1205 Window arg2 ;
1206 PyObject * obj0 = 0 ;
1207 PyObject * obj1 = 0 ;
1208
1209 if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_removeClient",&obj0,&obj1)) goto fail;
1210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1211 arg2 = (Window) PyInt_AsLong(obj1);
1212 if (PyErr_Occurred()) SWIG_fail;
1213 (arg1)->removeClient(arg2);
1214
1215 Py_INCREF(Py_None); resultobj = Py_None;
1216 return resultobj;
1217 fail:
1218 return NULL;
1219 }
1220
1221
1222 static PyObject *_wrap_Openbox_findClient(PyObject *self, PyObject *args) {
1223 PyObject *resultobj;
1224 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1225 Window arg2 ;
1226 ob::OBClient *result;
1227 PyObject * obj0 = 0 ;
1228 PyObject * obj1 = 0 ;
1229
1230 if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_findClient",&obj0,&obj1)) goto fail;
1231 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1232 arg2 = (Window) PyInt_AsLong(obj1);
1233 if (PyErr_Occurred()) SWIG_fail;
1234 result = (ob::OBClient *)(arg1)->findClient(arg2);
1235
1236 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1237 return resultobj;
1238 fail:
1239 return NULL;
1240 }
1241
1242
1243 static PyObject *_wrap_Openbox_focusedClient(PyObject *self, PyObject *args) {
1244 PyObject *resultobj;
1245 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1246 ob::OBClient *result;
1247 PyObject * obj0 = 0 ;
1248
1249 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedClient",&obj0)) goto fail;
1250 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1251 result = (ob::OBClient *)(arg1)->focusedClient();
1252
1253 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1254 return resultobj;
1255 fail:
1256 return NULL;
1257 }
1258
1259
1260 static PyObject *_wrap_Openbox_setFocusedClient(PyObject *self, PyObject *args) {
1261 PyObject *resultobj;
1262 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1263 ob::OBClient *arg2 = (ob::OBClient *) 0 ;
1264 PyObject * obj0 = 0 ;
1265 PyObject * obj1 = 0 ;
1266
1267 if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_setFocusedClient",&obj0,&obj1)) goto fail;
1268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1269 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1270 (arg1)->setFocusedClient(arg2);
1271
1272 Py_INCREF(Py_None); resultobj = Py_None;
1273 return resultobj;
1274 fail:
1275 return NULL;
1276 }
1277
1278
1279 static PyObject *_wrap_Openbox_focusedScreen(PyObject *self, PyObject *args) {
1280 PyObject *resultobj;
1281 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1282 ob::OBScreen *result;
1283 PyObject * obj0 = 0 ;
1284
1285 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedScreen",&obj0)) goto fail;
1286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1287 result = (ob::OBScreen *)(arg1)->focusedScreen();
1288
1289 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
1290 return resultobj;
1291 fail:
1292 return NULL;
1293 }
1294
1295
1296 static PyObject *_wrap_Openbox_shutdown(PyObject *self, PyObject *args) {
1297 PyObject *resultobj;
1298 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1299 PyObject * obj0 = 0 ;
1300
1301 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_shutdown",&obj0)) goto fail;
1302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1303 (arg1)->shutdown();
1304
1305 Py_INCREF(Py_None); resultobj = Py_None;
1306 return resultobj;
1307 fail:
1308 return NULL;
1309 }
1310
1311
1312 static PyObject * Openbox_swigregister(PyObject *self, PyObject *args) {
1313 PyObject *obj;
1314 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1315 SWIG_TypeClientData(SWIGTYPE_p_ob__Openbox, obj);
1316 Py_INCREF(obj);
1317 return Py_BuildValue((char *)"");
1318 }
1319 static PyObject *_wrap_OBScreen_client(PyObject *self, PyObject *args) {
1320 PyObject *resultobj;
1321 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1322 int arg2 ;
1323 ob::OBClient *result;
1324 PyObject * obj0 = 0 ;
1325
1326 if(!PyArg_ParseTuple(args,(char *)"Oi:OBScreen_client",&obj0,&arg2)) goto fail;
1327 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1328 result = (ob::OBClient *)ob_OBScreen_client(arg1,arg2);
1329
1330 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1331 return resultobj;
1332 fail:
1333 return NULL;
1334 }
1335
1336
1337 static PyObject *_wrap_OBScreen_clientCount(PyObject *self, PyObject *args) {
1338 PyObject *resultobj;
1339 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1340 int result;
1341 PyObject * obj0 = 0 ;
1342
1343 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_clientCount",&obj0)) goto fail;
1344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1345 result = (int)ob_OBScreen_clientCount((ob::OBScreen const *)arg1);
1346
1347 resultobj = PyInt_FromLong((long)result);
1348 return resultobj;
1349 fail:
1350 return NULL;
1351 }
1352
1353
1354 static PyObject *_wrap_OBScreen_managed(PyObject *self, PyObject *args) {
1355 PyObject *resultobj;
1356 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1357 bool result;
1358 PyObject * obj0 = 0 ;
1359
1360 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_managed",&obj0)) goto fail;
1361 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1362 result = (bool)((ob::OBScreen const *)arg1)->managed();
1363
1364 resultobj = PyInt_FromLong((long)result);
1365 return resultobj;
1366 fail:
1367 return NULL;
1368 }
1369
1370
1371 static PyObject *_wrap_OBScreen_imageControl(PyObject *self, PyObject *args) {
1372 PyObject *resultobj;
1373 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1374 otk::BImageControl *result;
1375 PyObject * obj0 = 0 ;
1376
1377 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_imageControl",&obj0)) goto fail;
1378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1379 result = (otk::BImageControl *)(arg1)->imageControl();
1380
1381 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 0);
1382 return resultobj;
1383 fail:
1384 return NULL;
1385 }
1386
1387
1388 static PyObject *_wrap_OBScreen_area(PyObject *self, PyObject *args) {
1389 PyObject *resultobj;
1390 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1391 otk::Rect *result;
1392 PyObject * obj0 = 0 ;
1393
1394 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_area",&obj0)) goto fail;
1395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1396 {
1397 otk::Rect const &_result_ref = ((ob::OBScreen const *)arg1)->area();
1398 result = (otk::Rect *) &_result_ref;
1399 }
1400
1401 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
1402 return resultobj;
1403 fail:
1404 return NULL;
1405 }
1406
1407
1408 static PyObject *_wrap_OBScreen_style(PyObject *self, PyObject *args) {
1409 PyObject *resultobj;
1410 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1411 otk::Style *result;
1412 PyObject * obj0 = 0 ;
1413
1414 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_style",&obj0)) goto fail;
1415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1416 result = (otk::Style *)((ob::OBScreen const *)arg1)->style();
1417
1418 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
1419 return resultobj;
1420 fail:
1421 return NULL;
1422 }
1423
1424
1425 static PyObject *_wrap_OBScreen_focuswindow(PyObject *self, PyObject *args) {
1426 PyObject *resultobj;
1427 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1428 Window result;
1429 PyObject * obj0 = 0 ;
1430
1431 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_focuswindow",&obj0)) goto fail;
1432 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1433 result = (Window)((ob::OBScreen const *)arg1)->focuswindow();
1434
1435 resultobj = PyInt_FromLong((long)result);
1436 return resultobj;
1437 fail:
1438 return NULL;
1439 }
1440
1441
1442 static PyObject *_wrap_OBScreen_addStrut(PyObject *self, PyObject *args) {
1443 PyObject *resultobj;
1444 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1445 otk::Strut *arg2 = (otk::Strut *) 0 ;
1446 PyObject * obj0 = 0 ;
1447 PyObject * obj1 = 0 ;
1448
1449 if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_addStrut",&obj0,&obj1)) goto fail;
1450 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1451 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1452 (arg1)->addStrut(arg2);
1453
1454 Py_INCREF(Py_None); resultobj = Py_None;
1455 return resultobj;
1456 fail:
1457 return NULL;
1458 }
1459
1460
1461 static PyObject *_wrap_OBScreen_removeStrut(PyObject *self, PyObject *args) {
1462 PyObject *resultobj;
1463 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1464 otk::Strut *arg2 = (otk::Strut *) 0 ;
1465 PyObject * obj0 = 0 ;
1466 PyObject * obj1 = 0 ;
1467
1468 if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_removeStrut",&obj0,&obj1)) goto fail;
1469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1470 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1471 (arg1)->removeStrut(arg2);
1472
1473 Py_INCREF(Py_None); resultobj = Py_None;
1474 return resultobj;
1475 fail:
1476 return NULL;
1477 }
1478
1479
1480 static PyObject *_wrap_OBScreen_manageExisting(PyObject *self, PyObject *args) {
1481 PyObject *resultobj;
1482 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1483 PyObject * obj0 = 0 ;
1484
1485 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_manageExisting",&obj0)) goto fail;
1486 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1487 (arg1)->manageExisting();
1488
1489 Py_INCREF(Py_None); resultobj = Py_None;
1490 return resultobj;
1491 fail:
1492 return NULL;
1493 }
1494
1495
1496 static PyObject *_wrap_OBScreen_manageWindow(PyObject *self, PyObject *args) {
1497 PyObject *resultobj;
1498 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1499 Window arg2 ;
1500 PyObject * obj0 = 0 ;
1501 PyObject * obj1 = 0 ;
1502
1503 if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_manageWindow",&obj0,&obj1)) goto fail;
1504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1505 arg2 = (Window) PyInt_AsLong(obj1);
1506 if (PyErr_Occurred()) SWIG_fail;
1507 (arg1)->manageWindow(arg2);
1508
1509 Py_INCREF(Py_None); resultobj = Py_None;
1510 return resultobj;
1511 fail:
1512 return NULL;
1513 }
1514
1515
1516 static PyObject *_wrap_OBScreen_unmanageWindow(PyObject *self, PyObject *args) {
1517 PyObject *resultobj;
1518 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1519 ob::OBClient *arg2 = (ob::OBClient *) 0 ;
1520 PyObject * obj0 = 0 ;
1521 PyObject * obj1 = 0 ;
1522
1523 if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_unmanageWindow",&obj0,&obj1)) goto fail;
1524 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1525 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1526 (arg1)->unmanageWindow(arg2);
1527
1528 Py_INCREF(Py_None); resultobj = Py_None;
1529 return resultobj;
1530 fail:
1531 return NULL;
1532 }
1533
1534
1535 static PyObject * OBScreen_swigregister(PyObject *self, PyObject *args) {
1536 PyObject *obj;
1537 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1538 SWIG_TypeClientData(SWIGTYPE_p_ob__OBScreen, obj);
1539 Py_INCREF(obj);
1540 return Py_BuildValue((char *)"");
1541 }
1542 static PyObject *_wrap_MwmHints_flags_set(PyObject *self, PyObject *args) {
1543 PyObject *resultobj;
1544 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1545 unsigned long arg2 ;
1546 PyObject * obj0 = 0 ;
1547 PyObject * obj1 = 0 ;
1548
1549 if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_flags_set",&obj0,&obj1)) goto fail;
1550 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1551 arg2 = (unsigned long) PyInt_AsLong(obj1);
1552 if (PyErr_Occurred()) SWIG_fail;
1553 if (arg1) (arg1)->flags = arg2;
1554
1555 Py_INCREF(Py_None); resultobj = Py_None;
1556 return resultobj;
1557 fail:
1558 return NULL;
1559 }
1560
1561
1562 static PyObject *_wrap_MwmHints_flags_get(PyObject *self, PyObject *args) {
1563 PyObject *resultobj;
1564 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1565 unsigned long result;
1566 PyObject * obj0 = 0 ;
1567
1568 if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_flags_get",&obj0)) goto fail;
1569 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1570 result = (unsigned long) ((arg1)->flags);
1571
1572 resultobj = PyInt_FromLong((long)result);
1573 return resultobj;
1574 fail:
1575 return NULL;
1576 }
1577
1578
1579 static PyObject *_wrap_MwmHints_functions_set(PyObject *self, PyObject *args) {
1580 PyObject *resultobj;
1581 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1582 unsigned long arg2 ;
1583 PyObject * obj0 = 0 ;
1584 PyObject * obj1 = 0 ;
1585
1586 if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_functions_set",&obj0,&obj1)) goto fail;
1587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1588 arg2 = (unsigned long) PyInt_AsLong(obj1);
1589 if (PyErr_Occurred()) SWIG_fail;
1590 if (arg1) (arg1)->functions = arg2;
1591
1592 Py_INCREF(Py_None); resultobj = Py_None;
1593 return resultobj;
1594 fail:
1595 return NULL;
1596 }
1597
1598
1599 static PyObject *_wrap_MwmHints_functions_get(PyObject *self, PyObject *args) {
1600 PyObject *resultobj;
1601 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1602 unsigned long result;
1603 PyObject * obj0 = 0 ;
1604
1605 if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_functions_get",&obj0)) goto fail;
1606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1607 result = (unsigned long) ((arg1)->functions);
1608
1609 resultobj = PyInt_FromLong((long)result);
1610 return resultobj;
1611 fail:
1612 return NULL;
1613 }
1614
1615
1616 static PyObject *_wrap_MwmHints_decorations_set(PyObject *self, PyObject *args) {
1617 PyObject *resultobj;
1618 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1619 unsigned long arg2 ;
1620 PyObject * obj0 = 0 ;
1621 PyObject * obj1 = 0 ;
1622
1623 if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_decorations_set",&obj0,&obj1)) goto fail;
1624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1625 arg2 = (unsigned long) PyInt_AsLong(obj1);
1626 if (PyErr_Occurred()) SWIG_fail;
1627 if (arg1) (arg1)->decorations = arg2;
1628
1629 Py_INCREF(Py_None); resultobj = Py_None;
1630 return resultobj;
1631 fail:
1632 return NULL;
1633 }
1634
1635
1636 static PyObject *_wrap_MwmHints_decorations_get(PyObject *self, PyObject *args) {
1637 PyObject *resultobj;
1638 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1639 unsigned long result;
1640 PyObject * obj0 = 0 ;
1641
1642 if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_decorations_get",&obj0)) goto fail;
1643 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1644 result = (unsigned long) ((arg1)->decorations);
1645
1646 resultobj = PyInt_FromLong((long)result);
1647 return resultobj;
1648 fail:
1649 return NULL;
1650 }
1651
1652
1653 static PyObject * MwmHints_swigregister(PyObject *self, PyObject *args) {
1654 PyObject *obj;
1655 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1656 SWIG_TypeClientData(SWIGTYPE_p_ob__MwmHints, obj);
1657 Py_INCREF(obj);
1658 return Py_BuildValue((char *)"");
1659 }
1660 static PyObject *_wrap_OBClient_frame_set(PyObject *self, PyObject *args) {
1661 PyObject *resultobj;
1662 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1663 ob::OBFrame *arg2 = (ob::OBFrame *) 0 ;
1664 PyObject * obj0 = 0 ;
1665 PyObject * obj1 = 0 ;
1666
1667 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_frame_set",&obj0,&obj1)) goto fail;
1668 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1669 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBFrame,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
1670 if (arg1) (arg1)->frame = arg2;
1671
1672 Py_INCREF(Py_None); resultobj = Py_None;
1673 return resultobj;
1674 fail:
1675 return NULL;
1676 }
1677
1678
1679 static PyObject *_wrap_OBClient_frame_get(PyObject *self, PyObject *args) {
1680 PyObject *resultobj;
1681 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1682 ob::OBFrame *result;
1683 PyObject * obj0 = 0 ;
1684
1685 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_frame_get",&obj0)) goto fail;
1686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1687 result = (ob::OBFrame *) ((arg1)->frame);
1688
1689 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBFrame, 0);
1690 return resultobj;
1691 fail:
1692 return NULL;
1693 }
1694
1695
1696 static PyObject *_wrap_OBClient_ignore_unmaps_set(PyObject *self, PyObject *args) {
1697 PyObject *resultobj;
1698 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1699 int arg2 ;
1700 PyObject * obj0 = 0 ;
1701
1702 if(!PyArg_ParseTuple(args,(char *)"Oi:OBClient_ignore_unmaps_set",&obj0,&arg2)) goto fail;
1703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1704 if (arg1) (arg1)->ignore_unmaps = arg2;
1705
1706 Py_INCREF(Py_None); resultobj = Py_None;
1707 return resultobj;
1708 fail:
1709 return NULL;
1710 }
1711
1712
1713 static PyObject *_wrap_OBClient_ignore_unmaps_get(PyObject *self, PyObject *args) {
1714 PyObject *resultobj;
1715 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1716 int result;
1717 PyObject * obj0 = 0 ;
1718
1719 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_ignore_unmaps_get",&obj0)) goto fail;
1720 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1721 result = (int) ((arg1)->ignore_unmaps);
1722
1723 resultobj = PyInt_FromLong((long)result);
1724 return resultobj;
1725 fail:
1726 return NULL;
1727 }
1728
1729
1730 static PyObject *_wrap_OBClient_screen(PyObject *self, PyObject *args) {
1731 PyObject *resultobj;
1732 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1733 int result;
1734 PyObject * obj0 = 0 ;
1735
1736 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_screen",&obj0)) goto fail;
1737 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1738 result = (int)((ob::OBClient const *)arg1)->screen();
1739
1740 resultobj = PyInt_FromLong((long)result);
1741 return resultobj;
1742 fail:
1743 return NULL;
1744 }
1745
1746
1747 static PyObject *_wrap_OBClient_window(PyObject *self, PyObject *args) {
1748 PyObject *resultobj;
1749 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1750 Window result;
1751 PyObject * obj0 = 0 ;
1752
1753 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_window",&obj0)) goto fail;
1754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1755 result = (Window)((ob::OBClient const *)arg1)->window();
1756
1757 resultobj = PyInt_FromLong((long)result);
1758 return resultobj;
1759 fail:
1760 return NULL;
1761 }
1762
1763
1764 static PyObject *_wrap_OBClient_type(PyObject *self, PyObject *args) {
1765 PyObject *resultobj;
1766 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1767 int result;
1768 PyObject * obj0 = 0 ;
1769
1770 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_type",&obj0)) goto fail;
1771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1772 result = (int)((ob::OBClient const *)arg1)->type();
1773
1774 resultobj = PyInt_FromLong((long)result);
1775 return resultobj;
1776 fail:
1777 return NULL;
1778 }
1779
1780
1781 static PyObject *_wrap_OBClient_desktop(PyObject *self, PyObject *args) {
1782 PyObject *resultobj;
1783 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1784 unsigned long result;
1785 PyObject * obj0 = 0 ;
1786
1787 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_desktop",&obj0)) goto fail;
1788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1789 result = (unsigned long)((ob::OBClient const *)arg1)->desktop();
1790
1791 resultobj = PyInt_FromLong((long)result);
1792 return resultobj;
1793 fail:
1794 return NULL;
1795 }
1796
1797
1798 static PyObject *_wrap_OBClient_title(PyObject *self, PyObject *args) {
1799 PyObject *resultobj;
1800 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1801 std::string *result;
1802 PyObject * obj0 = 0 ;
1803
1804 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_title",&obj0)) goto fail;
1805 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1806 {
1807 std::string const &_result_ref = ((ob::OBClient const *)arg1)->title();
1808 result = (std::string *) &_result_ref;
1809 }
1810
1811 {
1812 resultobj = PyString_FromString(result->c_str());
1813 }
1814 return resultobj;
1815 fail:
1816 return NULL;
1817 }
1818
1819
1820 static PyObject *_wrap_OBClient_iconTitle(PyObject *self, PyObject *args) {
1821 PyObject *resultobj;
1822 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1823 std::string *result;
1824 PyObject * obj0 = 0 ;
1825
1826 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconTitle",&obj0)) goto fail;
1827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1828 {
1829 std::string const &_result_ref = ((ob::OBClient const *)arg1)->iconTitle();
1830 result = (std::string *) &_result_ref;
1831 }
1832
1833 {
1834 resultobj = PyString_FromString(result->c_str());
1835 }
1836 return resultobj;
1837 fail:
1838 return NULL;
1839 }
1840
1841
1842 static PyObject *_wrap_OBClient_appName(PyObject *self, PyObject *args) {
1843 PyObject *resultobj;
1844 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1845 std::string *result;
1846 PyObject * obj0 = 0 ;
1847
1848 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appName",&obj0)) goto fail;
1849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1850 {
1851 std::string const &_result_ref = ((ob::OBClient const *)arg1)->appName();
1852 result = (std::string *) &_result_ref;
1853 }
1854
1855 {
1856 resultobj = PyString_FromString(result->c_str());
1857 }
1858 return resultobj;
1859 fail:
1860 return NULL;
1861 }
1862
1863
1864 static PyObject *_wrap_OBClient_appClass(PyObject *self, PyObject *args) {
1865 PyObject *resultobj;
1866 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1867 std::string *result;
1868 PyObject * obj0 = 0 ;
1869
1870 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appClass",&obj0)) goto fail;
1871 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1872 {
1873 std::string const &_result_ref = ((ob::OBClient const *)arg1)->appClass();
1874 result = (std::string *) &_result_ref;
1875 }
1876
1877 {
1878 resultobj = PyString_FromString(result->c_str());
1879 }
1880 return resultobj;
1881 fail:
1882 return NULL;
1883 }
1884
1885
1886 static PyObject *_wrap_OBClient_canFocus(PyObject *self, PyObject *args) {
1887 PyObject *resultobj;
1888 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1889 bool result;
1890 PyObject * obj0 = 0 ;
1891
1892 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_canFocus",&obj0)) goto fail;
1893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1894 result = (bool)((ob::OBClient const *)arg1)->canFocus();
1895
1896 resultobj = PyInt_FromLong((long)result);
1897 return resultobj;
1898 fail:
1899 return NULL;
1900 }
1901
1902
1903 static PyObject *_wrap_OBClient_urgent(PyObject *self, PyObject *args) {
1904 PyObject *resultobj;
1905 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1906 bool result;
1907 PyObject * obj0 = 0 ;
1908
1909 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_urgent",&obj0)) goto fail;
1910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1911 result = (bool)((ob::OBClient const *)arg1)->urgent();
1912
1913 resultobj = PyInt_FromLong((long)result);
1914 return resultobj;
1915 fail:
1916 return NULL;
1917 }
1918
1919
1920 static PyObject *_wrap_OBClient_focusNotify(PyObject *self, PyObject *args) {
1921 PyObject *resultobj;
1922 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1923 bool result;
1924 PyObject * obj0 = 0 ;
1925
1926 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focusNotify",&obj0)) goto fail;
1927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1928 result = (bool)((ob::OBClient const *)arg1)->focusNotify();
1929
1930 resultobj = PyInt_FromLong((long)result);
1931 return resultobj;
1932 fail:
1933 return NULL;
1934 }
1935
1936
1937 static PyObject *_wrap_OBClient_shaped(PyObject *self, PyObject *args) {
1938 PyObject *resultobj;
1939 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1940 bool result;
1941 PyObject * obj0 = 0 ;
1942
1943 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaped",&obj0)) goto fail;
1944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1945 result = (bool)((ob::OBClient const *)arg1)->shaped();
1946
1947 resultobj = PyInt_FromLong((long)result);
1948 return resultobj;
1949 fail:
1950 return NULL;
1951 }
1952
1953
1954 static PyObject *_wrap_OBClient_gravity(PyObject *self, PyObject *args) {
1955 PyObject *resultobj;
1956 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1957 int result;
1958 PyObject * obj0 = 0 ;
1959
1960 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_gravity",&obj0)) goto fail;
1961 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1962 result = (int)((ob::OBClient const *)arg1)->gravity();
1963
1964 resultobj = PyInt_FromLong((long)result);
1965 return resultobj;
1966 fail:
1967 return NULL;
1968 }
1969
1970
1971 static PyObject *_wrap_OBClient_positionRequested(PyObject *self, PyObject *args) {
1972 PyObject *resultobj;
1973 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1974 bool result;
1975 PyObject * obj0 = 0 ;
1976
1977 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_positionRequested",&obj0)) goto fail;
1978 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1979 result = (bool)((ob::OBClient const *)arg1)->positionRequested();
1980
1981 resultobj = PyInt_FromLong((long)result);
1982 return resultobj;
1983 fail:
1984 return NULL;
1985 }
1986
1987
1988 static PyObject *_wrap_OBClient_decorations(PyObject *self, PyObject *args) {
1989 PyObject *resultobj;
1990 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1991 ob::OBClient::DecorationFlags result;
1992 PyObject * obj0 = 0 ;
1993
1994 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_decorations",&obj0)) goto fail;
1995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1996 result = (ob::OBClient::DecorationFlags)((ob::OBClient const *)arg1)->decorations();
1997
1998 resultobj = PyInt_FromLong((long)result);
1999 return resultobj;
2000 fail:
2001 return NULL;
2002 }
2003
2004
2005 static PyObject *_wrap_OBClient_funtions(PyObject *self, PyObject *args) {
2006 PyObject *resultobj;
2007 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2008 ob::OBClient::FunctionFlags result;
2009 PyObject * obj0 = 0 ;
2010
2011 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_funtions",&obj0)) goto fail;
2012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2013 result = (ob::OBClient::FunctionFlags)((ob::OBClient const *)arg1)->funtions();
2014
2015 resultobj = PyInt_FromLong((long)result);
2016 return resultobj;
2017 fail:
2018 return NULL;
2019 }
2020
2021
2022 static PyObject *_wrap_OBClient_modal(PyObject *self, PyObject *args) {
2023 PyObject *resultobj;
2024 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2025 bool result;
2026 PyObject * obj0 = 0 ;
2027
2028 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_modal",&obj0)) goto fail;
2029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2030 result = (bool)((ob::OBClient const *)arg1)->modal();
2031
2032 resultobj = PyInt_FromLong((long)result);
2033 return resultobj;
2034 fail:
2035 return NULL;
2036 }
2037
2038
2039 static PyObject *_wrap_OBClient_shaded(PyObject *self, PyObject *args) {
2040 PyObject *resultobj;
2041 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2042 bool result;
2043 PyObject * obj0 = 0 ;
2044
2045 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaded",&obj0)) goto fail;
2046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2047 result = (bool)((ob::OBClient const *)arg1)->shaded();
2048
2049 resultobj = PyInt_FromLong((long)result);
2050 return resultobj;
2051 fail:
2052 return NULL;
2053 }
2054
2055
2056 static PyObject *_wrap_OBClient_iconic(PyObject *self, PyObject *args) {
2057 PyObject *resultobj;
2058 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2059 bool result;
2060 PyObject * obj0 = 0 ;
2061
2062 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconic",&obj0)) goto fail;
2063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2064 result = (bool)((ob::OBClient const *)arg1)->iconic();
2065
2066 resultobj = PyInt_FromLong((long)result);
2067 return resultobj;
2068 fail:
2069 return NULL;
2070 }
2071
2072
2073 static PyObject *_wrap_OBClient_maxVert(PyObject *self, PyObject *args) {
2074 PyObject *resultobj;
2075 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2076 bool result;
2077 PyObject * obj0 = 0 ;
2078
2079 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxVert",&obj0)) goto fail;
2080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2081 result = (bool)((ob::OBClient const *)arg1)->maxVert();
2082
2083 resultobj = PyInt_FromLong((long)result);
2084 return resultobj;
2085 fail:
2086 return NULL;
2087 }
2088
2089
2090 static PyObject *_wrap_OBClient_maxHorz(PyObject *self, PyObject *args) {
2091 PyObject *resultobj;
2092 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2093 bool result;
2094 PyObject * obj0 = 0 ;
2095
2096 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxHorz",&obj0)) goto fail;
2097 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2098 result = (bool)((ob::OBClient const *)arg1)->maxHorz();
2099
2100 resultobj = PyInt_FromLong((long)result);
2101 return resultobj;
2102 fail:
2103 return NULL;
2104 }
2105
2106
2107 static PyObject *_wrap_OBClient_fullscreen(PyObject *self, PyObject *args) {
2108 PyObject *resultobj;
2109 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2110 bool result;
2111 PyObject * obj0 = 0 ;
2112
2113 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_fullscreen",&obj0)) goto fail;
2114 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2115 result = (bool)((ob::OBClient const *)arg1)->fullscreen();
2116
2117 resultobj = PyInt_FromLong((long)result);
2118 return resultobj;
2119 fail:
2120 return NULL;
2121 }
2122
2123
2124 static PyObject *_wrap_OBClient_floating(PyObject *self, PyObject *args) {
2125 PyObject *resultobj;
2126 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2127 bool result;
2128 PyObject * obj0 = 0 ;
2129
2130 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_floating",&obj0)) goto fail;
2131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2132 result = (bool)((ob::OBClient const *)arg1)->floating();
2133
2134 resultobj = PyInt_FromLong((long)result);
2135 return resultobj;
2136 fail:
2137 return NULL;
2138 }
2139
2140
2141 static PyObject *_wrap_OBClient_toggleClientBorder(PyObject *self, PyObject *args) {
2142 PyObject *resultobj;
2143 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2144 bool arg2 ;
2145 PyObject * obj0 = 0 ;
2146 PyObject * obj1 = 0 ;
2147
2148 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_toggleClientBorder",&obj0,&obj1)) goto fail;
2149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2150 arg2 = (bool) PyInt_AsLong(obj1);
2151 if (PyErr_Occurred()) SWIG_fail;
2152 (arg1)->toggleClientBorder(arg2);
2153
2154 Py_INCREF(Py_None); resultobj = Py_None;
2155 return resultobj;
2156 fail:
2157 return NULL;
2158 }
2159
2160
2161 static PyObject *_wrap_OBClient_area(PyObject *self, PyObject *args) {
2162 PyObject *resultobj;
2163 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2164 otk::Rect *result;
2165 PyObject * obj0 = 0 ;
2166
2167 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_area",&obj0)) goto fail;
2168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2169 {
2170 otk::Rect const &_result_ref = ((ob::OBClient const *)arg1)->area();
2171 result = (otk::Rect *) &_result_ref;
2172 }
2173
2174 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
2175 return resultobj;
2176 fail:
2177 return NULL;
2178 }
2179
2180
2181 static PyObject *_wrap_OBClient_move(PyObject *self, PyObject *args) {
2182 PyObject *resultobj;
2183 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2184 int arg2 ;
2185 int arg3 ;
2186 PyObject * obj0 = 0 ;
2187
2188 if(!PyArg_ParseTuple(args,(char *)"Oii:OBClient_move",&obj0,&arg2,&arg3)) goto fail;
2189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2190 (arg1)->move(arg2,arg3);
2191
2192 Py_INCREF(Py_None); resultobj = Py_None;
2193 return resultobj;
2194 fail:
2195 return NULL;
2196 }
2197
2198
2199 static PyObject *_wrap_OBClient_resize(PyObject *self, PyObject *args) {
2200 PyObject *resultobj;
2201 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2202 int arg2 ;
2203 int arg3 ;
2204 int arg4 ;
2205 PyObject * obj0 = 0 ;
2206
2207 if(!PyArg_ParseTuple(args,(char *)"Oiii:OBClient_resize",&obj0,&arg2,&arg3,&arg4)) goto fail;
2208 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2209 (arg1)->resize((ob::OBClient::Corner )arg2,arg3,arg4);
2210
2211 Py_INCREF(Py_None); resultobj = Py_None;
2212 return resultobj;
2213 fail:
2214 return NULL;
2215 }
2216
2217
2218 static PyObject *_wrap_OBClient_close(PyObject *self, PyObject *args) {
2219 PyObject *resultobj;
2220 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2221 PyObject * obj0 = 0 ;
2222
2223 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_close",&obj0)) goto fail;
2224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2225 (arg1)->close();
2226
2227 Py_INCREF(Py_None); resultobj = Py_None;
2228 return resultobj;
2229 fail:
2230 return NULL;
2231 }
2232
2233
2234 static PyObject *_wrap_OBClient_focus(PyObject *self, PyObject *args) {
2235 PyObject *resultobj;
2236 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2237 bool result;
2238 PyObject * obj0 = 0 ;
2239
2240 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focus",&obj0)) goto fail;
2241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2242 result = (bool)(arg1)->focus();
2243
2244 resultobj = PyInt_FromLong((long)result);
2245 return resultobj;
2246 fail:
2247 return NULL;
2248 }
2249
2250
2251 static PyObject *_wrap_OBClient_unfocus(PyObject *self, PyObject *args) {
2252 PyObject *resultobj;
2253 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2254 PyObject * obj0 = 0 ;
2255
2256 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_unfocus",&obj0)) goto fail;
2257 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2258 (arg1)->unfocus();
2259
2260 Py_INCREF(Py_None); resultobj = Py_None;
2261 return resultobj;
2262 fail:
2263 return NULL;
2264 }
2265
2266
2267 static PyObject *_wrap_OBClient_focusHandler(PyObject *self, PyObject *args) {
2268 PyObject *resultobj;
2269 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2270 XFocusChangeEvent *arg2 = 0 ;
2271 PyObject * obj0 = 0 ;
2272 PyObject * obj1 = 0 ;
2273
2274 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_focusHandler",&obj0,&obj1)) goto fail;
2275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2276 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2277 if (arg2 == NULL) {
2278 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2279 }
2280 (arg1)->focusHandler((XFocusChangeEvent const &)*arg2);
2281
2282 Py_INCREF(Py_None); resultobj = Py_None;
2283 return resultobj;
2284 fail:
2285 return NULL;
2286 }
2287
2288
2289 static PyObject *_wrap_OBClient_unfocusHandler(PyObject *self, PyObject *args) {
2290 PyObject *resultobj;
2291 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2292 XFocusChangeEvent *arg2 = 0 ;
2293 PyObject * obj0 = 0 ;
2294 PyObject * obj1 = 0 ;
2295
2296 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unfocusHandler",&obj0,&obj1)) goto fail;
2297 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2298 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2299 if (arg2 == NULL) {
2300 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2301 }
2302 (arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2);
2303
2304 Py_INCREF(Py_None); resultobj = Py_None;
2305 return resultobj;
2306 fail:
2307 return NULL;
2308 }
2309
2310
2311 static PyObject *_wrap_OBClient_propertyHandler(PyObject *self, PyObject *args) {
2312 PyObject *resultobj;
2313 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2314 XPropertyEvent *arg2 = 0 ;
2315 PyObject * obj0 = 0 ;
2316 PyObject * obj1 = 0 ;
2317
2318 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_propertyHandler",&obj0,&obj1)) goto fail;
2319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2320 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2321 if (arg2 == NULL) {
2322 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2323 }
2324 (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
2325
2326 Py_INCREF(Py_None); resultobj = Py_None;
2327 return resultobj;
2328 fail:
2329 return NULL;
2330 }
2331
2332
2333 static PyObject *_wrap_OBClient_clientMessageHandler(PyObject *self, PyObject *args) {
2334 PyObject *resultobj;
2335 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2336 XClientMessageEvent *arg2 = 0 ;
2337 PyObject * obj0 = 0 ;
2338 PyObject * obj1 = 0 ;
2339
2340 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_clientMessageHandler",&obj0,&obj1)) goto fail;
2341 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2342 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2343 if (arg2 == NULL) {
2344 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2345 }
2346 (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
2347
2348 Py_INCREF(Py_None); resultobj = Py_None;
2349 return resultobj;
2350 fail:
2351 return NULL;
2352 }
2353
2354
2355 static PyObject *_wrap_OBClient_shapeHandler(PyObject *self, PyObject *args) {
2356 PyObject *resultobj;
2357 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2358 XShapeEvent *arg2 = 0 ;
2359 PyObject * obj0 = 0 ;
2360 PyObject * obj1 = 0 ;
2361
2362 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_shapeHandler",&obj0,&obj1)) goto fail;
2363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2364 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XShapeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2365 if (arg2 == NULL) {
2366 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2367 }
2368 (arg1)->shapeHandler((XShapeEvent const &)*arg2);
2369
2370 Py_INCREF(Py_None); resultobj = Py_None;
2371 return resultobj;
2372 fail:
2373 return NULL;
2374 }
2375
2376
2377 static PyObject *_wrap_OBClient_configureRequestHandler(PyObject *self, PyObject *args) {
2378 PyObject *resultobj;
2379 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2380 XConfigureRequestEvent *arg2 = 0 ;
2381 PyObject * obj0 = 0 ;
2382 PyObject * obj1 = 0 ;
2383
2384 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_configureRequestHandler",&obj0,&obj1)) goto fail;
2385 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2386 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2387 if (arg2 == NULL) {
2388 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2389 }
2390 (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2);
2391
2392 Py_INCREF(Py_None); resultobj = Py_None;
2393 return resultobj;
2394 fail:
2395 return NULL;
2396 }
2397
2398
2399 static PyObject *_wrap_OBClient_unmapHandler(PyObject *self, PyObject *args) {
2400 PyObject *resultobj;
2401 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2402 XUnmapEvent *arg2 = 0 ;
2403 PyObject * obj0 = 0 ;
2404 PyObject * obj1 = 0 ;
2405
2406 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unmapHandler",&obj0,&obj1)) goto fail;
2407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2408 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2409 if (arg2 == NULL) {
2410 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2411 }
2412 (arg1)->unmapHandler((XUnmapEvent const &)*arg2);
2413
2414 Py_INCREF(Py_None); resultobj = Py_None;
2415 return resultobj;
2416 fail:
2417 return NULL;
2418 }
2419
2420
2421 static PyObject *_wrap_OBClient_destroyHandler(PyObject *self, PyObject *args) {
2422 PyObject *resultobj;
2423 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2424 XDestroyWindowEvent *arg2 = 0 ;
2425 PyObject * obj0 = 0 ;
2426 PyObject * obj1 = 0 ;
2427
2428 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_destroyHandler",&obj0,&obj1)) goto fail;
2429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2430 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2431 if (arg2 == NULL) {
2432 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2433 }
2434 (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2);
2435
2436 Py_INCREF(Py_None); resultobj = Py_None;
2437 return resultobj;
2438 fail:
2439 return NULL;
2440 }
2441
2442
2443 static PyObject *_wrap_OBClient_reparentHandler(PyObject *self, PyObject *args) {
2444 PyObject *resultobj;
2445 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2446 XReparentEvent *arg2 = 0 ;
2447 PyObject * obj0 = 0 ;
2448 PyObject * obj1 = 0 ;
2449
2450 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_reparentHandler",&obj0,&obj1)) goto fail;
2451 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2452 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2453 if (arg2 == NULL) {
2454 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2455 }
2456 (arg1)->reparentHandler((XReparentEvent const &)*arg2);
2457
2458 Py_INCREF(Py_None); resultobj = Py_None;
2459 return resultobj;
2460 fail:
2461 return NULL;
2462 }
2463
2464
2465 static PyObject * OBClient_swigregister(PyObject *self, PyObject *args) {
2466 PyObject *obj;
2467 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2468 SWIG_TypeClientData(SWIGTYPE_p_ob__OBClient, obj);
2469 Py_INCREF(obj);
2470 return Py_BuildValue((char *)"");
2471 }
2472 static PyObject *_wrap_mbind(PyObject *self, PyObject *args) {
2473 PyObject *resultobj;
2474 std::string *arg1 = 0 ;
2475 int arg2 ;
2476 int arg3 ;
2477 PyObject *arg4 = (PyObject *) 0 ;
2478 PyObject *result;
2479 std::string temp1 ;
2480 PyObject * obj0 = 0 ;
2481 PyObject * obj3 = 0 ;
2482
2483 if(!PyArg_ParseTuple(args,(char *)"OiiO:mbind",&obj0,&arg2,&arg3,&obj3)) goto fail;
2484 {
2485 if (PyString_Check(obj0)) {
2486 temp1 = std::string(PyString_AsString(obj0));
2487 arg1 = &temp1;
2488 }else {
2489 SWIG_exception(SWIG_TypeError, "string expected");
2490 }
2491 }
2492 arg4 = obj3;
2493 result = (PyObject *)ob::mbind((std::string const &)*arg1,(ob::MouseContext )arg2,(ob::MouseAction )arg3,arg4);
2494
2495 resultobj = result;
2496 return resultobj;
2497 fail:
2498 return NULL;
2499 }
2500
2501
2502 static PyObject *_wrap_kbind(PyObject *self, PyObject *args) {
2503 PyObject *resultobj;
2504 PyObject *arg1 = (PyObject *) 0 ;
2505 int arg2 ;
2506 PyObject *arg3 = (PyObject *) 0 ;
2507 PyObject *result;
2508 PyObject * obj0 = 0 ;
2509 PyObject * obj2 = 0 ;
2510
2511 if(!PyArg_ParseTuple(args,(char *)"OiO:kbind",&obj0,&arg2,&obj2)) goto fail;
2512 arg1 = obj0;
2513 arg3 = obj2;
2514 result = (PyObject *)ob::kbind(arg1,(ob::KeyContext )arg2,arg3);
2515
2516 resultobj = result;
2517 return resultobj;
2518 fail:
2519 return NULL;
2520 }
2521
2522
2523 static PyObject *_wrap_kunbind(PyObject *self, PyObject *args) {
2524 PyObject *resultobj;
2525 PyObject *arg1 = (PyObject *) 0 ;
2526 PyObject *result;
2527 PyObject * obj0 = 0 ;
2528
2529 if(!PyArg_ParseTuple(args,(char *)"O:kunbind",&obj0)) goto fail;
2530 arg1 = obj0;
2531 result = (PyObject *)ob::kunbind(arg1);
2532
2533 resultobj = result;
2534 return resultobj;
2535 fail:
2536 return NULL;
2537 }
2538
2539
2540 static PyObject *_wrap_kunbind_all(PyObject *self, PyObject *args) {
2541 PyObject *resultobj;
2542
2543 if(!PyArg_ParseTuple(args,(char *)":kunbind_all")) goto fail;
2544 ob::kunbind_all();
2545
2546 Py_INCREF(Py_None); resultobj = Py_None;
2547 return resultobj;
2548 fail:
2549 return NULL;
2550 }
2551
2552
2553 static PyObject *_wrap_set_reset_key(PyObject *self, PyObject *args) {
2554 PyObject *resultobj;
2555 std::string *arg1 = 0 ;
2556 std::string temp1 ;
2557 PyObject * obj0 = 0 ;
2558
2559 if(!PyArg_ParseTuple(args,(char *)"O:set_reset_key",&obj0)) goto fail;
2560 {
2561 if (PyString_Check(obj0)) {
2562 temp1 = std::string(PyString_AsString(obj0));
2563 arg1 = &temp1;
2564 }else {
2565 SWIG_exception(SWIG_TypeError, "string expected");
2566 }
2567 }
2568 ob::set_reset_key((std::string const &)*arg1);
2569
2570 Py_INCREF(Py_None); resultobj = Py_None;
2571 return resultobj;
2572 fail:
2573 return NULL;
2574 }
2575
2576
2577 static PyMethodDef SwigMethods[] = {
2578 { (char *)"Openbox_instance", _wrap_Openbox_instance, METH_VARARGS },
2579 { (char *)"Cursors_session_set", _wrap_Cursors_session_set, METH_VARARGS },
2580 { (char *)"Cursors_session_get", _wrap_Cursors_session_get, METH_VARARGS },
2581 { (char *)"Cursors_move_set", _wrap_Cursors_move_set, METH_VARARGS },
2582 { (char *)"Cursors_move_get", _wrap_Cursors_move_get, METH_VARARGS },
2583 { (char *)"Cursors_ll_angle_set", _wrap_Cursors_ll_angle_set, METH_VARARGS },
2584 { (char *)"Cursors_ll_angle_get", _wrap_Cursors_ll_angle_get, METH_VARARGS },
2585 { (char *)"Cursors_lr_angle_set", _wrap_Cursors_lr_angle_set, METH_VARARGS },
2586 { (char *)"Cursors_lr_angle_get", _wrap_Cursors_lr_angle_get, METH_VARARGS },
2587 { (char *)"Cursors_ul_angle_set", _wrap_Cursors_ul_angle_set, METH_VARARGS },
2588 { (char *)"Cursors_ul_angle_get", _wrap_Cursors_ul_angle_get, METH_VARARGS },
2589 { (char *)"Cursors_ur_angle_set", _wrap_Cursors_ur_angle_set, METH_VARARGS },
2590 { (char *)"Cursors_ur_angle_get", _wrap_Cursors_ur_angle_get, METH_VARARGS },
2591 { (char *)"Cursors_swigregister", Cursors_swigregister, METH_VARARGS },
2592 { (char *)"Openbox_state", _wrap_Openbox_state, METH_VARARGS },
2593 { (char *)"Openbox_timerManager", _wrap_Openbox_timerManager, METH_VARARGS },
2594 { (char *)"Openbox_property", _wrap_Openbox_property, METH_VARARGS },
2595 { (char *)"Openbox_actions", _wrap_Openbox_actions, METH_VARARGS },
2596 { (char *)"Openbox_bindings", _wrap_Openbox_bindings, METH_VARARGS },
2597 { (char *)"Openbox_screen", _wrap_Openbox_screen, METH_VARARGS },
2598 { (char *)"Openbox_screenCount", _wrap_Openbox_screenCount, METH_VARARGS },
2599 { (char *)"Openbox_cursors", _wrap_Openbox_cursors, METH_VARARGS },
2600 { (char *)"Openbox_addClient", _wrap_Openbox_addClient, METH_VARARGS },
2601 { (char *)"Openbox_removeClient", _wrap_Openbox_removeClient, METH_VARARGS },
2602 { (char *)"Openbox_findClient", _wrap_Openbox_findClient, METH_VARARGS },
2603 { (char *)"Openbox_focusedClient", _wrap_Openbox_focusedClient, METH_VARARGS },
2604 { (char *)"Openbox_setFocusedClient", _wrap_Openbox_setFocusedClient, METH_VARARGS },
2605 { (char *)"Openbox_focusedScreen", _wrap_Openbox_focusedScreen, METH_VARARGS },
2606 { (char *)"Openbox_shutdown", _wrap_Openbox_shutdown, METH_VARARGS },
2607 { (char *)"Openbox_swigregister", Openbox_swigregister, METH_VARARGS },
2608 { (char *)"OBScreen_client", _wrap_OBScreen_client, METH_VARARGS },
2609 { (char *)"OBScreen_clientCount", _wrap_OBScreen_clientCount, METH_VARARGS },
2610 { (char *)"OBScreen_managed", _wrap_OBScreen_managed, METH_VARARGS },
2611 { (char *)"OBScreen_imageControl", _wrap_OBScreen_imageControl, METH_VARARGS },
2612 { (char *)"OBScreen_area", _wrap_OBScreen_area, METH_VARARGS },
2613 { (char *)"OBScreen_style", _wrap_OBScreen_style, METH_VARARGS },
2614 { (char *)"OBScreen_focuswindow", _wrap_OBScreen_focuswindow, METH_VARARGS },
2615 { (char *)"OBScreen_addStrut", _wrap_OBScreen_addStrut, METH_VARARGS },
2616 { (char *)"OBScreen_removeStrut", _wrap_OBScreen_removeStrut, METH_VARARGS },
2617 { (char *)"OBScreen_manageExisting", _wrap_OBScreen_manageExisting, METH_VARARGS },
2618 { (char *)"OBScreen_manageWindow", _wrap_OBScreen_manageWindow, METH_VARARGS },
2619 { (char *)"OBScreen_unmanageWindow", _wrap_OBScreen_unmanageWindow, METH_VARARGS },
2620 { (char *)"OBScreen_swigregister", OBScreen_swigregister, METH_VARARGS },
2621 { (char *)"MwmHints_flags_set", _wrap_MwmHints_flags_set, METH_VARARGS },
2622 { (char *)"MwmHints_flags_get", _wrap_MwmHints_flags_get, METH_VARARGS },
2623 { (char *)"MwmHints_functions_set", _wrap_MwmHints_functions_set, METH_VARARGS },
2624 { (char *)"MwmHints_functions_get", _wrap_MwmHints_functions_get, METH_VARARGS },
2625 { (char *)"MwmHints_decorations_set", _wrap_MwmHints_decorations_set, METH_VARARGS },
2626 { (char *)"MwmHints_decorations_get", _wrap_MwmHints_decorations_get, METH_VARARGS },
2627 { (char *)"MwmHints_swigregister", MwmHints_swigregister, METH_VARARGS },
2628 { (char *)"OBClient_frame_set", _wrap_OBClient_frame_set, METH_VARARGS },
2629 { (char *)"OBClient_frame_get", _wrap_OBClient_frame_get, METH_VARARGS },
2630 { (char *)"OBClient_ignore_unmaps_set", _wrap_OBClient_ignore_unmaps_set, METH_VARARGS },
2631 { (char *)"OBClient_ignore_unmaps_get", _wrap_OBClient_ignore_unmaps_get, METH_VARARGS },
2632 { (char *)"OBClient_screen", _wrap_OBClient_screen, METH_VARARGS },
2633 { (char *)"OBClient_window", _wrap_OBClient_window, METH_VARARGS },
2634 { (char *)"OBClient_type", _wrap_OBClient_type, METH_VARARGS },
2635 { (char *)"OBClient_desktop", _wrap_OBClient_desktop, METH_VARARGS },
2636 { (char *)"OBClient_title", _wrap_OBClient_title, METH_VARARGS },
2637 { (char *)"OBClient_iconTitle", _wrap_OBClient_iconTitle, METH_VARARGS },
2638 { (char *)"OBClient_appName", _wrap_OBClient_appName, METH_VARARGS },
2639 { (char *)"OBClient_appClass", _wrap_OBClient_appClass, METH_VARARGS },
2640 { (char *)"OBClient_canFocus", _wrap_OBClient_canFocus, METH_VARARGS },
2641 { (char *)"OBClient_urgent", _wrap_OBClient_urgent, METH_VARARGS },
2642 { (char *)"OBClient_focusNotify", _wrap_OBClient_focusNotify, METH_VARARGS },
2643 { (char *)"OBClient_shaped", _wrap_OBClient_shaped, METH_VARARGS },
2644 { (char *)"OBClient_gravity", _wrap_OBClient_gravity, METH_VARARGS },
2645 { (char *)"OBClient_positionRequested", _wrap_OBClient_positionRequested, METH_VARARGS },
2646 { (char *)"OBClient_decorations", _wrap_OBClient_decorations, METH_VARARGS },
2647 { (char *)"OBClient_funtions", _wrap_OBClient_funtions, METH_VARARGS },
2648 { (char *)"OBClient_modal", _wrap_OBClient_modal, METH_VARARGS },
2649 { (char *)"OBClient_shaded", _wrap_OBClient_shaded, METH_VARARGS },
2650 { (char *)"OBClient_iconic", _wrap_OBClient_iconic, METH_VARARGS },
2651 { (char *)"OBClient_maxVert", _wrap_OBClient_maxVert, METH_VARARGS },
2652 { (char *)"OBClient_maxHorz", _wrap_OBClient_maxHorz, METH_VARARGS },
2653 { (char *)"OBClient_fullscreen", _wrap_OBClient_fullscreen, METH_VARARGS },
2654 { (char *)"OBClient_floating", _wrap_OBClient_floating, METH_VARARGS },
2655 { (char *)"OBClient_toggleClientBorder", _wrap_OBClient_toggleClientBorder, METH_VARARGS },
2656 { (char *)"OBClient_area", _wrap_OBClient_area, METH_VARARGS },
2657 { (char *)"OBClient_move", _wrap_OBClient_move, METH_VARARGS },
2658 { (char *)"OBClient_resize", _wrap_OBClient_resize, METH_VARARGS },
2659 { (char *)"OBClient_close", _wrap_OBClient_close, METH_VARARGS },
2660 { (char *)"OBClient_focus", _wrap_OBClient_focus, METH_VARARGS },
2661 { (char *)"OBClient_unfocus", _wrap_OBClient_unfocus, METH_VARARGS },
2662 { (char *)"OBClient_focusHandler", _wrap_OBClient_focusHandler, METH_VARARGS },
2663 { (char *)"OBClient_unfocusHandler", _wrap_OBClient_unfocusHandler, METH_VARARGS },
2664 { (char *)"OBClient_propertyHandler", _wrap_OBClient_propertyHandler, METH_VARARGS },
2665 { (char *)"OBClient_clientMessageHandler", _wrap_OBClient_clientMessageHandler, METH_VARARGS },
2666 { (char *)"OBClient_shapeHandler", _wrap_OBClient_shapeHandler, METH_VARARGS },
2667 { (char *)"OBClient_configureRequestHandler", _wrap_OBClient_configureRequestHandler, METH_VARARGS },
2668 { (char *)"OBClient_unmapHandler", _wrap_OBClient_unmapHandler, METH_VARARGS },
2669 { (char *)"OBClient_destroyHandler", _wrap_OBClient_destroyHandler, METH_VARARGS },
2670 { (char *)"OBClient_reparentHandler", _wrap_OBClient_reparentHandler, METH_VARARGS },
2671 { (char *)"OBClient_swigregister", OBClient_swigregister, METH_VARARGS },
2672 { (char *)"mbind", _wrap_mbind, METH_VARARGS },
2673 { (char *)"kbind", _wrap_kbind, METH_VARARGS },
2674 { (char *)"kunbind", _wrap_kunbind, METH_VARARGS },
2675 { (char *)"kunbind_all", _wrap_kunbind_all, METH_VARARGS },
2676 { (char *)"set_reset_key", _wrap_set_reset_key, METH_VARARGS },
2677 { NULL, NULL }
2678 };
2679
2680
2681 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2682
2683 static void *_p_ob__OBActionsTo_p_otk__OtkEventHandler(void *x) {
2684 return (void *)((otk::OtkEventHandler *) ((ob::OBActions *) x));
2685 }
2686 static void *_p_ob__OpenboxTo_p_otk__OtkEventHandler(void *x) {
2687 return (void *)((otk::OtkEventHandler *) ((ob::Openbox *) x));
2688 }
2689 static void *_p_ob__OBClientTo_p_otk__OtkEventHandler(void *x) {
2690 return (void *)((otk::OtkEventHandler *) ((ob::OBClient *) x));
2691 }
2692 static void *_p_ob__OBClientTo_p_ob__OBWidget(void *x) {
2693 return (void *)((ob::OBWidget *) ((ob::OBClient *) x));
2694 }
2695 static void *_p_ob__OpenboxTo_p_otk__OtkEventDispatcher(void *x) {
2696 return (void *)((otk::OtkEventDispatcher *) ((ob::Openbox *) x));
2697 }
2698 static swig_type_info _swigt__p_otk__OBTimerQueueManager[] = {{"_p_otk__OBTimerQueueManager", 0, "otk::OBTimerQueueManager *", 0},{"_p_otk__OBTimerQueueManager"},{0}};
2699 static swig_type_info _swigt__p_ob__OBActions[] = {{"_p_ob__OBActions", 0, "ob::OBActions *", 0},{"_p_ob__OBActions"},{0}};
2700 static swig_type_info _swigt__p_ob__Cursors[] = {{"_p_ob__Cursors", 0, "ob::Cursors *", 0},{"_p_ob__Cursors"},{0}};
2701 static swig_type_info _swigt__p_ob__OBScreen[] = {{"_p_ob__OBScreen", 0, "ob::OBScreen *", 0},{"_p_ob__OBScreen"},{0}};
2702 static swig_type_info _swigt__p_otk__Style[] = {{"_p_otk__Style", 0, "otk::Style *", 0},{"_p_otk__Style"},{0}};
2703 static swig_type_info _swigt__p_ob__OBFrame[] = {{"_p_ob__OBFrame", 0, "ob::OBFrame *", 0},{"_p_ob__OBFrame"},{0}};
2704 static swig_type_info _swigt__p_XReparentEvent[] = {{"_p_XReparentEvent", 0, "XReparentEvent *", 0},{"_p_XReparentEvent"},{0}};
2705 static swig_type_info _swigt__p_ob__OBClient[] = {{"_p_ob__OBClient", 0, "ob::OBClient *", 0},{"_p_ob__OBClient"},{0}};
2706 static swig_type_info _swigt__p_ob__Openbox[] = {{"_p_ob__Openbox", 0, "ob::Openbox *", 0},{"_p_ob__Openbox"},{0}};
2707 static swig_type_info _swigt__p_otk__Strut[] = {{"_p_otk__Strut", 0, "otk::Strut *", 0},{"_p_otk__Strut"},{0}};
2708 static swig_type_info _swigt__p_XShapeEvent[] = {{"_p_XShapeEvent", 0, "XShapeEvent *", 0},{"_p_XShapeEvent"},{0}};
2709 static swig_type_info _swigt__p_XConfigureRequestEvent[] = {{"_p_XConfigureRequestEvent", 0, "XConfigureRequestEvent *", 0},{"_p_XConfigureRequestEvent"},{0}};
2710 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}};
2711 static swig_type_info _swigt__p_otk__Rect[] = {{"_p_otk__Rect", 0, "otk::Rect *", 0},{"_p_otk__Rect"},{0}};
2712 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}};
2713 static swig_type_info _swigt__p_XFocusChangeEvent[] = {{"_p_XFocusChangeEvent", 0, "XFocusChangeEvent *", 0},{"_p_XFocusChangeEvent"},{0}};
2714 static swig_type_info _swigt__p_XClientMessageEvent[] = {{"_p_XClientMessageEvent", 0, "XClientMessageEvent *", 0},{"_p_XClientMessageEvent"},{0}};
2715 static swig_type_info _swigt__p_otk__OBProperty[] = {{"_p_otk__OBProperty", 0, "otk::OBProperty *", 0},{"_p_otk__OBProperty"},{0}};
2716 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}};
2717 static swig_type_info _swigt__p_XPropertyEvent[] = {{"_p_XPropertyEvent", 0, "XPropertyEvent *", 0},{"_p_XPropertyEvent"},{0}};
2718 static swig_type_info _swigt__p_XDestroyWindowEvent[] = {{"_p_XDestroyWindowEvent", 0, "XDestroyWindowEvent *", 0},{"_p_XDestroyWindowEvent"},{0}};
2719 static swig_type_info _swigt__p_otk__BImageControl[] = {{"_p_otk__BImageControl", 0, "otk::BImageControl *", 0},{"_p_otk__BImageControl"},{0}};
2720 static swig_type_info _swigt__p_PyObject[] = {{"_p_PyObject", 0, "PyObject *", 0},{"_p_PyObject"},{0}};
2721 static swig_type_info _swigt__p_ob__OBBindings[] = {{"_p_ob__OBBindings", 0, "ob::OBBindings *", 0},{"_p_ob__OBBindings"},{0}};
2722 static swig_type_info _swigt__p_ob__MwmHints[] = {{"_p_ob__MwmHints", 0, "ob::MwmHints *", 0},{"_p_ob__MwmHints"},{0}};
2723 static swig_type_info _swigt__p_XUnmapEvent[] = {{"_p_XUnmapEvent", 0, "XUnmapEvent *", 0},{"_p_XUnmapEvent"},{0}};
2724
2725 static swig_type_info *swig_types_initial[] = {
2726 _swigt__p_otk__OBTimerQueueManager,
2727 _swigt__p_ob__OBActions,
2728 _swigt__p_ob__Cursors,
2729 _swigt__p_ob__OBScreen,
2730 _swigt__p_otk__Style,
2731 _swigt__p_ob__OBFrame,
2732 _swigt__p_XReparentEvent,
2733 _swigt__p_ob__OBClient,
2734 _swigt__p_ob__Openbox,
2735 _swigt__p_otk__Strut,
2736 _swigt__p_XShapeEvent,
2737 _swigt__p_XConfigureRequestEvent,
2738 _swigt__p_otk__OtkEventHandler,
2739 _swigt__p_otk__Rect,
2740 _swigt__p_ob__OBWidget,
2741 _swigt__p_XFocusChangeEvent,
2742 _swigt__p_XClientMessageEvent,
2743 _swigt__p_otk__OBProperty,
2744 _swigt__p_otk__OtkEventDispatcher,
2745 _swigt__p_XPropertyEvent,
2746 _swigt__p_XDestroyWindowEvent,
2747 _swigt__p_otk__BImageControl,
2748 _swigt__p_PyObject,
2749 _swigt__p_ob__OBBindings,
2750 _swigt__p_ob__MwmHints,
2751 _swigt__p_XUnmapEvent,
2752 0
2753 };
2754
2755
2756 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2757
2758 static swig_const_info swig_const_table[] = {
2759 { SWIG_PY_INT, (char *)"Openbox_State_Starting", (long) ob::Openbox::State_Starting, 0, 0, 0},
2760 { SWIG_PY_INT, (char *)"Openbox_State_Normal", (long) ob::Openbox::State_Normal, 0, 0, 0},
2761 { SWIG_PY_INT, (char *)"Openbox_State_Exiting", (long) ob::Openbox::State_Exiting, 0, 0, 0},
2762 { SWIG_PY_INT, (char *)"OBScreen_event_mask", (long) ob::OBScreen::event_mask, 0, 0, 0},
2763 { SWIG_PY_INT, (char *)"MwmHints_elements", (long) ob::MwmHints::elements, 0, 0, 0},
2764 { SWIG_PY_INT, (char *)"OBClient_TopLeft", (long) ob::OBClient::TopLeft, 0, 0, 0},
2765 { SWIG_PY_INT, (char *)"OBClient_TopRight", (long) ob::OBClient::TopRight, 0, 0, 0},
2766 { SWIG_PY_INT, (char *)"OBClient_BottomLeft", (long) ob::OBClient::BottomLeft, 0, 0, 0},
2767 { SWIG_PY_INT, (char *)"OBClient_BottomRight", (long) ob::OBClient::BottomRight, 0, 0, 0},
2768 { SWIG_PY_INT, (char *)"OBClient_Type_Desktop", (long) ob::OBClient::Type_Desktop, 0, 0, 0},
2769 { SWIG_PY_INT, (char *)"OBClient_Type_Dock", (long) ob::OBClient::Type_Dock, 0, 0, 0},
2770 { SWIG_PY_INT, (char *)"OBClient_Type_Toolbar", (long) ob::OBClient::Type_Toolbar, 0, 0, 0},
2771 { SWIG_PY_INT, (char *)"OBClient_Type_Menu", (long) ob::OBClient::Type_Menu, 0, 0, 0},
2772 { SWIG_PY_INT, (char *)"OBClient_Type_Utility", (long) ob::OBClient::Type_Utility, 0, 0, 0},
2773 { SWIG_PY_INT, (char *)"OBClient_Type_Splash", (long) ob::OBClient::Type_Splash, 0, 0, 0},
2774 { SWIG_PY_INT, (char *)"OBClient_Type_Dialog", (long) ob::OBClient::Type_Dialog, 0, 0, 0},
2775 { SWIG_PY_INT, (char *)"OBClient_Type_Normal", (long) ob::OBClient::Type_Normal, 0, 0, 0},
2776 { SWIG_PY_INT, (char *)"OBClient_MwmFlag_Functions", (long) ob::OBClient::MwmFlag_Functions, 0, 0, 0},
2777 { SWIG_PY_INT, (char *)"OBClient_MwmFlag_Decorations", (long) ob::OBClient::MwmFlag_Decorations, 0, 0, 0},
2778 { SWIG_PY_INT, (char *)"OBClient_MwmFunc_All", (long) ob::OBClient::MwmFunc_All, 0, 0, 0},
2779 { SWIG_PY_INT, (char *)"OBClient_MwmFunc_Resize", (long) ob::OBClient::MwmFunc_Resize, 0, 0, 0},
2780 { SWIG_PY_INT, (char *)"OBClient_MwmFunc_Move", (long) ob::OBClient::MwmFunc_Move, 0, 0, 0},
2781 { SWIG_PY_INT, (char *)"OBClient_MwmFunc_Iconify", (long) ob::OBClient::MwmFunc_Iconify, 0, 0, 0},
2782 { SWIG_PY_INT, (char *)"OBClient_MwmFunc_Maximize", (long) ob::OBClient::MwmFunc_Maximize, 0, 0, 0},
2783 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_All", (long) ob::OBClient::MwmDecor_All, 0, 0, 0},
2784 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_Border", (long) ob::OBClient::MwmDecor_Border, 0, 0, 0},
2785 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_Handle", (long) ob::OBClient::MwmDecor_Handle, 0, 0, 0},
2786 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_Title", (long) ob::OBClient::MwmDecor_Title, 0, 0, 0},
2787 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_Iconify", (long) ob::OBClient::MwmDecor_Iconify, 0, 0, 0},
2788 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_Maximize", (long) ob::OBClient::MwmDecor_Maximize, 0, 0, 0},
2789 { SWIG_PY_INT, (char *)"OBClient_Func_Resize", (long) ob::OBClient::Func_Resize, 0, 0, 0},
2790 { SWIG_PY_INT, (char *)"OBClient_Func_Move", (long) ob::OBClient::Func_Move, 0, 0, 0},
2791 { SWIG_PY_INT, (char *)"OBClient_Func_Iconify", (long) ob::OBClient::Func_Iconify, 0, 0, 0},
2792 { SWIG_PY_INT, (char *)"OBClient_Func_Maximize", (long) ob::OBClient::Func_Maximize, 0, 0, 0},
2793 { SWIG_PY_INT, (char *)"OBClient_Func_Close", (long) ob::OBClient::Func_Close, 0, 0, 0},
2794 { SWIG_PY_INT, (char *)"OBClient_Decor_Titlebar", (long) ob::OBClient::Decor_Titlebar, 0, 0, 0},
2795 { SWIG_PY_INT, (char *)"OBClient_Decor_Handle", (long) ob::OBClient::Decor_Handle, 0, 0, 0},
2796 { SWIG_PY_INT, (char *)"OBClient_Decor_Border", (long) ob::OBClient::Decor_Border, 0, 0, 0},
2797 { SWIG_PY_INT, (char *)"OBClient_Decor_Iconify", (long) ob::OBClient::Decor_Iconify, 0, 0, 0},
2798 { SWIG_PY_INT, (char *)"OBClient_Decor_Maximize", (long) ob::OBClient::Decor_Maximize, 0, 0, 0},
2799 { SWIG_PY_INT, (char *)"OBClient_Decor_Sticky", (long) ob::OBClient::Decor_Sticky, 0, 0, 0},
2800 { SWIG_PY_INT, (char *)"OBClient_Decor_Close", (long) ob::OBClient::Decor_Close, 0, 0, 0},
2801 { SWIG_PY_INT, (char *)"OBClient_State_Remove", (long) ob::OBClient::State_Remove, 0, 0, 0},
2802 { SWIG_PY_INT, (char *)"OBClient_State_Add", (long) ob::OBClient::State_Add, 0, 0, 0},
2803 { SWIG_PY_INT, (char *)"OBClient_State_Toggle", (long) ob::OBClient::State_Toggle, 0, 0, 0},
2804 { SWIG_PY_INT, (char *)"OBClient_event_mask", (long) ob::OBClient::event_mask, 0, 0, 0},
2805 { SWIG_PY_INT, (char *)"OBClient_no_propagate_mask", (long) ob::OBClient::no_propagate_mask, 0, 0, 0},
2806 { SWIG_PY_INT, (char *)"MC_Frame", (long) ob::MC_Frame, 0, 0, 0},
2807 { SWIG_PY_INT, (char *)"MC_Titlebar", (long) ob::MC_Titlebar, 0, 0, 0},
2808 { SWIG_PY_INT, (char *)"MC_Window", (long) ob::MC_Window, 0, 0, 0},
2809 { SWIG_PY_INT, (char *)"MC_MaximizeButton", (long) ob::MC_MaximizeButton, 0, 0, 0},
2810 { SWIG_PY_INT, (char *)"MC_CloseButton", (long) ob::MC_CloseButton, 0, 0, 0},
2811 { SWIG_PY_INT, (char *)"MC_IconifyButton", (long) ob::MC_IconifyButton, 0, 0, 0},
2812 { SWIG_PY_INT, (char *)"MC_StickyButton", (long) ob::MC_StickyButton, 0, 0, 0},
2813 { SWIG_PY_INT, (char *)"MC_Grip", (long) ob::MC_Grip, 0, 0, 0},
2814 { SWIG_PY_INT, (char *)"MC_Root", (long) ob::MC_Root, 0, 0, 0},
2815 { SWIG_PY_INT, (char *)"MC_MenuItem", (long) ob::MC_MenuItem, 0, 0, 0},
2816 { SWIG_PY_INT, (char *)"NUM_MOUSE_CONTEXT", (long) ob::NUM_MOUSE_CONTEXT, 0, 0, 0},
2817 { SWIG_PY_INT, (char *)"MousePress", (long) ob::MousePress, 0, 0, 0},
2818 { SWIG_PY_INT, (char *)"MouseClick", (long) ob::MouseClick, 0, 0, 0},
2819 { SWIG_PY_INT, (char *)"MouseDoubleClick", (long) ob::MouseDoubleClick, 0, 0, 0},
2820 { SWIG_PY_INT, (char *)"MouseMotion", (long) ob::MouseMotion, 0, 0, 0},
2821 { SWIG_PY_INT, (char *)"NUM_MOUSE_ACTION", (long) ob::NUM_MOUSE_ACTION, 0, 0, 0},
2822 { SWIG_PY_INT, (char *)"KC_Menu", (long) ob::KC_Menu, 0, 0, 0},
2823 { SWIG_PY_INT, (char *)"KC_All", (long) ob::KC_All, 0, 0, 0},
2824 { SWIG_PY_INT, (char *)"NUM_KEY_CONTEXT", (long) ob::NUM_KEY_CONTEXT, 0, 0, 0},
2825 { SWIG_PY_INT, (char *)"X_PROTOCOL", (long) 11, 0, 0, 0},
2826 { SWIG_PY_INT, (char *)"X_PROTOCOL_REVISION", (long) 0, 0, 0, 0},
2827 { SWIG_PY_INT, (char *)"None", (long) 0L, 0, 0, 0},
2828 { SWIG_PY_INT, (char *)"ParentRelative", (long) 1L, 0, 0, 0},
2829 { SWIG_PY_INT, (char *)"CopyFromParent", (long) 0L, 0, 0, 0},
2830 { SWIG_PY_INT, (char *)"PointerWindow", (long) 0L, 0, 0, 0},
2831 { SWIG_PY_INT, (char *)"InputFocus", (long) 1L, 0, 0, 0},
2832 { SWIG_PY_INT, (char *)"PointerRoot", (long) 1L, 0, 0, 0},
2833 { SWIG_PY_INT, (char *)"AnyPropertyType", (long) 0L, 0, 0, 0},
2834 { SWIG_PY_INT, (char *)"AnyKey", (long) 0L, 0, 0, 0},
2835 { SWIG_PY_INT, (char *)"AnyButton", (long) 0L, 0, 0, 0},
2836 { SWIG_PY_INT, (char *)"AllTemporary", (long) 0L, 0, 0, 0},
2837 { SWIG_PY_INT, (char *)"CurrentTime", (long) 0L, 0, 0, 0},
2838 { SWIG_PY_INT, (char *)"NoSymbol", (long) 0L, 0, 0, 0},
2839 { SWIG_PY_INT, (char *)"NoEventMask", (long) 0L, 0, 0, 0},
2840 { SWIG_PY_INT, (char *)"KeyPressMask", (long) (1L<<0), 0, 0, 0},
2841 { SWIG_PY_INT, (char *)"KeyReleaseMask", (long) (1L<<1), 0, 0, 0},
2842 { SWIG_PY_INT, (char *)"ButtonPressMask", (long) (1L<<2), 0, 0, 0},
2843 { SWIG_PY_INT, (char *)"ButtonReleaseMask", (long) (1L<<3), 0, 0, 0},
2844 { SWIG_PY_INT, (char *)"EnterWindowMask", (long) (1L<<4), 0, 0, 0},
2845 { SWIG_PY_INT, (char *)"LeaveWindowMask", (long) (1L<<5), 0, 0, 0},
2846 { SWIG_PY_INT, (char *)"PointerMotionMask", (long) (1L<<6), 0, 0, 0},
2847 { SWIG_PY_INT, (char *)"PointerMotionHintMask", (long) (1L<<7), 0, 0, 0},
2848 { SWIG_PY_INT, (char *)"Button1MotionMask", (long) (1L<<8), 0, 0, 0},
2849 { SWIG_PY_INT, (char *)"Button2MotionMask", (long) (1L<<9), 0, 0, 0},
2850 { SWIG_PY_INT, (char *)"Button3MotionMask", (long) (1L<<10), 0, 0, 0},
2851 { SWIG_PY_INT, (char *)"Button4MotionMask", (long) (1L<<11), 0, 0, 0},
2852 { SWIG_PY_INT, (char *)"Button5MotionMask", (long) (1L<<12), 0, 0, 0},
2853 { SWIG_PY_INT, (char *)"ButtonMotionMask", (long) (1L<<13), 0, 0, 0},
2854 { SWIG_PY_INT, (char *)"KeymapStateMask", (long) (1L<<14), 0, 0, 0},
2855 { SWIG_PY_INT, (char *)"ExposureMask", (long) (1L<<15), 0, 0, 0},
2856 { SWIG_PY_INT, (char *)"VisibilityChangeMask", (long) (1L<<16), 0, 0, 0},
2857 { SWIG_PY_INT, (char *)"StructureNotifyMask", (long) (1L<<17), 0, 0, 0},
2858 { SWIG_PY_INT, (char *)"ResizeRedirectMask", (long) (1L<<18), 0, 0, 0},
2859 { SWIG_PY_INT, (char *)"SubstructureNotifyMask", (long) (1L<<19), 0, 0, 0},
2860 { SWIG_PY_INT, (char *)"SubstructureRedirectMask", (long) (1L<<20), 0, 0, 0},
2861 { SWIG_PY_INT, (char *)"FocusChangeMask", (long) (1L<<21), 0, 0, 0},
2862 { SWIG_PY_INT, (char *)"PropertyChangeMask", (long) (1L<<22), 0, 0, 0},
2863 { SWIG_PY_INT, (char *)"ColormapChangeMask", (long) (1L<<23), 0, 0, 0},
2864 { SWIG_PY_INT, (char *)"OwnerGrabButtonMask", (long) (1L<<24), 0, 0, 0},
2865 { SWIG_PY_INT, (char *)"KeyPress", (long) 2, 0, 0, 0},
2866 { SWIG_PY_INT, (char *)"KeyRelease", (long) 3, 0, 0, 0},
2867 { SWIG_PY_INT, (char *)"ButtonPress", (long) 4, 0, 0, 0},
2868 { SWIG_PY_INT, (char *)"ButtonRelease", (long) 5, 0, 0, 0},
2869 { SWIG_PY_INT, (char *)"MotionNotify", (long) 6, 0, 0, 0},
2870 { SWIG_PY_INT, (char *)"EnterNotify", (long) 7, 0, 0, 0},
2871 { SWIG_PY_INT, (char *)"LeaveNotify", (long) 8, 0, 0, 0},
2872 { SWIG_PY_INT, (char *)"FocusIn", (long) 9, 0, 0, 0},
2873 { SWIG_PY_INT, (char *)"FocusOut", (long) 10, 0, 0, 0},
2874 { SWIG_PY_INT, (char *)"KeymapNotify", (long) 11, 0, 0, 0},
2875 { SWIG_PY_INT, (char *)"Expose", (long) 12, 0, 0, 0},
2876 { SWIG_PY_INT, (char *)"GraphicsExpose", (long) 13, 0, 0, 0},
2877 { SWIG_PY_INT, (char *)"NoExpose", (long) 14, 0, 0, 0},
2878 { SWIG_PY_INT, (char *)"VisibilityNotify", (long) 15, 0, 0, 0},
2879 { SWIG_PY_INT, (char *)"CreateNotify", (long) 16, 0, 0, 0},
2880 { SWIG_PY_INT, (char *)"DestroyNotify", (long) 17, 0, 0, 0},
2881 { SWIG_PY_INT, (char *)"UnmapNotify", (long) 18, 0, 0, 0},
2882 { SWIG_PY_INT, (char *)"MapNotify", (long) 19, 0, 0, 0},
2883 { SWIG_PY_INT, (char *)"MapRequest", (long) 20, 0, 0, 0},
2884 { SWIG_PY_INT, (char *)"ReparentNotify", (long) 21, 0, 0, 0},
2885 { SWIG_PY_INT, (char *)"ConfigureNotify", (long) 22, 0, 0, 0},
2886 { SWIG_PY_INT, (char *)"ConfigureRequest", (long) 23, 0, 0, 0},
2887 { SWIG_PY_INT, (char *)"GravityNotify", (long) 24, 0, 0, 0},
2888 { SWIG_PY_INT, (char *)"ResizeRequest", (long) 25, 0, 0, 0},
2889 { SWIG_PY_INT, (char *)"CirculateNotify", (long) 26, 0, 0, 0},
2890 { SWIG_PY_INT, (char *)"CirculateRequest", (long) 27, 0, 0, 0},
2891 { SWIG_PY_INT, (char *)"PropertyNotify", (long) 28, 0, 0, 0},
2892 { SWIG_PY_INT, (char *)"SelectionClear", (long) 29, 0, 0, 0},
2893 { SWIG_PY_INT, (char *)"SelectionRequest", (long) 30, 0, 0, 0},
2894 { SWIG_PY_INT, (char *)"SelectionNotify", (long) 31, 0, 0, 0},
2895 { SWIG_PY_INT, (char *)"ColormapNotify", (long) 32, 0, 0, 0},
2896 { SWIG_PY_INT, (char *)"ClientMessage", (long) 33, 0, 0, 0},
2897 { SWIG_PY_INT, (char *)"MappingNotify", (long) 34, 0, 0, 0},
2898 { SWIG_PY_INT, (char *)"LASTEvent", (long) 35, 0, 0, 0},
2899 { SWIG_PY_INT, (char *)"ShiftMask", (long) (1<<0), 0, 0, 0},
2900 { SWIG_PY_INT, (char *)"LockMask", (long) (1<<1), 0, 0, 0},
2901 { SWIG_PY_INT, (char *)"ControlMask", (long) (1<<2), 0, 0, 0},
2902 { SWIG_PY_INT, (char *)"Mod1Mask", (long) (1<<3), 0, 0, 0},
2903 { SWIG_PY_INT, (char *)"Mod2Mask", (long) (1<<4), 0, 0, 0},
2904 { SWIG_PY_INT, (char *)"Mod3Mask", (long) (1<<5), 0, 0, 0},
2905 { SWIG_PY_INT, (char *)"Mod4Mask", (long) (1<<6), 0, 0, 0},
2906 { SWIG_PY_INT, (char *)"Mod5Mask", (long) (1<<7), 0, 0, 0},
2907 { SWIG_PY_INT, (char *)"ShiftMapIndex", (long) 0, 0, 0, 0},
2908 { SWIG_PY_INT, (char *)"LockMapIndex", (long) 1, 0, 0, 0},
2909 { SWIG_PY_INT, (char *)"ControlMapIndex", (long) 2, 0, 0, 0},
2910 { SWIG_PY_INT, (char *)"Mod1MapIndex", (long) 3, 0, 0, 0},
2911 { SWIG_PY_INT, (char *)"Mod2MapIndex", (long) 4, 0, 0, 0},
2912 { SWIG_PY_INT, (char *)"Mod3MapIndex", (long) 5, 0, 0, 0},
2913 { SWIG_PY_INT, (char *)"Mod4MapIndex", (long) 6, 0, 0, 0},
2914 { SWIG_PY_INT, (char *)"Mod5MapIndex", (long) 7, 0, 0, 0},
2915 { SWIG_PY_INT, (char *)"Button1Mask", (long) (1<<8), 0, 0, 0},
2916 { SWIG_PY_INT, (char *)"Button2Mask", (long) (1<<9), 0, 0, 0},
2917 { SWIG_PY_INT, (char *)"Button3Mask", (long) (1<<10), 0, 0, 0},
2918 { SWIG_PY_INT, (char *)"Button4Mask", (long) (1<<11), 0, 0, 0},
2919 { SWIG_PY_INT, (char *)"Button5Mask", (long) (1<<12), 0, 0, 0},
2920 { SWIG_PY_INT, (char *)"AnyModifier", (long) (1<<15), 0, 0, 0},
2921 { SWIG_PY_INT, (char *)"Button1", (long) 1, 0, 0, 0},
2922 { SWIG_PY_INT, (char *)"Button2", (long) 2, 0, 0, 0},
2923 { SWIG_PY_INT, (char *)"Button3", (long) 3, 0, 0, 0},
2924 { SWIG_PY_INT, (char *)"Button4", (long) 4, 0, 0, 0},
2925 { SWIG_PY_INT, (char *)"Button5", (long) 5, 0, 0, 0},
2926 { SWIG_PY_INT, (char *)"NotifyNormal", (long) 0, 0, 0, 0},
2927 { SWIG_PY_INT, (char *)"NotifyGrab", (long) 1, 0, 0, 0},
2928 { SWIG_PY_INT, (char *)"NotifyUngrab", (long) 2, 0, 0, 0},
2929 { SWIG_PY_INT, (char *)"NotifyWhileGrabbed", (long) 3, 0, 0, 0},
2930 { SWIG_PY_INT, (char *)"NotifyHint", (long) 1, 0, 0, 0},
2931 { SWIG_PY_INT, (char *)"NotifyAncestor", (long) 0, 0, 0, 0},
2932 { SWIG_PY_INT, (char *)"NotifyVirtual", (long) 1, 0, 0, 0},
2933 { SWIG_PY_INT, (char *)"NotifyInferior", (long) 2, 0, 0, 0},
2934 { SWIG_PY_INT, (char *)"NotifyNonlinear", (long) 3, 0, 0, 0},
2935 { SWIG_PY_INT, (char *)"NotifyNonlinearVirtual", (long) 4, 0, 0, 0},
2936 { SWIG_PY_INT, (char *)"NotifyPointer", (long) 5, 0, 0, 0},
2937 { SWIG_PY_INT, (char *)"NotifyPointerRoot", (long) 6, 0, 0, 0},
2938 { SWIG_PY_INT, (char *)"NotifyDetailNone", (long) 7, 0, 0, 0},
2939 { SWIG_PY_INT, (char *)"VisibilityUnobscured", (long) 0, 0, 0, 0},
2940 { SWIG_PY_INT, (char *)"VisibilityPartiallyObscured", (long) 1, 0, 0, 0},
2941 { SWIG_PY_INT, (char *)"VisibilityFullyObscured", (long) 2, 0, 0, 0},
2942 { SWIG_PY_INT, (char *)"PlaceOnTop", (long) 0, 0, 0, 0},
2943 { SWIG_PY_INT, (char *)"PlaceOnBottom", (long) 1, 0, 0, 0},
2944 { SWIG_PY_INT, (char *)"FamilyInternet", (long) 0, 0, 0, 0},
2945 { SWIG_PY_INT, (char *)"FamilyDECnet", (long) 1, 0, 0, 0},
2946 { SWIG_PY_INT, (char *)"FamilyChaos", (long) 2, 0, 0, 0},
2947 { SWIG_PY_INT, (char *)"PropertyNewValue", (long) 0, 0, 0, 0},
2948 { SWIG_PY_INT, (char *)"PropertyDelete", (long) 1, 0, 0, 0},
2949 { SWIG_PY_INT, (char *)"ColormapUninstalled", (long) 0, 0, 0, 0},
2950 { SWIG_PY_INT, (char *)"ColormapInstalled", (long) 1, 0, 0, 0},
2951 { SWIG_PY_INT, (char *)"GrabModeSync", (long) 0, 0, 0, 0},
2952 { SWIG_PY_INT, (char *)"GrabModeAsync", (long) 1, 0, 0, 0},
2953 { SWIG_PY_INT, (char *)"GrabSuccess", (long) 0, 0, 0, 0},
2954 { SWIG_PY_INT, (char *)"AlreadyGrabbed", (long) 1, 0, 0, 0},
2955 { SWIG_PY_INT, (char *)"GrabInvalidTime", (long) 2, 0, 0, 0},
2956 { SWIG_PY_INT, (char *)"GrabNotViewable", (long) 3, 0, 0, 0},
2957 { SWIG_PY_INT, (char *)"GrabFrozen", (long) 4, 0, 0, 0},
2958 { SWIG_PY_INT, (char *)"AsyncPointer", (long) 0, 0, 0, 0},
2959 { SWIG_PY_INT, (char *)"SyncPointer", (long) 1, 0, 0, 0},
2960 { SWIG_PY_INT, (char *)"ReplayPointer", (long) 2, 0, 0, 0},
2961 { SWIG_PY_INT, (char *)"AsyncKeyboard", (long) 3, 0, 0, 0},
2962 { SWIG_PY_INT, (char *)"SyncKeyboard", (long) 4, 0, 0, 0},
2963 { SWIG_PY_INT, (char *)"ReplayKeyboard", (long) 5, 0, 0, 0},
2964 { SWIG_PY_INT, (char *)"AsyncBoth", (long) 6, 0, 0, 0},
2965 { SWIG_PY_INT, (char *)"SyncBoth", (long) 7, 0, 0, 0},
2966 { SWIG_PY_INT, (char *)"RevertToParent", (long) 2, 0, 0, 0},
2967 { SWIG_PY_INT, (char *)"Success", (long) 0, 0, 0, 0},
2968 { SWIG_PY_INT, (char *)"BadRequest", (long) 1, 0, 0, 0},
2969 { SWIG_PY_INT, (char *)"BadValue", (long) 2, 0, 0, 0},
2970 { SWIG_PY_INT, (char *)"BadWindow", (long) 3, 0, 0, 0},
2971 { SWIG_PY_INT, (char *)"BadPixmap", (long) 4, 0, 0, 0},
2972 { SWIG_PY_INT, (char *)"BadAtom", (long) 5, 0, 0, 0},
2973 { SWIG_PY_INT, (char *)"BadCursor", (long) 6, 0, 0, 0},
2974 { SWIG_PY_INT, (char *)"BadFont", (long) 7, 0, 0, 0},
2975 { SWIG_PY_INT, (char *)"BadMatch", (long) 8, 0, 0, 0},
2976 { SWIG_PY_INT, (char *)"BadDrawable", (long) 9, 0, 0, 0},
2977 { SWIG_PY_INT, (char *)"BadAccess", (long) 10, 0, 0, 0},
2978 { SWIG_PY_INT, (char *)"BadAlloc", (long) 11, 0, 0, 0},
2979 { SWIG_PY_INT, (char *)"BadColor", (long) 12, 0, 0, 0},
2980 { SWIG_PY_INT, (char *)"BadGC", (long) 13, 0, 0, 0},
2981 { SWIG_PY_INT, (char *)"BadIDChoice", (long) 14, 0, 0, 0},
2982 { SWIG_PY_INT, (char *)"BadName", (long) 15, 0, 0, 0},
2983 { SWIG_PY_INT, (char *)"BadLength", (long) 16, 0, 0, 0},
2984 { SWIG_PY_INT, (char *)"BadImplementation", (long) 17, 0, 0, 0},
2985 { SWIG_PY_INT, (char *)"FirstExtensionError", (long) 128, 0, 0, 0},
2986 { SWIG_PY_INT, (char *)"LastExtensionError", (long) 255, 0, 0, 0},
2987 { SWIG_PY_INT, (char *)"InputOutput", (long) 1, 0, 0, 0},
2988 { SWIG_PY_INT, (char *)"InputOnly", (long) 2, 0, 0, 0},
2989 { SWIG_PY_INT, (char *)"CWBackPixmap", (long) (1L<<0), 0, 0, 0},
2990 { SWIG_PY_INT, (char *)"CWBackPixel", (long) (1L<<1), 0, 0, 0},
2991 { SWIG_PY_INT, (char *)"CWBorderPixmap", (long) (1L<<2), 0, 0, 0},
2992 { SWIG_PY_INT, (char *)"CWBorderPixel", (long) (1L<<3), 0, 0, 0},
2993 { SWIG_PY_INT, (char *)"CWBitGravity", (long) (1L<<4), 0, 0, 0},
2994 { SWIG_PY_INT, (char *)"CWWinGravity", (long) (1L<<5), 0, 0, 0},
2995 { SWIG_PY_INT, (char *)"CWBackingStore", (long) (1L<<6), 0, 0, 0},
2996 { SWIG_PY_INT, (char *)"CWBackingPlanes", (long) (1L<<7), 0, 0, 0},
2997 { SWIG_PY_INT, (char *)"CWBackingPixel", (long) (1L<<8), 0, 0, 0},
2998 { SWIG_PY_INT, (char *)"CWOverrideRedirect", (long) (1L<<9), 0, 0, 0},
2999 { SWIG_PY_INT, (char *)"CWSaveUnder", (long) (1L<<10), 0, 0, 0},
3000 { SWIG_PY_INT, (char *)"CWEventMask", (long) (1L<<11), 0, 0, 0},
3001 { SWIG_PY_INT, (char *)"CWDontPropagate", (long) (1L<<12), 0, 0, 0},
3002 { SWIG_PY_INT, (char *)"CWColormap", (long) (1L<<13), 0, 0, 0},
3003 { SWIG_PY_INT, (char *)"CWCursor", (long) (1L<<14), 0, 0, 0},
3004 { SWIG_PY_INT, (char *)"CWX", (long) (1<<0), 0, 0, 0},
3005 { SWIG_PY_INT, (char *)"CWY", (long) (1<<1), 0, 0, 0},
3006 { SWIG_PY_INT, (char *)"CWWidth", (long) (1<<2), 0, 0, 0},
3007 { SWIG_PY_INT, (char *)"CWHeight", (long) (1<<3), 0, 0, 0},
3008 { SWIG_PY_INT, (char *)"CWBorderWidth", (long) (1<<4), 0, 0, 0},
3009 { SWIG_PY_INT, (char *)"CWSibling", (long) (1<<5), 0, 0, 0},
3010 { SWIG_PY_INT, (char *)"CWStackMode", (long) (1<<6), 0, 0, 0},
3011 { SWIG_PY_INT, (char *)"ForgetGravity", (long) 0, 0, 0, 0},
3012 { SWIG_PY_INT, (char *)"NorthWestGravity", (long) 1, 0, 0, 0},
3013 { SWIG_PY_INT, (char *)"NorthGravity", (long) 2, 0, 0, 0},
3014 { SWIG_PY_INT, (char *)"NorthEastGravity", (long) 3, 0, 0, 0},
3015 { SWIG_PY_INT, (char *)"WestGravity", (long) 4, 0, 0, 0},
3016 { SWIG_PY_INT, (char *)"CenterGravity", (long) 5, 0, 0, 0},
3017 { SWIG_PY_INT, (char *)"EastGravity", (long) 6, 0, 0, 0},
3018 { SWIG_PY_INT, (char *)"SouthWestGravity", (long) 7, 0, 0, 0},
3019 { SWIG_PY_INT, (char *)"SouthGravity", (long) 8, 0, 0, 0},
3020 { SWIG_PY_INT, (char *)"SouthEastGravity", (long) 9, 0, 0, 0},
3021 { SWIG_PY_INT, (char *)"StaticGravity", (long) 10, 0, 0, 0},
3022 { SWIG_PY_INT, (char *)"UnmapGravity", (long) 0, 0, 0, 0},
3023 { SWIG_PY_INT, (char *)"NotUseful", (long) 0, 0, 0, 0},
3024 { SWIG_PY_INT, (char *)"WhenMapped", (long) 1, 0, 0, 0},
3025 { SWIG_PY_INT, (char *)"Always", (long) 2, 0, 0, 0},
3026 { SWIG_PY_INT, (char *)"IsUnmapped", (long) 0, 0, 0, 0},
3027 { SWIG_PY_INT, (char *)"IsUnviewable", (long) 1, 0, 0, 0},
3028 { SWIG_PY_INT, (char *)"IsViewable", (long) 2, 0, 0, 0},
3029 { SWIG_PY_INT, (char *)"SetModeInsert", (long) 0, 0, 0, 0},
3030 { SWIG_PY_INT, (char *)"SetModeDelete", (long) 1, 0, 0, 0},
3031 { SWIG_PY_INT, (char *)"DestroyAll", (long) 0, 0, 0, 0},
3032 { SWIG_PY_INT, (char *)"RetainPermanent", (long) 1, 0, 0, 0},
3033 { SWIG_PY_INT, (char *)"RetainTemporary", (long) 2, 0, 0, 0},
3034 { SWIG_PY_INT, (char *)"Above", (long) 0, 0, 0, 0},
3035 { SWIG_PY_INT, (char *)"Below", (long) 1, 0, 0, 0},
3036 { SWIG_PY_INT, (char *)"TopIf", (long) 2, 0, 0, 0},
3037 { SWIG_PY_INT, (char *)"BottomIf", (long) 3, 0, 0, 0},
3038 { SWIG_PY_INT, (char *)"Opposite", (long) 4, 0, 0, 0},
3039 { SWIG_PY_INT, (char *)"RaiseLowest", (long) 0, 0, 0, 0},
3040 { SWIG_PY_INT, (char *)"LowerHighest", (long) 1, 0, 0, 0},
3041 { SWIG_PY_INT, (char *)"PropModeReplace", (long) 0, 0, 0, 0},
3042 { SWIG_PY_INT, (char *)"PropModePrepend", (long) 1, 0, 0, 0},
3043 { SWIG_PY_INT, (char *)"PropModeAppend", (long) 2, 0, 0, 0},
3044 { SWIG_PY_INT, (char *)"GXclear", (long) 0x0, 0, 0, 0},
3045 { SWIG_PY_INT, (char *)"GXand", (long) 0x1, 0, 0, 0},
3046 { SWIG_PY_INT, (char *)"GXandReverse", (long) 0x2, 0, 0, 0},
3047 { SWIG_PY_INT, (char *)"GXcopy", (long) 0x3, 0, 0, 0},
3048 { SWIG_PY_INT, (char *)"GXandInverted", (long) 0x4, 0, 0, 0},
3049 { SWIG_PY_INT, (char *)"GXnoop", (long) 0x5, 0, 0, 0},
3050 { SWIG_PY_INT, (char *)"GXxor", (long) 0x6, 0, 0, 0},
3051 { SWIG_PY_INT, (char *)"GXor", (long) 0x7, 0, 0, 0},
3052 { SWIG_PY_INT, (char *)"GXnor", (long) 0x8, 0, 0, 0},
3053 { SWIG_PY_INT, (char *)"GXequiv", (long) 0x9, 0, 0, 0},
3054 { SWIG_PY_INT, (char *)"GXinvert", (long) 0xa, 0, 0, 0},
3055 { SWIG_PY_INT, (char *)"GXorReverse", (long) 0xb, 0, 0, 0},
3056 { SWIG_PY_INT, (char *)"GXcopyInverted", (long) 0xc, 0, 0, 0},
3057 { SWIG_PY_INT, (char *)"GXorInverted", (long) 0xd, 0, 0, 0},
3058 { SWIG_PY_INT, (char *)"GXnand", (long) 0xe, 0, 0, 0},
3059 { SWIG_PY_INT, (char *)"GXset", (long) 0xf, 0, 0, 0},
3060 { SWIG_PY_INT, (char *)"LineSolid", (long) 0, 0, 0, 0},
3061 { SWIG_PY_INT, (char *)"LineOnOffDash", (long) 1, 0, 0, 0},
3062 { SWIG_PY_INT, (char *)"LineDoubleDash", (long) 2, 0, 0, 0},
3063 { SWIG_PY_INT, (char *)"CapNotLast", (long) 0, 0, 0, 0},
3064 { SWIG_PY_INT, (char *)"CapButt", (long) 1, 0, 0, 0},
3065 { SWIG_PY_INT, (char *)"CapRound", (long) 2, 0, 0, 0},
3066 { SWIG_PY_INT, (char *)"CapProjecting", (long) 3, 0, 0, 0},
3067 { SWIG_PY_INT, (char *)"JoinMiter", (long) 0, 0, 0, 0},
3068 { SWIG_PY_INT, (char *)"JoinRound", (long) 1, 0, 0, 0},
3069 { SWIG_PY_INT, (char *)"JoinBevel", (long) 2, 0, 0, 0},
3070 { SWIG_PY_INT, (char *)"FillSolid", (long) 0, 0, 0, 0},
3071 { SWIG_PY_INT, (char *)"FillTiled", (long) 1, 0, 0, 0},
3072 { SWIG_PY_INT, (char *)"FillStippled", (long) 2, 0, 0, 0},
3073 { SWIG_PY_INT, (char *)"FillOpaqueStippled", (long) 3, 0, 0, 0},
3074 { SWIG_PY_INT, (char *)"EvenOddRule", (long) 0, 0, 0, 0},
3075 { SWIG_PY_INT, (char *)"WindingRule", (long) 1, 0, 0, 0},
3076 { SWIG_PY_INT, (char *)"ClipByChildren", (long) 0, 0, 0, 0},
3077 { SWIG_PY_INT, (char *)"IncludeInferiors", (long) 1, 0, 0, 0},
3078 { SWIG_PY_INT, (char *)"Unsorted", (long) 0, 0, 0, 0},
3079 { SWIG_PY_INT, (char *)"YSorted", (long) 1, 0, 0, 0},
3080 { SWIG_PY_INT, (char *)"YXSorted", (long) 2, 0, 0, 0},
3081 { SWIG_PY_INT, (char *)"YXBanded", (long) 3, 0, 0, 0},
3082 { SWIG_PY_INT, (char *)"CoordModeOrigin", (long) 0, 0, 0, 0},
3083 { SWIG_PY_INT, (char *)"CoordModePrevious", (long) 1, 0, 0, 0},
3084 { SWIG_PY_INT, (char *)"Complex", (long) 0, 0, 0, 0},
3085 { SWIG_PY_INT, (char *)"Nonconvex", (long) 1, 0, 0, 0},
3086 { SWIG_PY_INT, (char *)"Convex", (long) 2, 0, 0, 0},
3087 { SWIG_PY_INT, (char *)"ArcChord", (long) 0, 0, 0, 0},
3088 { SWIG_PY_INT, (char *)"ArcPieSlice", (long) 1, 0, 0, 0},
3089 { SWIG_PY_INT, (char *)"GCFunction", (long) (1L<<0), 0, 0, 0},
3090 { SWIG_PY_INT, (char *)"GCPlaneMask", (long) (1L<<1), 0, 0, 0},
3091 { SWIG_PY_INT, (char *)"GCForeground", (long) (1L<<2), 0, 0, 0},
3092 { SWIG_PY_INT, (char *)"GCBackground", (long) (1L<<3), 0, 0, 0},
3093 { SWIG_PY_INT, (char *)"GCLineWidth", (long) (1L<<4), 0, 0, 0},
3094 { SWIG_PY_INT, (char *)"GCLineStyle", (long) (1L<<5), 0, 0, 0},
3095 { SWIG_PY_INT, (char *)"GCCapStyle", (long) (1L<<6), 0, 0, 0},
3096 { SWIG_PY_INT, (char *)"GCJoinStyle", (long) (1L<<7), 0, 0, 0},
3097 { SWIG_PY_INT, (char *)"GCFillStyle", (long) (1L<<8), 0, 0, 0},
3098 { SWIG_PY_INT, (char *)"GCFillRule", (long) (1L<<9), 0, 0, 0},
3099 { SWIG_PY_INT, (char *)"GCTile", (long) (1L<<10), 0, 0, 0},
3100 { SWIG_PY_INT, (char *)"GCStipple", (long) (1L<<11), 0, 0, 0},
3101 { SWIG_PY_INT, (char *)"GCTileStipXOrigin", (long) (1L<<12), 0, 0, 0},
3102 { SWIG_PY_INT, (char *)"GCTileStipYOrigin", (long) (1L<<13), 0, 0, 0},
3103 { SWIG_PY_INT, (char *)"GCFont", (long) (1L<<14), 0, 0, 0},
3104 { SWIG_PY_INT, (char *)"GCSubwindowMode", (long) (1L<<15), 0, 0, 0},
3105 { SWIG_PY_INT, (char *)"GCGraphicsExposures", (long) (1L<<16), 0, 0, 0},
3106 { SWIG_PY_INT, (char *)"GCClipXOrigin", (long) (1L<<17), 0, 0, 0},
3107 { SWIG_PY_INT, (char *)"GCClipYOrigin", (long) (1L<<18), 0, 0, 0},
3108 { SWIG_PY_INT, (char *)"GCClipMask", (long) (1L<<19), 0, 0, 0},
3109 { SWIG_PY_INT, (char *)"GCDashOffset", (long) (1L<<20), 0, 0, 0},
3110 { SWIG_PY_INT, (char *)"GCDashList", (long) (1L<<21), 0, 0, 0},
3111 { SWIG_PY_INT, (char *)"GCArcMode", (long) (1L<<22), 0, 0, 0},
3112 { SWIG_PY_INT, (char *)"GCLastBit", (long) 22, 0, 0, 0},
3113 { SWIG_PY_INT, (char *)"FontLeftToRight", (long) 0, 0, 0, 0},
3114 { SWIG_PY_INT, (char *)"FontRightToLeft", (long) 1, 0, 0, 0},
3115 { SWIG_PY_INT, (char *)"FontChange", (long) 255, 0, 0, 0},
3116 { SWIG_PY_INT, (char *)"XYBitmap", (long) 0, 0, 0, 0},
3117 { SWIG_PY_INT, (char *)"XYPixmap", (long) 1, 0, 0, 0},
3118 { SWIG_PY_INT, (char *)"ZPixmap", (long) 2, 0, 0, 0},
3119 { SWIG_PY_INT, (char *)"AllocNone", (long) 0, 0, 0, 0},
3120 { SWIG_PY_INT, (char *)"AllocAll", (long) 1, 0, 0, 0},
3121 { SWIG_PY_INT, (char *)"DoRed", (long) (1<<0), 0, 0, 0},
3122 { SWIG_PY_INT, (char *)"DoGreen", (long) (1<<1), 0, 0, 0},
3123 { SWIG_PY_INT, (char *)"DoBlue", (long) (1<<2), 0, 0, 0},
3124 { SWIG_PY_INT, (char *)"CursorShape", (long) 0, 0, 0, 0},
3125 { SWIG_PY_INT, (char *)"TileShape", (long) 1, 0, 0, 0},
3126 { SWIG_PY_INT, (char *)"StippleShape", (long) 2, 0, 0, 0},
3127 { SWIG_PY_INT, (char *)"AutoRepeatModeOff", (long) 0, 0, 0, 0},
3128 { SWIG_PY_INT, (char *)"AutoRepeatModeOn", (long) 1, 0, 0, 0},
3129 { SWIG_PY_INT, (char *)"AutoRepeatModeDefault", (long) 2, 0, 0, 0},
3130 { SWIG_PY_INT, (char *)"LedModeOff", (long) 0, 0, 0, 0},
3131 { SWIG_PY_INT, (char *)"LedModeOn", (long) 1, 0, 0, 0},
3132 { SWIG_PY_INT, (char *)"KBKeyClickPercent", (long) (1L<<0), 0, 0, 0},
3133 { SWIG_PY_INT, (char *)"KBBellPercent", (long) (1L<<1), 0, 0, 0},
3134 { SWIG_PY_INT, (char *)"KBBellPitch", (long) (1L<<2), 0, 0, 0},
3135 { SWIG_PY_INT, (char *)"KBBellDuration", (long) (1L<<3), 0, 0, 0},
3136 { SWIG_PY_INT, (char *)"KBLed", (long) (1L<<4), 0, 0, 0},
3137 { SWIG_PY_INT, (char *)"KBLedMode", (long) (1L<<5), 0, 0, 0},
3138 { SWIG_PY_INT, (char *)"KBKey", (long) (1L<<6), 0, 0, 0},
3139 { SWIG_PY_INT, (char *)"KBAutoRepeatMode", (long) (1L<<7), 0, 0, 0},
3140 { SWIG_PY_INT, (char *)"MappingSuccess", (long) 0, 0, 0, 0},
3141 { SWIG_PY_INT, (char *)"MappingBusy", (long) 1, 0, 0, 0},
3142 { SWIG_PY_INT, (char *)"MappingFailed", (long) 2, 0, 0, 0},
3143 { SWIG_PY_INT, (char *)"MappingModifier", (long) 0, 0, 0, 0},
3144 { SWIG_PY_INT, (char *)"MappingKeyboard", (long) 1, 0, 0, 0},
3145 { SWIG_PY_INT, (char *)"MappingPointer", (long) 2, 0, 0, 0},
3146 { SWIG_PY_INT, (char *)"DontPreferBlanking", (long) 0, 0, 0, 0},
3147 { SWIG_PY_INT, (char *)"PreferBlanking", (long) 1, 0, 0, 0},
3148 { SWIG_PY_INT, (char *)"DefaultBlanking", (long) 2, 0, 0, 0},
3149 { SWIG_PY_INT, (char *)"DisableScreenSaver", (long) 0, 0, 0, 0},
3150 { SWIG_PY_INT, (char *)"DisableScreenInterval", (long) 0, 0, 0, 0},
3151 { SWIG_PY_INT, (char *)"DontAllowExposures", (long) 0, 0, 0, 0},
3152 { SWIG_PY_INT, (char *)"AllowExposures", (long) 1, 0, 0, 0},
3153 { SWIG_PY_INT, (char *)"DefaultExposures", (long) 2, 0, 0, 0},
3154 { SWIG_PY_INT, (char *)"ScreenSaverReset", (long) 0, 0, 0, 0},
3155 { SWIG_PY_INT, (char *)"ScreenSaverActive", (long) 1, 0, 0, 0},
3156 { SWIG_PY_INT, (char *)"HostInsert", (long) 0, 0, 0, 0},
3157 { SWIG_PY_INT, (char *)"HostDelete", (long) 1, 0, 0, 0},
3158 { SWIG_PY_INT, (char *)"EnableAccess", (long) 1, 0, 0, 0},
3159 { SWIG_PY_INT, (char *)"DisableAccess", (long) 0, 0, 0, 0},
3160 { SWIG_PY_INT, (char *)"StaticGray", (long) 0, 0, 0, 0},
3161 { SWIG_PY_INT, (char *)"GrayScale", (long) 1, 0, 0, 0},
3162 { SWIG_PY_INT, (char *)"StaticColor", (long) 2, 0, 0, 0},
3163 { SWIG_PY_INT, (char *)"PseudoColor", (long) 3, 0, 0, 0},
3164 { SWIG_PY_INT, (char *)"TrueColor", (long) 4, 0, 0, 0},
3165 { SWIG_PY_INT, (char *)"DirectColor", (long) 5, 0, 0, 0},
3166 { SWIG_PY_INT, (char *)"LSBFirst", (long) 0, 0, 0, 0},
3167 { SWIG_PY_INT, (char *)"MSBFirst", (long) 1, 0, 0, 0},
3168 {0}};
3169
3170 #ifdef __cplusplus
3171 }
3172 #endif
3173
3174 #ifdef __cplusplus
3175 extern "C"
3176 #endif
3177 SWIGEXPORT(void) SWIG_init(void) {
3178 static PyObject *SWIG_globals = 0;
3179 static int typeinit = 0;
3180 PyObject *m, *d;
3181 int i;
3182 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
3183 m = Py_InitModule((char *) SWIG_name, SwigMethods);
3184 d = PyModule_GetDict(m);
3185
3186 if (!typeinit) {
3187 for (i = 0; swig_types_initial[i]; i++) {
3188 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
3189 }
3190 typeinit = 1;
3191 }
3192 SWIG_InstallConstants(d,swig_const_table);
3193
3194 }
3195
This page took 0.214493 seconds and 4 git commands to generate.