]> Dogcows Code - chaz/openbox/blob - src/openbox_wrap.cc
new python callbacks data, infrastructure. going to rework bindings code. cvs wont...
[chaz/openbox] / src / openbox_wrap.cc
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.17u-20021226-0459
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12
13 #ifdef __cplusplus
14 template<class T> class SwigValueWrapper {
15 T *tt;
16 public:
17 inline SwigValueWrapper() : tt(0) { }
18 inline ~SwigValueWrapper() { if (tt) delete tt; }
19 inline SwigValueWrapper& operator=(const T& t) { tt = new T(t); return *this; }
20 inline operator T&() const { return *tt; }
21 inline T *operator&() { return tt; }
22 };
23 #endif
24
25
26 #include "Python.h"
27
28 /***********************************************************************
29 * common.swg
30 *
31 * This file contains generic SWIG runtime support for pointer
32 * type checking as well as a few commonly used macros to control
33 * external linkage.
34 *
35 * Author : David Beazley (beazley@cs.uchicago.edu)
36 *
37 * Copyright (c) 1999-2000, The University of Chicago
38 *
39 * This file may be freely redistributed without license or fee provided
40 * this copyright message remains intact.
41 ************************************************************************/
42
43 #include <string.h>
44
45 #if defined(_WIN32) || defined(__WIN32__)
46 # if defined(_MSC_VER)
47 # if defined(STATIC_LINKED)
48 # define SWIGEXPORT(a) a
49 # define SWIGIMPORT(a) extern a
50 # else
51 # define SWIGEXPORT(a) __declspec(dllexport) a
52 # define SWIGIMPORT(a) extern a
53 # endif
54 # else
55 # if defined(__BORLANDC__)
56 # define SWIGEXPORT(a) a _export
57 # define SWIGIMPORT(a) a _export
58 # else
59 # define SWIGEXPORT(a) a
60 # define SWIGIMPORT(a) a
61 # endif
62 # endif
63 #else
64 # define SWIGEXPORT(a) a
65 # define SWIGIMPORT(a) a
66 #endif
67
68 #ifdef SWIG_GLOBAL
69 #define SWIGRUNTIME(a) SWIGEXPORT(a)
70 #else
71 #define SWIGRUNTIME(a) static a
72 #endif
73
74 #ifdef __cplusplus
75 extern "C" {
76 #endif
77
78 typedef void *(*swig_converter_func)(void *);
79 typedef struct swig_type_info *(*swig_dycast_func)(void **);
80
81 typedef struct swig_type_info {
82 const char *name;
83 swig_converter_func converter;
84 const char *str;
85 void *clientdata;
86 swig_dycast_func dcast;
87 struct swig_type_info *next;
88 struct swig_type_info *prev;
89 } swig_type_info;
90
91 #ifdef SWIG_NOINCLUDE
92
93 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
94 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
95 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
96 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
97 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
98 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
99
100 #else
101
102 static swig_type_info *swig_type_list = 0;
103
104 /* Register a type mapping with the type-checking */
105 SWIGRUNTIME(swig_type_info *)
106 SWIG_TypeRegister(swig_type_info *ti)
107 {
108 swig_type_info *tc, *head, *ret, *next;
109 /* Check to see if this type has already been registered */
110 tc = swig_type_list;
111 while (tc) {
112 if (strcmp(tc->name, ti->name) == 0) {
113 /* Already exists in the table. Just add additional types to the list */
114 if (tc->clientdata) ti->clientdata = tc->clientdata;
115 head = tc;
116 next = tc->next;
117 goto l1;
118 }
119 tc = tc->prev;
120 }
121 head = ti;
122 next = 0;
123
124 /* Place in list */
125 ti->prev = swig_type_list;
126 swig_type_list = ti;
127
128 /* Build linked lists */
129 l1:
130 ret = head;
131 tc = ti + 1;
132 /* Patch up the rest of the links */
133 while (tc->name) {
134 head->next = tc;
135 tc->prev = head;
136 head = tc;
137 tc++;
138 }
139 head->next = next;
140 return ret;
141 }
142
143 /* Check the typename */
144 SWIGRUNTIME(swig_type_info *)
145 SWIG_TypeCheck(char *c, swig_type_info *ty)
146 {
147 swig_type_info *s;
148 if (!ty) return 0; /* Void pointer */
149 s = ty->next; /* First element always just a name */
150 do {
151 if (strcmp(s->name,c) == 0) {
152 if (s == ty->next) return s;
153 /* Move s to the top of the linked list */
154 s->prev->next = s->next;
155 if (s->next) {
156 s->next->prev = s->prev;
157 }
158 /* Insert s as second element in the list */
159 s->next = ty->next;
160 if (ty->next) ty->next->prev = s;
161 ty->next = s;
162 return s;
163 }
164 s = s->next;
165 } while (s && (s != ty->next));
166 return 0;
167 }
168
169 /* Cast a pointer up an inheritance hierarchy */
170 SWIGRUNTIME(void *)
171 SWIG_TypeCast(swig_type_info *ty, void *ptr)
172 {
173 if ((!ty) || (!ty->converter)) return ptr;
174 return (*ty->converter)(ptr);
175 }
176
177 /* Dynamic pointer casting. Down an inheritance hierarchy */
178 SWIGRUNTIME(swig_type_info *)
179 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
180 {
181 swig_type_info *lastty = ty;
182 if (!ty || !ty->dcast) return ty;
183 while (ty && (ty->dcast)) {
184 ty = (*ty->dcast)(ptr);
185 if (ty) lastty = ty;
186 }
187 return lastty;
188 }
189
190 /* Search for a swig_type_info structure */
191 SWIGRUNTIME(swig_type_info *)
192 SWIG_TypeQuery(const char *name) {
193 swig_type_info *ty = swig_type_list;
194 while (ty) {
195 if (ty->str && (strcmp(name,ty->str) == 0)) return ty;
196 if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
197 ty = ty->prev;
198 }
199 return 0;
200 }
201
202 /* Set the clientdata field for a type */
203 SWIGRUNTIME(void)
204 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
205 swig_type_info *tc, *equiv;
206 if (ti->clientdata == clientdata) return;
207 ti->clientdata = clientdata;
208 equiv = ti->next;
209 while (equiv) {
210 if (!equiv->converter) {
211 tc = swig_type_list;
212 while (tc) {
213 if ((strcmp(tc->name, equiv->name) == 0))
214 SWIG_TypeClientData(tc,clientdata);
215 tc = tc->prev;
216 }
217 }
218 equiv = equiv->next;
219 }
220 }
221 #endif
222
223 #ifdef __cplusplus
224 }
225
226 #endif
227
228 /***********************************************************************
229 * python.swg
230 *
231 * This file contains the runtime support for Python modules
232 * and includes code for managing global variables and pointer
233 * type checking.
234 *
235 * Author : David Beazley (beazley@cs.uchicago.edu)
236 ************************************************************************/
237
238 #include "Python.h"
239
240 #ifdef __cplusplus
241 extern "C" {
242 #endif
243
244 #define SWIG_PY_INT 1
245 #define SWIG_PY_FLOAT 2
246 #define SWIG_PY_STRING 3
247 #define SWIG_PY_POINTER 4
248 #define SWIG_PY_BINARY 5
249
250 /* Flags for pointer conversion */
251
252 #define SWIG_POINTER_EXCEPTION 0x1
253 #define SWIG_POINTER_DISOWN 0x2
254
255 /* Exception handling in wrappers */
256 #define SWIG_fail goto fail
257
258 /* Constant information structure */
259 typedef struct swig_const_info {
260 int type;
261 char *name;
262 long lvalue;
263 double dvalue;
264 void *pvalue;
265 swig_type_info **ptype;
266 } swig_const_info;
267
268 #ifdef SWIG_NOINCLUDE
269
270 SWIGEXPORT(PyObject *) SWIG_newvarlink();
271 SWIGEXPORT(void) SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
272 SWIGEXPORT(int) SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int);
273 SWIGEXPORT(int) SWIG_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
274 SWIGEXPORT(char *) SWIG_PackData(char *c, void *, int);
275 SWIGEXPORT(char *) SWIG_UnpackData(char *c, void *, int);
276 SWIGEXPORT(PyObject *) SWIG_NewPointerObj(void *, swig_type_info *,int own);
277 SWIGEXPORT(PyObject *) SWIG_NewPackedObj(void *, int sz, swig_type_info *);
278 SWIGEXPORT(void) SWIG_InstallConstants(PyObject *d, swig_const_info constants[]);
279 #else
280
281 /* -----------------------------------------------------------------------------
282 * global variable support code.
283 * ----------------------------------------------------------------------------- */
284
285 typedef struct swig_globalvar {
286 char *name; /* Name of global variable */
287 PyObject *(*get_attr)(void); /* Return the current value */
288 int (*set_attr)(PyObject *); /* Set the value */
289 struct swig_globalvar *next;
290 } swig_globalvar;
291
292 typedef struct swig_varlinkobject {
293 PyObject_HEAD
294 swig_globalvar *vars;
295 } swig_varlinkobject;
296
297 static PyObject *
298 swig_varlink_repr(swig_varlinkobject *v) {
299 v = v;
300 return PyString_FromString("<Global variables>");
301 }
302
303 static int
304 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
305 swig_globalvar *var;
306 flags = flags;
307 fprintf(fp,"Global variables { ");
308 for (var = v->vars; var; var=var->next) {
309 fprintf(fp,"%s", var->name);
310 if (var->next) fprintf(fp,", ");
311 }
312 fprintf(fp," }\n");
313 return 0;
314 }
315
316 static PyObject *
317 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
318 swig_globalvar *var = v->vars;
319 while (var) {
320 if (strcmp(var->name,n) == 0) {
321 return (*var->get_attr)();
322 }
323 var = var->next;
324 }
325 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
326 return NULL;
327 }
328
329 static int
330 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
331 swig_globalvar *var = v->vars;
332 while (var) {
333 if (strcmp(var->name,n) == 0) {
334 return (*var->set_attr)(p);
335 }
336 var = var->next;
337 }
338 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
339 return 1;
340 }
341
342 statichere PyTypeObject varlinktype = {
343 PyObject_HEAD_INIT(0)
344 0,
345 (char *)"swigvarlink", /* Type name */
346 sizeof(swig_varlinkobject), /* Basic size */
347 0, /* Itemsize */
348 0, /* Deallocator */
349 (printfunc) swig_varlink_print, /* Print */
350 (getattrfunc) swig_varlink_getattr, /* get attr */
351 (setattrfunc) swig_varlink_setattr, /* Set attr */
352 0, /* tp_compare */
353 (reprfunc) swig_varlink_repr, /* tp_repr */
354 0, /* tp_as_number */
355 0, /* tp_as_mapping*/
356 0, /* tp_hash */
357 };
358
359 /* Create a variable linking object for use later */
360 SWIGRUNTIME(PyObject *)
361 SWIG_newvarlink(void) {
362 swig_varlinkobject *result = 0;
363 result = PyMem_NEW(swig_varlinkobject,1);
364 varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
365 result->ob_type = &varlinktype;
366 result->vars = 0;
367 result->ob_refcnt = 0;
368 Py_XINCREF((PyObject *) result);
369 return ((PyObject*) result);
370 }
371
372 SWIGRUNTIME(void)
373 SWIG_addvarlink(PyObject *p, char *name,
374 PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
375 swig_varlinkobject *v;
376 swig_globalvar *gv;
377 v= (swig_varlinkobject *) p;
378 gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
379 gv->name = (char *) malloc(strlen(name)+1);
380 strcpy(gv->name,name);
381 gv->get_attr = get_attr;
382 gv->set_attr = set_attr;
383 gv->next = v->vars;
384 v->vars = gv;
385 }
386
387 /* Pack binary data into a string */
388 SWIGRUNTIME(char *)
389 SWIG_PackData(char *c, void *ptr, int sz) {
390 static char hex[17] = "0123456789abcdef";
391 int i;
392 unsigned char *u = (unsigned char *) ptr;
393 register unsigned char uu;
394 for (i = 0; i < sz; i++,u++) {
395 uu = *u;
396 *(c++) = hex[(uu & 0xf0) >> 4];
397 *(c++) = hex[uu & 0xf];
398 }
399 return c;
400 }
401
402 /* Unpack binary data from a string */
403 SWIGRUNTIME(char *)
404 SWIG_UnpackData(char *c, void *ptr, int sz) {
405 register unsigned char uu = 0;
406 register int d;
407 unsigned char *u = (unsigned char *) ptr;
408 int i;
409 for (i = 0; i < sz; i++, u++) {
410 d = *(c++);
411 if ((d >= '0') && (d <= '9'))
412 uu = ((d - '0') << 4);
413 else if ((d >= 'a') && (d <= 'f'))
414 uu = ((d - ('a'-10)) << 4);
415 d = *(c++);
416 if ((d >= '0') && (d <= '9'))
417 uu |= (d - '0');
418 else if ((d >= 'a') && (d <= 'f'))
419 uu |= (d - ('a'-10));
420 *u = uu;
421 }
422 return c;
423 }
424
425 /* Convert a pointer value */
426 SWIGRUNTIME(int)
427 SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
428 swig_type_info *tc;
429 char *c;
430 static PyObject *SWIG_this = 0;
431 int newref = 0;
432 PyObject *pyobj = 0;
433
434 if (!obj) return 0;
435 if (obj == Py_None) {
436 *ptr = 0;
437 return 0;
438 }
439 #ifdef SWIG_COBJECT_TYPES
440 if (!(PyCObject_Check(obj))) {
441 if (!SWIG_this)
442 SWIG_this = PyString_FromString("this");
443 pyobj = obj;
444 obj = PyObject_GetAttr(obj,SWIG_this);
445 newref = 1;
446 if (!obj) goto type_error;
447 if (!PyCObject_Check(obj)) {
448 Py_DECREF(obj);
449 goto type_error;
450 }
451 }
452 *ptr = PyCObject_AsVoidPtr(obj);
453 c = (char *) PyCObject_GetDesc(obj);
454 if (newref) Py_DECREF(obj);
455 goto cobject;
456 #else
457 if (!(PyString_Check(obj))) {
458 if (!SWIG_this)
459 SWIG_this = PyString_FromString("this");
460 pyobj = obj;
461 obj = PyObject_GetAttr(obj,SWIG_this);
462 newref = 1;
463 if (!obj) goto type_error;
464 if (!PyString_Check(obj)) {
465 Py_DECREF(obj);
466 goto type_error;
467 }
468 }
469 c = PyString_AsString(obj);
470 /* Pointer values must start with leading underscore */
471 if (*c != '_') {
472 *ptr = (void *) 0;
473 if (strcmp(c,"NULL") == 0) {
474 if (newref) { Py_DECREF(obj); }
475 return 0;
476 } else {
477 if (newref) { Py_DECREF(obj); }
478 goto type_error;
479 }
480 }
481 c++;
482 c = SWIG_UnpackData(c,ptr,sizeof(void *));
483 if (newref) { Py_DECREF(obj); }
484 #endif
485
486 #ifdef SWIG_COBJECT_TYPES
487 cobject:
488 #endif
489
490 if (ty) {
491 tc = SWIG_TypeCheck(c,ty);
492 if (!tc) goto type_error;
493 *ptr = SWIG_TypeCast(tc,(void*) *ptr);
494 }
495
496 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
497 PyObject *zero = PyInt_FromLong(0);
498 PyObject_SetAttrString(pyobj,(char*)"thisown",zero);
499 Py_DECREF(zero);
500 }
501 return 0;
502
503 type_error:
504 if (flags & SWIG_POINTER_EXCEPTION) {
505 if (ty) {
506 char *temp = (char *) malloc(64+strlen(ty->name));
507 sprintf(temp,"Type error. Expected %s", ty->name);
508 PyErr_SetString(PyExc_TypeError, temp);
509 free((char *) temp);
510 } else {
511 PyErr_SetString(PyExc_TypeError,"Expected a pointer");
512 }
513 }
514 return -1;
515 }
516
517 /* Convert a packed value value */
518 SWIGRUNTIME(int)
519 SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
520 swig_type_info *tc;
521 char *c;
522
523 if ((!obj) || (!PyString_Check(obj))) goto type_error;
524 c = PyString_AsString(obj);
525 /* Pointer values must start with leading underscore */
526 if (*c != '_') goto type_error;
527 c++;
528 c = SWIG_UnpackData(c,ptr,sz);
529 if (ty) {
530 tc = SWIG_TypeCheck(c,ty);
531 if (!tc) goto type_error;
532 }
533 return 0;
534
535 type_error:
536
537 if (flags) {
538 if (ty) {
539 char *temp = (char *) malloc(64+strlen(ty->name));
540 sprintf(temp,"Type error. Expected %s", ty->name);
541 PyErr_SetString(PyExc_TypeError, temp);
542 free((char *) temp);
543 } else {
544 PyErr_SetString(PyExc_TypeError,"Expected a pointer");
545 }
546 }
547 return -1;
548 }
549
550 /* Create a new pointer object */
551 SWIGRUNTIME(PyObject *)
552 SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
553 PyObject *robj;
554 if (!ptr) {
555 Py_INCREF(Py_None);
556 return Py_None;
557 }
558 #ifdef SWIG_COBJECT_TYPES
559 robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) type->name, NULL);
560 #else
561 {
562 char result[1024];
563 char *r = result;
564 *(r++) = '_';
565 r = SWIG_PackData(r,&ptr,sizeof(void *));
566 strcpy(r,type->name);
567 robj = PyString_FromString(result);
568 }
569 #endif
570 if (!robj || (robj == Py_None)) return robj;
571 if (type->clientdata) {
572 PyObject *inst;
573 PyObject *args = Py_BuildValue((char*)"(O)", robj);
574 Py_DECREF(robj);
575 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
576 Py_DECREF(args);
577 if (inst) {
578 if (own) {
579 PyObject *n = PyInt_FromLong(1);
580 PyObject_SetAttrString(inst,(char*)"thisown",n);
581 Py_DECREF(n);
582 }
583 robj = inst;
584 }
585 }
586 return robj;
587 }
588
589 SWIGRUNTIME(PyObject *)
590 SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
591 char result[1024];
592 char *r = result;
593 if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
594 *(r++) = '_';
595 r = SWIG_PackData(r,ptr,sz);
596 strcpy(r,type->name);
597 return PyString_FromString(result);
598 }
599
600 /* Install Constants */
601 SWIGRUNTIME(void)
602 SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
603 int i;
604 PyObject *obj;
605 for (i = 0; constants[i].type; i++) {
606 switch(constants[i].type) {
607 case SWIG_PY_INT:
608 obj = PyInt_FromLong(constants[i].lvalue);
609 break;
610 case SWIG_PY_FLOAT:
611 obj = PyFloat_FromDouble(constants[i].dvalue);
612 break;
613 case SWIG_PY_STRING:
614 obj = PyString_FromString((char *) constants[i].pvalue);
615 break;
616 case SWIG_PY_POINTER:
617 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
618 break;
619 case SWIG_PY_BINARY:
620 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
621 break;
622 default:
623 obj = 0;
624 break;
625 }
626 if (obj) {
627 PyDict_SetItemString(d,constants[i].name,obj);
628 Py_DECREF(obj);
629 }
630 }
631 }
632
633 #endif
634
635 #ifdef __cplusplus
636 }
637 #endif
638
639
640
641
642
643
644
645
646 /* -------- TYPES TABLE (BEGIN) -------- */
647
648 #define SWIGTYPE_p_otk__OBTimerQueueManager swig_types[0]
649 #define SWIGTYPE_p_ob__OBActions swig_types[1]
650 #define SWIGTYPE_p_ob__Cursors swig_types[2]
651 #define SWIGTYPE_p_ob__OBScreen swig_types[3]
652 #define SWIGTYPE_p_otk__Style swig_types[4]
653 #define SWIGTYPE_p_ob__OBFrame swig_types[5]
654 #define SWIGTYPE_p_XReparentEvent swig_types[6]
655 #define SWIGTYPE_p_ob__MotionData swig_types[7]
656 #define SWIGTYPE_p_ob__OBClient swig_types[8]
657 #define SWIGTYPE_p_ob__Openbox swig_types[9]
658 #define SWIGTYPE_p_otk__Strut swig_types[10]
659 #define SWIGTYPE_p_ob__KeyData swig_types[11]
660 #define SWIGTYPE_p_XMapRequestEvent swig_types[12]
661 #define SWIGTYPE_p_XConfigureRequestEvent swig_types[13]
662 #define SWIGTYPE_p_otk__Point swig_types[14]
663 #define SWIGTYPE_p_otk__OtkEventHandler swig_types[15]
664 #define SWIGTYPE_p_std__string swig_types[16]
665 #define SWIGTYPE_p_otk__Rect swig_types[17]
666 #define SWIGTYPE_p_ob__OBWidget swig_types[18]
667 #define SWIGTYPE_p_XClientMessageEvent swig_types[19]
668 #define SWIGTYPE_p_XFocusChangeEvent swig_types[20]
669 #define SWIGTYPE_p_otk__OBProperty swig_types[21]
670 #define SWIGTYPE_p_ob__EventData swig_types[22]
671 #define SWIGTYPE_p_otk__OtkEventDispatcher swig_types[23]
672 #define SWIGTYPE_p_XPropertyEvent swig_types[24]
673 #define SWIGTYPE_p_XDestroyWindowEvent swig_types[25]
674 #define SWIGTYPE_p_otk__BImageControl swig_types[26]
675 #define SWIGTYPE_p_PyObject swig_types[27]
676 #define SWIGTYPE_p_ob__OBBindings swig_types[28]
677 #define SWIGTYPE_p_ob__MwmHints swig_types[29]
678 #define SWIGTYPE_p_XUnmapEvent swig_types[30]
679 #define SWIGTYPE_p_ob__ButtonData swig_types[31]
680 static swig_type_info *swig_types[33];
681
682 /* -------- TYPES TABLE (END) -------- */
683
684
685 /*-----------------------------------------------
686 @(target):= _openbox.so
687 ------------------------------------------------*/
688 #define SWIG_init init_openbox
689
690 #define SWIG_name "_openbox"
691
692 #ifdef HAVE_CONFIG_H
693 # include "../config.h"
694 #endif
695
696 #include "openbox.hh"
697 #include "screen.hh"
698 #include "client.hh"
699 #include "bindings.hh"
700 #include "actions.hh"
701 #include "python.hh"
702 #include "otk/display.hh"
703
704
705 #define SWIG_MemoryError 1
706 #define SWIG_IOError 2
707 #define SWIG_RuntimeError 3
708 #define SWIG_IndexError 4
709 #define SWIG_TypeError 5
710 #define SWIG_DivisionByZero 6
711 #define SWIG_OverflowError 7
712 #define SWIG_SyntaxError 8
713 #define SWIG_ValueError 9
714 #define SWIG_SystemError 10
715 #define SWIG_UnknownError 99
716
717
718 static void _SWIG_exception(int code, const char *msg) {
719 switch(code) {
720 case SWIG_MemoryError:
721 PyErr_SetString(PyExc_MemoryError,msg);
722 break;
723 case SWIG_IOError:
724 PyErr_SetString(PyExc_IOError,msg);
725 break;
726 case SWIG_RuntimeError:
727 PyErr_SetString(PyExc_RuntimeError,msg);
728 break;
729 case SWIG_IndexError:
730 PyErr_SetString(PyExc_IndexError,msg);
731 break;
732 case SWIG_TypeError:
733 PyErr_SetString(PyExc_TypeError,msg);
734 break;
735 case SWIG_DivisionByZero:
736 PyErr_SetString(PyExc_ZeroDivisionError,msg);
737 break;
738 case SWIG_OverflowError:
739 PyErr_SetString(PyExc_OverflowError,msg);
740 break;
741 case SWIG_SyntaxError:
742 PyErr_SetString(PyExc_SyntaxError,msg);
743 break;
744 case SWIG_ValueError:
745 PyErr_SetString(PyExc_ValueError,msg);
746 break;
747 case SWIG_SystemError:
748 PyErr_SetString(PyExc_SystemError,msg);
749 break;
750 default:
751 PyErr_SetString(PyExc_RuntimeError,msg);
752 break;
753 }
754 }
755
756 #define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
757
758
759 #include <string>
760
761
762 #include <string>
763
764 static PyObject* SwigInt_FromBool(bool b) {
765 return PyInt_FromLong(b ? 1L : 0L);
766 }
767 static double SwigNumber_Check(PyObject* o) {
768 return PyFloat_Check(o) || PyInt_Check(o);
769 }
770 static double SwigNumber_AsDouble(PyObject* o) {
771 return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o)));
772 }
773 static PyObject* SwigString_FromString(const std::string& s) {
774 return PyString_FromString(s.c_str());
775 }
776 static std::string SwigString_AsString(PyObject* o) {
777 return std::string(PyString_AsString(o));
778 }
779
780
781 #include <vector>
782 #include <algorithm>
783 #include <stdexcept>
784
785
786 ob::Openbox *Openbox_instance() { return ob::Openbox::instance; }
787
788
789 namespace ob {
790 void python_callback(PyObject *func, MotionData *data)
791 {
792 PyObject *arglist;
793 PyObject *result;
794
795 arglist = Py_BuildValue("(O)", SWIG_NewPointerObj((void *) data,
796 SWIGTYPE_p_ob__MotionData,
797 0));
798
799 // call the callback
800 result = PyEval_CallObject(func, arglist);
801 if (!result || PyErr_Occurred()) {
802 // an exception occured in the script, display it
803 PyErr_Print();
804 }
805
806 Py_XDECREF(result);
807 Py_DECREF(arglist);
808 }
809
810 void python_callback(PyObject *func, ButtonData *data)
811 {
812 PyObject *arglist;
813 PyObject *result;
814
815 arglist = Py_BuildValue("(O)", SWIG_NewPointerObj((void *) data,
816 SWIGTYPE_p_ob__ButtonData,
817 0));
818
819 // call the callback
820 result = PyEval_CallObject(func, arglist);
821 if (!result || PyErr_Occurred()) {
822 // an exception occured in the script, display it
823 PyErr_Print();
824 }
825
826 Py_XDECREF(result);
827 Py_DECREF(arglist);
828 }
829
830 void python_callback(PyObject *func, EventData *data)
831 {
832 PyObject *arglist;
833 PyObject *result;
834
835 arglist = Py_BuildValue("(O)", SWIG_NewPointerObj((void *) data,
836 SWIGTYPE_p_ob__EventData,
837 0));
838
839 // call the callback
840 result = PyEval_CallObject(func, arglist);
841 if (!result || PyErr_Occurred()) {
842 // an exception occured in the script, display it
843 PyErr_Print();
844 }
845
846 Py_XDECREF(result);
847 Py_DECREF(arglist);
848 }
849
850 void python_callback(PyObject *func, KeyData *data)
851 {
852 PyObject *arglist;
853 PyObject *result;
854
855 arglist = Py_BuildValue("(O)", SWIG_NewPointerObj((void *) data,
856 SWIGTYPE_p_ob__KeyData,
857 0));
858
859 // call the callback
860 result = PyEval_CallObject(func, arglist);
861 if (!result || PyErr_Occurred()) {
862 // an exception occured in the script, display it
863 PyErr_Print();
864 }
865
866 Py_XDECREF(result);
867 Py_DECREF(arglist);
868 }
869
870 }
871
872
873 #include <iterator>
874
875 ob::OBClient *ob_OBScreen_client(ob::OBScreen *self,int i){
876 if (i >= (int)self->clients.size())
877 return NULL;
878 ob::OBClient::List::iterator it = self->clients.begin();
879 std::advance(it,i);
880 return *it;
881 }
882 int ob_OBScreen_clientCount(ob::OBScreen const *self){
883 return (int) self->clients.size();
884 }
885 #ifdef __cplusplus
886 extern "C" {
887 #endif
888 static PyObject *_wrap_Openbox_instance(PyObject *self, PyObject *args) {
889 PyObject *resultobj;
890 ob::Openbox *result;
891
892 if(!PyArg_ParseTuple(args,(char *)":Openbox_instance")) goto fail;
893 result = (ob::Openbox *)Openbox_instance();
894
895 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Openbox, 0);
896 return resultobj;
897 fail:
898 return NULL;
899 }
900
901
902 static PyObject *_wrap_Cursors_session_set(PyObject *self, PyObject *args) {
903 PyObject *resultobj;
904 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
905 Cursor arg2 ;
906 PyObject * obj0 = 0 ;
907 PyObject * obj1 = 0 ;
908
909 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_session_set",&obj0,&obj1)) goto fail;
910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
911 arg2 = (Cursor) PyInt_AsLong(obj1);
912 if (PyErr_Occurred()) SWIG_fail;
913 if (arg1) (arg1)->session = arg2;
914
915 Py_INCREF(Py_None); resultobj = Py_None;
916 return resultobj;
917 fail:
918 return NULL;
919 }
920
921
922 static PyObject *_wrap_Cursors_session_get(PyObject *self, PyObject *args) {
923 PyObject *resultobj;
924 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
925 Cursor result;
926 PyObject * obj0 = 0 ;
927
928 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_session_get",&obj0)) goto fail;
929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
930 result = (Cursor) ((arg1)->session);
931
932 resultobj = PyInt_FromLong((long)result);
933 return resultobj;
934 fail:
935 return NULL;
936 }
937
938
939 static PyObject *_wrap_Cursors_move_set(PyObject *self, PyObject *args) {
940 PyObject *resultobj;
941 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
942 Cursor arg2 ;
943 PyObject * obj0 = 0 ;
944 PyObject * obj1 = 0 ;
945
946 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_move_set",&obj0,&obj1)) goto fail;
947 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
948 arg2 = (Cursor) PyInt_AsLong(obj1);
949 if (PyErr_Occurred()) SWIG_fail;
950 if (arg1) (arg1)->move = arg2;
951
952 Py_INCREF(Py_None); resultobj = Py_None;
953 return resultobj;
954 fail:
955 return NULL;
956 }
957
958
959 static PyObject *_wrap_Cursors_move_get(PyObject *self, PyObject *args) {
960 PyObject *resultobj;
961 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
962 Cursor result;
963 PyObject * obj0 = 0 ;
964
965 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_move_get",&obj0)) goto fail;
966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
967 result = (Cursor) ((arg1)->move);
968
969 resultobj = PyInt_FromLong((long)result);
970 return resultobj;
971 fail:
972 return NULL;
973 }
974
975
976 static PyObject *_wrap_Cursors_ll_angle_set(PyObject *self, PyObject *args) {
977 PyObject *resultobj;
978 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
979 Cursor arg2 ;
980 PyObject * obj0 = 0 ;
981 PyObject * obj1 = 0 ;
982
983 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ll_angle_set",&obj0,&obj1)) goto fail;
984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
985 arg2 = (Cursor) PyInt_AsLong(obj1);
986 if (PyErr_Occurred()) SWIG_fail;
987 if (arg1) (arg1)->ll_angle = arg2;
988
989 Py_INCREF(Py_None); resultobj = Py_None;
990 return resultobj;
991 fail:
992 return NULL;
993 }
994
995
996 static PyObject *_wrap_Cursors_ll_angle_get(PyObject *self, PyObject *args) {
997 PyObject *resultobj;
998 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
999 Cursor result;
1000 PyObject * obj0 = 0 ;
1001
1002 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ll_angle_get",&obj0)) goto fail;
1003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1004 result = (Cursor) ((arg1)->ll_angle);
1005
1006 resultobj = PyInt_FromLong((long)result);
1007 return resultobj;
1008 fail:
1009 return NULL;
1010 }
1011
1012
1013 static PyObject *_wrap_Cursors_lr_angle_set(PyObject *self, PyObject *args) {
1014 PyObject *resultobj;
1015 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
1016 Cursor arg2 ;
1017 PyObject * obj0 = 0 ;
1018 PyObject * obj1 = 0 ;
1019
1020 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_lr_angle_set",&obj0,&obj1)) goto fail;
1021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1022 arg2 = (Cursor) PyInt_AsLong(obj1);
1023 if (PyErr_Occurred()) SWIG_fail;
1024 if (arg1) (arg1)->lr_angle = arg2;
1025
1026 Py_INCREF(Py_None); resultobj = Py_None;
1027 return resultobj;
1028 fail:
1029 return NULL;
1030 }
1031
1032
1033 static PyObject *_wrap_Cursors_lr_angle_get(PyObject *self, PyObject *args) {
1034 PyObject *resultobj;
1035 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
1036 Cursor result;
1037 PyObject * obj0 = 0 ;
1038
1039 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_lr_angle_get",&obj0)) goto fail;
1040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1041 result = (Cursor) ((arg1)->lr_angle);
1042
1043 resultobj = PyInt_FromLong((long)result);
1044 return resultobj;
1045 fail:
1046 return NULL;
1047 }
1048
1049
1050 static PyObject *_wrap_Cursors_ul_angle_set(PyObject *self, PyObject *args) {
1051 PyObject *resultobj;
1052 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
1053 Cursor arg2 ;
1054 PyObject * obj0 = 0 ;
1055 PyObject * obj1 = 0 ;
1056
1057 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ul_angle_set",&obj0,&obj1)) goto fail;
1058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1059 arg2 = (Cursor) PyInt_AsLong(obj1);
1060 if (PyErr_Occurred()) SWIG_fail;
1061 if (arg1) (arg1)->ul_angle = arg2;
1062
1063 Py_INCREF(Py_None); resultobj = Py_None;
1064 return resultobj;
1065 fail:
1066 return NULL;
1067 }
1068
1069
1070 static PyObject *_wrap_Cursors_ul_angle_get(PyObject *self, PyObject *args) {
1071 PyObject *resultobj;
1072 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
1073 Cursor result;
1074 PyObject * obj0 = 0 ;
1075
1076 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ul_angle_get",&obj0)) goto fail;
1077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1078 result = (Cursor) ((arg1)->ul_angle);
1079
1080 resultobj = PyInt_FromLong((long)result);
1081 return resultobj;
1082 fail:
1083 return NULL;
1084 }
1085
1086
1087 static PyObject *_wrap_Cursors_ur_angle_set(PyObject *self, PyObject *args) {
1088 PyObject *resultobj;
1089 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
1090 Cursor arg2 ;
1091 PyObject * obj0 = 0 ;
1092 PyObject * obj1 = 0 ;
1093
1094 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ur_angle_set",&obj0,&obj1)) goto fail;
1095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1096 arg2 = (Cursor) PyInt_AsLong(obj1);
1097 if (PyErr_Occurred()) SWIG_fail;
1098 if (arg1) (arg1)->ur_angle = arg2;
1099
1100 Py_INCREF(Py_None); resultobj = Py_None;
1101 return resultobj;
1102 fail:
1103 return NULL;
1104 }
1105
1106
1107 static PyObject *_wrap_Cursors_ur_angle_get(PyObject *self, PyObject *args) {
1108 PyObject *resultobj;
1109 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
1110 Cursor result;
1111 PyObject * obj0 = 0 ;
1112
1113 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ur_angle_get",&obj0)) goto fail;
1114 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1115 result = (Cursor) ((arg1)->ur_angle);
1116
1117 resultobj = PyInt_FromLong((long)result);
1118 return resultobj;
1119 fail:
1120 return NULL;
1121 }
1122
1123
1124 static PyObject * Cursors_swigregister(PyObject *self, PyObject *args) {
1125 PyObject *obj;
1126 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1127 SWIG_TypeClientData(SWIGTYPE_p_ob__Cursors, obj);
1128 Py_INCREF(obj);
1129 return Py_BuildValue((char *)"");
1130 }
1131 static PyObject *_wrap_Openbox_state(PyObject *self, PyObject *args) {
1132 PyObject *resultobj;
1133 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1134 int result;
1135 PyObject * obj0 = 0 ;
1136
1137 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_state",&obj0)) goto fail;
1138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1139 result = (int)((ob::Openbox const *)arg1)->state();
1140
1141 resultobj = PyInt_FromLong((long)result);
1142 return resultobj;
1143 fail:
1144 return NULL;
1145 }
1146
1147
1148 static PyObject *_wrap_Openbox_timerManager(PyObject *self, PyObject *args) {
1149 PyObject *resultobj;
1150 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1151 otk::OBTimerQueueManager *result;
1152 PyObject * obj0 = 0 ;
1153
1154 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_timerManager",&obj0)) goto fail;
1155 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1156 result = (otk::OBTimerQueueManager *)(arg1)->timerManager();
1157
1158 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimerQueueManager, 0);
1159 return resultobj;
1160 fail:
1161 return NULL;
1162 }
1163
1164
1165 static PyObject *_wrap_Openbox_property(PyObject *self, PyObject *args) {
1166 PyObject *resultobj;
1167 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1168 otk::OBProperty *result;
1169 PyObject * obj0 = 0 ;
1170
1171 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_property",&obj0)) goto fail;
1172 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1173 result = (otk::OBProperty *)((ob::Openbox const *)arg1)->property();
1174
1175 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBProperty, 0);
1176 return resultobj;
1177 fail:
1178 return NULL;
1179 }
1180
1181
1182 static PyObject *_wrap_Openbox_actions(PyObject *self, PyObject *args) {
1183 PyObject *resultobj;
1184 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1185 ob::OBActions *result;
1186 PyObject * obj0 = 0 ;
1187
1188 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_actions",&obj0)) goto fail;
1189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1190 result = (ob::OBActions *)((ob::Openbox const *)arg1)->actions();
1191
1192 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBActions, 0);
1193 return resultobj;
1194 fail:
1195 return NULL;
1196 }
1197
1198
1199 static PyObject *_wrap_Openbox_bindings(PyObject *self, PyObject *args) {
1200 PyObject *resultobj;
1201 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1202 ob::OBBindings *result;
1203 PyObject * obj0 = 0 ;
1204
1205 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_bindings",&obj0)) goto fail;
1206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1207 result = (ob::OBBindings *)((ob::Openbox const *)arg1)->bindings();
1208
1209 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBBindings, 0);
1210 return resultobj;
1211 fail:
1212 return NULL;
1213 }
1214
1215
1216 static PyObject *_wrap_Openbox_screen(PyObject *self, PyObject *args) {
1217 PyObject *resultobj;
1218 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1219 int arg2 ;
1220 ob::OBScreen *result;
1221 PyObject * obj0 = 0 ;
1222
1223 if(!PyArg_ParseTuple(args,(char *)"Oi:Openbox_screen",&obj0,&arg2)) goto fail;
1224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1225 result = (ob::OBScreen *)(arg1)->screen(arg2);
1226
1227 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
1228 return resultobj;
1229 fail:
1230 return NULL;
1231 }
1232
1233
1234 static PyObject *_wrap_Openbox_screenCount(PyObject *self, PyObject *args) {
1235 PyObject *resultobj;
1236 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1237 int result;
1238 PyObject * obj0 = 0 ;
1239
1240 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_screenCount",&obj0)) goto fail;
1241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1242 result = (int)((ob::Openbox const *)arg1)->screenCount();
1243
1244 resultobj = PyInt_FromLong((long)result);
1245 return resultobj;
1246 fail:
1247 return NULL;
1248 }
1249
1250
1251 static PyObject *_wrap_Openbox_cursors(PyObject *self, PyObject *args) {
1252 PyObject *resultobj;
1253 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1254 ob::Cursors *result;
1255 PyObject * obj0 = 0 ;
1256
1257 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_cursors",&obj0)) goto fail;
1258 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1259 {
1260 ob::Cursors const &_result_ref = ((ob::Openbox const *)arg1)->cursors();
1261 result = (ob::Cursors *) &_result_ref;
1262 }
1263
1264 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Cursors, 0);
1265 return resultobj;
1266 fail:
1267 return NULL;
1268 }
1269
1270
1271 static PyObject *_wrap_Openbox_addClient(PyObject *self, PyObject *args) {
1272 PyObject *resultobj;
1273 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1274 Window arg2 ;
1275 ob::OBClient *arg3 = (ob::OBClient *) 0 ;
1276 PyObject * obj0 = 0 ;
1277 PyObject * obj1 = 0 ;
1278 PyObject * obj2 = 0 ;
1279
1280 if(!PyArg_ParseTuple(args,(char *)"OOO:Openbox_addClient",&obj0,&obj1,&obj2)) goto fail;
1281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1282 arg2 = (Window) PyInt_AsLong(obj1);
1283 if (PyErr_Occurred()) SWIG_fail;
1284 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1285 (arg1)->addClient(arg2,arg3);
1286
1287 Py_INCREF(Py_None); resultobj = Py_None;
1288 return resultobj;
1289 fail:
1290 return NULL;
1291 }
1292
1293
1294 static PyObject *_wrap_Openbox_removeClient(PyObject *self, PyObject *args) {
1295 PyObject *resultobj;
1296 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1297 Window arg2 ;
1298 PyObject * obj0 = 0 ;
1299 PyObject * obj1 = 0 ;
1300
1301 if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_removeClient",&obj0,&obj1)) goto fail;
1302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1303 arg2 = (Window) PyInt_AsLong(obj1);
1304 if (PyErr_Occurred()) SWIG_fail;
1305 (arg1)->removeClient(arg2);
1306
1307 Py_INCREF(Py_None); resultobj = Py_None;
1308 return resultobj;
1309 fail:
1310 return NULL;
1311 }
1312
1313
1314 static PyObject *_wrap_Openbox_findClient(PyObject *self, PyObject *args) {
1315 PyObject *resultobj;
1316 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1317 Window arg2 ;
1318 ob::OBClient *result;
1319 PyObject * obj0 = 0 ;
1320 PyObject * obj1 = 0 ;
1321
1322 if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_findClient",&obj0,&obj1)) goto fail;
1323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1324 arg2 = (Window) PyInt_AsLong(obj1);
1325 if (PyErr_Occurred()) SWIG_fail;
1326 result = (ob::OBClient *)(arg1)->findClient(arg2);
1327
1328 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1329 return resultobj;
1330 fail:
1331 return NULL;
1332 }
1333
1334
1335 static PyObject *_wrap_Openbox_focusedClient(PyObject *self, PyObject *args) {
1336 PyObject *resultobj;
1337 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1338 ob::OBClient *result;
1339 PyObject * obj0 = 0 ;
1340
1341 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedClient",&obj0)) goto fail;
1342 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1343 result = (ob::OBClient *)(arg1)->focusedClient();
1344
1345 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1346 return resultobj;
1347 fail:
1348 return NULL;
1349 }
1350
1351
1352 static PyObject *_wrap_Openbox_setFocusedClient(PyObject *self, PyObject *args) {
1353 PyObject *resultobj;
1354 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1355 ob::OBClient *arg2 = (ob::OBClient *) 0 ;
1356 PyObject * obj0 = 0 ;
1357 PyObject * obj1 = 0 ;
1358
1359 if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_setFocusedClient",&obj0,&obj1)) goto fail;
1360 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1361 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1362 (arg1)->setFocusedClient(arg2);
1363
1364 Py_INCREF(Py_None); resultobj = Py_None;
1365 return resultobj;
1366 fail:
1367 return NULL;
1368 }
1369
1370
1371 static PyObject *_wrap_Openbox_focusedScreen(PyObject *self, PyObject *args) {
1372 PyObject *resultobj;
1373 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1374 ob::OBScreen *result;
1375 PyObject * obj0 = 0 ;
1376
1377 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedScreen",&obj0)) goto fail;
1378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1379 result = (ob::OBScreen *)(arg1)->focusedScreen();
1380
1381 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
1382 return resultobj;
1383 fail:
1384 return NULL;
1385 }
1386
1387
1388 static PyObject *_wrap_Openbox_shutdown(PyObject *self, PyObject *args) {
1389 PyObject *resultobj;
1390 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1391 PyObject * obj0 = 0 ;
1392
1393 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_shutdown",&obj0)) goto fail;
1394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1395 (arg1)->shutdown();
1396
1397 Py_INCREF(Py_None); resultobj = Py_None;
1398 return resultobj;
1399 fail:
1400 return NULL;
1401 }
1402
1403
1404 static PyObject *_wrap_Openbox_restart(PyObject *self, PyObject *args) {
1405 PyObject *resultobj;
1406 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1407 std::string const &arg2_defvalue = "" ;
1408 std::string *arg2 = (std::string *) &arg2_defvalue ;
1409 std::string temp2 ;
1410 PyObject * obj0 = 0 ;
1411 PyObject * obj1 = 0 ;
1412
1413 if(!PyArg_ParseTuple(args,(char *)"O|O:Openbox_restart",&obj0,&obj1)) goto fail;
1414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1415 if (obj1) {
1416 {
1417 if (PyString_Check(obj1)) {
1418 temp2 = std::string(PyString_AsString(obj1));
1419 arg2 = &temp2;
1420 }else {
1421 SWIG_exception(SWIG_TypeError, "string expected");
1422 }
1423 }
1424 }
1425 (arg1)->restart((std::string const &)*arg2);
1426
1427 Py_INCREF(Py_None); resultobj = Py_None;
1428 return resultobj;
1429 fail:
1430 return NULL;
1431 }
1432
1433
1434 static PyObject *_wrap_Openbox_execute(PyObject *self, PyObject *args) {
1435 PyObject *resultobj;
1436 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
1437 int arg2 ;
1438 std::string *arg3 = 0 ;
1439 std::string temp3 ;
1440 PyObject * obj0 = 0 ;
1441 PyObject * obj2 = 0 ;
1442
1443 if(!PyArg_ParseTuple(args,(char *)"OiO:Openbox_execute",&obj0,&arg2,&obj2)) goto fail;
1444 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1445 {
1446 if (PyString_Check(obj2)) {
1447 temp3 = std::string(PyString_AsString(obj2));
1448 arg3 = &temp3;
1449 }else {
1450 SWIG_exception(SWIG_TypeError, "string expected");
1451 }
1452 }
1453 (arg1)->execute(arg2,(std::string const &)*arg3);
1454
1455 Py_INCREF(Py_None); resultobj = Py_None;
1456 return resultobj;
1457 fail:
1458 return NULL;
1459 }
1460
1461
1462 static PyObject * Openbox_swigregister(PyObject *self, PyObject *args) {
1463 PyObject *obj;
1464 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1465 SWIG_TypeClientData(SWIGTYPE_p_ob__Openbox, obj);
1466 Py_INCREF(obj);
1467 return Py_BuildValue((char *)"");
1468 }
1469 static PyObject *_wrap_OBScreen_client(PyObject *self, PyObject *args) {
1470 PyObject *resultobj;
1471 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1472 int arg2 ;
1473 ob::OBClient *result;
1474 PyObject * obj0 = 0 ;
1475
1476 if(!PyArg_ParseTuple(args,(char *)"Oi:OBScreen_client",&obj0,&arg2)) goto fail;
1477 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1478 result = (ob::OBClient *)ob_OBScreen_client(arg1,arg2);
1479
1480 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
1481 return resultobj;
1482 fail:
1483 return NULL;
1484 }
1485
1486
1487 static PyObject *_wrap_OBScreen_clientCount(PyObject *self, PyObject *args) {
1488 PyObject *resultobj;
1489 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1490 int result;
1491 PyObject * obj0 = 0 ;
1492
1493 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_clientCount",&obj0)) goto fail;
1494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1495 result = (int)ob_OBScreen_clientCount((ob::OBScreen const *)arg1);
1496
1497 resultobj = PyInt_FromLong((long)result);
1498 return resultobj;
1499 fail:
1500 return NULL;
1501 }
1502
1503
1504 static PyObject *_wrap_OBScreen_number(PyObject *self, PyObject *args) {
1505 PyObject *resultobj;
1506 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1507 int result;
1508 PyObject * obj0 = 0 ;
1509
1510 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_number",&obj0)) goto fail;
1511 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1512 result = (int)((ob::OBScreen const *)arg1)->number();
1513
1514 resultobj = PyInt_FromLong((long)result);
1515 return resultobj;
1516 fail:
1517 return NULL;
1518 }
1519
1520
1521 static PyObject *_wrap_OBScreen_managed(PyObject *self, PyObject *args) {
1522 PyObject *resultobj;
1523 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1524 bool result;
1525 PyObject * obj0 = 0 ;
1526
1527 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_managed",&obj0)) goto fail;
1528 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1529 result = (bool)((ob::OBScreen const *)arg1)->managed();
1530
1531 resultobj = PyInt_FromLong((long)result);
1532 return resultobj;
1533 fail:
1534 return NULL;
1535 }
1536
1537
1538 static PyObject *_wrap_OBScreen_imageControl(PyObject *self, PyObject *args) {
1539 PyObject *resultobj;
1540 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1541 otk::BImageControl *result;
1542 PyObject * obj0 = 0 ;
1543
1544 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_imageControl",&obj0)) goto fail;
1545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1546 result = (otk::BImageControl *)(arg1)->imageControl();
1547
1548 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 0);
1549 return resultobj;
1550 fail:
1551 return NULL;
1552 }
1553
1554
1555 static PyObject *_wrap_OBScreen_area(PyObject *self, PyObject *args) {
1556 PyObject *resultobj;
1557 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1558 otk::Rect *result;
1559 PyObject * obj0 = 0 ;
1560
1561 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_area",&obj0)) goto fail;
1562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1563 {
1564 otk::Rect const &_result_ref = ((ob::OBScreen const *)arg1)->area();
1565 result = (otk::Rect *) &_result_ref;
1566 }
1567
1568 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
1569 return resultobj;
1570 fail:
1571 return NULL;
1572 }
1573
1574
1575 static PyObject *_wrap_OBScreen_style(PyObject *self, PyObject *args) {
1576 PyObject *resultobj;
1577 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1578 otk::Style *result;
1579 PyObject * obj0 = 0 ;
1580
1581 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_style",&obj0)) goto fail;
1582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1583 result = (otk::Style *)((ob::OBScreen const *)arg1)->style();
1584
1585 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
1586 return resultobj;
1587 fail:
1588 return NULL;
1589 }
1590
1591
1592 static PyObject *_wrap_OBScreen_focuswindow(PyObject *self, PyObject *args) {
1593 PyObject *resultobj;
1594 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1595 Window result;
1596 PyObject * obj0 = 0 ;
1597
1598 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_focuswindow",&obj0)) goto fail;
1599 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1600 result = (Window)((ob::OBScreen const *)arg1)->focuswindow();
1601
1602 resultobj = PyInt_FromLong((long)result);
1603 return resultobj;
1604 fail:
1605 return NULL;
1606 }
1607
1608
1609 static PyObject *_wrap_OBScreen_desktop(PyObject *self, PyObject *args) {
1610 PyObject *resultobj;
1611 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1612 long result;
1613 PyObject * obj0 = 0 ;
1614
1615 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_desktop",&obj0)) goto fail;
1616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1617 result = (long)((ob::OBScreen const *)arg1)->desktop();
1618
1619 resultobj = PyInt_FromLong((long)result);
1620 return resultobj;
1621 fail:
1622 return NULL;
1623 }
1624
1625
1626 static PyObject *_wrap_OBScreen_numDesktops(PyObject *self, PyObject *args) {
1627 PyObject *resultobj;
1628 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1629 long result;
1630 PyObject * obj0 = 0 ;
1631
1632 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_numDesktops",&obj0)) goto fail;
1633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1634 result = (long)((ob::OBScreen const *)arg1)->numDesktops();
1635
1636 resultobj = PyInt_FromLong((long)result);
1637 return resultobj;
1638 fail:
1639 return NULL;
1640 }
1641
1642
1643 static PyObject *_wrap_OBScreen_updateStrut(PyObject *self, PyObject *args) {
1644 PyObject *resultobj;
1645 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1646 PyObject * obj0 = 0 ;
1647
1648 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_updateStrut",&obj0)) goto fail;
1649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1650 (arg1)->updateStrut();
1651
1652 Py_INCREF(Py_None); resultobj = Py_None;
1653 return resultobj;
1654 fail:
1655 return NULL;
1656 }
1657
1658
1659 static PyObject *_wrap_OBScreen_manageExisting(PyObject *self, PyObject *args) {
1660 PyObject *resultobj;
1661 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1662 PyObject * obj0 = 0 ;
1663
1664 if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_manageExisting",&obj0)) goto fail;
1665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1666 (arg1)->manageExisting();
1667
1668 Py_INCREF(Py_None); resultobj = Py_None;
1669 return resultobj;
1670 fail:
1671 return NULL;
1672 }
1673
1674
1675 static PyObject *_wrap_OBScreen_manageWindow(PyObject *self, PyObject *args) {
1676 PyObject *resultobj;
1677 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1678 Window arg2 ;
1679 PyObject * obj0 = 0 ;
1680 PyObject * obj1 = 0 ;
1681
1682 if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_manageWindow",&obj0,&obj1)) goto fail;
1683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1684 arg2 = (Window) PyInt_AsLong(obj1);
1685 if (PyErr_Occurred()) SWIG_fail;
1686 (arg1)->manageWindow(arg2);
1687
1688 Py_INCREF(Py_None); resultobj = Py_None;
1689 return resultobj;
1690 fail:
1691 return NULL;
1692 }
1693
1694
1695 static PyObject *_wrap_OBScreen_unmanageWindow(PyObject *self, PyObject *args) {
1696 PyObject *resultobj;
1697 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1698 ob::OBClient *arg2 = (ob::OBClient *) 0 ;
1699 PyObject * obj0 = 0 ;
1700 PyObject * obj1 = 0 ;
1701
1702 if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_unmanageWindow",&obj0,&obj1)) goto fail;
1703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1704 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1705 (arg1)->unmanageWindow(arg2);
1706
1707 Py_INCREF(Py_None); resultobj = Py_None;
1708 return resultobj;
1709 fail:
1710 return NULL;
1711 }
1712
1713
1714 static PyObject *_wrap_OBScreen_restack(PyObject *self, PyObject *args) {
1715 PyObject *resultobj;
1716 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1717 bool arg2 ;
1718 ob::OBClient *arg3 = (ob::OBClient *) 0 ;
1719 PyObject * obj0 = 0 ;
1720 PyObject * obj1 = 0 ;
1721 PyObject * obj2 = 0 ;
1722
1723 if(!PyArg_ParseTuple(args,(char *)"OOO:OBScreen_restack",&obj0,&obj1,&obj2)) goto fail;
1724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1725 arg2 = (bool) PyInt_AsLong(obj1);
1726 if (PyErr_Occurred()) SWIG_fail;
1727 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1728 (arg1)->restack(arg2,arg3);
1729
1730 Py_INCREF(Py_None); resultobj = Py_None;
1731 return resultobj;
1732 fail:
1733 return NULL;
1734 }
1735
1736
1737 static PyObject *_wrap_OBScreen_setDesktopName(PyObject *self, PyObject *args) {
1738 PyObject *resultobj;
1739 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1740 long arg2 ;
1741 std::string *arg3 = 0 ;
1742 std::string temp3 ;
1743 PyObject * obj0 = 0 ;
1744 PyObject * obj2 = 0 ;
1745
1746 if(!PyArg_ParseTuple(args,(char *)"OlO:OBScreen_setDesktopName",&obj0,&arg2,&obj2)) goto fail;
1747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1748 {
1749 if (PyString_Check(obj2)) {
1750 temp3 = std::string(PyString_AsString(obj2));
1751 arg3 = &temp3;
1752 }else {
1753 SWIG_exception(SWIG_TypeError, "string expected");
1754 }
1755 }
1756 (arg1)->setDesktopName(arg2,(std::string const &)*arg3);
1757
1758 Py_INCREF(Py_None); resultobj = Py_None;
1759 return resultobj;
1760 fail:
1761 return NULL;
1762 }
1763
1764
1765 static PyObject *_wrap_OBScreen_propertyHandler(PyObject *self, PyObject *args) {
1766 PyObject *resultobj;
1767 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1768 XPropertyEvent *arg2 = 0 ;
1769 PyObject * obj0 = 0 ;
1770 PyObject * obj1 = 0 ;
1771
1772 if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_propertyHandler",&obj0,&obj1)) goto fail;
1773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1774 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1775 if (arg2 == NULL) {
1776 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1777 }
1778 (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
1779
1780 Py_INCREF(Py_None); resultobj = Py_None;
1781 return resultobj;
1782 fail:
1783 return NULL;
1784 }
1785
1786
1787 static PyObject *_wrap_OBScreen_clientMessageHandler(PyObject *self, PyObject *args) {
1788 PyObject *resultobj;
1789 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1790 XClientMessageEvent *arg2 = 0 ;
1791 PyObject * obj0 = 0 ;
1792 PyObject * obj1 = 0 ;
1793
1794 if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_clientMessageHandler",&obj0,&obj1)) goto fail;
1795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1796 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1797 if (arg2 == NULL) {
1798 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1799 }
1800 (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
1801
1802 Py_INCREF(Py_None); resultobj = Py_None;
1803 return resultobj;
1804 fail:
1805 return NULL;
1806 }
1807
1808
1809 static PyObject *_wrap_OBScreen_mapRequestHandler(PyObject *self, PyObject *args) {
1810 PyObject *resultobj;
1811 ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
1812 XMapRequestEvent *arg2 = 0 ;
1813 PyObject * obj0 = 0 ;
1814 PyObject * obj1 = 0 ;
1815
1816 if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_mapRequestHandler",&obj0,&obj1)) goto fail;
1817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1818 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1819 if (arg2 == NULL) {
1820 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1821 }
1822 (arg1)->mapRequestHandler((XMapRequestEvent const &)*arg2);
1823
1824 Py_INCREF(Py_None); resultobj = Py_None;
1825 return resultobj;
1826 fail:
1827 return NULL;
1828 }
1829
1830
1831 static PyObject * OBScreen_swigregister(PyObject *self, PyObject *args) {
1832 PyObject *obj;
1833 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1834 SWIG_TypeClientData(SWIGTYPE_p_ob__OBScreen, obj);
1835 Py_INCREF(obj);
1836 return Py_BuildValue((char *)"");
1837 }
1838 static PyObject *_wrap_MwmHints_flags_set(PyObject *self, PyObject *args) {
1839 PyObject *resultobj;
1840 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1841 unsigned long arg2 ;
1842 PyObject * obj0 = 0 ;
1843 PyObject * obj1 = 0 ;
1844
1845 if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_flags_set",&obj0,&obj1)) goto fail;
1846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1847 arg2 = (unsigned long) PyInt_AsLong(obj1);
1848 if (PyErr_Occurred()) SWIG_fail;
1849 if (arg1) (arg1)->flags = arg2;
1850
1851 Py_INCREF(Py_None); resultobj = Py_None;
1852 return resultobj;
1853 fail:
1854 return NULL;
1855 }
1856
1857
1858 static PyObject *_wrap_MwmHints_flags_get(PyObject *self, PyObject *args) {
1859 PyObject *resultobj;
1860 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1861 unsigned long result;
1862 PyObject * obj0 = 0 ;
1863
1864 if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_flags_get",&obj0)) goto fail;
1865 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1866 result = (unsigned long) ((arg1)->flags);
1867
1868 resultobj = PyInt_FromLong((long)result);
1869 return resultobj;
1870 fail:
1871 return NULL;
1872 }
1873
1874
1875 static PyObject *_wrap_MwmHints_functions_set(PyObject *self, PyObject *args) {
1876 PyObject *resultobj;
1877 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1878 unsigned long arg2 ;
1879 PyObject * obj0 = 0 ;
1880 PyObject * obj1 = 0 ;
1881
1882 if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_functions_set",&obj0,&obj1)) goto fail;
1883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1884 arg2 = (unsigned long) PyInt_AsLong(obj1);
1885 if (PyErr_Occurred()) SWIG_fail;
1886 if (arg1) (arg1)->functions = arg2;
1887
1888 Py_INCREF(Py_None); resultobj = Py_None;
1889 return resultobj;
1890 fail:
1891 return NULL;
1892 }
1893
1894
1895 static PyObject *_wrap_MwmHints_functions_get(PyObject *self, PyObject *args) {
1896 PyObject *resultobj;
1897 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1898 unsigned long result;
1899 PyObject * obj0 = 0 ;
1900
1901 if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_functions_get",&obj0)) goto fail;
1902 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1903 result = (unsigned long) ((arg1)->functions);
1904
1905 resultobj = PyInt_FromLong((long)result);
1906 return resultobj;
1907 fail:
1908 return NULL;
1909 }
1910
1911
1912 static PyObject *_wrap_MwmHints_decorations_set(PyObject *self, PyObject *args) {
1913 PyObject *resultobj;
1914 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1915 unsigned long arg2 ;
1916 PyObject * obj0 = 0 ;
1917 PyObject * obj1 = 0 ;
1918
1919 if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_decorations_set",&obj0,&obj1)) goto fail;
1920 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1921 arg2 = (unsigned long) PyInt_AsLong(obj1);
1922 if (PyErr_Occurred()) SWIG_fail;
1923 if (arg1) (arg1)->decorations = arg2;
1924
1925 Py_INCREF(Py_None); resultobj = Py_None;
1926 return resultobj;
1927 fail:
1928 return NULL;
1929 }
1930
1931
1932 static PyObject *_wrap_MwmHints_decorations_get(PyObject *self, PyObject *args) {
1933 PyObject *resultobj;
1934 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
1935 unsigned long result;
1936 PyObject * obj0 = 0 ;
1937
1938 if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_decorations_get",&obj0)) goto fail;
1939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1940 result = (unsigned long) ((arg1)->decorations);
1941
1942 resultobj = PyInt_FromLong((long)result);
1943 return resultobj;
1944 fail:
1945 return NULL;
1946 }
1947
1948
1949 static PyObject * MwmHints_swigregister(PyObject *self, PyObject *args) {
1950 PyObject *obj;
1951 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1952 SWIG_TypeClientData(SWIGTYPE_p_ob__MwmHints, obj);
1953 Py_INCREF(obj);
1954 return Py_BuildValue((char *)"");
1955 }
1956 static PyObject *_wrap_OBClient_frame_set(PyObject *self, PyObject *args) {
1957 PyObject *resultobj;
1958 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1959 ob::OBFrame *arg2 = (ob::OBFrame *) 0 ;
1960 PyObject * obj0 = 0 ;
1961 PyObject * obj1 = 0 ;
1962
1963 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_frame_set",&obj0,&obj1)) goto fail;
1964 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1965 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBFrame,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
1966 if (arg1) (arg1)->frame = arg2;
1967
1968 Py_INCREF(Py_None); resultobj = Py_None;
1969 return resultobj;
1970 fail:
1971 return NULL;
1972 }
1973
1974
1975 static PyObject *_wrap_OBClient_frame_get(PyObject *self, PyObject *args) {
1976 PyObject *resultobj;
1977 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1978 ob::OBFrame *result;
1979 PyObject * obj0 = 0 ;
1980
1981 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_frame_get",&obj0)) goto fail;
1982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1983 result = (ob::OBFrame *) ((arg1)->frame);
1984
1985 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBFrame, 0);
1986 return resultobj;
1987 fail:
1988 return NULL;
1989 }
1990
1991
1992 static PyObject *_wrap_OBClient_ignore_unmaps_set(PyObject *self, PyObject *args) {
1993 PyObject *resultobj;
1994 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
1995 int arg2 ;
1996 PyObject * obj0 = 0 ;
1997
1998 if(!PyArg_ParseTuple(args,(char *)"Oi:OBClient_ignore_unmaps_set",&obj0,&arg2)) goto fail;
1999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2000 if (arg1) (arg1)->ignore_unmaps = arg2;
2001
2002 Py_INCREF(Py_None); resultobj = Py_None;
2003 return resultobj;
2004 fail:
2005 return NULL;
2006 }
2007
2008
2009 static PyObject *_wrap_OBClient_ignore_unmaps_get(PyObject *self, PyObject *args) {
2010 PyObject *resultobj;
2011 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2012 int result;
2013 PyObject * obj0 = 0 ;
2014
2015 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_ignore_unmaps_get",&obj0)) goto fail;
2016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2017 result = (int) ((arg1)->ignore_unmaps);
2018
2019 resultobj = PyInt_FromLong((long)result);
2020 return resultobj;
2021 fail:
2022 return NULL;
2023 }
2024
2025
2026 static PyObject *_wrap_OBClient_screen(PyObject *self, PyObject *args) {
2027 PyObject *resultobj;
2028 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2029 int result;
2030 PyObject * obj0 = 0 ;
2031
2032 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_screen",&obj0)) goto fail;
2033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2034 result = (int)((ob::OBClient const *)arg1)->screen();
2035
2036 resultobj = PyInt_FromLong((long)result);
2037 return resultobj;
2038 fail:
2039 return NULL;
2040 }
2041
2042
2043 static PyObject *_wrap_OBClient_window(PyObject *self, PyObject *args) {
2044 PyObject *resultobj;
2045 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2046 Window result;
2047 PyObject * obj0 = 0 ;
2048
2049 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_window",&obj0)) goto fail;
2050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2051 result = (Window)((ob::OBClient const *)arg1)->window();
2052
2053 resultobj = PyInt_FromLong((long)result);
2054 return resultobj;
2055 fail:
2056 return NULL;
2057 }
2058
2059
2060 static PyObject *_wrap_OBClient_type(PyObject *self, PyObject *args) {
2061 PyObject *resultobj;
2062 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2063 int result;
2064 PyObject * obj0 = 0 ;
2065
2066 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_type",&obj0)) goto fail;
2067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2068 result = (int)((ob::OBClient const *)arg1)->type();
2069
2070 resultobj = PyInt_FromLong((long)result);
2071 return resultobj;
2072 fail:
2073 return NULL;
2074 }
2075
2076
2077 static PyObject *_wrap_OBClient_normal(PyObject *self, PyObject *args) {
2078 PyObject *resultobj;
2079 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2080 bool result;
2081 PyObject * obj0 = 0 ;
2082
2083 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_normal",&obj0)) goto fail;
2084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2085 result = (bool)((ob::OBClient const *)arg1)->normal();
2086
2087 resultobj = PyInt_FromLong((long)result);
2088 return resultobj;
2089 fail:
2090 return NULL;
2091 }
2092
2093
2094 static PyObject *_wrap_OBClient_desktop(PyObject *self, PyObject *args) {
2095 PyObject *resultobj;
2096 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2097 long result;
2098 PyObject * obj0 = 0 ;
2099
2100 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_desktop",&obj0)) goto fail;
2101 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2102 result = (long)((ob::OBClient const *)arg1)->desktop();
2103
2104 resultobj = PyInt_FromLong((long)result);
2105 return resultobj;
2106 fail:
2107 return NULL;
2108 }
2109
2110
2111 static PyObject *_wrap_OBClient_title(PyObject *self, PyObject *args) {
2112 PyObject *resultobj;
2113 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2114 std::string *result;
2115 PyObject * obj0 = 0 ;
2116
2117 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_title",&obj0)) goto fail;
2118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2119 {
2120 std::string const &_result_ref = ((ob::OBClient const *)arg1)->title();
2121 result = (std::string *) &_result_ref;
2122 }
2123
2124 {
2125 resultobj = PyString_FromString(result->c_str());
2126 }
2127 return resultobj;
2128 fail:
2129 return NULL;
2130 }
2131
2132
2133 static PyObject *_wrap_OBClient_iconTitle(PyObject *self, PyObject *args) {
2134 PyObject *resultobj;
2135 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2136 std::string *result;
2137 PyObject * obj0 = 0 ;
2138
2139 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconTitle",&obj0)) goto fail;
2140 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2141 {
2142 std::string const &_result_ref = ((ob::OBClient const *)arg1)->iconTitle();
2143 result = (std::string *) &_result_ref;
2144 }
2145
2146 {
2147 resultobj = PyString_FromString(result->c_str());
2148 }
2149 return resultobj;
2150 fail:
2151 return NULL;
2152 }
2153
2154
2155 static PyObject *_wrap_OBClient_appName(PyObject *self, PyObject *args) {
2156 PyObject *resultobj;
2157 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2158 std::string *result;
2159 PyObject * obj0 = 0 ;
2160
2161 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appName",&obj0)) goto fail;
2162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2163 {
2164 std::string const &_result_ref = ((ob::OBClient const *)arg1)->appName();
2165 result = (std::string *) &_result_ref;
2166 }
2167
2168 {
2169 resultobj = PyString_FromString(result->c_str());
2170 }
2171 return resultobj;
2172 fail:
2173 return NULL;
2174 }
2175
2176
2177 static PyObject *_wrap_OBClient_appClass(PyObject *self, PyObject *args) {
2178 PyObject *resultobj;
2179 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2180 std::string *result;
2181 PyObject * obj0 = 0 ;
2182
2183 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appClass",&obj0)) goto fail;
2184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2185 {
2186 std::string const &_result_ref = ((ob::OBClient const *)arg1)->appClass();
2187 result = (std::string *) &_result_ref;
2188 }
2189
2190 {
2191 resultobj = PyString_FromString(result->c_str());
2192 }
2193 return resultobj;
2194 fail:
2195 return NULL;
2196 }
2197
2198
2199 static PyObject *_wrap_OBClient_role(PyObject *self, PyObject *args) {
2200 PyObject *resultobj;
2201 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2202 std::string *result;
2203 PyObject * obj0 = 0 ;
2204
2205 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_role",&obj0)) goto fail;
2206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2207 {
2208 std::string const &_result_ref = ((ob::OBClient const *)arg1)->role();
2209 result = (std::string *) &_result_ref;
2210 }
2211
2212 {
2213 resultobj = PyString_FromString(result->c_str());
2214 }
2215 return resultobj;
2216 fail:
2217 return NULL;
2218 }
2219
2220
2221 static PyObject *_wrap_OBClient_canFocus(PyObject *self, PyObject *args) {
2222 PyObject *resultobj;
2223 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2224 bool result;
2225 PyObject * obj0 = 0 ;
2226
2227 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_canFocus",&obj0)) goto fail;
2228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2229 result = (bool)((ob::OBClient const *)arg1)->canFocus();
2230
2231 resultobj = PyInt_FromLong((long)result);
2232 return resultobj;
2233 fail:
2234 return NULL;
2235 }
2236
2237
2238 static PyObject *_wrap_OBClient_urgent(PyObject *self, PyObject *args) {
2239 PyObject *resultobj;
2240 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2241 bool result;
2242 PyObject * obj0 = 0 ;
2243
2244 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_urgent",&obj0)) goto fail;
2245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2246 result = (bool)((ob::OBClient const *)arg1)->urgent();
2247
2248 resultobj = PyInt_FromLong((long)result);
2249 return resultobj;
2250 fail:
2251 return NULL;
2252 }
2253
2254
2255 static PyObject *_wrap_OBClient_focusNotify(PyObject *self, PyObject *args) {
2256 PyObject *resultobj;
2257 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2258 bool result;
2259 PyObject * obj0 = 0 ;
2260
2261 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focusNotify",&obj0)) goto fail;
2262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2263 result = (bool)((ob::OBClient const *)arg1)->focusNotify();
2264
2265 resultobj = PyInt_FromLong((long)result);
2266 return resultobj;
2267 fail:
2268 return NULL;
2269 }
2270
2271
2272 static PyObject *_wrap_OBClient_shaped(PyObject *self, PyObject *args) {
2273 PyObject *resultobj;
2274 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2275 bool result;
2276 PyObject * obj0 = 0 ;
2277
2278 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaped",&obj0)) goto fail;
2279 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2280 result = (bool)((ob::OBClient const *)arg1)->shaped();
2281
2282 resultobj = PyInt_FromLong((long)result);
2283 return resultobj;
2284 fail:
2285 return NULL;
2286 }
2287
2288
2289 static PyObject *_wrap_OBClient_gravity(PyObject *self, PyObject *args) {
2290 PyObject *resultobj;
2291 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2292 int result;
2293 PyObject * obj0 = 0 ;
2294
2295 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_gravity",&obj0)) goto fail;
2296 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2297 result = (int)((ob::OBClient const *)arg1)->gravity();
2298
2299 resultobj = PyInt_FromLong((long)result);
2300 return resultobj;
2301 fail:
2302 return NULL;
2303 }
2304
2305
2306 static PyObject *_wrap_OBClient_positionRequested(PyObject *self, PyObject *args) {
2307 PyObject *resultobj;
2308 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2309 bool result;
2310 PyObject * obj0 = 0 ;
2311
2312 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_positionRequested",&obj0)) goto fail;
2313 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2314 result = (bool)((ob::OBClient const *)arg1)->positionRequested();
2315
2316 resultobj = PyInt_FromLong((long)result);
2317 return resultobj;
2318 fail:
2319 return NULL;
2320 }
2321
2322
2323 static PyObject *_wrap_OBClient_decorations(PyObject *self, PyObject *args) {
2324 PyObject *resultobj;
2325 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2326 ob::OBClient::DecorationFlags result;
2327 PyObject * obj0 = 0 ;
2328
2329 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_decorations",&obj0)) goto fail;
2330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2331 result = (ob::OBClient::DecorationFlags)((ob::OBClient const *)arg1)->decorations();
2332
2333 resultobj = PyInt_FromLong((long)result);
2334 return resultobj;
2335 fail:
2336 return NULL;
2337 }
2338
2339
2340 static PyObject *_wrap_OBClient_funtions(PyObject *self, PyObject *args) {
2341 PyObject *resultobj;
2342 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2343 ob::OBClient::FunctionFlags result;
2344 PyObject * obj0 = 0 ;
2345
2346 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_funtions",&obj0)) goto fail;
2347 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2348 result = (ob::OBClient::FunctionFlags)((ob::OBClient const *)arg1)->funtions();
2349
2350 resultobj = PyInt_FromLong((long)result);
2351 return resultobj;
2352 fail:
2353 return NULL;
2354 }
2355
2356
2357 static PyObject *_wrap_OBClient_transientFor(PyObject *self, PyObject *args) {
2358 PyObject *resultobj;
2359 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2360 ob::OBClient *result;
2361 PyObject * obj0 = 0 ;
2362
2363 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_transientFor",&obj0)) goto fail;
2364 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2365 result = (ob::OBClient *)((ob::OBClient const *)arg1)->transientFor();
2366
2367 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
2368 return resultobj;
2369 fail:
2370 return NULL;
2371 }
2372
2373
2374 static PyObject *_wrap_OBClient_modal(PyObject *self, PyObject *args) {
2375 PyObject *resultobj;
2376 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2377 bool result;
2378 PyObject * obj0 = 0 ;
2379
2380 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_modal",&obj0)) goto fail;
2381 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2382 result = (bool)((ob::OBClient const *)arg1)->modal();
2383
2384 resultobj = PyInt_FromLong((long)result);
2385 return resultobj;
2386 fail:
2387 return NULL;
2388 }
2389
2390
2391 static PyObject *_wrap_OBClient_shaded(PyObject *self, PyObject *args) {
2392 PyObject *resultobj;
2393 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2394 bool result;
2395 PyObject * obj0 = 0 ;
2396
2397 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaded",&obj0)) goto fail;
2398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2399 result = (bool)((ob::OBClient const *)arg1)->shaded();
2400
2401 resultobj = PyInt_FromLong((long)result);
2402 return resultobj;
2403 fail:
2404 return NULL;
2405 }
2406
2407
2408 static PyObject *_wrap_OBClient_iconic(PyObject *self, PyObject *args) {
2409 PyObject *resultobj;
2410 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2411 bool result;
2412 PyObject * obj0 = 0 ;
2413
2414 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconic",&obj0)) goto fail;
2415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2416 result = (bool)((ob::OBClient const *)arg1)->iconic();
2417
2418 resultobj = PyInt_FromLong((long)result);
2419 return resultobj;
2420 fail:
2421 return NULL;
2422 }
2423
2424
2425 static PyObject *_wrap_OBClient_maxVert(PyObject *self, PyObject *args) {
2426 PyObject *resultobj;
2427 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2428 bool result;
2429 PyObject * obj0 = 0 ;
2430
2431 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxVert",&obj0)) goto fail;
2432 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2433 result = (bool)((ob::OBClient const *)arg1)->maxVert();
2434
2435 resultobj = PyInt_FromLong((long)result);
2436 return resultobj;
2437 fail:
2438 return NULL;
2439 }
2440
2441
2442 static PyObject *_wrap_OBClient_maxHorz(PyObject *self, PyObject *args) {
2443 PyObject *resultobj;
2444 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2445 bool result;
2446 PyObject * obj0 = 0 ;
2447
2448 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxHorz",&obj0)) goto fail;
2449 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2450 result = (bool)((ob::OBClient const *)arg1)->maxHorz();
2451
2452 resultobj = PyInt_FromLong((long)result);
2453 return resultobj;
2454 fail:
2455 return NULL;
2456 }
2457
2458
2459 static PyObject *_wrap_OBClient_layer(PyObject *self, PyObject *args) {
2460 PyObject *resultobj;
2461 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2462 int result;
2463 PyObject * obj0 = 0 ;
2464
2465 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_layer",&obj0)) goto fail;
2466 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2467 result = (int)((ob::OBClient const *)arg1)->layer();
2468
2469 resultobj = PyInt_FromLong((long)result);
2470 return resultobj;
2471 fail:
2472 return NULL;
2473 }
2474
2475
2476 static PyObject *_wrap_OBClient_toggleClientBorder(PyObject *self, PyObject *args) {
2477 PyObject *resultobj;
2478 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2479 bool arg2 ;
2480 PyObject * obj0 = 0 ;
2481 PyObject * obj1 = 0 ;
2482
2483 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_toggleClientBorder",&obj0,&obj1)) goto fail;
2484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2485 arg2 = (bool) PyInt_AsLong(obj1);
2486 if (PyErr_Occurred()) SWIG_fail;
2487 (arg1)->toggleClientBorder(arg2);
2488
2489 Py_INCREF(Py_None); resultobj = Py_None;
2490 return resultobj;
2491 fail:
2492 return NULL;
2493 }
2494
2495
2496 static PyObject *_wrap_OBClient_area(PyObject *self, PyObject *args) {
2497 PyObject *resultobj;
2498 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2499 otk::Rect *result;
2500 PyObject * obj0 = 0 ;
2501
2502 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_area",&obj0)) goto fail;
2503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2504 {
2505 otk::Rect const &_result_ref = ((ob::OBClient const *)arg1)->area();
2506 result = (otk::Rect *) &_result_ref;
2507 }
2508
2509 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
2510 return resultobj;
2511 fail:
2512 return NULL;
2513 }
2514
2515
2516 static PyObject *_wrap_OBClient_strut(PyObject *self, PyObject *args) {
2517 PyObject *resultobj;
2518 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2519 otk::Strut *result;
2520 PyObject * obj0 = 0 ;
2521
2522 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_strut",&obj0)) goto fail;
2523 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2524 {
2525 otk::Strut const &_result_ref = ((ob::OBClient const *)arg1)->strut();
2526 result = (otk::Strut *) &_result_ref;
2527 }
2528
2529 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 0);
2530 return resultobj;
2531 fail:
2532 return NULL;
2533 }
2534
2535
2536 static PyObject *_wrap_OBClient_move(PyObject *self, PyObject *args) {
2537 PyObject *resultobj;
2538 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2539 int arg2 ;
2540 int arg3 ;
2541 PyObject * obj0 = 0 ;
2542
2543 if(!PyArg_ParseTuple(args,(char *)"Oii:OBClient_move",&obj0,&arg2,&arg3)) goto fail;
2544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2545 (arg1)->move(arg2,arg3);
2546
2547 Py_INCREF(Py_None); resultobj = Py_None;
2548 return resultobj;
2549 fail:
2550 return NULL;
2551 }
2552
2553
2554 static PyObject *_wrap_OBClient_resize(PyObject *self, PyObject *args) {
2555 PyObject *resultobj;
2556 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2557 int arg2 ;
2558 int arg3 ;
2559 int arg4 ;
2560 int arg5 = (int) INT_MIN ;
2561 int arg6 = (int) INT_MIN ;
2562 PyObject * obj0 = 0 ;
2563
2564 if(!PyArg_ParseTuple(args,(char *)"Oiii|ii:OBClient_resize",&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
2565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2566 (arg1)->resize((ob::OBClient::Corner )arg2,arg3,arg4,arg5,arg6);
2567
2568 Py_INCREF(Py_None); resultobj = Py_None;
2569 return resultobj;
2570 fail:
2571 return NULL;
2572 }
2573
2574
2575 static PyObject *_wrap_OBClient_focus(PyObject *self, PyObject *args) {
2576 PyObject *resultobj;
2577 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2578 bool result;
2579 PyObject * obj0 = 0 ;
2580
2581 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focus",&obj0)) goto fail;
2582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2583 result = (bool)((ob::OBClient const *)arg1)->focus();
2584
2585 resultobj = PyInt_FromLong((long)result);
2586 return resultobj;
2587 fail:
2588 return NULL;
2589 }
2590
2591
2592 static PyObject *_wrap_OBClient_unfocus(PyObject *self, PyObject *args) {
2593 PyObject *resultobj;
2594 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2595 PyObject * obj0 = 0 ;
2596
2597 if(!PyArg_ParseTuple(args,(char *)"O:OBClient_unfocus",&obj0)) goto fail;
2598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2599 ((ob::OBClient const *)arg1)->unfocus();
2600
2601 Py_INCREF(Py_None); resultobj = Py_None;
2602 return resultobj;
2603 fail:
2604 return NULL;
2605 }
2606
2607
2608 static PyObject *_wrap_OBClient_focusHandler(PyObject *self, PyObject *args) {
2609 PyObject *resultobj;
2610 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2611 XFocusChangeEvent *arg2 = 0 ;
2612 PyObject * obj0 = 0 ;
2613 PyObject * obj1 = 0 ;
2614
2615 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_focusHandler",&obj0,&obj1)) goto fail;
2616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2617 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2618 if (arg2 == NULL) {
2619 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2620 }
2621 (arg1)->focusHandler((XFocusChangeEvent const &)*arg2);
2622
2623 Py_INCREF(Py_None); resultobj = Py_None;
2624 return resultobj;
2625 fail:
2626 return NULL;
2627 }
2628
2629
2630 static PyObject *_wrap_OBClient_unfocusHandler(PyObject *self, PyObject *args) {
2631 PyObject *resultobj;
2632 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2633 XFocusChangeEvent *arg2 = 0 ;
2634 PyObject * obj0 = 0 ;
2635 PyObject * obj1 = 0 ;
2636
2637 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unfocusHandler",&obj0,&obj1)) goto fail;
2638 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2639 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2640 if (arg2 == NULL) {
2641 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2642 }
2643 (arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2);
2644
2645 Py_INCREF(Py_None); resultobj = Py_None;
2646 return resultobj;
2647 fail:
2648 return NULL;
2649 }
2650
2651
2652 static PyObject *_wrap_OBClient_propertyHandler(PyObject *self, PyObject *args) {
2653 PyObject *resultobj;
2654 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2655 XPropertyEvent *arg2 = 0 ;
2656 PyObject * obj0 = 0 ;
2657 PyObject * obj1 = 0 ;
2658
2659 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_propertyHandler",&obj0,&obj1)) goto fail;
2660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2661 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2662 if (arg2 == NULL) {
2663 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2664 }
2665 (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
2666
2667 Py_INCREF(Py_None); resultobj = Py_None;
2668 return resultobj;
2669 fail:
2670 return NULL;
2671 }
2672
2673
2674 static PyObject *_wrap_OBClient_clientMessageHandler(PyObject *self, PyObject *args) {
2675 PyObject *resultobj;
2676 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2677 XClientMessageEvent *arg2 = 0 ;
2678 PyObject * obj0 = 0 ;
2679 PyObject * obj1 = 0 ;
2680
2681 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_clientMessageHandler",&obj0,&obj1)) goto fail;
2682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2683 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2684 if (arg2 == NULL) {
2685 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2686 }
2687 (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
2688
2689 Py_INCREF(Py_None); resultobj = Py_None;
2690 return resultobj;
2691 fail:
2692 return NULL;
2693 }
2694
2695
2696 static PyObject *_wrap_OBClient_configureRequestHandler(PyObject *self, PyObject *args) {
2697 PyObject *resultobj;
2698 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2699 XConfigureRequestEvent *arg2 = 0 ;
2700 PyObject * obj0 = 0 ;
2701 PyObject * obj1 = 0 ;
2702
2703 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_configureRequestHandler",&obj0,&obj1)) goto fail;
2704 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2705 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2706 if (arg2 == NULL) {
2707 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2708 }
2709 (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2);
2710
2711 Py_INCREF(Py_None); resultobj = Py_None;
2712 return resultobj;
2713 fail:
2714 return NULL;
2715 }
2716
2717
2718 static PyObject *_wrap_OBClient_unmapHandler(PyObject *self, PyObject *args) {
2719 PyObject *resultobj;
2720 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2721 XUnmapEvent *arg2 = 0 ;
2722 PyObject * obj0 = 0 ;
2723 PyObject * obj1 = 0 ;
2724
2725 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unmapHandler",&obj0,&obj1)) goto fail;
2726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2727 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2728 if (arg2 == NULL) {
2729 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2730 }
2731 (arg1)->unmapHandler((XUnmapEvent const &)*arg2);
2732
2733 Py_INCREF(Py_None); resultobj = Py_None;
2734 return resultobj;
2735 fail:
2736 return NULL;
2737 }
2738
2739
2740 static PyObject *_wrap_OBClient_destroyHandler(PyObject *self, PyObject *args) {
2741 PyObject *resultobj;
2742 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2743 XDestroyWindowEvent *arg2 = 0 ;
2744 PyObject * obj0 = 0 ;
2745 PyObject * obj1 = 0 ;
2746
2747 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_destroyHandler",&obj0,&obj1)) goto fail;
2748 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2749 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2750 if (arg2 == NULL) {
2751 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2752 }
2753 (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2);
2754
2755 Py_INCREF(Py_None); resultobj = Py_None;
2756 return resultobj;
2757 fail:
2758 return NULL;
2759 }
2760
2761
2762 static PyObject *_wrap_OBClient_reparentHandler(PyObject *self, PyObject *args) {
2763 PyObject *resultobj;
2764 ob::OBClient *arg1 = (ob::OBClient *) 0 ;
2765 XReparentEvent *arg2 = 0 ;
2766 PyObject * obj0 = 0 ;
2767 PyObject * obj1 = 0 ;
2768
2769 if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_reparentHandler",&obj0,&obj1)) goto fail;
2770 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2771 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2772 if (arg2 == NULL) {
2773 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2774 }
2775 (arg1)->reparentHandler((XReparentEvent const &)*arg2);
2776
2777 Py_INCREF(Py_None); resultobj = Py_None;
2778 return resultobj;
2779 fail:
2780 return NULL;
2781 }
2782
2783
2784 static PyObject * OBClient_swigregister(PyObject *self, PyObject *args) {
2785 PyObject *obj;
2786 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2787 SWIG_TypeClientData(SWIGTYPE_p_ob__OBClient, obj);
2788 Py_INCREF(obj);
2789 return Py_BuildValue((char *)"");
2790 }
2791 static PyObject *_wrap_MotionData_screen_set(PyObject *self, PyObject *args) {
2792 PyObject *resultobj;
2793 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
2794 int arg2 ;
2795 PyObject * obj0 = 0 ;
2796
2797 if(!PyArg_ParseTuple(args,(char *)"Oi:MotionData_screen_set",&obj0,&arg2)) goto fail;
2798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2799 if (arg1) (arg1)->screen = arg2;
2800
2801 Py_INCREF(Py_None); resultobj = Py_None;
2802 return resultobj;
2803 fail:
2804 return NULL;
2805 }
2806
2807
2808 static PyObject *_wrap_MotionData_screen_get(PyObject *self, PyObject *args) {
2809 PyObject *resultobj;
2810 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
2811 int result;
2812 PyObject * obj0 = 0 ;
2813
2814 if(!PyArg_ParseTuple(args,(char *)"O:MotionData_screen_get",&obj0)) goto fail;
2815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2816 result = (int) ((arg1)->screen);
2817
2818 resultobj = PyInt_FromLong((long)result);
2819 return resultobj;
2820 fail:
2821 return NULL;
2822 }
2823
2824
2825 static PyObject *_wrap_MotionData_client_set(PyObject *self, PyObject *args) {
2826 PyObject *resultobj;
2827 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
2828 ob::OBClient *arg2 = (ob::OBClient *) 0 ;
2829 PyObject * obj0 = 0 ;
2830 PyObject * obj1 = 0 ;
2831
2832 if(!PyArg_ParseTuple(args,(char *)"OO:MotionData_client_set",&obj0,&obj1)) goto fail;
2833 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2834 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
2835 if (arg1) (arg1)->client = arg2;
2836
2837 Py_INCREF(Py_None); resultobj = Py_None;
2838 return resultobj;
2839 fail:
2840 return NULL;
2841 }
2842
2843
2844 static PyObject *_wrap_MotionData_client_get(PyObject *self, PyObject *args) {
2845 PyObject *resultobj;
2846 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
2847 ob::OBClient *result;
2848 PyObject * obj0 = 0 ;
2849
2850 if(!PyArg_ParseTuple(args,(char *)"O:MotionData_client_get",&obj0)) goto fail;
2851 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2852 result = (ob::OBClient *) ((arg1)->client);
2853
2854 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
2855 return resultobj;
2856 fail:
2857 return NULL;
2858 }
2859
2860
2861 static PyObject *_wrap_MotionData_time_set(PyObject *self, PyObject *args) {
2862 PyObject *resultobj;
2863 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
2864 Time arg2 ;
2865 PyObject * obj0 = 0 ;
2866 PyObject * obj1 = 0 ;
2867
2868 if(!PyArg_ParseTuple(args,(char *)"OO:MotionData_time_set",&obj0,&obj1)) goto fail;
2869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2870 arg2 = (Time) PyInt_AsLong(obj1);
2871 if (PyErr_Occurred()) SWIG_fail;
2872 if (arg1) (arg1)->time = arg2;
2873
2874 Py_INCREF(Py_None); resultobj = Py_None;
2875 return resultobj;
2876 fail:
2877 return NULL;
2878 }
2879
2880
2881 static PyObject *_wrap_MotionData_time_get(PyObject *self, PyObject *args) {
2882 PyObject *resultobj;
2883 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
2884 Time result;
2885 PyObject * obj0 = 0 ;
2886
2887 if(!PyArg_ParseTuple(args,(char *)"O:MotionData_time_get",&obj0)) goto fail;
2888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2889 result = (Time) ((arg1)->time);
2890
2891 resultobj = PyInt_FromLong((long)result);
2892 return resultobj;
2893 fail:
2894 return NULL;
2895 }
2896
2897
2898 static PyObject *_wrap_MotionData_state_set(PyObject *self, PyObject *args) {
2899 PyObject *resultobj;
2900 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
2901 unsigned int arg2 ;
2902 PyObject * obj0 = 0 ;
2903 PyObject * obj1 = 0 ;
2904
2905 if(!PyArg_ParseTuple(args,(char *)"OO:MotionData_state_set",&obj0,&obj1)) goto fail;
2906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2907 arg2 = (unsigned int) PyInt_AsLong(obj1);
2908 if (PyErr_Occurred()) SWIG_fail;
2909 if (arg1) (arg1)->state = arg2;
2910
2911 Py_INCREF(Py_None); resultobj = Py_None;
2912 return resultobj;
2913 fail:
2914 return NULL;
2915 }
2916
2917
2918 static PyObject *_wrap_MotionData_state_get(PyObject *self, PyObject *args) {
2919 PyObject *resultobj;
2920 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
2921 unsigned int result;
2922 PyObject * obj0 = 0 ;
2923
2924 if(!PyArg_ParseTuple(args,(char *)"O:MotionData_state_get",&obj0)) goto fail;
2925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2926 result = (unsigned int) ((arg1)->state);
2927
2928 resultobj = PyInt_FromLong((long)result);
2929 return resultobj;
2930 fail:
2931 return NULL;
2932 }
2933
2934
2935 static PyObject *_wrap_MotionData_button_set(PyObject *self, PyObject *args) {
2936 PyObject *resultobj;
2937 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
2938 unsigned int arg2 ;
2939 PyObject * obj0 = 0 ;
2940 PyObject * obj1 = 0 ;
2941
2942 if(!PyArg_ParseTuple(args,(char *)"OO:MotionData_button_set",&obj0,&obj1)) goto fail;
2943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2944 arg2 = (unsigned int) PyInt_AsLong(obj1);
2945 if (PyErr_Occurred()) SWIG_fail;
2946 if (arg1) (arg1)->button = arg2;
2947
2948 Py_INCREF(Py_None); resultobj = Py_None;
2949 return resultobj;
2950 fail:
2951 return NULL;
2952 }
2953
2954
2955 static PyObject *_wrap_MotionData_button_get(PyObject *self, PyObject *args) {
2956 PyObject *resultobj;
2957 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
2958 unsigned int result;
2959 PyObject * obj0 = 0 ;
2960
2961 if(!PyArg_ParseTuple(args,(char *)"O:MotionData_button_get",&obj0)) goto fail;
2962 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2963 result = (unsigned int) ((arg1)->button);
2964
2965 resultobj = PyInt_FromLong((long)result);
2966 return resultobj;
2967 fail:
2968 return NULL;
2969 }
2970
2971
2972 static PyObject *_wrap_MotionData_context_set(PyObject *self, PyObject *args) {
2973 PyObject *resultobj;
2974 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
2975 int arg2 ;
2976 PyObject * obj0 = 0 ;
2977
2978 if(!PyArg_ParseTuple(args,(char *)"Oi:MotionData_context_set",&obj0,&arg2)) goto fail;
2979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2980 if (arg1) (arg1)->context = (ob::MouseContext )arg2;
2981
2982 Py_INCREF(Py_None); resultobj = Py_None;
2983 return resultobj;
2984 fail:
2985 return NULL;
2986 }
2987
2988
2989 static PyObject *_wrap_MotionData_context_get(PyObject *self, PyObject *args) {
2990 PyObject *resultobj;
2991 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
2992 int result;
2993 PyObject * obj0 = 0 ;
2994
2995 if(!PyArg_ParseTuple(args,(char *)"O:MotionData_context_get",&obj0)) goto fail;
2996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2997 result = (int) ((arg1)->context);
2998
2999 resultobj = PyInt_FromLong((long)result);
3000 return resultobj;
3001 fail:
3002 return NULL;
3003 }
3004
3005
3006 static PyObject *_wrap_MotionData_action_set(PyObject *self, PyObject *args) {
3007 PyObject *resultobj;
3008 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3009 int arg2 ;
3010 PyObject * obj0 = 0 ;
3011
3012 if(!PyArg_ParseTuple(args,(char *)"Oi:MotionData_action_set",&obj0,&arg2)) goto fail;
3013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3014 if (arg1) (arg1)->action = (ob::MouseAction )arg2;
3015
3016 Py_INCREF(Py_None); resultobj = Py_None;
3017 return resultobj;
3018 fail:
3019 return NULL;
3020 }
3021
3022
3023 static PyObject *_wrap_MotionData_action_get(PyObject *self, PyObject *args) {
3024 PyObject *resultobj;
3025 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3026 int result;
3027 PyObject * obj0 = 0 ;
3028
3029 if(!PyArg_ParseTuple(args,(char *)"O:MotionData_action_get",&obj0)) goto fail;
3030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3031 result = (int) ((arg1)->action);
3032
3033 resultobj = PyInt_FromLong((long)result);
3034 return resultobj;
3035 fail:
3036 return NULL;
3037 }
3038
3039
3040 static PyObject *_wrap_MotionData_xroot_set(PyObject *self, PyObject *args) {
3041 PyObject *resultobj;
3042 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3043 int arg2 ;
3044 PyObject * obj0 = 0 ;
3045
3046 if(!PyArg_ParseTuple(args,(char *)"Oi:MotionData_xroot_set",&obj0,&arg2)) goto fail;
3047 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3048 if (arg1) (arg1)->xroot = arg2;
3049
3050 Py_INCREF(Py_None); resultobj = Py_None;
3051 return resultobj;
3052 fail:
3053 return NULL;
3054 }
3055
3056
3057 static PyObject *_wrap_MotionData_xroot_get(PyObject *self, PyObject *args) {
3058 PyObject *resultobj;
3059 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3060 int result;
3061 PyObject * obj0 = 0 ;
3062
3063 if(!PyArg_ParseTuple(args,(char *)"O:MotionData_xroot_get",&obj0)) goto fail;
3064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3065 result = (int) ((arg1)->xroot);
3066
3067 resultobj = PyInt_FromLong((long)result);
3068 return resultobj;
3069 fail:
3070 return NULL;
3071 }
3072
3073
3074 static PyObject *_wrap_MotionData_yroot_set(PyObject *self, PyObject *args) {
3075 PyObject *resultobj;
3076 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3077 int arg2 ;
3078 PyObject * obj0 = 0 ;
3079
3080 if(!PyArg_ParseTuple(args,(char *)"Oi:MotionData_yroot_set",&obj0,&arg2)) goto fail;
3081 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3082 if (arg1) (arg1)->yroot = arg2;
3083
3084 Py_INCREF(Py_None); resultobj = Py_None;
3085 return resultobj;
3086 fail:
3087 return NULL;
3088 }
3089
3090
3091 static PyObject *_wrap_MotionData_yroot_get(PyObject *self, PyObject *args) {
3092 PyObject *resultobj;
3093 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3094 int result;
3095 PyObject * obj0 = 0 ;
3096
3097 if(!PyArg_ParseTuple(args,(char *)"O:MotionData_yroot_get",&obj0)) goto fail;
3098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3099 result = (int) ((arg1)->yroot);
3100
3101 resultobj = PyInt_FromLong((long)result);
3102 return resultobj;
3103 fail:
3104 return NULL;
3105 }
3106
3107
3108 static PyObject *_wrap_MotionData_pressx_set(PyObject *self, PyObject *args) {
3109 PyObject *resultobj;
3110 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3111 int arg2 ;
3112 PyObject * obj0 = 0 ;
3113
3114 if(!PyArg_ParseTuple(args,(char *)"Oi:MotionData_pressx_set",&obj0,&arg2)) goto fail;
3115 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3116 if (arg1) (arg1)->pressx = arg2;
3117
3118 Py_INCREF(Py_None); resultobj = Py_None;
3119 return resultobj;
3120 fail:
3121 return NULL;
3122 }
3123
3124
3125 static PyObject *_wrap_MotionData_pressx_get(PyObject *self, PyObject *args) {
3126 PyObject *resultobj;
3127 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3128 int result;
3129 PyObject * obj0 = 0 ;
3130
3131 if(!PyArg_ParseTuple(args,(char *)"O:MotionData_pressx_get",&obj0)) goto fail;
3132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3133 result = (int) ((arg1)->pressx);
3134
3135 resultobj = PyInt_FromLong((long)result);
3136 return resultobj;
3137 fail:
3138 return NULL;
3139 }
3140
3141
3142 static PyObject *_wrap_MotionData_pressy_set(PyObject *self, PyObject *args) {
3143 PyObject *resultobj;
3144 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3145 int arg2 ;
3146 PyObject * obj0 = 0 ;
3147
3148 if(!PyArg_ParseTuple(args,(char *)"Oi:MotionData_pressy_set",&obj0,&arg2)) goto fail;
3149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3150 if (arg1) (arg1)->pressy = arg2;
3151
3152 Py_INCREF(Py_None); resultobj = Py_None;
3153 return resultobj;
3154 fail:
3155 return NULL;
3156 }
3157
3158
3159 static PyObject *_wrap_MotionData_pressy_get(PyObject *self, PyObject *args) {
3160 PyObject *resultobj;
3161 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3162 int result;
3163 PyObject * obj0 = 0 ;
3164
3165 if(!PyArg_ParseTuple(args,(char *)"O:MotionData_pressy_get",&obj0)) goto fail;
3166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3167 result = (int) ((arg1)->pressy);
3168
3169 resultobj = PyInt_FromLong((long)result);
3170 return resultobj;
3171 fail:
3172 return NULL;
3173 }
3174
3175
3176 static PyObject *_wrap_MotionData_press_clientx_set(PyObject *self, PyObject *args) {
3177 PyObject *resultobj;
3178 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3179 int arg2 ;
3180 PyObject * obj0 = 0 ;
3181
3182 if(!PyArg_ParseTuple(args,(char *)"Oi:MotionData_press_clientx_set",&obj0,&arg2)) goto fail;
3183 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3184 if (arg1) (arg1)->press_clientx = arg2;
3185
3186 Py_INCREF(Py_None); resultobj = Py_None;
3187 return resultobj;
3188 fail:
3189 return NULL;
3190 }
3191
3192
3193 static PyObject *_wrap_MotionData_press_clientx_get(PyObject *self, PyObject *args) {
3194 PyObject *resultobj;
3195 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3196 int result;
3197 PyObject * obj0 = 0 ;
3198
3199 if(!PyArg_ParseTuple(args,(char *)"O:MotionData_press_clientx_get",&obj0)) goto fail;
3200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3201 result = (int) ((arg1)->press_clientx);
3202
3203 resultobj = PyInt_FromLong((long)result);
3204 return resultobj;
3205 fail:
3206 return NULL;
3207 }
3208
3209
3210 static PyObject *_wrap_MotionData_press_clienty_set(PyObject *self, PyObject *args) {
3211 PyObject *resultobj;
3212 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3213 int arg2 ;
3214 PyObject * obj0 = 0 ;
3215
3216 if(!PyArg_ParseTuple(args,(char *)"Oi:MotionData_press_clienty_set",&obj0,&arg2)) goto fail;
3217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3218 if (arg1) (arg1)->press_clienty = arg2;
3219
3220 Py_INCREF(Py_None); resultobj = Py_None;
3221 return resultobj;
3222 fail:
3223 return NULL;
3224 }
3225
3226
3227 static PyObject *_wrap_MotionData_press_clienty_get(PyObject *self, PyObject *args) {
3228 PyObject *resultobj;
3229 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3230 int result;
3231 PyObject * obj0 = 0 ;
3232
3233 if(!PyArg_ParseTuple(args,(char *)"O:MotionData_press_clienty_get",&obj0)) goto fail;
3234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3235 result = (int) ((arg1)->press_clienty);
3236
3237 resultobj = PyInt_FromLong((long)result);
3238 return resultobj;
3239 fail:
3240 return NULL;
3241 }
3242
3243
3244 static PyObject *_wrap_MotionData_press_clientwidth_set(PyObject *self, PyObject *args) {
3245 PyObject *resultobj;
3246 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3247 int arg2 ;
3248 PyObject * obj0 = 0 ;
3249
3250 if(!PyArg_ParseTuple(args,(char *)"Oi:MotionData_press_clientwidth_set",&obj0,&arg2)) goto fail;
3251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3252 if (arg1) (arg1)->press_clientwidth = arg2;
3253
3254 Py_INCREF(Py_None); resultobj = Py_None;
3255 return resultobj;
3256 fail:
3257 return NULL;
3258 }
3259
3260
3261 static PyObject *_wrap_MotionData_press_clientwidth_get(PyObject *self, PyObject *args) {
3262 PyObject *resultobj;
3263 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3264 int result;
3265 PyObject * obj0 = 0 ;
3266
3267 if(!PyArg_ParseTuple(args,(char *)"O:MotionData_press_clientwidth_get",&obj0)) goto fail;
3268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3269 result = (int) ((arg1)->press_clientwidth);
3270
3271 resultobj = PyInt_FromLong((long)result);
3272 return resultobj;
3273 fail:
3274 return NULL;
3275 }
3276
3277
3278 static PyObject *_wrap_MotionData_press_clientheight_set(PyObject *self, PyObject *args) {
3279 PyObject *resultobj;
3280 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3281 int arg2 ;
3282 PyObject * obj0 = 0 ;
3283
3284 if(!PyArg_ParseTuple(args,(char *)"Oi:MotionData_press_clientheight_set",&obj0,&arg2)) goto fail;
3285 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3286 if (arg1) (arg1)->press_clientheight = arg2;
3287
3288 Py_INCREF(Py_None); resultobj = Py_None;
3289 return resultobj;
3290 fail:
3291 return NULL;
3292 }
3293
3294
3295 static PyObject *_wrap_MotionData_press_clientheight_get(PyObject *self, PyObject *args) {
3296 PyObject *resultobj;
3297 ob::MotionData *arg1 = (ob::MotionData *) 0 ;
3298 int result;
3299 PyObject * obj0 = 0 ;
3300
3301 if(!PyArg_ParseTuple(args,(char *)"O:MotionData_press_clientheight_get",&obj0)) goto fail;
3302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MotionData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3303 result = (int) ((arg1)->press_clientheight);
3304
3305 resultobj = PyInt_FromLong((long)result);
3306 return resultobj;
3307 fail:
3308 return NULL;
3309 }
3310
3311
3312 static PyObject *_wrap_new_MotionData(PyObject *self, PyObject *args) {
3313 PyObject *resultobj;
3314 int arg1 ;
3315 ob::OBClient *arg2 = (ob::OBClient *) 0 ;
3316 Time arg3 ;
3317 unsigned int arg4 ;
3318 unsigned int arg5 ;
3319 int arg6 ;
3320 int arg7 ;
3321 int arg8 ;
3322 int arg9 ;
3323 otk::Point *arg10 = 0 ;
3324 otk::Rect *arg11 = 0 ;
3325 ob::MotionData *result;
3326 PyObject * obj1 = 0 ;
3327 PyObject * obj2 = 0 ;
3328 PyObject * obj3 = 0 ;
3329 PyObject * obj4 = 0 ;
3330 PyObject * obj9 = 0 ;
3331 PyObject * obj10 = 0 ;
3332
3333 if(!PyArg_ParseTuple(args,(char *)"iOOOOiiiiOO:new_MotionData",&arg1,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7,&arg8,&arg9,&obj9,&obj10)) goto fail;
3334 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3335 arg3 = (Time) PyInt_AsLong(obj2);
3336 if (PyErr_Occurred()) SWIG_fail;
3337 arg4 = (unsigned int) PyInt_AsLong(obj3);
3338 if (PyErr_Occurred()) SWIG_fail;
3339 arg5 = (unsigned int) PyInt_AsLong(obj4);
3340 if (PyErr_Occurred()) SWIG_fail;
3341 if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3342 if (arg10 == NULL) {
3343 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3344 }
3345 if ((SWIG_ConvertPtr(obj10,(void **) &arg11, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3346 if (arg11 == NULL) {
3347 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3348 }
3349 result = (ob::MotionData *)new ob::MotionData(arg1,arg2,arg3,arg4,arg5,(ob::MouseContext )arg6,(ob::MouseAction )arg7,arg8,arg9,(otk::Point const &)*arg10,(otk::Rect const &)*arg11);
3350
3351 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__MotionData, 1);
3352 return resultobj;
3353 fail:
3354 return NULL;
3355 }
3356
3357
3358 static PyObject * MotionData_swigregister(PyObject *self, PyObject *args) {
3359 PyObject *obj;
3360 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3361 SWIG_TypeClientData(SWIGTYPE_p_ob__MotionData, obj);
3362 Py_INCREF(obj);
3363 return Py_BuildValue((char *)"");
3364 }
3365 static PyObject *_wrap_ButtonData_screen_set(PyObject *self, PyObject *args) {
3366 PyObject *resultobj;
3367 ob::ButtonData *arg1 = (ob::ButtonData *) 0 ;
3368 int arg2 ;
3369 PyObject * obj0 = 0 ;
3370
3371 if(!PyArg_ParseTuple(args,(char *)"Oi:ButtonData_screen_set",&obj0,&arg2)) goto fail;
3372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__ButtonData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3373 if (arg1) (arg1)->screen = arg2;
3374
3375 Py_INCREF(Py_None); resultobj = Py_None;
3376 return resultobj;
3377 fail:
3378 return NULL;
3379 }
3380
3381
3382 static PyObject *_wrap_ButtonData_screen_get(PyObject *self, PyObject *args) {
3383 PyObject *resultobj;
3384 ob::ButtonData *arg1 = (ob::ButtonData *) 0 ;
3385 int result;
3386 PyObject * obj0 = 0 ;
3387
3388 if(!PyArg_ParseTuple(args,(char *)"O:ButtonData_screen_get",&obj0)) goto fail;
3389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__ButtonData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3390 result = (int) ((arg1)->screen);
3391
3392 resultobj = PyInt_FromLong((long)result);
3393 return resultobj;
3394 fail:
3395 return NULL;
3396 }
3397
3398
3399 static PyObject *_wrap_ButtonData_client_set(PyObject *self, PyObject *args) {
3400 PyObject *resultobj;
3401 ob::ButtonData *arg1 = (ob::ButtonData *) 0 ;
3402 ob::OBClient *arg2 = (ob::OBClient *) 0 ;
3403 PyObject * obj0 = 0 ;
3404 PyObject * obj1 = 0 ;
3405
3406 if(!PyArg_ParseTuple(args,(char *)"OO:ButtonData_client_set",&obj0,&obj1)) goto fail;
3407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__ButtonData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3408 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
3409 if (arg1) (arg1)->client = arg2;
3410
3411 Py_INCREF(Py_None); resultobj = Py_None;
3412 return resultobj;
3413 fail:
3414 return NULL;
3415 }
3416
3417
3418 static PyObject *_wrap_ButtonData_client_get(PyObject *self, PyObject *args) {
3419 PyObject *resultobj;
3420 ob::ButtonData *arg1 = (ob::ButtonData *) 0 ;
3421 ob::OBClient *result;
3422 PyObject * obj0 = 0 ;
3423
3424 if(!PyArg_ParseTuple(args,(char *)"O:ButtonData_client_get",&obj0)) goto fail;
3425 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__ButtonData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3426 result = (ob::OBClient *) ((arg1)->client);
3427
3428 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
3429 return resultobj;
3430 fail:
3431 return NULL;
3432 }
3433
3434
3435 static PyObject *_wrap_ButtonData_time_set(PyObject *self, PyObject *args) {
3436 PyObject *resultobj;
3437 ob::ButtonData *arg1 = (ob::ButtonData *) 0 ;
3438 Time arg2 ;
3439 PyObject * obj0 = 0 ;
3440 PyObject * obj1 = 0 ;
3441
3442 if(!PyArg_ParseTuple(args,(char *)"OO:ButtonData_time_set",&obj0,&obj1)) goto fail;
3443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__ButtonData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3444 arg2 = (Time) PyInt_AsLong(obj1);
3445 if (PyErr_Occurred()) SWIG_fail;
3446 if (arg1) (arg1)->time = arg2;
3447
3448 Py_INCREF(Py_None); resultobj = Py_None;
3449 return resultobj;
3450 fail:
3451 return NULL;
3452 }
3453
3454
3455 static PyObject *_wrap_ButtonData_time_get(PyObject *self, PyObject *args) {
3456 PyObject *resultobj;
3457 ob::ButtonData *arg1 = (ob::ButtonData *) 0 ;
3458 Time result;
3459 PyObject * obj0 = 0 ;
3460
3461 if(!PyArg_ParseTuple(args,(char *)"O:ButtonData_time_get",&obj0)) goto fail;
3462 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__ButtonData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3463 result = (Time) ((arg1)->time);
3464
3465 resultobj = PyInt_FromLong((long)result);
3466 return resultobj;
3467 fail:
3468 return NULL;
3469 }
3470
3471
3472 static PyObject *_wrap_ButtonData_state_set(PyObject *self, PyObject *args) {
3473 PyObject *resultobj;
3474 ob::ButtonData *arg1 = (ob::ButtonData *) 0 ;
3475 unsigned int arg2 ;
3476 PyObject * obj0 = 0 ;
3477 PyObject * obj1 = 0 ;
3478
3479 if(!PyArg_ParseTuple(args,(char *)"OO:ButtonData_state_set",&obj0,&obj1)) goto fail;
3480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__ButtonData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3481 arg2 = (unsigned int) PyInt_AsLong(obj1);
3482 if (PyErr_Occurred()) SWIG_fail;
3483 if (arg1) (arg1)->state = arg2;
3484
3485 Py_INCREF(Py_None); resultobj = Py_None;
3486 return resultobj;
3487 fail:
3488 return NULL;
3489 }
3490
3491
3492 static PyObject *_wrap_ButtonData_state_get(PyObject *self, PyObject *args) {
3493 PyObject *resultobj;
3494 ob::ButtonData *arg1 = (ob::ButtonData *) 0 ;
3495 unsigned int result;
3496 PyObject * obj0 = 0 ;
3497
3498 if(!PyArg_ParseTuple(args,(char *)"O:ButtonData_state_get",&obj0)) goto fail;
3499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__ButtonData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3500 result = (unsigned int) ((arg1)->state);
3501
3502 resultobj = PyInt_FromLong((long)result);
3503 return resultobj;
3504 fail:
3505 return NULL;
3506 }
3507
3508
3509 static PyObject *_wrap_ButtonData_button_set(PyObject *self, PyObject *args) {
3510 PyObject *resultobj;
3511 ob::ButtonData *arg1 = (ob::ButtonData *) 0 ;
3512 unsigned int arg2 ;
3513 PyObject * obj0 = 0 ;
3514 PyObject * obj1 = 0 ;
3515
3516 if(!PyArg_ParseTuple(args,(char *)"OO:ButtonData_button_set",&obj0,&obj1)) goto fail;
3517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__ButtonData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3518 arg2 = (unsigned int) PyInt_AsLong(obj1);
3519 if (PyErr_Occurred()) SWIG_fail;
3520 if (arg1) (arg1)->button = arg2;
3521
3522 Py_INCREF(Py_None); resultobj = Py_None;
3523 return resultobj;
3524 fail:
3525 return NULL;
3526 }
3527
3528
3529 static PyObject *_wrap_ButtonData_button_get(PyObject *self, PyObject *args) {
3530 PyObject *resultobj;
3531 ob::ButtonData *arg1 = (ob::ButtonData *) 0 ;
3532 unsigned int result;
3533 PyObject * obj0 = 0 ;
3534
3535 if(!PyArg_ParseTuple(args,(char *)"O:ButtonData_button_get",&obj0)) goto fail;
3536 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__ButtonData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3537 result = (unsigned int) ((arg1)->button);
3538
3539 resultobj = PyInt_FromLong((long)result);
3540 return resultobj;
3541 fail:
3542 return NULL;
3543 }
3544
3545
3546 static PyObject *_wrap_ButtonData_context_set(PyObject *self, PyObject *args) {
3547 PyObject *resultobj;
3548 ob::ButtonData *arg1 = (ob::ButtonData *) 0 ;
3549 int arg2 ;
3550 PyObject * obj0 = 0 ;
3551
3552 if(!PyArg_ParseTuple(args,(char *)"Oi:ButtonData_context_set",&obj0,&arg2)) goto fail;
3553 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__ButtonData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3554 if (arg1) (arg1)->context = (ob::MouseContext )arg2;
3555
3556 Py_INCREF(Py_None); resultobj = Py_None;
3557 return resultobj;
3558 fail:
3559 return NULL;
3560 }
3561
3562
3563 static PyObject *_wrap_ButtonData_context_get(PyObject *self, PyObject *args) {
3564 PyObject *resultobj;
3565 ob::ButtonData *arg1 = (ob::ButtonData *) 0 ;
3566 int result;
3567 PyObject * obj0 = 0 ;
3568
3569 if(!PyArg_ParseTuple(args,(char *)"O:ButtonData_context_get",&obj0)) goto fail;
3570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__ButtonData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3571 result = (int) ((arg1)->context);
3572
3573 resultobj = PyInt_FromLong((long)result);
3574 return resultobj;
3575 fail:
3576 return NULL;
3577 }
3578
3579
3580 static PyObject *_wrap_ButtonData_action_set(PyObject *self, PyObject *args) {
3581 PyObject *resultobj;
3582 ob::ButtonData *arg1 = (ob::ButtonData *) 0 ;
3583 int arg2 ;
3584 PyObject * obj0 = 0 ;
3585
3586 if(!PyArg_ParseTuple(args,(char *)"Oi:ButtonData_action_set",&obj0,&arg2)) goto fail;
3587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__ButtonData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3588 if (arg1) (arg1)->action = (ob::MouseAction )arg2;
3589
3590 Py_INCREF(Py_None); resultobj = Py_None;
3591 return resultobj;
3592 fail:
3593 return NULL;
3594 }
3595
3596
3597 static PyObject *_wrap_ButtonData_action_get(PyObject *self, PyObject *args) {
3598 PyObject *resultobj;
3599 ob::ButtonData *arg1 = (ob::ButtonData *) 0 ;
3600 int result;
3601 PyObject * obj0 = 0 ;
3602
3603 if(!PyArg_ParseTuple(args,(char *)"O:ButtonData_action_get",&obj0)) goto fail;
3604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__ButtonData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3605 result = (int) ((arg1)->action);
3606
3607 resultobj = PyInt_FromLong((long)result);
3608 return resultobj;
3609 fail:
3610 return NULL;
3611 }
3612
3613
3614 static PyObject *_wrap_new_ButtonData(PyObject *self, PyObject *args) {
3615 PyObject *resultobj;
3616 int arg1 ;
3617 ob::OBClient *arg2 = (ob::OBClient *) 0 ;
3618 Time arg3 ;
3619 unsigned int arg4 ;
3620 unsigned int arg5 ;
3621 int arg6 ;
3622 int arg7 ;
3623 ob::ButtonData *result;
3624 PyObject * obj1 = 0 ;
3625 PyObject * obj2 = 0 ;
3626 PyObject * obj3 = 0 ;
3627 PyObject * obj4 = 0 ;
3628
3629 if(!PyArg_ParseTuple(args,(char *)"iOOOOii:new_ButtonData",&arg1,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7)) goto fail;
3630 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3631 arg3 = (Time) PyInt_AsLong(obj2);
3632 if (PyErr_Occurred()) SWIG_fail;
3633 arg4 = (unsigned int) PyInt_AsLong(obj3);
3634 if (PyErr_Occurred()) SWIG_fail;
3635 arg5 = (unsigned int) PyInt_AsLong(obj4);
3636 if (PyErr_Occurred()) SWIG_fail;
3637 result = (ob::ButtonData *)new ob::ButtonData(arg1,arg2,arg3,arg4,arg5,(ob::MouseContext )arg6,(ob::MouseAction )arg7);
3638
3639 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__ButtonData, 1);
3640 return resultobj;
3641 fail:
3642 return NULL;
3643 }
3644
3645
3646 static PyObject * ButtonData_swigregister(PyObject *self, PyObject *args) {
3647 PyObject *obj;
3648 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3649 SWIG_TypeClientData(SWIGTYPE_p_ob__ButtonData, obj);
3650 Py_INCREF(obj);
3651 return Py_BuildValue((char *)"");
3652 }
3653 static PyObject *_wrap_EventData_screen_set(PyObject *self, PyObject *args) {
3654 PyObject *resultobj;
3655 ob::EventData *arg1 = (ob::EventData *) 0 ;
3656 int arg2 ;
3657 PyObject * obj0 = 0 ;
3658
3659 if(!PyArg_ParseTuple(args,(char *)"Oi:EventData_screen_set",&obj0,&arg2)) goto fail;
3660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3661 if (arg1) (arg1)->screen = arg2;
3662
3663 Py_INCREF(Py_None); resultobj = Py_None;
3664 return resultobj;
3665 fail:
3666 return NULL;
3667 }
3668
3669
3670 static PyObject *_wrap_EventData_screen_get(PyObject *self, PyObject *args) {
3671 PyObject *resultobj;
3672 ob::EventData *arg1 = (ob::EventData *) 0 ;
3673 int result;
3674 PyObject * obj0 = 0 ;
3675
3676 if(!PyArg_ParseTuple(args,(char *)"O:EventData_screen_get",&obj0)) goto fail;
3677 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3678 result = (int) ((arg1)->screen);
3679
3680 resultobj = PyInt_FromLong((long)result);
3681 return resultobj;
3682 fail:
3683 return NULL;
3684 }
3685
3686
3687 static PyObject *_wrap_EventData_client_set(PyObject *self, PyObject *args) {
3688 PyObject *resultobj;
3689 ob::EventData *arg1 = (ob::EventData *) 0 ;
3690 ob::OBClient *arg2 = (ob::OBClient *) 0 ;
3691 PyObject * obj0 = 0 ;
3692 PyObject * obj1 = 0 ;
3693
3694 if(!PyArg_ParseTuple(args,(char *)"OO:EventData_client_set",&obj0,&obj1)) goto fail;
3695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3696 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
3697 if (arg1) (arg1)->client = arg2;
3698
3699 Py_INCREF(Py_None); resultobj = Py_None;
3700 return resultobj;
3701 fail:
3702 return NULL;
3703 }
3704
3705
3706 static PyObject *_wrap_EventData_client_get(PyObject *self, PyObject *args) {
3707 PyObject *resultobj;
3708 ob::EventData *arg1 = (ob::EventData *) 0 ;
3709 ob::OBClient *result;
3710 PyObject * obj0 = 0 ;
3711
3712 if(!PyArg_ParseTuple(args,(char *)"O:EventData_client_get",&obj0)) goto fail;
3713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3714 result = (ob::OBClient *) ((arg1)->client);
3715
3716 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
3717 return resultobj;
3718 fail:
3719 return NULL;
3720 }
3721
3722
3723 static PyObject *_wrap_EventData_state_set(PyObject *self, PyObject *args) {
3724 PyObject *resultobj;
3725 ob::EventData *arg1 = (ob::EventData *) 0 ;
3726 unsigned int arg2 ;
3727 PyObject * obj0 = 0 ;
3728 PyObject * obj1 = 0 ;
3729
3730 if(!PyArg_ParseTuple(args,(char *)"OO:EventData_state_set",&obj0,&obj1)) goto fail;
3731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3732 arg2 = (unsigned int) PyInt_AsLong(obj1);
3733 if (PyErr_Occurred()) SWIG_fail;
3734 if (arg1) (arg1)->state = arg2;
3735
3736 Py_INCREF(Py_None); resultobj = Py_None;
3737 return resultobj;
3738 fail:
3739 return NULL;
3740 }
3741
3742
3743 static PyObject *_wrap_EventData_state_get(PyObject *self, PyObject *args) {
3744 PyObject *resultobj;
3745 ob::EventData *arg1 = (ob::EventData *) 0 ;
3746 unsigned int result;
3747 PyObject * obj0 = 0 ;
3748
3749 if(!PyArg_ParseTuple(args,(char *)"O:EventData_state_get",&obj0)) goto fail;
3750 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3751 result = (unsigned int) ((arg1)->state);
3752
3753 resultobj = PyInt_FromLong((long)result);
3754 return resultobj;
3755 fail:
3756 return NULL;
3757 }
3758
3759
3760 static PyObject *_wrap_EventData_action_set(PyObject *self, PyObject *args) {
3761 PyObject *resultobj;
3762 ob::EventData *arg1 = (ob::EventData *) 0 ;
3763 int arg2 ;
3764 PyObject * obj0 = 0 ;
3765
3766 if(!PyArg_ParseTuple(args,(char *)"Oi:EventData_action_set",&obj0,&arg2)) goto fail;
3767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3768 if (arg1) (arg1)->action = (ob::EventAction )arg2;
3769
3770 Py_INCREF(Py_None); resultobj = Py_None;
3771 return resultobj;
3772 fail:
3773 return NULL;
3774 }
3775
3776
3777 static PyObject *_wrap_EventData_action_get(PyObject *self, PyObject *args) {
3778 PyObject *resultobj;
3779 ob::EventData *arg1 = (ob::EventData *) 0 ;
3780 int result;
3781 PyObject * obj0 = 0 ;
3782
3783 if(!PyArg_ParseTuple(args,(char *)"O:EventData_action_get",&obj0)) goto fail;
3784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3785 result = (int) ((arg1)->action);
3786
3787 resultobj = PyInt_FromLong((long)result);
3788 return resultobj;
3789 fail:
3790 return NULL;
3791 }
3792
3793
3794 static PyObject *_wrap_new_EventData(PyObject *self, PyObject *args) {
3795 PyObject *resultobj;
3796 int arg1 ;
3797 ob::OBClient *arg2 = (ob::OBClient *) 0 ;
3798 int arg3 ;
3799 unsigned int arg4 ;
3800 ob::EventData *result;
3801 PyObject * obj1 = 0 ;
3802 PyObject * obj3 = 0 ;
3803
3804 if(!PyArg_ParseTuple(args,(char *)"iOiO:new_EventData",&arg1,&obj1,&arg3,&obj3)) goto fail;
3805 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3806 arg4 = (unsigned int) PyInt_AsLong(obj3);
3807 if (PyErr_Occurred()) SWIG_fail;
3808 result = (ob::EventData *)new ob::EventData(arg1,arg2,(ob::EventAction )arg3,arg4);
3809
3810 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__EventData, 1);
3811 return resultobj;
3812 fail:
3813 return NULL;
3814 }
3815
3816
3817 static PyObject * EventData_swigregister(PyObject *self, PyObject *args) {
3818 PyObject *obj;
3819 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3820 SWIG_TypeClientData(SWIGTYPE_p_ob__EventData, obj);
3821 Py_INCREF(obj);
3822 return Py_BuildValue((char *)"");
3823 }
3824 static PyObject *_wrap_KeyData_screen_set(PyObject *self, PyObject *args) {
3825 PyObject *resultobj;
3826 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
3827 int arg2 ;
3828 PyObject * obj0 = 0 ;
3829
3830 if(!PyArg_ParseTuple(args,(char *)"Oi:KeyData_screen_set",&obj0,&arg2)) goto fail;
3831 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3832 if (arg1) (arg1)->screen = arg2;
3833
3834 Py_INCREF(Py_None); resultobj = Py_None;
3835 return resultobj;
3836 fail:
3837 return NULL;
3838 }
3839
3840
3841 static PyObject *_wrap_KeyData_screen_get(PyObject *self, PyObject *args) {
3842 PyObject *resultobj;
3843 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
3844 int result;
3845 PyObject * obj0 = 0 ;
3846
3847 if(!PyArg_ParseTuple(args,(char *)"O:KeyData_screen_get",&obj0)) goto fail;
3848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3849 result = (int) ((arg1)->screen);
3850
3851 resultobj = PyInt_FromLong((long)result);
3852 return resultobj;
3853 fail:
3854 return NULL;
3855 }
3856
3857
3858 static PyObject *_wrap_KeyData_client_set(PyObject *self, PyObject *args) {
3859 PyObject *resultobj;
3860 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
3861 ob::OBClient *arg2 = (ob::OBClient *) 0 ;
3862 PyObject * obj0 = 0 ;
3863 PyObject * obj1 = 0 ;
3864
3865 if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_client_set",&obj0,&obj1)) goto fail;
3866 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3867 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
3868 if (arg1) (arg1)->client = arg2;
3869
3870 Py_INCREF(Py_None); resultobj = Py_None;
3871 return resultobj;
3872 fail:
3873 return NULL;
3874 }
3875
3876
3877 static PyObject *_wrap_KeyData_client_get(PyObject *self, PyObject *args) {
3878 PyObject *resultobj;
3879 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
3880 ob::OBClient *result;
3881 PyObject * obj0 = 0 ;
3882
3883 if(!PyArg_ParseTuple(args,(char *)"O:KeyData_client_get",&obj0)) goto fail;
3884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3885 result = (ob::OBClient *) ((arg1)->client);
3886
3887 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
3888 return resultobj;
3889 fail:
3890 return NULL;
3891 }
3892
3893
3894 static PyObject *_wrap_KeyData_time_set(PyObject *self, PyObject *args) {
3895 PyObject *resultobj;
3896 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
3897 Time arg2 ;
3898 PyObject * obj0 = 0 ;
3899 PyObject * obj1 = 0 ;
3900
3901 if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_time_set",&obj0,&obj1)) goto fail;
3902 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3903 arg2 = (Time) PyInt_AsLong(obj1);
3904 if (PyErr_Occurred()) SWIG_fail;
3905 if (arg1) (arg1)->time = arg2;
3906
3907 Py_INCREF(Py_None); resultobj = Py_None;
3908 return resultobj;
3909 fail:
3910 return NULL;
3911 }
3912
3913
3914 static PyObject *_wrap_KeyData_time_get(PyObject *self, PyObject *args) {
3915 PyObject *resultobj;
3916 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
3917 Time result;
3918 PyObject * obj0 = 0 ;
3919
3920 if(!PyArg_ParseTuple(args,(char *)"O:KeyData_time_get",&obj0)) goto fail;
3921 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3922 result = (Time) ((arg1)->time);
3923
3924 resultobj = PyInt_FromLong((long)result);
3925 return resultobj;
3926 fail:
3927 return NULL;
3928 }
3929
3930
3931 static PyObject *_wrap_KeyData_state_set(PyObject *self, PyObject *args) {
3932 PyObject *resultobj;
3933 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
3934 unsigned int arg2 ;
3935 PyObject * obj0 = 0 ;
3936 PyObject * obj1 = 0 ;
3937
3938 if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_state_set",&obj0,&obj1)) goto fail;
3939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3940 arg2 = (unsigned int) PyInt_AsLong(obj1);
3941 if (PyErr_Occurred()) SWIG_fail;
3942 if (arg1) (arg1)->state = arg2;
3943
3944 Py_INCREF(Py_None); resultobj = Py_None;
3945 return resultobj;
3946 fail:
3947 return NULL;
3948 }
3949
3950
3951 static PyObject *_wrap_KeyData_state_get(PyObject *self, PyObject *args) {
3952 PyObject *resultobj;
3953 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
3954 unsigned int result;
3955 PyObject * obj0 = 0 ;
3956
3957 if(!PyArg_ParseTuple(args,(char *)"O:KeyData_state_get",&obj0)) goto fail;
3958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3959 result = (unsigned int) ((arg1)->state);
3960
3961 resultobj = PyInt_FromLong((long)result);
3962 return resultobj;
3963 fail:
3964 return NULL;
3965 }
3966
3967
3968 static PyObject *_wrap_KeyData_key_set(PyObject *self, PyObject *args) {
3969 PyObject *resultobj;
3970 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
3971 std::string *arg2 = (std::string *) 0 ;
3972 PyObject * obj0 = 0 ;
3973 PyObject * obj1 = 0 ;
3974
3975 if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_key_set",&obj0,&obj1)) goto fail;
3976 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3977 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3978 if (arg1) (arg1)->key = *arg2;
3979
3980 Py_INCREF(Py_None); resultobj = Py_None;
3981 return resultobj;
3982 fail:
3983 return NULL;
3984 }
3985
3986
3987 static PyObject *_wrap_KeyData_key_get(PyObject *self, PyObject *args) {
3988 PyObject *resultobj;
3989 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
3990 std::string *result;
3991 PyObject * obj0 = 0 ;
3992
3993 if(!PyArg_ParseTuple(args,(char *)"O:KeyData_key_get",&obj0)) goto fail;
3994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3995 result = (std::string *)& ((arg1)->key);
3996
3997 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__string, 0);
3998 return resultobj;
3999 fail:
4000 return NULL;
4001 }
4002
4003
4004 static PyObject *_wrap_new_KeyData(PyObject *self, PyObject *args) {
4005 PyObject *resultobj;
4006 int arg1 ;
4007 ob::OBClient *arg2 = (ob::OBClient *) 0 ;
4008 Time arg3 ;
4009 unsigned int arg4 ;
4010 unsigned int arg5 ;
4011 ob::KeyData *result;
4012 PyObject * obj1 = 0 ;
4013 PyObject * obj2 = 0 ;
4014 PyObject * obj3 = 0 ;
4015 PyObject * obj4 = 0 ;
4016
4017 if(!PyArg_ParseTuple(args,(char *)"iOOOO:new_KeyData",&arg1,&obj1,&obj2,&obj3,&obj4)) goto fail;
4018 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4019 arg3 = (Time) PyInt_AsLong(obj2);
4020 if (PyErr_Occurred()) SWIG_fail;
4021 arg4 = (unsigned int) PyInt_AsLong(obj3);
4022 if (PyErr_Occurred()) SWIG_fail;
4023 arg5 = (unsigned int) PyInt_AsLong(obj4);
4024 if (PyErr_Occurred()) SWIG_fail;
4025 result = (ob::KeyData *)new ob::KeyData(arg1,arg2,arg3,arg4,arg5);
4026
4027 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__KeyData, 1);
4028 return resultobj;
4029 fail:
4030 return NULL;
4031 }
4032
4033
4034 static PyObject * KeyData_swigregister(PyObject *self, PyObject *args) {
4035 PyObject *obj;
4036 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4037 SWIG_TypeClientData(SWIGTYPE_p_ob__KeyData, obj);
4038 Py_INCREF(obj);
4039 return Py_BuildValue((char *)"");
4040 }
4041 static PyObject *_wrap_mbind(PyObject *self, PyObject *args) {
4042 PyObject *resultobj;
4043 std::string *arg1 = 0 ;
4044 int arg2 ;
4045 int arg3 ;
4046 PyObject *arg4 = (PyObject *) 0 ;
4047 PyObject *result;
4048 std::string temp1 ;
4049 PyObject * obj0 = 0 ;
4050 PyObject * obj3 = 0 ;
4051
4052 if(!PyArg_ParseTuple(args,(char *)"OiiO:mbind",&obj0,&arg2,&arg3,&obj3)) goto fail;
4053 {
4054 if (PyString_Check(obj0)) {
4055 temp1 = std::string(PyString_AsString(obj0));
4056 arg1 = &temp1;
4057 }else {
4058 SWIG_exception(SWIG_TypeError, "string expected");
4059 }
4060 }
4061 arg4 = obj3;
4062 result = (PyObject *)ob::mbind((std::string const &)*arg1,(ob::MouseContext )arg2,(ob::MouseAction )arg3,arg4);
4063
4064 resultobj = result;
4065 return resultobj;
4066 fail:
4067 return NULL;
4068 }
4069
4070
4071 static PyObject *_wrap_kbind(PyObject *self, PyObject *args) {
4072 PyObject *resultobj;
4073 PyObject *arg1 = (PyObject *) 0 ;
4074 int arg2 ;
4075 PyObject *arg3 = (PyObject *) 0 ;
4076 PyObject *result;
4077 PyObject * obj0 = 0 ;
4078 PyObject * obj2 = 0 ;
4079
4080 if(!PyArg_ParseTuple(args,(char *)"OiO:kbind",&obj0,&arg2,&obj2)) goto fail;
4081 arg1 = obj0;
4082 arg3 = obj2;
4083 result = (PyObject *)ob::kbind(arg1,(ob::KeyContext )arg2,arg3);
4084
4085 resultobj = result;
4086 return resultobj;
4087 fail:
4088 return NULL;
4089 }
4090
4091
4092 static PyObject *_wrap_ebind(PyObject *self, PyObject *args) {
4093 PyObject *resultobj;
4094 int arg1 ;
4095 PyObject *arg2 = (PyObject *) 0 ;
4096 PyObject *result;
4097 PyObject * obj1 = 0 ;
4098
4099 if(!PyArg_ParseTuple(args,(char *)"iO:ebind",&arg1,&obj1)) goto fail;
4100 arg2 = obj1;
4101 result = (PyObject *)ob::ebind((ob::EventAction )arg1,arg2);
4102
4103 resultobj = result;
4104 return resultobj;
4105 fail:
4106 return NULL;
4107 }
4108
4109
4110 static PyObject *_wrap_set_reset_key(PyObject *self, PyObject *args) {
4111 PyObject *resultobj;
4112 std::string *arg1 = 0 ;
4113 std::string temp1 ;
4114 PyObject * obj0 = 0 ;
4115
4116 if(!PyArg_ParseTuple(args,(char *)"O:set_reset_key",&obj0)) goto fail;
4117 {
4118 if (PyString_Check(obj0)) {
4119 temp1 = std::string(PyString_AsString(obj0));
4120 arg1 = &temp1;
4121 }else {
4122 SWIG_exception(SWIG_TypeError, "string expected");
4123 }
4124 }
4125 ob::set_reset_key((std::string const &)*arg1);
4126
4127 Py_INCREF(Py_None); resultobj = Py_None;
4128 return resultobj;
4129 fail:
4130 return NULL;
4131 }
4132
4133
4134 static PyObject *_wrap_send_client_msg(PyObject *self, PyObject *args) {
4135 PyObject *resultobj;
4136 Window arg1 ;
4137 int arg2 ;
4138 Window arg3 ;
4139 long arg4 ;
4140 long arg5 = (long) 0 ;
4141 long arg6 = (long) 0 ;
4142 long arg7 = (long) 0 ;
4143 long arg8 = (long) 0 ;
4144 PyObject *result;
4145 PyObject * obj0 = 0 ;
4146 PyObject * obj2 = 0 ;
4147
4148 if(!PyArg_ParseTuple(args,(char *)"OiOl|llll:send_client_msg",&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&arg7,&arg8)) goto fail;
4149 arg1 = (Window) PyInt_AsLong(obj0);
4150 if (PyErr_Occurred()) SWIG_fail;
4151 arg3 = (Window) PyInt_AsLong(obj2);
4152 if (PyErr_Occurred()) SWIG_fail;
4153 result = (PyObject *)ob::send_client_msg(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
4154
4155 resultobj = result;
4156 return resultobj;
4157 fail:
4158 return NULL;
4159 }
4160
4161
4162 static PyMethodDef SwigMethods[] = {
4163 { (char *)"Openbox_instance", _wrap_Openbox_instance, METH_VARARGS },
4164 { (char *)"Cursors_session_set", _wrap_Cursors_session_set, METH_VARARGS },
4165 { (char *)"Cursors_session_get", _wrap_Cursors_session_get, METH_VARARGS },
4166 { (char *)"Cursors_move_set", _wrap_Cursors_move_set, METH_VARARGS },
4167 { (char *)"Cursors_move_get", _wrap_Cursors_move_get, METH_VARARGS },
4168 { (char *)"Cursors_ll_angle_set", _wrap_Cursors_ll_angle_set, METH_VARARGS },
4169 { (char *)"Cursors_ll_angle_get", _wrap_Cursors_ll_angle_get, METH_VARARGS },
4170 { (char *)"Cursors_lr_angle_set", _wrap_Cursors_lr_angle_set, METH_VARARGS },
4171 { (char *)"Cursors_lr_angle_get", _wrap_Cursors_lr_angle_get, METH_VARARGS },
4172 { (char *)"Cursors_ul_angle_set", _wrap_Cursors_ul_angle_set, METH_VARARGS },
4173 { (char *)"Cursors_ul_angle_get", _wrap_Cursors_ul_angle_get, METH_VARARGS },
4174 { (char *)"Cursors_ur_angle_set", _wrap_Cursors_ur_angle_set, METH_VARARGS },
4175 { (char *)"Cursors_ur_angle_get", _wrap_Cursors_ur_angle_get, METH_VARARGS },
4176 { (char *)"Cursors_swigregister", Cursors_swigregister, METH_VARARGS },
4177 { (char *)"Openbox_state", _wrap_Openbox_state, METH_VARARGS },
4178 { (char *)"Openbox_timerManager", _wrap_Openbox_timerManager, METH_VARARGS },
4179 { (char *)"Openbox_property", _wrap_Openbox_property, METH_VARARGS },
4180 { (char *)"Openbox_actions", _wrap_Openbox_actions, METH_VARARGS },
4181 { (char *)"Openbox_bindings", _wrap_Openbox_bindings, METH_VARARGS },
4182 { (char *)"Openbox_screen", _wrap_Openbox_screen, METH_VARARGS },
4183 { (char *)"Openbox_screenCount", _wrap_Openbox_screenCount, METH_VARARGS },
4184 { (char *)"Openbox_cursors", _wrap_Openbox_cursors, METH_VARARGS },
4185 { (char *)"Openbox_addClient", _wrap_Openbox_addClient, METH_VARARGS },
4186 { (char *)"Openbox_removeClient", _wrap_Openbox_removeClient, METH_VARARGS },
4187 { (char *)"Openbox_findClient", _wrap_Openbox_findClient, METH_VARARGS },
4188 { (char *)"Openbox_focusedClient", _wrap_Openbox_focusedClient, METH_VARARGS },
4189 { (char *)"Openbox_setFocusedClient", _wrap_Openbox_setFocusedClient, METH_VARARGS },
4190 { (char *)"Openbox_focusedScreen", _wrap_Openbox_focusedScreen, METH_VARARGS },
4191 { (char *)"Openbox_shutdown", _wrap_Openbox_shutdown, METH_VARARGS },
4192 { (char *)"Openbox_restart", _wrap_Openbox_restart, METH_VARARGS },
4193 { (char *)"Openbox_execute", _wrap_Openbox_execute, METH_VARARGS },
4194 { (char *)"Openbox_swigregister", Openbox_swigregister, METH_VARARGS },
4195 { (char *)"OBScreen_client", _wrap_OBScreen_client, METH_VARARGS },
4196 { (char *)"OBScreen_clientCount", _wrap_OBScreen_clientCount, METH_VARARGS },
4197 { (char *)"OBScreen_number", _wrap_OBScreen_number, METH_VARARGS },
4198 { (char *)"OBScreen_managed", _wrap_OBScreen_managed, METH_VARARGS },
4199 { (char *)"OBScreen_imageControl", _wrap_OBScreen_imageControl, METH_VARARGS },
4200 { (char *)"OBScreen_area", _wrap_OBScreen_area, METH_VARARGS },
4201 { (char *)"OBScreen_style", _wrap_OBScreen_style, METH_VARARGS },
4202 { (char *)"OBScreen_focuswindow", _wrap_OBScreen_focuswindow, METH_VARARGS },
4203 { (char *)"OBScreen_desktop", _wrap_OBScreen_desktop, METH_VARARGS },
4204 { (char *)"OBScreen_numDesktops", _wrap_OBScreen_numDesktops, METH_VARARGS },
4205 { (char *)"OBScreen_updateStrut", _wrap_OBScreen_updateStrut, METH_VARARGS },
4206 { (char *)"OBScreen_manageExisting", _wrap_OBScreen_manageExisting, METH_VARARGS },
4207 { (char *)"OBScreen_manageWindow", _wrap_OBScreen_manageWindow, METH_VARARGS },
4208 { (char *)"OBScreen_unmanageWindow", _wrap_OBScreen_unmanageWindow, METH_VARARGS },
4209 { (char *)"OBScreen_restack", _wrap_OBScreen_restack, METH_VARARGS },
4210 { (char *)"OBScreen_setDesktopName", _wrap_OBScreen_setDesktopName, METH_VARARGS },
4211 { (char *)"OBScreen_propertyHandler", _wrap_OBScreen_propertyHandler, METH_VARARGS },
4212 { (char *)"OBScreen_clientMessageHandler", _wrap_OBScreen_clientMessageHandler, METH_VARARGS },
4213 { (char *)"OBScreen_mapRequestHandler", _wrap_OBScreen_mapRequestHandler, METH_VARARGS },
4214 { (char *)"OBScreen_swigregister", OBScreen_swigregister, METH_VARARGS },
4215 { (char *)"MwmHints_flags_set", _wrap_MwmHints_flags_set, METH_VARARGS },
4216 { (char *)"MwmHints_flags_get", _wrap_MwmHints_flags_get, METH_VARARGS },
4217 { (char *)"MwmHints_functions_set", _wrap_MwmHints_functions_set, METH_VARARGS },
4218 { (char *)"MwmHints_functions_get", _wrap_MwmHints_functions_get, METH_VARARGS },
4219 { (char *)"MwmHints_decorations_set", _wrap_MwmHints_decorations_set, METH_VARARGS },
4220 { (char *)"MwmHints_decorations_get", _wrap_MwmHints_decorations_get, METH_VARARGS },
4221 { (char *)"MwmHints_swigregister", MwmHints_swigregister, METH_VARARGS },
4222 { (char *)"OBClient_frame_set", _wrap_OBClient_frame_set, METH_VARARGS },
4223 { (char *)"OBClient_frame_get", _wrap_OBClient_frame_get, METH_VARARGS },
4224 { (char *)"OBClient_ignore_unmaps_set", _wrap_OBClient_ignore_unmaps_set, METH_VARARGS },
4225 { (char *)"OBClient_ignore_unmaps_get", _wrap_OBClient_ignore_unmaps_get, METH_VARARGS },
4226 { (char *)"OBClient_screen", _wrap_OBClient_screen, METH_VARARGS },
4227 { (char *)"OBClient_window", _wrap_OBClient_window, METH_VARARGS },
4228 { (char *)"OBClient_type", _wrap_OBClient_type, METH_VARARGS },
4229 { (char *)"OBClient_normal", _wrap_OBClient_normal, METH_VARARGS },
4230 { (char *)"OBClient_desktop", _wrap_OBClient_desktop, METH_VARARGS },
4231 { (char *)"OBClient_title", _wrap_OBClient_title, METH_VARARGS },
4232 { (char *)"OBClient_iconTitle", _wrap_OBClient_iconTitle, METH_VARARGS },
4233 { (char *)"OBClient_appName", _wrap_OBClient_appName, METH_VARARGS },
4234 { (char *)"OBClient_appClass", _wrap_OBClient_appClass, METH_VARARGS },
4235 { (char *)"OBClient_role", _wrap_OBClient_role, METH_VARARGS },
4236 { (char *)"OBClient_canFocus", _wrap_OBClient_canFocus, METH_VARARGS },
4237 { (char *)"OBClient_urgent", _wrap_OBClient_urgent, METH_VARARGS },
4238 { (char *)"OBClient_focusNotify", _wrap_OBClient_focusNotify, METH_VARARGS },
4239 { (char *)"OBClient_shaped", _wrap_OBClient_shaped, METH_VARARGS },
4240 { (char *)"OBClient_gravity", _wrap_OBClient_gravity, METH_VARARGS },
4241 { (char *)"OBClient_positionRequested", _wrap_OBClient_positionRequested, METH_VARARGS },
4242 { (char *)"OBClient_decorations", _wrap_OBClient_decorations, METH_VARARGS },
4243 { (char *)"OBClient_funtions", _wrap_OBClient_funtions, METH_VARARGS },
4244 { (char *)"OBClient_transientFor", _wrap_OBClient_transientFor, METH_VARARGS },
4245 { (char *)"OBClient_modal", _wrap_OBClient_modal, METH_VARARGS },
4246 { (char *)"OBClient_shaded", _wrap_OBClient_shaded, METH_VARARGS },
4247 { (char *)"OBClient_iconic", _wrap_OBClient_iconic, METH_VARARGS },
4248 { (char *)"OBClient_maxVert", _wrap_OBClient_maxVert, METH_VARARGS },
4249 { (char *)"OBClient_maxHorz", _wrap_OBClient_maxHorz, METH_VARARGS },
4250 { (char *)"OBClient_layer", _wrap_OBClient_layer, METH_VARARGS },
4251 { (char *)"OBClient_toggleClientBorder", _wrap_OBClient_toggleClientBorder, METH_VARARGS },
4252 { (char *)"OBClient_area", _wrap_OBClient_area, METH_VARARGS },
4253 { (char *)"OBClient_strut", _wrap_OBClient_strut, METH_VARARGS },
4254 { (char *)"OBClient_move", _wrap_OBClient_move, METH_VARARGS },
4255 { (char *)"OBClient_resize", _wrap_OBClient_resize, METH_VARARGS },
4256 { (char *)"OBClient_focus", _wrap_OBClient_focus, METH_VARARGS },
4257 { (char *)"OBClient_unfocus", _wrap_OBClient_unfocus, METH_VARARGS },
4258 { (char *)"OBClient_focusHandler", _wrap_OBClient_focusHandler, METH_VARARGS },
4259 { (char *)"OBClient_unfocusHandler", _wrap_OBClient_unfocusHandler, METH_VARARGS },
4260 { (char *)"OBClient_propertyHandler", _wrap_OBClient_propertyHandler, METH_VARARGS },
4261 { (char *)"OBClient_clientMessageHandler", _wrap_OBClient_clientMessageHandler, METH_VARARGS },
4262 { (char *)"OBClient_configureRequestHandler", _wrap_OBClient_configureRequestHandler, METH_VARARGS },
4263 { (char *)"OBClient_unmapHandler", _wrap_OBClient_unmapHandler, METH_VARARGS },
4264 { (char *)"OBClient_destroyHandler", _wrap_OBClient_destroyHandler, METH_VARARGS },
4265 { (char *)"OBClient_reparentHandler", _wrap_OBClient_reparentHandler, METH_VARARGS },
4266 { (char *)"OBClient_swigregister", OBClient_swigregister, METH_VARARGS },
4267 { (char *)"MotionData_screen_set", _wrap_MotionData_screen_set, METH_VARARGS },
4268 { (char *)"MotionData_screen_get", _wrap_MotionData_screen_get, METH_VARARGS },
4269 { (char *)"MotionData_client_set", _wrap_MotionData_client_set, METH_VARARGS },
4270 { (char *)"MotionData_client_get", _wrap_MotionData_client_get, METH_VARARGS },
4271 { (char *)"MotionData_time_set", _wrap_MotionData_time_set, METH_VARARGS },
4272 { (char *)"MotionData_time_get", _wrap_MotionData_time_get, METH_VARARGS },
4273 { (char *)"MotionData_state_set", _wrap_MotionData_state_set, METH_VARARGS },
4274 { (char *)"MotionData_state_get", _wrap_MotionData_state_get, METH_VARARGS },
4275 { (char *)"MotionData_button_set", _wrap_MotionData_button_set, METH_VARARGS },
4276 { (char *)"MotionData_button_get", _wrap_MotionData_button_get, METH_VARARGS },
4277 { (char *)"MotionData_context_set", _wrap_MotionData_context_set, METH_VARARGS },
4278 { (char *)"MotionData_context_get", _wrap_MotionData_context_get, METH_VARARGS },
4279 { (char *)"MotionData_action_set", _wrap_MotionData_action_set, METH_VARARGS },
4280 { (char *)"MotionData_action_get", _wrap_MotionData_action_get, METH_VARARGS },
4281 { (char *)"MotionData_xroot_set", _wrap_MotionData_xroot_set, METH_VARARGS },
4282 { (char *)"MotionData_xroot_get", _wrap_MotionData_xroot_get, METH_VARARGS },
4283 { (char *)"MotionData_yroot_set", _wrap_MotionData_yroot_set, METH_VARARGS },
4284 { (char *)"MotionData_yroot_get", _wrap_MotionData_yroot_get, METH_VARARGS },
4285 { (char *)"MotionData_pressx_set", _wrap_MotionData_pressx_set, METH_VARARGS },
4286 { (char *)"MotionData_pressx_get", _wrap_MotionData_pressx_get, METH_VARARGS },
4287 { (char *)"MotionData_pressy_set", _wrap_MotionData_pressy_set, METH_VARARGS },
4288 { (char *)"MotionData_pressy_get", _wrap_MotionData_pressy_get, METH_VARARGS },
4289 { (char *)"MotionData_press_clientx_set", _wrap_MotionData_press_clientx_set, METH_VARARGS },
4290 { (char *)"MotionData_press_clientx_get", _wrap_MotionData_press_clientx_get, METH_VARARGS },
4291 { (char *)"MotionData_press_clienty_set", _wrap_MotionData_press_clienty_set, METH_VARARGS },
4292 { (char *)"MotionData_press_clienty_get", _wrap_MotionData_press_clienty_get, METH_VARARGS },
4293 { (char *)"MotionData_press_clientwidth_set", _wrap_MotionData_press_clientwidth_set, METH_VARARGS },
4294 { (char *)"MotionData_press_clientwidth_get", _wrap_MotionData_press_clientwidth_get, METH_VARARGS },
4295 { (char *)"MotionData_press_clientheight_set", _wrap_MotionData_press_clientheight_set, METH_VARARGS },
4296 { (char *)"MotionData_press_clientheight_get", _wrap_MotionData_press_clientheight_get, METH_VARARGS },
4297 { (char *)"new_MotionData", _wrap_new_MotionData, METH_VARARGS },
4298 { (char *)"MotionData_swigregister", MotionData_swigregister, METH_VARARGS },
4299 { (char *)"ButtonData_screen_set", _wrap_ButtonData_screen_set, METH_VARARGS },
4300 { (char *)"ButtonData_screen_get", _wrap_ButtonData_screen_get, METH_VARARGS },
4301 { (char *)"ButtonData_client_set", _wrap_ButtonData_client_set, METH_VARARGS },
4302 { (char *)"ButtonData_client_get", _wrap_ButtonData_client_get, METH_VARARGS },
4303 { (char *)"ButtonData_time_set", _wrap_ButtonData_time_set, METH_VARARGS },
4304 { (char *)"ButtonData_time_get", _wrap_ButtonData_time_get, METH_VARARGS },
4305 { (char *)"ButtonData_state_set", _wrap_ButtonData_state_set, METH_VARARGS },
4306 { (char *)"ButtonData_state_get", _wrap_ButtonData_state_get, METH_VARARGS },
4307 { (char *)"ButtonData_button_set", _wrap_ButtonData_button_set, METH_VARARGS },
4308 { (char *)"ButtonData_button_get", _wrap_ButtonData_button_get, METH_VARARGS },
4309 { (char *)"ButtonData_context_set", _wrap_ButtonData_context_set, METH_VARARGS },
4310 { (char *)"ButtonData_context_get", _wrap_ButtonData_context_get, METH_VARARGS },
4311 { (char *)"ButtonData_action_set", _wrap_ButtonData_action_set, METH_VARARGS },
4312 { (char *)"ButtonData_action_get", _wrap_ButtonData_action_get, METH_VARARGS },
4313 { (char *)"new_ButtonData", _wrap_new_ButtonData, METH_VARARGS },
4314 { (char *)"ButtonData_swigregister", ButtonData_swigregister, METH_VARARGS },
4315 { (char *)"EventData_screen_set", _wrap_EventData_screen_set, METH_VARARGS },
4316 { (char *)"EventData_screen_get", _wrap_EventData_screen_get, METH_VARARGS },
4317 { (char *)"EventData_client_set", _wrap_EventData_client_set, METH_VARARGS },
4318 { (char *)"EventData_client_get", _wrap_EventData_client_get, METH_VARARGS },
4319 { (char *)"EventData_state_set", _wrap_EventData_state_set, METH_VARARGS },
4320 { (char *)"EventData_state_get", _wrap_EventData_state_get, METH_VARARGS },
4321 { (char *)"EventData_action_set", _wrap_EventData_action_set, METH_VARARGS },
4322 { (char *)"EventData_action_get", _wrap_EventData_action_get, METH_VARARGS },
4323 { (char *)"new_EventData", _wrap_new_EventData, METH_VARARGS },
4324 { (char *)"EventData_swigregister", EventData_swigregister, METH_VARARGS },
4325 { (char *)"KeyData_screen_set", _wrap_KeyData_screen_set, METH_VARARGS },
4326 { (char *)"KeyData_screen_get", _wrap_KeyData_screen_get, METH_VARARGS },
4327 { (char *)"KeyData_client_set", _wrap_KeyData_client_set, METH_VARARGS },
4328 { (char *)"KeyData_client_get", _wrap_KeyData_client_get, METH_VARARGS },
4329 { (char *)"KeyData_time_set", _wrap_KeyData_time_set, METH_VARARGS },
4330 { (char *)"KeyData_time_get", _wrap_KeyData_time_get, METH_VARARGS },
4331 { (char *)"KeyData_state_set", _wrap_KeyData_state_set, METH_VARARGS },
4332 { (char *)"KeyData_state_get", _wrap_KeyData_state_get, METH_VARARGS },
4333 { (char *)"KeyData_key_set", _wrap_KeyData_key_set, METH_VARARGS },
4334 { (char *)"KeyData_key_get", _wrap_KeyData_key_get, METH_VARARGS },
4335 { (char *)"new_KeyData", _wrap_new_KeyData, METH_VARARGS },
4336 { (char *)"KeyData_swigregister", KeyData_swigregister, METH_VARARGS },
4337 { (char *)"mbind", _wrap_mbind, METH_VARARGS },
4338 { (char *)"kbind", _wrap_kbind, METH_VARARGS },
4339 { (char *)"ebind", _wrap_ebind, METH_VARARGS },
4340 { (char *)"set_reset_key", _wrap_set_reset_key, METH_VARARGS },
4341 { (char *)"send_client_msg", _wrap_send_client_msg, METH_VARARGS },
4342 { NULL, NULL }
4343 };
4344
4345
4346 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
4347
4348 static void *_p_ob__OBActionsTo_p_otk__OtkEventHandler(void *x) {
4349 return (void *)((otk::OtkEventHandler *) ((ob::OBActions *) x));
4350 }
4351 static void *_p_ob__OpenboxTo_p_otk__OtkEventHandler(void *x) {
4352 return (void *)((otk::OtkEventHandler *) ((ob::Openbox *) x));
4353 }
4354 static void *_p_ob__OBScreenTo_p_otk__OtkEventHandler(void *x) {
4355 return (void *)((otk::OtkEventHandler *) ((ob::OBScreen *) x));
4356 }
4357 static void *_p_ob__OBClientTo_p_otk__OtkEventHandler(void *x) {
4358 return (void *)((otk::OtkEventHandler *) ((ob::OBClient *) x));
4359 }
4360 static void *_p_ob__OBScreenTo_p_ob__OBWidget(void *x) {
4361 return (void *)((ob::OBWidget *) ((ob::OBScreen *) x));
4362 }
4363 static void *_p_ob__OBClientTo_p_ob__OBWidget(void *x) {
4364 return (void *)((ob::OBWidget *) ((ob::OBClient *) x));
4365 }
4366 static void *_p_ob__OpenboxTo_p_otk__OtkEventDispatcher(void *x) {
4367 return (void *)((otk::OtkEventDispatcher *) ((ob::Openbox *) x));
4368 }
4369 static swig_type_info _swigt__p_otk__OBTimerQueueManager[] = {{"_p_otk__OBTimerQueueManager", 0, "otk::OBTimerQueueManager *", 0},{"_p_otk__OBTimerQueueManager"},{0}};
4370 static swig_type_info _swigt__p_ob__OBActions[] = {{"_p_ob__OBActions", 0, "ob::OBActions *", 0},{"_p_ob__OBActions"},{0}};
4371 static swig_type_info _swigt__p_ob__Cursors[] = {{"_p_ob__Cursors", 0, "ob::Cursors *", 0},{"_p_ob__Cursors"},{0}};
4372 static swig_type_info _swigt__p_ob__OBScreen[] = {{"_p_ob__OBScreen", 0, "ob::OBScreen *", 0},{"_p_ob__OBScreen"},{0}};
4373 static swig_type_info _swigt__p_otk__Style[] = {{"_p_otk__Style", 0, "otk::Style *", 0},{"_p_otk__Style"},{0}};
4374 static swig_type_info _swigt__p_ob__OBFrame[] = {{"_p_ob__OBFrame", 0, "ob::OBFrame *", 0},{"_p_ob__OBFrame"},{0}};
4375 static swig_type_info _swigt__p_XReparentEvent[] = {{"_p_XReparentEvent", 0, "XReparentEvent *", 0},{"_p_XReparentEvent"},{0}};
4376 static swig_type_info _swigt__p_ob__MotionData[] = {{"_p_ob__MotionData", 0, "ob::MotionData *", 0},{"_p_ob__MotionData"},{0}};
4377 static swig_type_info _swigt__p_ob__OBClient[] = {{"_p_ob__OBClient", 0, "ob::OBClient *", 0},{"_p_ob__OBClient"},{0}};
4378 static swig_type_info _swigt__p_ob__Openbox[] = {{"_p_ob__Openbox", 0, "ob::Openbox *", 0},{"_p_ob__Openbox"},{0}};
4379 static swig_type_info _swigt__p_otk__Strut[] = {{"_p_otk__Strut", 0, "otk::Strut *", 0},{"_p_otk__Strut"},{0}};
4380 static swig_type_info _swigt__p_ob__KeyData[] = {{"_p_ob__KeyData", 0, "ob::KeyData *", 0},{"_p_ob__KeyData"},{0}};
4381 static swig_type_info _swigt__p_XMapRequestEvent[] = {{"_p_XMapRequestEvent", 0, "XMapRequestEvent *", 0},{"_p_XMapRequestEvent"},{0}};
4382 static swig_type_info _swigt__p_XConfigureRequestEvent[] = {{"_p_XConfigureRequestEvent", 0, "XConfigureRequestEvent *", 0},{"_p_XConfigureRequestEvent"},{0}};
4383 static swig_type_info _swigt__p_otk__Point[] = {{"_p_otk__Point", 0, "otk::Point *", 0},{"_p_otk__Point"},{0}};
4384 static swig_type_info _swigt__p_otk__OtkEventHandler[] = {{"_p_otk__OtkEventHandler", 0, "otk::OtkEventHandler *", 0},{"_p_ob__OBActions", _p_ob__OBActionsTo_p_otk__OtkEventHandler},{"_p_otk__OtkEventHandler"},{"_p_ob__Openbox", _p_ob__OpenboxTo_p_otk__OtkEventHandler},{"_p_ob__OBScreen", _p_ob__OBScreenTo_p_otk__OtkEventHandler},{"_p_ob__OBClient", _p_ob__OBClientTo_p_otk__OtkEventHandler},{0}};
4385 static swig_type_info _swigt__p_std__string[] = {{"_p_std__string", 0, "std::string *", 0},{"_p_std__string"},{0}};
4386 static swig_type_info _swigt__p_otk__Rect[] = {{"_p_otk__Rect", 0, "otk::Rect *", 0},{"_p_otk__Rect"},{0}};
4387 static swig_type_info _swigt__p_ob__OBWidget[] = {{"_p_ob__OBWidget", 0, "ob::OBWidget *", 0},{"_p_ob__OBWidget"},{"_p_ob__OBScreen", _p_ob__OBScreenTo_p_ob__OBWidget},{"_p_ob__OBClient", _p_ob__OBClientTo_p_ob__OBWidget},{0}};
4388 static swig_type_info _swigt__p_XClientMessageEvent[] = {{"_p_XClientMessageEvent", 0, "XClientMessageEvent *", 0},{"_p_XClientMessageEvent"},{0}};
4389 static swig_type_info _swigt__p_XFocusChangeEvent[] = {{"_p_XFocusChangeEvent", 0, "XFocusChangeEvent *", 0},{"_p_XFocusChangeEvent"},{0}};
4390 static swig_type_info _swigt__p_otk__OBProperty[] = {{"_p_otk__OBProperty", 0, "otk::OBProperty *", 0},{"_p_otk__OBProperty"},{0}};
4391 static swig_type_info _swigt__p_ob__EventData[] = {{"_p_ob__EventData", 0, "ob::EventData *", 0},{"_p_ob__EventData"},{0}};
4392 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}};
4393 static swig_type_info _swigt__p_XPropertyEvent[] = {{"_p_XPropertyEvent", 0, "XPropertyEvent *", 0},{"_p_XPropertyEvent"},{0}};
4394 static swig_type_info _swigt__p_XDestroyWindowEvent[] = {{"_p_XDestroyWindowEvent", 0, "XDestroyWindowEvent *", 0},{"_p_XDestroyWindowEvent"},{0}};
4395 static swig_type_info _swigt__p_otk__BImageControl[] = {{"_p_otk__BImageControl", 0, "otk::BImageControl *", 0},{"_p_otk__BImageControl"},{0}};
4396 static swig_type_info _swigt__p_PyObject[] = {{"_p_PyObject", 0, "PyObject *", 0},{"_p_PyObject"},{0}};
4397 static swig_type_info _swigt__p_ob__OBBindings[] = {{"_p_ob__OBBindings", 0, "ob::OBBindings *", 0},{"_p_ob__OBBindings"},{0}};
4398 static swig_type_info _swigt__p_ob__MwmHints[] = {{"_p_ob__MwmHints", 0, "ob::MwmHints *", 0},{"_p_ob__MwmHints"},{0}};
4399 static swig_type_info _swigt__p_XUnmapEvent[] = {{"_p_XUnmapEvent", 0, "XUnmapEvent *", 0},{"_p_XUnmapEvent"},{0}};
4400 static swig_type_info _swigt__p_ob__ButtonData[] = {{"_p_ob__ButtonData", 0, "ob::ButtonData *", 0},{"_p_ob__ButtonData"},{0}};
4401
4402 static swig_type_info *swig_types_initial[] = {
4403 _swigt__p_otk__OBTimerQueueManager,
4404 _swigt__p_ob__OBActions,
4405 _swigt__p_ob__Cursors,
4406 _swigt__p_ob__OBScreen,
4407 _swigt__p_otk__Style,
4408 _swigt__p_ob__OBFrame,
4409 _swigt__p_XReparentEvent,
4410 _swigt__p_ob__MotionData,
4411 _swigt__p_ob__OBClient,
4412 _swigt__p_ob__Openbox,
4413 _swigt__p_otk__Strut,
4414 _swigt__p_ob__KeyData,
4415 _swigt__p_XMapRequestEvent,
4416 _swigt__p_XConfigureRequestEvent,
4417 _swigt__p_otk__Point,
4418 _swigt__p_otk__OtkEventHandler,
4419 _swigt__p_std__string,
4420 _swigt__p_otk__Rect,
4421 _swigt__p_ob__OBWidget,
4422 _swigt__p_XClientMessageEvent,
4423 _swigt__p_XFocusChangeEvent,
4424 _swigt__p_otk__OBProperty,
4425 _swigt__p_ob__EventData,
4426 _swigt__p_otk__OtkEventDispatcher,
4427 _swigt__p_XPropertyEvent,
4428 _swigt__p_XDestroyWindowEvent,
4429 _swigt__p_otk__BImageControl,
4430 _swigt__p_PyObject,
4431 _swigt__p_ob__OBBindings,
4432 _swigt__p_ob__MwmHints,
4433 _swigt__p_XUnmapEvent,
4434 _swigt__p_ob__ButtonData,
4435 0
4436 };
4437
4438
4439 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
4440
4441 static swig_const_info swig_const_table[] = {
4442 { SWIG_PY_INT, (char *)"Openbox_State_Starting", (long) ob::Openbox::State_Starting, 0, 0, 0},
4443 { SWIG_PY_INT, (char *)"Openbox_State_Normal", (long) ob::Openbox::State_Normal, 0, 0, 0},
4444 { SWIG_PY_INT, (char *)"Openbox_State_Exiting", (long) ob::Openbox::State_Exiting, 0, 0, 0},
4445 { SWIG_PY_INT, (char *)"OBScreen_event_mask", (long) ob::OBScreen::event_mask, 0, 0, 0},
4446 { SWIG_PY_INT, (char *)"MwmHints_elements", (long) ob::MwmHints::elements, 0, 0, 0},
4447 { SWIG_PY_INT, (char *)"OBClient_Layer_Icon", (long) ob::OBClient::Layer_Icon, 0, 0, 0},
4448 { SWIG_PY_INT, (char *)"OBClient_Layer_Desktop", (long) ob::OBClient::Layer_Desktop, 0, 0, 0},
4449 { SWIG_PY_INT, (char *)"OBClient_Layer_Below", (long) ob::OBClient::Layer_Below, 0, 0, 0},
4450 { SWIG_PY_INT, (char *)"OBClient_Layer_Normal", (long) ob::OBClient::Layer_Normal, 0, 0, 0},
4451 { SWIG_PY_INT, (char *)"OBClient_Layer_Above", (long) ob::OBClient::Layer_Above, 0, 0, 0},
4452 { SWIG_PY_INT, (char *)"OBClient_Layer_Top", (long) ob::OBClient::Layer_Top, 0, 0, 0},
4453 { SWIG_PY_INT, (char *)"OBClient_Layer_Fullscreen", (long) ob::OBClient::Layer_Fullscreen, 0, 0, 0},
4454 { SWIG_PY_INT, (char *)"OBClient_Layer_Internal", (long) ob::OBClient::Layer_Internal, 0, 0, 0},
4455 { SWIG_PY_INT, (char *)"OBClient_NUM_LAYERS", (long) ob::OBClient::NUM_LAYERS, 0, 0, 0},
4456 { SWIG_PY_INT, (char *)"OBClient_TopLeft", (long) ob::OBClient::TopLeft, 0, 0, 0},
4457 { SWIG_PY_INT, (char *)"OBClient_TopRight", (long) ob::OBClient::TopRight, 0, 0, 0},
4458 { SWIG_PY_INT, (char *)"OBClient_BottomLeft", (long) ob::OBClient::BottomLeft, 0, 0, 0},
4459 { SWIG_PY_INT, (char *)"OBClient_BottomRight", (long) ob::OBClient::BottomRight, 0, 0, 0},
4460 { SWIG_PY_INT, (char *)"OBClient_Type_Desktop", (long) ob::OBClient::Type_Desktop, 0, 0, 0},
4461 { SWIG_PY_INT, (char *)"OBClient_Type_Dock", (long) ob::OBClient::Type_Dock, 0, 0, 0},
4462 { SWIG_PY_INT, (char *)"OBClient_Type_Toolbar", (long) ob::OBClient::Type_Toolbar, 0, 0, 0},
4463 { SWIG_PY_INT, (char *)"OBClient_Type_Menu", (long) ob::OBClient::Type_Menu, 0, 0, 0},
4464 { SWIG_PY_INT, (char *)"OBClient_Type_Utility", (long) ob::OBClient::Type_Utility, 0, 0, 0},
4465 { SWIG_PY_INT, (char *)"OBClient_Type_Splash", (long) ob::OBClient::Type_Splash, 0, 0, 0},
4466 { SWIG_PY_INT, (char *)"OBClient_Type_Dialog", (long) ob::OBClient::Type_Dialog, 0, 0, 0},
4467 { SWIG_PY_INT, (char *)"OBClient_Type_Normal", (long) ob::OBClient::Type_Normal, 0, 0, 0},
4468 { SWIG_PY_INT, (char *)"OBClient_MwmFlag_Functions", (long) ob::OBClient::MwmFlag_Functions, 0, 0, 0},
4469 { SWIG_PY_INT, (char *)"OBClient_MwmFlag_Decorations", (long) ob::OBClient::MwmFlag_Decorations, 0, 0, 0},
4470 { SWIG_PY_INT, (char *)"OBClient_MwmFunc_All", (long) ob::OBClient::MwmFunc_All, 0, 0, 0},
4471 { SWIG_PY_INT, (char *)"OBClient_MwmFunc_Resize", (long) ob::OBClient::MwmFunc_Resize, 0, 0, 0},
4472 { SWIG_PY_INT, (char *)"OBClient_MwmFunc_Move", (long) ob::OBClient::MwmFunc_Move, 0, 0, 0},
4473 { SWIG_PY_INT, (char *)"OBClient_MwmFunc_Iconify", (long) ob::OBClient::MwmFunc_Iconify, 0, 0, 0},
4474 { SWIG_PY_INT, (char *)"OBClient_MwmFunc_Maximize", (long) ob::OBClient::MwmFunc_Maximize, 0, 0, 0},
4475 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_All", (long) ob::OBClient::MwmDecor_All, 0, 0, 0},
4476 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_Border", (long) ob::OBClient::MwmDecor_Border, 0, 0, 0},
4477 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_Handle", (long) ob::OBClient::MwmDecor_Handle, 0, 0, 0},
4478 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_Title", (long) ob::OBClient::MwmDecor_Title, 0, 0, 0},
4479 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_Iconify", (long) ob::OBClient::MwmDecor_Iconify, 0, 0, 0},
4480 { SWIG_PY_INT, (char *)"OBClient_MwmDecor_Maximize", (long) ob::OBClient::MwmDecor_Maximize, 0, 0, 0},
4481 { SWIG_PY_INT, (char *)"OBClient_Func_Resize", (long) ob::OBClient::Func_Resize, 0, 0, 0},
4482 { SWIG_PY_INT, (char *)"OBClient_Func_Move", (long) ob::OBClient::Func_Move, 0, 0, 0},
4483 { SWIG_PY_INT, (char *)"OBClient_Func_Iconify", (long) ob::OBClient::Func_Iconify, 0, 0, 0},
4484 { SWIG_PY_INT, (char *)"OBClient_Func_Maximize", (long) ob::OBClient::Func_Maximize, 0, 0, 0},
4485 { SWIG_PY_INT, (char *)"OBClient_Func_Close", (long) ob::OBClient::Func_Close, 0, 0, 0},
4486 { SWIG_PY_INT, (char *)"OBClient_Decor_Titlebar", (long) ob::OBClient::Decor_Titlebar, 0, 0, 0},
4487 { SWIG_PY_INT, (char *)"OBClient_Decor_Handle", (long) ob::OBClient::Decor_Handle, 0, 0, 0},
4488 { SWIG_PY_INT, (char *)"OBClient_Decor_Border", (long) ob::OBClient::Decor_Border, 0, 0, 0},
4489 { SWIG_PY_INT, (char *)"OBClient_Decor_Iconify", (long) ob::OBClient::Decor_Iconify, 0, 0, 0},
4490 { SWIG_PY_INT, (char *)"OBClient_Decor_Maximize", (long) ob::OBClient::Decor_Maximize, 0, 0, 0},
4491 { SWIG_PY_INT, (char *)"OBClient_Decor_Sticky", (long) ob::OBClient::Decor_Sticky, 0, 0, 0},
4492 { SWIG_PY_INT, (char *)"OBClient_Decor_Close", (long) ob::OBClient::Decor_Close, 0, 0, 0},
4493 { SWIG_PY_INT, (char *)"OBClient_State_Remove", (long) ob::OBClient::State_Remove, 0, 0, 0},
4494 { SWIG_PY_INT, (char *)"OBClient_State_Add", (long) ob::OBClient::State_Add, 0, 0, 0},
4495 { SWIG_PY_INT, (char *)"OBClient_State_Toggle", (long) ob::OBClient::State_Toggle, 0, 0, 0},
4496 { SWIG_PY_INT, (char *)"OBClient_event_mask", (long) ob::OBClient::event_mask, 0, 0, 0},
4497 { SWIG_PY_INT, (char *)"OBClient_no_propagate_mask", (long) ob::OBClient::no_propagate_mask, 0, 0, 0},
4498 { SWIG_PY_INT, (char *)"MC_Frame", (long) ob::MC_Frame, 0, 0, 0},
4499 { SWIG_PY_INT, (char *)"MC_Titlebar", (long) ob::MC_Titlebar, 0, 0, 0},
4500 { SWIG_PY_INT, (char *)"MC_Handle", (long) ob::MC_Handle, 0, 0, 0},
4501 { SWIG_PY_INT, (char *)"MC_Window", (long) ob::MC_Window, 0, 0, 0},
4502 { SWIG_PY_INT, (char *)"MC_MaximizeButton", (long) ob::MC_MaximizeButton, 0, 0, 0},
4503 { SWIG_PY_INT, (char *)"MC_CloseButton", (long) ob::MC_CloseButton, 0, 0, 0},
4504 { SWIG_PY_INT, (char *)"MC_IconifyButton", (long) ob::MC_IconifyButton, 0, 0, 0},
4505 { SWIG_PY_INT, (char *)"MC_StickyButton", (long) ob::MC_StickyButton, 0, 0, 0},
4506 { SWIG_PY_INT, (char *)"MC_Grip", (long) ob::MC_Grip, 0, 0, 0},
4507 { SWIG_PY_INT, (char *)"MC_Root", (long) ob::MC_Root, 0, 0, 0},
4508 { SWIG_PY_INT, (char *)"MC_MenuItem", (long) ob::MC_MenuItem, 0, 0, 0},
4509 { SWIG_PY_INT, (char *)"NUM_MOUSE_CONTEXT", (long) ob::NUM_MOUSE_CONTEXT, 0, 0, 0},
4510 { SWIG_PY_INT, (char *)"MousePress", (long) ob::MousePress, 0, 0, 0},
4511 { SWIG_PY_INT, (char *)"MouseClick", (long) ob::MouseClick, 0, 0, 0},
4512 { SWIG_PY_INT, (char *)"MouseDoubleClick", (long) ob::MouseDoubleClick, 0, 0, 0},
4513 { SWIG_PY_INT, (char *)"MouseMotion", (long) ob::MouseMotion, 0, 0, 0},
4514 { SWIG_PY_INT, (char *)"NUM_MOUSE_ACTION", (long) ob::NUM_MOUSE_ACTION, 0, 0, 0},
4515 { SWIG_PY_INT, (char *)"KC_Menu", (long) ob::KC_Menu, 0, 0, 0},
4516 { SWIG_PY_INT, (char *)"KC_All", (long) ob::KC_All, 0, 0, 0},
4517 { SWIG_PY_INT, (char *)"NUM_KEY_CONTEXT", (long) ob::NUM_KEY_CONTEXT, 0, 0, 0},
4518 { SWIG_PY_INT, (char *)"EventEnterWindow", (long) ob::EventEnterWindow, 0, 0, 0},
4519 { SWIG_PY_INT, (char *)"EventLeaveWindow", (long) ob::EventLeaveWindow, 0, 0, 0},
4520 { SWIG_PY_INT, (char *)"EventPlaceWindow", (long) ob::EventPlaceWindow, 0, 0, 0},
4521 { SWIG_PY_INT, (char *)"EventNewWindow", (long) ob::EventNewWindow, 0, 0, 0},
4522 { SWIG_PY_INT, (char *)"EventCloseWindow", (long) ob::EventCloseWindow, 0, 0, 0},
4523 { SWIG_PY_INT, (char *)"EventStartup", (long) ob::EventStartup, 0, 0, 0},
4524 { SWIG_PY_INT, (char *)"EventShutdown", (long) ob::EventShutdown, 0, 0, 0},
4525 { SWIG_PY_INT, (char *)"EventFocus", (long) ob::EventFocus, 0, 0, 0},
4526 { SWIG_PY_INT, (char *)"EventBell", (long) ob::EventBell, 0, 0, 0},
4527 { SWIG_PY_INT, (char *)"NUM_EVENTS", (long) ob::NUM_EVENTS, 0, 0, 0},
4528 { SWIG_PY_INT, (char *)"X_PROTOCOL", (long) 11, 0, 0, 0},
4529 { SWIG_PY_INT, (char *)"X_PROTOCOL_REVISION", (long) 0, 0, 0, 0},
4530 { SWIG_PY_INT, (char *)"None", (long) 0L, 0, 0, 0},
4531 { SWIG_PY_INT, (char *)"ParentRelative", (long) 1L, 0, 0, 0},
4532 { SWIG_PY_INT, (char *)"CopyFromParent", (long) 0L, 0, 0, 0},
4533 { SWIG_PY_INT, (char *)"PointerWindow", (long) 0L, 0, 0, 0},
4534 { SWIG_PY_INT, (char *)"InputFocus", (long) 1L, 0, 0, 0},
4535 { SWIG_PY_INT, (char *)"PointerRoot", (long) 1L, 0, 0, 0},
4536 { SWIG_PY_INT, (char *)"AnyPropertyType", (long) 0L, 0, 0, 0},
4537 { SWIG_PY_INT, (char *)"AnyKey", (long) 0L, 0, 0, 0},
4538 { SWIG_PY_INT, (char *)"AnyButton", (long) 0L, 0, 0, 0},
4539 { SWIG_PY_INT, (char *)"AllTemporary", (long) 0L, 0, 0, 0},
4540 { SWIG_PY_INT, (char *)"CurrentTime", (long) 0L, 0, 0, 0},
4541 { SWIG_PY_INT, (char *)"NoSymbol", (long) 0L, 0, 0, 0},
4542 { SWIG_PY_INT, (char *)"NoEventMask", (long) 0L, 0, 0, 0},
4543 { SWIG_PY_INT, (char *)"KeyPressMask", (long) (1L<<0), 0, 0, 0},
4544 { SWIG_PY_INT, (char *)"KeyReleaseMask", (long) (1L<<1), 0, 0, 0},
4545 { SWIG_PY_INT, (char *)"ButtonPressMask", (long) (1L<<2), 0, 0, 0},
4546 { SWIG_PY_INT, (char *)"ButtonReleaseMask", (long) (1L<<3), 0, 0, 0},
4547 { SWIG_PY_INT, (char *)"EnterWindowMask", (long) (1L<<4), 0, 0, 0},
4548 { SWIG_PY_INT, (char *)"LeaveWindowMask", (long) (1L<<5), 0, 0, 0},
4549 { SWIG_PY_INT, (char *)"PointerMotionMask", (long) (1L<<6), 0, 0, 0},
4550 { SWIG_PY_INT, (char *)"PointerMotionHintMask", (long) (1L<<7), 0, 0, 0},
4551 { SWIG_PY_INT, (char *)"Button1MotionMask", (long) (1L<<8), 0, 0, 0},
4552 { SWIG_PY_INT, (char *)"Button2MotionMask", (long) (1L<<9), 0, 0, 0},
4553 { SWIG_PY_INT, (char *)"Button3MotionMask", (long) (1L<<10), 0, 0, 0},
4554 { SWIG_PY_INT, (char *)"Button4MotionMask", (long) (1L<<11), 0, 0, 0},
4555 { SWIG_PY_INT, (char *)"Button5MotionMask", (long) (1L<<12), 0, 0, 0},
4556 { SWIG_PY_INT, (char *)"ButtonMotionMask", (long) (1L<<13), 0, 0, 0},
4557 { SWIG_PY_INT, (char *)"KeymapStateMask", (long) (1L<<14), 0, 0, 0},
4558 { SWIG_PY_INT, (char *)"ExposureMask", (long) (1L<<15), 0, 0, 0},
4559 { SWIG_PY_INT, (char *)"VisibilityChangeMask", (long) (1L<<16), 0, 0, 0},
4560 { SWIG_PY_INT, (char *)"StructureNotifyMask", (long) (1L<<17), 0, 0, 0},
4561 { SWIG_PY_INT, (char *)"ResizeRedirectMask", (long) (1L<<18), 0, 0, 0},
4562 { SWIG_PY_INT, (char *)"SubstructureNotifyMask", (long) (1L<<19), 0, 0, 0},
4563 { SWIG_PY_INT, (char *)"SubstructureRedirectMask", (long) (1L<<20), 0, 0, 0},
4564 { SWIG_PY_INT, (char *)"FocusChangeMask", (long) (1L<<21), 0, 0, 0},
4565 { SWIG_PY_INT, (char *)"PropertyChangeMask", (long) (1L<<22), 0, 0, 0},
4566 { SWIG_PY_INT, (char *)"ColormapChangeMask", (long) (1L<<23), 0, 0, 0},
4567 { SWIG_PY_INT, (char *)"OwnerGrabButtonMask", (long) (1L<<24), 0, 0, 0},
4568 { SWIG_PY_INT, (char *)"KeyPress", (long) 2, 0, 0, 0},
4569 { SWIG_PY_INT, (char *)"KeyRelease", (long) 3, 0, 0, 0},
4570 { SWIG_PY_INT, (char *)"ButtonPress", (long) 4, 0, 0, 0},
4571 { SWIG_PY_INT, (char *)"ButtonRelease", (long) 5, 0, 0, 0},
4572 { SWIG_PY_INT, (char *)"MotionNotify", (long) 6, 0, 0, 0},
4573 { SWIG_PY_INT, (char *)"EnterNotify", (long) 7, 0, 0, 0},
4574 { SWIG_PY_INT, (char *)"LeaveNotify", (long) 8, 0, 0, 0},
4575 { SWIG_PY_INT, (char *)"FocusIn", (long) 9, 0, 0, 0},
4576 { SWIG_PY_INT, (char *)"FocusOut", (long) 10, 0, 0, 0},
4577 { SWIG_PY_INT, (char *)"KeymapNotify", (long) 11, 0, 0, 0},
4578 { SWIG_PY_INT, (char *)"Expose", (long) 12, 0, 0, 0},
4579 { SWIG_PY_INT, (char *)"GraphicsExpose", (long) 13, 0, 0, 0},
4580 { SWIG_PY_INT, (char *)"NoExpose", (long) 14, 0, 0, 0},
4581 { SWIG_PY_INT, (char *)"VisibilityNotify", (long) 15, 0, 0, 0},
4582 { SWIG_PY_INT, (char *)"CreateNotify", (long) 16, 0, 0, 0},
4583 { SWIG_PY_INT, (char *)"DestroyNotify", (long) 17, 0, 0, 0},
4584 { SWIG_PY_INT, (char *)"UnmapNotify", (long) 18, 0, 0, 0},
4585 { SWIG_PY_INT, (char *)"MapNotify", (long) 19, 0, 0, 0},
4586 { SWIG_PY_INT, (char *)"MapRequest", (long) 20, 0, 0, 0},
4587 { SWIG_PY_INT, (char *)"ReparentNotify", (long) 21, 0, 0, 0},
4588 { SWIG_PY_INT, (char *)"ConfigureNotify", (long) 22, 0, 0, 0},
4589 { SWIG_PY_INT, (char *)"ConfigureRequest", (long) 23, 0, 0, 0},
4590 { SWIG_PY_INT, (char *)"GravityNotify", (long) 24, 0, 0, 0},
4591 { SWIG_PY_INT, (char *)"ResizeRequest", (long) 25, 0, 0, 0},
4592 { SWIG_PY_INT, (char *)"CirculateNotify", (long) 26, 0, 0, 0},
4593 { SWIG_PY_INT, (char *)"CirculateRequest", (long) 27, 0, 0, 0},
4594 { SWIG_PY_INT, (char *)"PropertyNotify", (long) 28, 0, 0, 0},
4595 { SWIG_PY_INT, (char *)"SelectionClear", (long) 29, 0, 0, 0},
4596 { SWIG_PY_INT, (char *)"SelectionRequest", (long) 30, 0, 0, 0},
4597 { SWIG_PY_INT, (char *)"SelectionNotify", (long) 31, 0, 0, 0},
4598 { SWIG_PY_INT, (char *)"ColormapNotify", (long) 32, 0, 0, 0},
4599 { SWIG_PY_INT, (char *)"ClientMessage", (long) 33, 0, 0, 0},
4600 { SWIG_PY_INT, (char *)"MappingNotify", (long) 34, 0, 0, 0},
4601 { SWIG_PY_INT, (char *)"LASTEvent", (long) 35, 0, 0, 0},
4602 { SWIG_PY_INT, (char *)"ShiftMask", (long) (1<<0), 0, 0, 0},
4603 { SWIG_PY_INT, (char *)"LockMask", (long) (1<<1), 0, 0, 0},
4604 { SWIG_PY_INT, (char *)"ControlMask", (long) (1<<2), 0, 0, 0},
4605 { SWIG_PY_INT, (char *)"Mod1Mask", (long) (1<<3), 0, 0, 0},
4606 { SWIG_PY_INT, (char *)"Mod2Mask", (long) (1<<4), 0, 0, 0},
4607 { SWIG_PY_INT, (char *)"Mod3Mask", (long) (1<<5), 0, 0, 0},
4608 { SWIG_PY_INT, (char *)"Mod4Mask", (long) (1<<6), 0, 0, 0},
4609 { SWIG_PY_INT, (char *)"Mod5Mask", (long) (1<<7), 0, 0, 0},
4610 { SWIG_PY_INT, (char *)"ShiftMapIndex", (long) 0, 0, 0, 0},
4611 { SWIG_PY_INT, (char *)"LockMapIndex", (long) 1, 0, 0, 0},
4612 { SWIG_PY_INT, (char *)"ControlMapIndex", (long) 2, 0, 0, 0},
4613 { SWIG_PY_INT, (char *)"Mod1MapIndex", (long) 3, 0, 0, 0},
4614 { SWIG_PY_INT, (char *)"Mod2MapIndex", (long) 4, 0, 0, 0},
4615 { SWIG_PY_INT, (char *)"Mod3MapIndex", (long) 5, 0, 0, 0},
4616 { SWIG_PY_INT, (char *)"Mod4MapIndex", (long) 6, 0, 0, 0},
4617 { SWIG_PY_INT, (char *)"Mod5MapIndex", (long) 7, 0, 0, 0},
4618 { SWIG_PY_INT, (char *)"Button1Mask", (long) (1<<8), 0, 0, 0},
4619 { SWIG_PY_INT, (char *)"Button2Mask", (long) (1<<9), 0, 0, 0},
4620 { SWIG_PY_INT, (char *)"Button3Mask", (long) (1<<10), 0, 0, 0},
4621 { SWIG_PY_INT, (char *)"Button4Mask", (long) (1<<11), 0, 0, 0},
4622 { SWIG_PY_INT, (char *)"Button5Mask", (long) (1<<12), 0, 0, 0},
4623 { SWIG_PY_INT, (char *)"AnyModifier", (long) (1<<15), 0, 0, 0},
4624 { SWIG_PY_INT, (char *)"Button1", (long) 1, 0, 0, 0},
4625 { SWIG_PY_INT, (char *)"Button2", (long) 2, 0, 0, 0},
4626 { SWIG_PY_INT, (char *)"Button3", (long) 3, 0, 0, 0},
4627 { SWIG_PY_INT, (char *)"Button4", (long) 4, 0, 0, 0},
4628 { SWIG_PY_INT, (char *)"Button5", (long) 5, 0, 0, 0},
4629 { SWIG_PY_INT, (char *)"NotifyNormal", (long) 0, 0, 0, 0},
4630 { SWIG_PY_INT, (char *)"NotifyGrab", (long) 1, 0, 0, 0},
4631 { SWIG_PY_INT, (char *)"NotifyUngrab", (long) 2, 0, 0, 0},
4632 { SWIG_PY_INT, (char *)"NotifyWhileGrabbed", (long) 3, 0, 0, 0},
4633 { SWIG_PY_INT, (char *)"NotifyHint", (long) 1, 0, 0, 0},
4634 { SWIG_PY_INT, (char *)"NotifyAncestor", (long) 0, 0, 0, 0},
4635 { SWIG_PY_INT, (char *)"NotifyVirtual", (long) 1, 0, 0, 0},
4636 { SWIG_PY_INT, (char *)"NotifyInferior", (long) 2, 0, 0, 0},
4637 { SWIG_PY_INT, (char *)"NotifyNonlinear", (long) 3, 0, 0, 0},
4638 { SWIG_PY_INT, (char *)"NotifyNonlinearVirtual", (long) 4, 0, 0, 0},
4639 { SWIG_PY_INT, (char *)"NotifyPointer", (long) 5, 0, 0, 0},
4640 { SWIG_PY_INT, (char *)"NotifyPointerRoot", (long) 6, 0, 0, 0},
4641 { SWIG_PY_INT, (char *)"NotifyDetailNone", (long) 7, 0, 0, 0},
4642 { SWIG_PY_INT, (char *)"VisibilityUnobscured", (long) 0, 0, 0, 0},
4643 { SWIG_PY_INT, (char *)"VisibilityPartiallyObscured", (long) 1, 0, 0, 0},
4644 { SWIG_PY_INT, (char *)"VisibilityFullyObscured", (long) 2, 0, 0, 0},
4645 { SWIG_PY_INT, (char *)"PlaceOnTop", (long) 0, 0, 0, 0},
4646 { SWIG_PY_INT, (char *)"PlaceOnBottom", (long) 1, 0, 0, 0},
4647 { SWIG_PY_INT, (char *)"FamilyInternet", (long) 0, 0, 0, 0},
4648 { SWIG_PY_INT, (char *)"FamilyDECnet", (long) 1, 0, 0, 0},
4649 { SWIG_PY_INT, (char *)"FamilyChaos", (long) 2, 0, 0, 0},
4650 { SWIG_PY_INT, (char *)"PropertyNewValue", (long) 0, 0, 0, 0},
4651 { SWIG_PY_INT, (char *)"PropertyDelete", (long) 1, 0, 0, 0},
4652 { SWIG_PY_INT, (char *)"ColormapUninstalled", (long) 0, 0, 0, 0},
4653 { SWIG_PY_INT, (char *)"ColormapInstalled", (long) 1, 0, 0, 0},
4654 { SWIG_PY_INT, (char *)"GrabModeSync", (long) 0, 0, 0, 0},
4655 { SWIG_PY_INT, (char *)"GrabModeAsync", (long) 1, 0, 0, 0},
4656 { SWIG_PY_INT, (char *)"GrabSuccess", (long) 0, 0, 0, 0},
4657 { SWIG_PY_INT, (char *)"AlreadyGrabbed", (long) 1, 0, 0, 0},
4658 { SWIG_PY_INT, (char *)"GrabInvalidTime", (long) 2, 0, 0, 0},
4659 { SWIG_PY_INT, (char *)"GrabNotViewable", (long) 3, 0, 0, 0},
4660 { SWIG_PY_INT, (char *)"GrabFrozen", (long) 4, 0, 0, 0},
4661 { SWIG_PY_INT, (char *)"AsyncPointer", (long) 0, 0, 0, 0},
4662 { SWIG_PY_INT, (char *)"SyncPointer", (long) 1, 0, 0, 0},
4663 { SWIG_PY_INT, (char *)"ReplayPointer", (long) 2, 0, 0, 0},
4664 { SWIG_PY_INT, (char *)"AsyncKeyboard", (long) 3, 0, 0, 0},
4665 { SWIG_PY_INT, (char *)"SyncKeyboard", (long) 4, 0, 0, 0},
4666 { SWIG_PY_INT, (char *)"ReplayKeyboard", (long) 5, 0, 0, 0},
4667 { SWIG_PY_INT, (char *)"AsyncBoth", (long) 6, 0, 0, 0},
4668 { SWIG_PY_INT, (char *)"SyncBoth", (long) 7, 0, 0, 0},
4669 { SWIG_PY_INT, (char *)"RevertToParent", (long) 2, 0, 0, 0},
4670 { SWIG_PY_INT, (char *)"Success", (long) 0, 0, 0, 0},
4671 { SWIG_PY_INT, (char *)"BadRequest", (long) 1, 0, 0, 0},
4672 { SWIG_PY_INT, (char *)"BadValue", (long) 2, 0, 0, 0},
4673 { SWIG_PY_INT, (char *)"BadWindow", (long) 3, 0, 0, 0},
4674 { SWIG_PY_INT, (char *)"BadPixmap", (long) 4, 0, 0, 0},
4675 { SWIG_PY_INT, (char *)"BadAtom", (long) 5, 0, 0, 0},
4676 { SWIG_PY_INT, (char *)"BadCursor", (long) 6, 0, 0, 0},
4677 { SWIG_PY_INT, (char *)"BadFont", (long) 7, 0, 0, 0},
4678 { SWIG_PY_INT, (char *)"BadMatch", (long) 8, 0, 0, 0},
4679 { SWIG_PY_INT, (char *)"BadDrawable", (long) 9, 0, 0, 0},
4680 { SWIG_PY_INT, (char *)"BadAccess", (long) 10, 0, 0, 0},
4681 { SWIG_PY_INT, (char *)"BadAlloc", (long) 11, 0, 0, 0},
4682 { SWIG_PY_INT, (char *)"BadColor", (long) 12, 0, 0, 0},
4683 { SWIG_PY_INT, (char *)"BadGC", (long) 13, 0, 0, 0},
4684 { SWIG_PY_INT, (char *)"BadIDChoice", (long) 14, 0, 0, 0},
4685 { SWIG_PY_INT, (char *)"BadName", (long) 15, 0, 0, 0},
4686 { SWIG_PY_INT, (char *)"BadLength", (long) 16, 0, 0, 0},
4687 { SWIG_PY_INT, (char *)"BadImplementation", (long) 17, 0, 0, 0},
4688 { SWIG_PY_INT, (char *)"FirstExtensionError", (long) 128, 0, 0, 0},
4689 { SWIG_PY_INT, (char *)"LastExtensionError", (long) 255, 0, 0, 0},
4690 { SWIG_PY_INT, (char *)"InputOutput", (long) 1, 0, 0, 0},
4691 { SWIG_PY_INT, (char *)"InputOnly", (long) 2, 0, 0, 0},
4692 { SWIG_PY_INT, (char *)"CWBackPixmap", (long) (1L<<0), 0, 0, 0},
4693 { SWIG_PY_INT, (char *)"CWBackPixel", (long) (1L<<1), 0, 0, 0},
4694 { SWIG_PY_INT, (char *)"CWBorderPixmap", (long) (1L<<2), 0, 0, 0},
4695 { SWIG_PY_INT, (char *)"CWBorderPixel", (long) (1L<<3), 0, 0, 0},
4696 { SWIG_PY_INT, (char *)"CWBitGravity", (long) (1L<<4), 0, 0, 0},
4697 { SWIG_PY_INT, (char *)"CWWinGravity", (long) (1L<<5), 0, 0, 0},
4698 { SWIG_PY_INT, (char *)"CWBackingStore", (long) (1L<<6), 0, 0, 0},
4699 { SWIG_PY_INT, (char *)"CWBackingPlanes", (long) (1L<<7), 0, 0, 0},
4700 { SWIG_PY_INT, (char *)"CWBackingPixel", (long) (1L<<8), 0, 0, 0},
4701 { SWIG_PY_INT, (char *)"CWOverrideRedirect", (long) (1L<<9), 0, 0, 0},
4702 { SWIG_PY_INT, (char *)"CWSaveUnder", (long) (1L<<10), 0, 0, 0},
4703 { SWIG_PY_INT, (char *)"CWEventMask", (long) (1L<<11), 0, 0, 0},
4704 { SWIG_PY_INT, (char *)"CWDontPropagate", (long) (1L<<12), 0, 0, 0},
4705 { SWIG_PY_INT, (char *)"CWColormap", (long) (1L<<13), 0, 0, 0},
4706 { SWIG_PY_INT, (char *)"CWCursor", (long) (1L<<14), 0, 0, 0},
4707 { SWIG_PY_INT, (char *)"CWX", (long) (1<<0), 0, 0, 0},
4708 { SWIG_PY_INT, (char *)"CWY", (long) (1<<1), 0, 0, 0},
4709 { SWIG_PY_INT, (char *)"CWWidth", (long) (1<<2), 0, 0, 0},
4710 { SWIG_PY_INT, (char *)"CWHeight", (long) (1<<3), 0, 0, 0},
4711 { SWIG_PY_INT, (char *)"CWBorderWidth", (long) (1<<4), 0, 0, 0},
4712 { SWIG_PY_INT, (char *)"CWSibling", (long) (1<<5), 0, 0, 0},
4713 { SWIG_PY_INT, (char *)"CWStackMode", (long) (1<<6), 0, 0, 0},
4714 { SWIG_PY_INT, (char *)"ForgetGravity", (long) 0, 0, 0, 0},
4715 { SWIG_PY_INT, (char *)"NorthWestGravity", (long) 1, 0, 0, 0},
4716 { SWIG_PY_INT, (char *)"NorthGravity", (long) 2, 0, 0, 0},
4717 { SWIG_PY_INT, (char *)"NorthEastGravity", (long) 3, 0, 0, 0},
4718 { SWIG_PY_INT, (char *)"WestGravity", (long) 4, 0, 0, 0},
4719 { SWIG_PY_INT, (char *)"CenterGravity", (long) 5, 0, 0, 0},
4720 { SWIG_PY_INT, (char *)"EastGravity", (long) 6, 0, 0, 0},
4721 { SWIG_PY_INT, (char *)"SouthWestGravity", (long) 7, 0, 0, 0},
4722 { SWIG_PY_INT, (char *)"SouthGravity", (long) 8, 0, 0, 0},
4723 { SWIG_PY_INT, (char *)"SouthEastGravity", (long) 9, 0, 0, 0},
4724 { SWIG_PY_INT, (char *)"StaticGravity", (long) 10, 0, 0, 0},
4725 { SWIG_PY_INT, (char *)"UnmapGravity", (long) 0, 0, 0, 0},
4726 { SWIG_PY_INT, (char *)"NotUseful", (long) 0, 0, 0, 0},
4727 { SWIG_PY_INT, (char *)"WhenMapped", (long) 1, 0, 0, 0},
4728 { SWIG_PY_INT, (char *)"Always", (long) 2, 0, 0, 0},
4729 { SWIG_PY_INT, (char *)"IsUnmapped", (long) 0, 0, 0, 0},
4730 { SWIG_PY_INT, (char *)"IsUnviewable", (long) 1, 0, 0, 0},
4731 { SWIG_PY_INT, (char *)"IsViewable", (long) 2, 0, 0, 0},
4732 { SWIG_PY_INT, (char *)"SetModeInsert", (long) 0, 0, 0, 0},
4733 { SWIG_PY_INT, (char *)"SetModeDelete", (long) 1, 0, 0, 0},
4734 { SWIG_PY_INT, (char *)"DestroyAll", (long) 0, 0, 0, 0},
4735 { SWIG_PY_INT, (char *)"RetainPermanent", (long) 1, 0, 0, 0},
4736 { SWIG_PY_INT, (char *)"RetainTemporary", (long) 2, 0, 0, 0},
4737 { SWIG_PY_INT, (char *)"Above", (long) 0, 0, 0, 0},
4738 { SWIG_PY_INT, (char *)"Below", (long) 1, 0, 0, 0},
4739 { SWIG_PY_INT, (char *)"TopIf", (long) 2, 0, 0, 0},
4740 { SWIG_PY_INT, (char *)"BottomIf", (long) 3, 0, 0, 0},
4741 { SWIG_PY_INT, (char *)"Opposite", (long) 4, 0, 0, 0},
4742 { SWIG_PY_INT, (char *)"RaiseLowest", (long) 0, 0, 0, 0},
4743 { SWIG_PY_INT, (char *)"LowerHighest", (long) 1, 0, 0, 0},
4744 { SWIG_PY_INT, (char *)"PropModeReplace", (long) 0, 0, 0, 0},
4745 { SWIG_PY_INT, (char *)"PropModePrepend", (long) 1, 0, 0, 0},
4746 { SWIG_PY_INT, (char *)"PropModeAppend", (long) 2, 0, 0, 0},
4747 { SWIG_PY_INT, (char *)"GXclear", (long) 0x0, 0, 0, 0},
4748 { SWIG_PY_INT, (char *)"GXand", (long) 0x1, 0, 0, 0},
4749 { SWIG_PY_INT, (char *)"GXandReverse", (long) 0x2, 0, 0, 0},
4750 { SWIG_PY_INT, (char *)"GXcopy", (long) 0x3, 0, 0, 0},
4751 { SWIG_PY_INT, (char *)"GXandInverted", (long) 0x4, 0, 0, 0},
4752 { SWIG_PY_INT, (char *)"GXnoop", (long) 0x5, 0, 0, 0},
4753 { SWIG_PY_INT, (char *)"GXxor", (long) 0x6, 0, 0, 0},
4754 { SWIG_PY_INT, (char *)"GXor", (long) 0x7, 0, 0, 0},
4755 { SWIG_PY_INT, (char *)"GXnor", (long) 0x8, 0, 0, 0},
4756 { SWIG_PY_INT, (char *)"GXequiv", (long) 0x9, 0, 0, 0},
4757 { SWIG_PY_INT, (char *)"GXinvert", (long) 0xa, 0, 0, 0},
4758 { SWIG_PY_INT, (char *)"GXorReverse", (long) 0xb, 0, 0, 0},
4759 { SWIG_PY_INT, (char *)"GXcopyInverted", (long) 0xc, 0, 0, 0},
4760 { SWIG_PY_INT, (char *)"GXorInverted", (long) 0xd, 0, 0, 0},
4761 { SWIG_PY_INT, (char *)"GXnand", (long) 0xe, 0, 0, 0},
4762 { SWIG_PY_INT, (char *)"GXset", (long) 0xf, 0, 0, 0},
4763 { SWIG_PY_INT, (char *)"LineSolid", (long) 0, 0, 0, 0},
4764 { SWIG_PY_INT, (char *)"LineOnOffDash", (long) 1, 0, 0, 0},
4765 { SWIG_PY_INT, (char *)"LineDoubleDash", (long) 2, 0, 0, 0},
4766 { SWIG_PY_INT, (char *)"CapNotLast", (long) 0, 0, 0, 0},
4767 { SWIG_PY_INT, (char *)"CapButt", (long) 1, 0, 0, 0},
4768 { SWIG_PY_INT, (char *)"CapRound", (long) 2, 0, 0, 0},
4769 { SWIG_PY_INT, (char *)"CapProjecting", (long) 3, 0, 0, 0},
4770 { SWIG_PY_INT, (char *)"JoinMiter", (long) 0, 0, 0, 0},
4771 { SWIG_PY_INT, (char *)"JoinRound", (long) 1, 0, 0, 0},
4772 { SWIG_PY_INT, (char *)"JoinBevel", (long) 2, 0, 0, 0},
4773 { SWIG_PY_INT, (char *)"FillSolid", (long) 0, 0, 0, 0},
4774 { SWIG_PY_INT, (char *)"FillTiled", (long) 1, 0, 0, 0},
4775 { SWIG_PY_INT, (char *)"FillStippled", (long) 2, 0, 0, 0},
4776 { SWIG_PY_INT, (char *)"FillOpaqueStippled", (long) 3, 0, 0, 0},
4777 { SWIG_PY_INT, (char *)"EvenOddRule", (long) 0, 0, 0, 0},
4778 { SWIG_PY_INT, (char *)"WindingRule", (long) 1, 0, 0, 0},
4779 { SWIG_PY_INT, (char *)"ClipByChildren", (long) 0, 0, 0, 0},
4780 { SWIG_PY_INT, (char *)"IncludeInferiors", (long) 1, 0, 0, 0},
4781 { SWIG_PY_INT, (char *)"Unsorted", (long) 0, 0, 0, 0},
4782 { SWIG_PY_INT, (char *)"YSorted", (long) 1, 0, 0, 0},
4783 { SWIG_PY_INT, (char *)"YXSorted", (long) 2, 0, 0, 0},
4784 { SWIG_PY_INT, (char *)"YXBanded", (long) 3, 0, 0, 0},
4785 { SWIG_PY_INT, (char *)"CoordModeOrigin", (long) 0, 0, 0, 0},
4786 { SWIG_PY_INT, (char *)"CoordModePrevious", (long) 1, 0, 0, 0},
4787 { SWIG_PY_INT, (char *)"Complex", (long) 0, 0, 0, 0},
4788 { SWIG_PY_INT, (char *)"Nonconvex", (long) 1, 0, 0, 0},
4789 { SWIG_PY_INT, (char *)"Convex", (long) 2, 0, 0, 0},
4790 { SWIG_PY_INT, (char *)"ArcChord", (long) 0, 0, 0, 0},
4791 { SWIG_PY_INT, (char *)"ArcPieSlice", (long) 1, 0, 0, 0},
4792 { SWIG_PY_INT, (char *)"GCFunction", (long) (1L<<0), 0, 0, 0},
4793 { SWIG_PY_INT, (char *)"GCPlaneMask", (long) (1L<<1), 0, 0, 0},
4794 { SWIG_PY_INT, (char *)"GCForeground", (long) (1L<<2), 0, 0, 0},
4795 { SWIG_PY_INT, (char *)"GCBackground", (long) (1L<<3), 0, 0, 0},
4796 { SWIG_PY_INT, (char *)"GCLineWidth", (long) (1L<<4), 0, 0, 0},
4797 { SWIG_PY_INT, (char *)"GCLineStyle", (long) (1L<<5), 0, 0, 0},
4798 { SWIG_PY_INT, (char *)"GCCapStyle", (long) (1L<<6), 0, 0, 0},
4799 { SWIG_PY_INT, (char *)"GCJoinStyle", (long) (1L<<7), 0, 0, 0},
4800 { SWIG_PY_INT, (char *)"GCFillStyle", (long) (1L<<8), 0, 0, 0},
4801 { SWIG_PY_INT, (char *)"GCFillRule", (long) (1L<<9), 0, 0, 0},
4802 { SWIG_PY_INT, (char *)"GCTile", (long) (1L<<10), 0, 0, 0},
4803 { SWIG_PY_INT, (char *)"GCStipple", (long) (1L<<11), 0, 0, 0},
4804 { SWIG_PY_INT, (char *)"GCTileStipXOrigin", (long) (1L<<12), 0, 0, 0},
4805 { SWIG_PY_INT, (char *)"GCTileStipYOrigin", (long) (1L<<13), 0, 0, 0},
4806 { SWIG_PY_INT, (char *)"GCFont", (long) (1L<<14), 0, 0, 0},
4807 { SWIG_PY_INT, (char *)"GCSubwindowMode", (long) (1L<<15), 0, 0, 0},
4808 { SWIG_PY_INT, (char *)"GCGraphicsExposures", (long) (1L<<16), 0, 0, 0},
4809 { SWIG_PY_INT, (char *)"GCClipXOrigin", (long) (1L<<17), 0, 0, 0},
4810 { SWIG_PY_INT, (char *)"GCClipYOrigin", (long) (1L<<18), 0, 0, 0},
4811 { SWIG_PY_INT, (char *)"GCClipMask", (long) (1L<<19), 0, 0, 0},
4812 { SWIG_PY_INT, (char *)"GCDashOffset", (long) (1L<<20), 0, 0, 0},
4813 { SWIG_PY_INT, (char *)"GCDashList", (long) (1L<<21), 0, 0, 0},
4814 { SWIG_PY_INT, (char *)"GCArcMode", (long) (1L<<22), 0, 0, 0},
4815 { SWIG_PY_INT, (char *)"GCLastBit", (long) 22, 0, 0, 0},
4816 { SWIG_PY_INT, (char *)"FontLeftToRight", (long) 0, 0, 0, 0},
4817 { SWIG_PY_INT, (char *)"FontRightToLeft", (long) 1, 0, 0, 0},
4818 { SWIG_PY_INT, (char *)"FontChange", (long) 255, 0, 0, 0},
4819 { SWIG_PY_INT, (char *)"XYBitmap", (long) 0, 0, 0, 0},
4820 { SWIG_PY_INT, (char *)"XYPixmap", (long) 1, 0, 0, 0},
4821 { SWIG_PY_INT, (char *)"ZPixmap", (long) 2, 0, 0, 0},
4822 { SWIG_PY_INT, (char *)"AllocNone", (long) 0, 0, 0, 0},
4823 { SWIG_PY_INT, (char *)"AllocAll", (long) 1, 0, 0, 0},
4824 { SWIG_PY_INT, (char *)"DoRed", (long) (1<<0), 0, 0, 0},
4825 { SWIG_PY_INT, (char *)"DoGreen", (long) (1<<1), 0, 0, 0},
4826 { SWIG_PY_INT, (char *)"DoBlue", (long) (1<<2), 0, 0, 0},
4827 { SWIG_PY_INT, (char *)"CursorShape", (long) 0, 0, 0, 0},
4828 { SWIG_PY_INT, (char *)"TileShape", (long) 1, 0, 0, 0},
4829 { SWIG_PY_INT, (char *)"StippleShape", (long) 2, 0, 0, 0},
4830 { SWIG_PY_INT, (char *)"AutoRepeatModeOff", (long) 0, 0, 0, 0},
4831 { SWIG_PY_INT, (char *)"AutoRepeatModeOn", (long) 1, 0, 0, 0},
4832 { SWIG_PY_INT, (char *)"AutoRepeatModeDefault", (long) 2, 0, 0, 0},
4833 { SWIG_PY_INT, (char *)"LedModeOff", (long) 0, 0, 0, 0},
4834 { SWIG_PY_INT, (char *)"LedModeOn", (long) 1, 0, 0, 0},
4835 { SWIG_PY_INT, (char *)"KBKeyClickPercent", (long) (1L<<0), 0, 0, 0},
4836 { SWIG_PY_INT, (char *)"KBBellPercent", (long) (1L<<1), 0, 0, 0},
4837 { SWIG_PY_INT, (char *)"KBBellPitch", (long) (1L<<2), 0, 0, 0},
4838 { SWIG_PY_INT, (char *)"KBBellDuration", (long) (1L<<3), 0, 0, 0},
4839 { SWIG_PY_INT, (char *)"KBLed", (long) (1L<<4), 0, 0, 0},
4840 { SWIG_PY_INT, (char *)"KBLedMode", (long) (1L<<5), 0, 0, 0},
4841 { SWIG_PY_INT, (char *)"KBKey", (long) (1L<<6), 0, 0, 0},
4842 { SWIG_PY_INT, (char *)"KBAutoRepeatMode", (long) (1L<<7), 0, 0, 0},
4843 { SWIG_PY_INT, (char *)"MappingSuccess", (long) 0, 0, 0, 0},
4844 { SWIG_PY_INT, (char *)"MappingBusy", (long) 1, 0, 0, 0},
4845 { SWIG_PY_INT, (char *)"MappingFailed", (long) 2, 0, 0, 0},
4846 { SWIG_PY_INT, (char *)"MappingModifier", (long) 0, 0, 0, 0},
4847 { SWIG_PY_INT, (char *)"MappingKeyboard", (long) 1, 0, 0, 0},
4848 { SWIG_PY_INT, (char *)"MappingPointer", (long) 2, 0, 0, 0},
4849 { SWIG_PY_INT, (char *)"DontPreferBlanking", (long) 0, 0, 0, 0},
4850 { SWIG_PY_INT, (char *)"PreferBlanking", (long) 1, 0, 0, 0},
4851 { SWIG_PY_INT, (char *)"DefaultBlanking", (long) 2, 0, 0, 0},
4852 { SWIG_PY_INT, (char *)"DisableScreenSaver", (long) 0, 0, 0, 0},
4853 { SWIG_PY_INT, (char *)"DisableScreenInterval", (long) 0, 0, 0, 0},
4854 { SWIG_PY_INT, (char *)"DontAllowExposures", (long) 0, 0, 0, 0},
4855 { SWIG_PY_INT, (char *)"AllowExposures", (long) 1, 0, 0, 0},
4856 { SWIG_PY_INT, (char *)"DefaultExposures", (long) 2, 0, 0, 0},
4857 { SWIG_PY_INT, (char *)"ScreenSaverReset", (long) 0, 0, 0, 0},
4858 { SWIG_PY_INT, (char *)"ScreenSaverActive", (long) 1, 0, 0, 0},
4859 { SWIG_PY_INT, (char *)"HostInsert", (long) 0, 0, 0, 0},
4860 { SWIG_PY_INT, (char *)"HostDelete", (long) 1, 0, 0, 0},
4861 { SWIG_PY_INT, (char *)"EnableAccess", (long) 1, 0, 0, 0},
4862 { SWIG_PY_INT, (char *)"DisableAccess", (long) 0, 0, 0, 0},
4863 { SWIG_PY_INT, (char *)"StaticGray", (long) 0, 0, 0, 0},
4864 { SWIG_PY_INT, (char *)"GrayScale", (long) 1, 0, 0, 0},
4865 { SWIG_PY_INT, (char *)"StaticColor", (long) 2, 0, 0, 0},
4866 { SWIG_PY_INT, (char *)"PseudoColor", (long) 3, 0, 0, 0},
4867 { SWIG_PY_INT, (char *)"TrueColor", (long) 4, 0, 0, 0},
4868 { SWIG_PY_INT, (char *)"DirectColor", (long) 5, 0, 0, 0},
4869 { SWIG_PY_INT, (char *)"LSBFirst", (long) 0, 0, 0, 0},
4870 { SWIG_PY_INT, (char *)"MSBFirst", (long) 1, 0, 0, 0},
4871 {0}};
4872
4873 #ifdef __cplusplus
4874 }
4875 #endif
4876
4877 #ifdef __cplusplus
4878 extern "C"
4879 #endif
4880 SWIGEXPORT(void) SWIG_init(void) {
4881 static PyObject *SWIG_globals = 0;
4882 static int typeinit = 0;
4883 PyObject *m, *d;
4884 int i;
4885 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
4886 m = Py_InitModule((char *) SWIG_name, SwigMethods);
4887 d = PyModule_GetDict(m);
4888
4889 if (!typeinit) {
4890 for (i = 0; swig_types_initial[i]; i++) {
4891 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
4892 }
4893 typeinit = 1;
4894 }
4895 SWIG_InstallConstants(d,swig_const_table);
4896
4897 }
4898
This page took 0.324506 seconds and 4 git commands to generate.