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