]> Dogcows Code - chaz/openbox/blob - src/openbox_wrap.cc
4d1136cd5eab791091ca9e6c2cc63e47c7ce09a5
[chaz/openbox] / src / openbox_wrap.cc
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.17u-20021128-1508
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__Point swig_types[0]
649 #define SWIGTYPE_p_ob__Client swig_types[1]
650 #define SWIGTYPE_p_XMapEvent swig_types[2]
651 #define SWIGTYPE_p_XUnmapEvent swig_types[3]
652 #define SWIGTYPE_p_XColormapEvent swig_types[4]
653 #define SWIGTYPE_p_XNoExposeEvent swig_types[5]
654 #define SWIGTYPE_p_XGraphicsExposeEvent swig_types[6]
655 #define SWIGTYPE_p_XExposeEvent swig_types[7]
656 #define SWIGTYPE_p_XFocusChangeEvent swig_types[8]
657 #define SWIGTYPE_p_XClientMessageEvent swig_types[9]
658 #define SWIGTYPE_p_ob__MouseData swig_types[10]
659 #define SWIGTYPE_p_XSelectionClearEvent swig_types[11]
660 #define SWIGTYPE_p_otk__Rect swig_types[12]
661 #define SWIGTYPE_p_Visual swig_types[13]
662 #define SWIGTYPE_p_XResizeRequestEvent swig_types[14]
663 #define SWIGTYPE_p_XMapRequestEvent swig_types[15]
664 #define SWIGTYPE_p_XConfigureRequestEvent swig_types[16]
665 #define SWIGTYPE_p_XCirculateRequestEvent swig_types[17]
666 #define SWIGTYPE_p_XGravityEvent swig_types[18]
667 #define SWIGTYPE_p_XVisibilityEvent swig_types[19]
668 #define SWIGTYPE_p_XPropertyEvent swig_types[20]
669 #define SWIGTYPE_p_XSelectionRequestEvent swig_types[21]
670 #define SWIGTYPE_p_ob__Cursors swig_types[22]
671 #define SWIGTYPE_p_otk__ImageControl swig_types[23]
672 #define SWIGTYPE_p_ob__MwmHints swig_types[24]
673 #define SWIGTYPE_p_ob__Screen swig_types[25]
674 #define SWIGTYPE_p_ob__Frame swig_types[26]
675 #define SWIGTYPE_p_ob__KeyData swig_types[27]
676 #define SWIGTYPE_p_XConfigureEvent swig_types[28]
677 #define SWIGTYPE_p_XCirculateEvent swig_types[29]
678 #define SWIGTYPE_p_XRectangle swig_types[30]
679 #define SWIGTYPE_p_otk__ustring swig_types[31]
680 #define SWIGTYPE_p_std__string swig_types[32]
681 #define SWIGTYPE_p_XCrossingEvent swig_types[33]
682 #define SWIGTYPE_p_otk__Display swig_types[34]
683 #define SWIGTYPE_p_Display swig_types[35]
684 #define SWIGTYPE_p_XMappingEvent swig_types[36]
685 #define SWIGTYPE_p_otk__Style swig_types[37]
686 #define SWIGTYPE_p_otk__EventHandler swig_types[38]
687 #define SWIGTYPE_p_XReparentEvent swig_types[39]
688 #define SWIGTYPE_p_otk__EventDispatcher swig_types[40]
689 #define SWIGTYPE_p_otk__GCCache swig_types[41]
690 #define SWIGTYPE_p_ob__Bindings swig_types[42]
691 #define SWIGTYPE_p_ob__Openbox swig_types[43]
692 #define SWIGTYPE_p_ob__Actions swig_types[44]
693 #define SWIGTYPE_p_XEvent swig_types[45]
694 #define SWIGTYPE_p_otk__Property swig_types[46]
695 #define SWIGTYPE_p_PyObject swig_types[47]
696 #define SWIGTYPE_p_otk__ScreenInfo swig_types[48]
697 #define SWIGTYPE_p_ob__EventData swig_types[49]
698 #define SWIGTYPE_p_XCreateWindowEvent swig_types[50]
699 #define SWIGTYPE_p_XDestroyWindowEvent swig_types[51]
700 #define SWIGTYPE_p_otk__Property__StringVect swig_types[52]
701 #define SWIGTYPE_p_ob__WidgetBase swig_types[53]
702 #define SWIGTYPE_p_XKeyEvent swig_types[54]
703 #define SWIGTYPE_p_otk__Strut swig_types[55]
704 #define SWIGTYPE_p_unsigned_long swig_types[56]
705 #define SWIGTYPE_p_p_unsigned_long swig_types[57]
706 #define SWIGTYPE_p_XMotionEvent swig_types[58]
707 #define SWIGTYPE_p_XButtonEvent swig_types[59]
708 #define SWIGTYPE_p_XSelectionEvent swig_types[60]
709 #define SWIGTYPE_p_otk__TimerQueueManager swig_types[61]
710 static swig_type_info *swig_types[63];
711
712 /* -------- TYPES TABLE (END) -------- */
713
714
715 /*-----------------------------------------------
716 @(target):= _openbox.so
717 ------------------------------------------------*/
718 #define SWIG_init init_openbox
719
720 #define SWIG_name "_openbox"
721
722 #ifdef HAVE_CONFIG_H
723 # include "../config.h"
724 #endif
725
726 #include "openbox.hh"
727 #include "screen.hh"
728 #include "client.hh"
729 #include "bindings.hh"
730 #include "actions.hh"
731 #include "python.hh"
732 #include "otk/otk.hh"
733
734
735 #define SWIG_MemoryError 1
736 #define SWIG_IOError 2
737 #define SWIG_RuntimeError 3
738 #define SWIG_IndexError 4
739 #define SWIG_TypeError 5
740 #define SWIG_DivisionByZero 6
741 #define SWIG_OverflowError 7
742 #define SWIG_SyntaxError 8
743 #define SWIG_ValueError 9
744 #define SWIG_SystemError 10
745 #define SWIG_UnknownError 99
746
747
748 static void _SWIG_exception(int code, const char *msg) {
749 switch(code) {
750 case SWIG_MemoryError:
751 PyErr_SetString(PyExc_MemoryError,msg);
752 break;
753 case SWIG_IOError:
754 PyErr_SetString(PyExc_IOError,msg);
755 break;
756 case SWIG_RuntimeError:
757 PyErr_SetString(PyExc_RuntimeError,msg);
758 break;
759 case SWIG_IndexError:
760 PyErr_SetString(PyExc_IndexError,msg);
761 break;
762 case SWIG_TypeError:
763 PyErr_SetString(PyExc_TypeError,msg);
764 break;
765 case SWIG_DivisionByZero:
766 PyErr_SetString(PyExc_ZeroDivisionError,msg);
767 break;
768 case SWIG_OverflowError:
769 PyErr_SetString(PyExc_OverflowError,msg);
770 break;
771 case SWIG_SyntaxError:
772 PyErr_SetString(PyExc_SyntaxError,msg);
773 break;
774 case SWIG_ValueError:
775 PyErr_SetString(PyExc_ValueError,msg);
776 break;
777 case SWIG_SystemError:
778 PyErr_SetString(PyExc_SystemError,msg);
779 break;
780 default:
781 PyErr_SetString(PyExc_RuntimeError,msg);
782 break;
783 }
784 }
785
786 #define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
787
788
789 #include <string>
790
791
792 #include <string>
793
794 PyObject* SwigInt_FromBool(bool b) {
795 return PyInt_FromLong(b ? 1L : 0L);
796 }
797 double SwigNumber_Check(PyObject* o) {
798 return PyFloat_Check(o) || PyInt_Check(o);
799 }
800 double SwigNumber_AsDouble(PyObject* o) {
801 return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o)));
802 }
803 PyObject* SwigString_FromString(const std::string& s) {
804 return PyString_FromString(s.c_str());
805 }
806 std::string SwigString_AsString(PyObject* o) {
807 return std::string(PyString_AsString(o));
808 }
809
810
811 #include <vector>
812 #include <algorithm>
813 #include <stdexcept>
814
815
816 ob::Openbox *Openbox_instance() { return ob::openbox; }
817
818
819 namespace ob {
820 void python_callback(PyObject *func, MouseData *data)
821 {
822 PyObject *arglist;
823 PyObject *result;
824
825 arglist = Py_BuildValue("(O)", SWIG_NewPointerObj((void *) data,
826 SWIGTYPE_p_ob__MouseData,
827 0));
828
829 // call the callback
830 result = PyEval_CallObject(func, arglist);
831 if (!result || PyErr_Occurred()) {
832 // an exception occured in the script, display it
833 PyErr_Print();
834 }
835
836 Py_XDECREF(result);
837 Py_DECREF(arglist);
838 }
839
840 void python_callback(PyObject *func, EventData *data)
841 {
842 PyObject *arglist;
843 PyObject *result;
844
845 arglist = Py_BuildValue("(O)", SWIG_NewPointerObj((void *) data,
846 SWIGTYPE_p_ob__EventData,
847 0));
848
849 // call the callback
850 result = PyEval_CallObject(func, arglist);
851 if (!result || PyErr_Occurred()) {
852 // an exception occured in the script, display it
853 PyErr_Print();
854 }
855
856 Py_XDECREF(result);
857 Py_DECREF(arglist);
858 }
859
860 void python_callback(PyObject *func, KeyData *data)
861 {
862 PyObject *arglist;
863 PyObject *result;
864
865 arglist = Py_BuildValue("(O)", SWIG_NewPointerObj((void *) data,
866 SWIGTYPE_p_ob__KeyData,
867 0));
868
869 // call the callback
870 result = PyEval_CallObject(func, arglist);
871 if (!result || PyErr_Occurred()) {
872 // an exception occured in the script, display it
873 PyErr_Print();
874 }
875
876 Py_XDECREF(result);
877 Py_DECREF(arglist);
878 }
879
880 }
881
882
883 #include <iterator>
884
885
886 otk::Display *Display_instance() { return otk::display; }
887
888
889 #include "ustring.hh"
890
891 ob::Client *ob_Screen_client(ob::Screen *self,int i){
892 if (i < 0 || i >= (int)self->clients.size())
893 return NULL;
894 ob::Client::List::iterator it = self->clients.begin();
895 std::advance(it,i);
896 return *it;
897 }
898 int ob_Screen_clientCount(ob::Screen const *self){
899 return (int) self->clients.size();
900 }
901 #ifdef __cplusplus
902 extern "C" {
903 #endif
904 static PyObject *_wrap_Openbox_instance(PyObject *self, PyObject *args) {
905 PyObject *resultobj;
906 ob::Openbox *result;
907
908 if(!PyArg_ParseTuple(args,(char *)":Openbox_instance")) goto fail;
909 result = (ob::Openbox *)Openbox_instance();
910
911 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Openbox, 0);
912 return resultobj;
913 fail:
914 return NULL;
915 }
916
917
918 static PyObject *_wrap_Display_instance(PyObject *self, PyObject *args) {
919 PyObject *resultobj;
920 otk::Display *result;
921
922 if(!PyArg_ParseTuple(args,(char *)":Display_instance")) goto fail;
923 result = (otk::Display *)Display_instance();
924
925 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Display, 0);
926 return resultobj;
927 fail:
928 return NULL;
929 }
930
931
932 static PyObject *_wrap_new_Display(PyObject *self, PyObject *args) {
933 PyObject *resultobj;
934 otk::Display *result;
935
936 if(!PyArg_ParseTuple(args,(char *)":new_Display")) goto fail;
937 result = (otk::Display *)new otk::Display();
938
939 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Display, 1);
940 return resultobj;
941 fail:
942 return NULL;
943 }
944
945
946 static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args) {
947 PyObject *resultobj;
948 otk::Display *arg1 = (otk::Display *) 0 ;
949 PyObject * obj0 = 0 ;
950
951 if(!PyArg_ParseTuple(args,(char *)"O:delete_Display",&obj0)) goto fail;
952 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
953 delete arg1;
954
955 Py_INCREF(Py_None); resultobj = Py_None;
956 return resultobj;
957 fail:
958 return NULL;
959 }
960
961
962 static PyObject *_wrap_Display_gcCache(PyObject *self, PyObject *args) {
963 PyObject *resultobj;
964 otk::Display *arg1 = (otk::Display *) 0 ;
965 otk::GCCache *result;
966 PyObject * obj0 = 0 ;
967
968 if(!PyArg_ParseTuple(args,(char *)"O:Display_gcCache",&obj0)) goto fail;
969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
970 result = (otk::GCCache *)((otk::Display const *)arg1)->gcCache();
971
972 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__GCCache, 0);
973 return resultobj;
974 fail:
975 return NULL;
976 }
977
978
979 static PyObject *_wrap_Display_screenInfo(PyObject *self, PyObject *args) {
980 PyObject *resultobj;
981 otk::Display *arg1 = (otk::Display *) 0 ;
982 int arg2 ;
983 otk::ScreenInfo *result;
984 PyObject * obj0 = 0 ;
985
986 if(!PyArg_ParseTuple(args,(char *)"Oi:Display_screenInfo",&obj0,&arg2)) goto fail;
987 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
988 result = (otk::ScreenInfo *)(arg1)->screenInfo(arg2);
989
990 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0);
991 return resultobj;
992 fail:
993 return NULL;
994 }
995
996
997 static PyObject *_wrap_Display_findScreen(PyObject *self, PyObject *args) {
998 PyObject *resultobj;
999 otk::Display *arg1 = (otk::Display *) 0 ;
1000 Window arg2 ;
1001 otk::ScreenInfo *result;
1002 PyObject * obj0 = 0 ;
1003 PyObject * obj1 = 0 ;
1004
1005 if(!PyArg_ParseTuple(args,(char *)"OO:Display_findScreen",&obj0,&obj1)) goto fail;
1006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1007 arg2 = (Window) PyInt_AsLong(obj1);
1008 if (PyErr_Occurred()) SWIG_fail;
1009 result = (otk::ScreenInfo *)(arg1)->findScreen(arg2);
1010
1011 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0);
1012 return resultobj;
1013 fail:
1014 return NULL;
1015 }
1016
1017
1018 static PyObject *_wrap_Display_xkb(PyObject *self, PyObject *args) {
1019 PyObject *resultobj;
1020 otk::Display *arg1 = (otk::Display *) 0 ;
1021 bool result;
1022 PyObject * obj0 = 0 ;
1023
1024 if(!PyArg_ParseTuple(args,(char *)"O:Display_xkb",&obj0)) goto fail;
1025 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1026 result = (bool)((otk::Display const *)arg1)->xkb();
1027
1028 resultobj = PyInt_FromLong((long)result);
1029 return resultobj;
1030 fail:
1031 return NULL;
1032 }
1033
1034
1035 static PyObject *_wrap_Display_xkbEventBase(PyObject *self, PyObject *args) {
1036 PyObject *resultobj;
1037 otk::Display *arg1 = (otk::Display *) 0 ;
1038 int result;
1039 PyObject * obj0 = 0 ;
1040
1041 if(!PyArg_ParseTuple(args,(char *)"O:Display_xkbEventBase",&obj0)) goto fail;
1042 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1043 result = (int)((otk::Display const *)arg1)->xkbEventBase();
1044
1045 resultobj = PyInt_FromLong((long)result);
1046 return resultobj;
1047 fail:
1048 return NULL;
1049 }
1050
1051
1052 static PyObject *_wrap_Display_shape(PyObject *self, PyObject *args) {
1053 PyObject *resultobj;
1054 otk::Display *arg1 = (otk::Display *) 0 ;
1055 bool result;
1056 PyObject * obj0 = 0 ;
1057
1058 if(!PyArg_ParseTuple(args,(char *)"O:Display_shape",&obj0)) goto fail;
1059 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1060 result = (bool)((otk::Display const *)arg1)->shape();
1061
1062 resultobj = PyInt_FromLong((long)result);
1063 return resultobj;
1064 fail:
1065 return NULL;
1066 }
1067
1068
1069 static PyObject *_wrap_Display_shapeEventBase(PyObject *self, PyObject *args) {
1070 PyObject *resultobj;
1071 otk::Display *arg1 = (otk::Display *) 0 ;
1072 int result;
1073 PyObject * obj0 = 0 ;
1074
1075 if(!PyArg_ParseTuple(args,(char *)"O:Display_shapeEventBase",&obj0)) goto fail;
1076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1077 result = (int)((otk::Display const *)arg1)->shapeEventBase();
1078
1079 resultobj = PyInt_FromLong((long)result);
1080 return resultobj;
1081 fail:
1082 return NULL;
1083 }
1084
1085
1086 static PyObject *_wrap_Display_xinerama(PyObject *self, PyObject *args) {
1087 PyObject *resultobj;
1088 otk::Display *arg1 = (otk::Display *) 0 ;
1089 bool result;
1090 PyObject * obj0 = 0 ;
1091
1092 if(!PyArg_ParseTuple(args,(char *)"O:Display_xinerama",&obj0)) goto fail;
1093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1094 result = (bool)((otk::Display const *)arg1)->xinerama();
1095
1096 resultobj = PyInt_FromLong((long)result);
1097 return resultobj;
1098 fail:
1099 return NULL;
1100 }
1101
1102
1103 static PyObject *_wrap_Display_numLockMask(PyObject *self, PyObject *args) {
1104 PyObject *resultobj;
1105 otk::Display *arg1 = (otk::Display *) 0 ;
1106 unsigned int result;
1107 PyObject * obj0 = 0 ;
1108
1109 if(!PyArg_ParseTuple(args,(char *)"O:Display_numLockMask",&obj0)) goto fail;
1110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1111 result = (unsigned int)((otk::Display const *)arg1)->numLockMask();
1112
1113 resultobj = PyInt_FromLong((long)result);
1114 return resultobj;
1115 fail:
1116 return NULL;
1117 }
1118
1119
1120 static PyObject *_wrap_Display_scrollLockMask(PyObject *self, PyObject *args) {
1121 PyObject *resultobj;
1122 otk::Display *arg1 = (otk::Display *) 0 ;
1123 unsigned int result;
1124 PyObject * obj0 = 0 ;
1125
1126 if(!PyArg_ParseTuple(args,(char *)"O:Display_scrollLockMask",&obj0)) goto fail;
1127 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1128 result = (unsigned int)((otk::Display const *)arg1)->scrollLockMask();
1129
1130 resultobj = PyInt_FromLong((long)result);
1131 return resultobj;
1132 fail:
1133 return NULL;
1134 }
1135
1136
1137 static PyObject *_wrap_Display___mul__(PyObject *self, PyObject *args) {
1138 PyObject *resultobj;
1139 otk::Display *arg1 = (otk::Display *) 0 ;
1140 Display *result;
1141 PyObject * obj0 = 0 ;
1142
1143 if(!PyArg_ParseTuple(args,(char *)"O:Display___mul__",&obj0)) goto fail;
1144 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1145 result = (Display *)((otk::Display const *)arg1)->operator *();
1146
1147 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Display, 0);
1148 return resultobj;
1149 fail:
1150 return NULL;
1151 }
1152
1153
1154 static PyObject *_wrap_Display_grab(PyObject *self, PyObject *args) {
1155 PyObject *resultobj;
1156 otk::Display *arg1 = (otk::Display *) 0 ;
1157 PyObject * obj0 = 0 ;
1158
1159 if(!PyArg_ParseTuple(args,(char *)"O:Display_grab",&obj0)) goto fail;
1160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1161 (arg1)->grab();
1162
1163 Py_INCREF(Py_None); resultobj = Py_None;
1164 return resultobj;
1165 fail:
1166 return NULL;
1167 }
1168
1169
1170 static PyObject *_wrap_Display_ungrab(PyObject *self, PyObject *args) {
1171 PyObject *resultobj;
1172 otk::Display *arg1 = (otk::Display *) 0 ;
1173 PyObject * obj0 = 0 ;
1174
1175 if(!PyArg_ParseTuple(args,(char *)"O:Display_ungrab",&obj0)) goto fail;
1176 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1177 (arg1)->ungrab();
1178
1179 Py_INCREF(Py_None); resultobj = Py_None;
1180 return resultobj;
1181 fail:
1182 return NULL;
1183 }
1184
1185
1186 static PyObject *_wrap_Display_grabButton(PyObject *self, PyObject *args) {
1187 PyObject *resultobj;
1188 otk::Display *arg1 = (otk::Display *) 0 ;
1189 unsigned int arg2 ;
1190 unsigned int arg3 ;
1191 Window arg4 ;
1192 bool arg5 ;
1193 unsigned int arg6 ;
1194 int arg7 ;
1195 int arg8 ;
1196 Window arg9 ;
1197 Cursor arg10 ;
1198 bool arg11 ;
1199 PyObject * obj0 = 0 ;
1200 PyObject * obj1 = 0 ;
1201 PyObject * obj2 = 0 ;
1202 PyObject * obj3 = 0 ;
1203 PyObject * obj4 = 0 ;
1204 PyObject * obj5 = 0 ;
1205 PyObject * obj8 = 0 ;
1206 PyObject * obj9 = 0 ;
1207 PyObject * obj10 = 0 ;
1208
1209 if(!PyArg_ParseTuple(args,(char *)"OOOOOOiiOOO:Display_grabButton",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&arg7,&arg8,&obj8,&obj9,&obj10)) goto fail;
1210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1211 arg2 = (unsigned int) PyInt_AsLong(obj1);
1212 if (PyErr_Occurred()) SWIG_fail;
1213 arg3 = (unsigned int) PyInt_AsLong(obj2);
1214 if (PyErr_Occurred()) SWIG_fail;
1215 arg4 = (Window) PyInt_AsLong(obj3);
1216 if (PyErr_Occurred()) SWIG_fail;
1217 arg5 = (bool) PyInt_AsLong(obj4);
1218 if (PyErr_Occurred()) SWIG_fail;
1219 arg6 = (unsigned int) PyInt_AsLong(obj5);
1220 if (PyErr_Occurred()) SWIG_fail;
1221 arg9 = (Window) PyInt_AsLong(obj8);
1222 if (PyErr_Occurred()) SWIG_fail;
1223 arg10 = (Cursor) PyInt_AsLong(obj9);
1224 if (PyErr_Occurred()) SWIG_fail;
1225 arg11 = (bool) PyInt_AsLong(obj10);
1226 if (PyErr_Occurred()) SWIG_fail;
1227 ((otk::Display const *)arg1)->grabButton(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
1228
1229 Py_INCREF(Py_None); resultobj = Py_None;
1230 return resultobj;
1231 fail:
1232 return NULL;
1233 }
1234
1235
1236 static PyObject *_wrap_Display_ungrabButton(PyObject *self, PyObject *args) {
1237 PyObject *resultobj;
1238 otk::Display *arg1 = (otk::Display *) 0 ;
1239 unsigned int arg2 ;
1240 unsigned int arg3 ;
1241 Window arg4 ;
1242 PyObject * obj0 = 0 ;
1243 PyObject * obj1 = 0 ;
1244 PyObject * obj2 = 0 ;
1245 PyObject * obj3 = 0 ;
1246
1247 if(!PyArg_ParseTuple(args,(char *)"OOOO:Display_ungrabButton",&obj0,&obj1,&obj2,&obj3)) goto fail;
1248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1249 arg2 = (unsigned int) PyInt_AsLong(obj1);
1250 if (PyErr_Occurred()) SWIG_fail;
1251 arg3 = (unsigned int) PyInt_AsLong(obj2);
1252 if (PyErr_Occurred()) SWIG_fail;
1253 arg4 = (Window) PyInt_AsLong(obj3);
1254 if (PyErr_Occurred()) SWIG_fail;
1255 ((otk::Display const *)arg1)->ungrabButton(arg2,arg3,arg4);
1256
1257 Py_INCREF(Py_None); resultobj = Py_None;
1258 return resultobj;
1259 fail:
1260 return NULL;
1261 }
1262
1263
1264 static PyObject *_wrap_Display_grabKey(PyObject *self, PyObject *args) {
1265 PyObject *resultobj;
1266 otk::Display *arg1 = (otk::Display *) 0 ;
1267 unsigned int arg2 ;
1268 unsigned int arg3 ;
1269 Window arg4 ;
1270 bool arg5 ;
1271 int arg6 ;
1272 int arg7 ;
1273 bool arg8 ;
1274 PyObject * obj0 = 0 ;
1275 PyObject * obj1 = 0 ;
1276 PyObject * obj2 = 0 ;
1277 PyObject * obj3 = 0 ;
1278 PyObject * obj4 = 0 ;
1279 PyObject * obj7 = 0 ;
1280
1281 if(!PyArg_ParseTuple(args,(char *)"OOOOOiiO:Display_grabKey",&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7,&obj7)) goto fail;
1282 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1283 arg2 = (unsigned int) PyInt_AsLong(obj1);
1284 if (PyErr_Occurred()) SWIG_fail;
1285 arg3 = (unsigned int) PyInt_AsLong(obj2);
1286 if (PyErr_Occurred()) SWIG_fail;
1287 arg4 = (Window) PyInt_AsLong(obj3);
1288 if (PyErr_Occurred()) SWIG_fail;
1289 arg5 = (bool) PyInt_AsLong(obj4);
1290 if (PyErr_Occurred()) SWIG_fail;
1291 arg8 = (bool) PyInt_AsLong(obj7);
1292 if (PyErr_Occurred()) SWIG_fail;
1293 ((otk::Display const *)arg1)->grabKey(arg2,arg3,arg4,arg5,arg6,arg7,arg8);
1294
1295 Py_INCREF(Py_None); resultobj = Py_None;
1296 return resultobj;
1297 fail:
1298 return NULL;
1299 }
1300
1301
1302 static PyObject *_wrap_Display_ungrabKey(PyObject *self, PyObject *args) {
1303 PyObject *resultobj;
1304 otk::Display *arg1 = (otk::Display *) 0 ;
1305 unsigned int arg2 ;
1306 unsigned int arg3 ;
1307 Window arg4 ;
1308 PyObject * obj0 = 0 ;
1309 PyObject * obj1 = 0 ;
1310 PyObject * obj2 = 0 ;
1311 PyObject * obj3 = 0 ;
1312
1313 if(!PyArg_ParseTuple(args,(char *)"OOOO:Display_ungrabKey",&obj0,&obj1,&obj2,&obj3)) goto fail;
1314 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1315 arg2 = (unsigned int) PyInt_AsLong(obj1);
1316 if (PyErr_Occurred()) SWIG_fail;
1317 arg3 = (unsigned int) PyInt_AsLong(obj2);
1318 if (PyErr_Occurred()) SWIG_fail;
1319 arg4 = (Window) PyInt_AsLong(obj3);
1320 if (PyErr_Occurred()) SWIG_fail;
1321 ((otk::Display const *)arg1)->ungrabKey(arg2,arg3,arg4);
1322
1323 Py_INCREF(Py_None); resultobj = Py_None;
1324 return resultobj;
1325 fail:
1326 return NULL;
1327 }
1328
1329
1330 static PyObject * Display_swigregister(PyObject *self, PyObject *args) {
1331 PyObject *obj;
1332 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1333 SWIG_TypeClientData(SWIGTYPE_p_otk__Display, obj);
1334 Py_INCREF(obj);
1335 return Py_BuildValue((char *)"");
1336 }
1337 static PyObject *_wrap_new_Point__SWIG_0(PyObject *self, PyObject *args) {
1338 PyObject *resultobj;
1339 otk::Point *result;
1340
1341 if(!PyArg_ParseTuple(args,(char *)":new_Point")) goto fail;
1342 result = (otk::Point *)new otk::Point();
1343
1344 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Point, 1);
1345 return resultobj;
1346 fail:
1347 return NULL;
1348 }
1349
1350
1351 static PyObject *_wrap_new_Point__SWIG_1(PyObject *self, PyObject *args) {
1352 PyObject *resultobj;
1353 int arg1 ;
1354 int arg2 ;
1355 otk::Point *result;
1356
1357 if(!PyArg_ParseTuple(args,(char *)"ii:new_Point",&arg1,&arg2)) goto fail;
1358 result = (otk::Point *)new otk::Point(arg1,arg2);
1359
1360 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Point, 1);
1361 return resultobj;
1362 fail:
1363 return NULL;
1364 }
1365
1366
1367 static PyObject *_wrap_new_Point(PyObject *self, PyObject *args) {
1368 int argc;
1369 PyObject *argv[3];
1370 int ii;
1371
1372 argc = PyObject_Length(args);
1373 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
1374 argv[ii] = PyTuple_GetItem(args,ii);
1375 }
1376 if (argc == 0) {
1377 return _wrap_new_Point__SWIG_0(self,args);
1378 }
1379 if (argc == 2) {
1380 int _v;
1381 {
1382 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
1383 }
1384 if (_v) {
1385 {
1386 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1387 }
1388 if (_v) {
1389 return _wrap_new_Point__SWIG_1(self,args);
1390 }
1391 }
1392 }
1393
1394 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Point'");
1395 return NULL;
1396 }
1397
1398
1399 static PyObject *_wrap_Point_setX(PyObject *self, PyObject *args) {
1400 PyObject *resultobj;
1401 otk::Point *arg1 = (otk::Point *) 0 ;
1402 int arg2 ;
1403 PyObject * obj0 = 0 ;
1404
1405 if(!PyArg_ParseTuple(args,(char *)"Oi:Point_setX",&obj0,&arg2)) goto fail;
1406 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1407 (arg1)->setX(arg2);
1408
1409 Py_INCREF(Py_None); resultobj = Py_None;
1410 return resultobj;
1411 fail:
1412 return NULL;
1413 }
1414
1415
1416 static PyObject *_wrap_Point_x(PyObject *self, PyObject *args) {
1417 PyObject *resultobj;
1418 otk::Point *arg1 = (otk::Point *) 0 ;
1419 int result;
1420 PyObject * obj0 = 0 ;
1421
1422 if(!PyArg_ParseTuple(args,(char *)"O:Point_x",&obj0)) goto fail;
1423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1424 result = (int)((otk::Point const *)arg1)->x();
1425
1426 resultobj = PyInt_FromLong((long)result);
1427 return resultobj;
1428 fail:
1429 return NULL;
1430 }
1431
1432
1433 static PyObject *_wrap_Point_setY(PyObject *self, PyObject *args) {
1434 PyObject *resultobj;
1435 otk::Point *arg1 = (otk::Point *) 0 ;
1436 int arg2 ;
1437 PyObject * obj0 = 0 ;
1438
1439 if(!PyArg_ParseTuple(args,(char *)"Oi:Point_setY",&obj0,&arg2)) goto fail;
1440 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1441 (arg1)->setY(arg2);
1442
1443 Py_INCREF(Py_None); resultobj = Py_None;
1444 return resultobj;
1445 fail:
1446 return NULL;
1447 }
1448
1449
1450 static PyObject *_wrap_Point_y(PyObject *self, PyObject *args) {
1451 PyObject *resultobj;
1452 otk::Point *arg1 = (otk::Point *) 0 ;
1453 int result;
1454 PyObject * obj0 = 0 ;
1455
1456 if(!PyArg_ParseTuple(args,(char *)"O:Point_y",&obj0)) goto fail;
1457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1458 result = (int)((otk::Point const *)arg1)->y();
1459
1460 resultobj = PyInt_FromLong((long)result);
1461 return resultobj;
1462 fail:
1463 return NULL;
1464 }
1465
1466
1467 static PyObject *_wrap_Point_setPoint(PyObject *self, PyObject *args) {
1468 PyObject *resultobj;
1469 otk::Point *arg1 = (otk::Point *) 0 ;
1470 int arg2 ;
1471 int arg3 ;
1472 PyObject * obj0 = 0 ;
1473
1474 if(!PyArg_ParseTuple(args,(char *)"Oii:Point_setPoint",&obj0,&arg2,&arg3)) goto fail;
1475 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1476 (arg1)->setPoint(arg2,arg3);
1477
1478 Py_INCREF(Py_None); resultobj = Py_None;
1479 return resultobj;
1480 fail:
1481 return NULL;
1482 }
1483
1484
1485 static PyObject * Point_swigregister(PyObject *self, PyObject *args) {
1486 PyObject *obj;
1487 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1488 SWIG_TypeClientData(SWIGTYPE_p_otk__Point, obj);
1489 Py_INCREF(obj);
1490 return Py_BuildValue((char *)"");
1491 }
1492 static PyObject *_wrap_new_Property(PyObject *self, PyObject *args) {
1493 PyObject *resultobj;
1494 otk::Property *result;
1495
1496 if(!PyArg_ParseTuple(args,(char *)":new_Property")) goto fail;
1497 result = (otk::Property *)new otk::Property();
1498
1499 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Property, 1);
1500 return resultobj;
1501 fail:
1502 return NULL;
1503 }
1504
1505
1506 static PyObject *_wrap_delete_Property(PyObject *self, PyObject *args) {
1507 PyObject *resultobj;
1508 otk::Property *arg1 = (otk::Property *) 0 ;
1509 PyObject * obj0 = 0 ;
1510
1511 if(!PyArg_ParseTuple(args,(char *)"O:delete_Property",&obj0)) goto fail;
1512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Property,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1513 delete arg1;
1514
1515 Py_INCREF(Py_None); resultobj = Py_None;
1516 return resultobj;
1517 fail:
1518 return NULL;
1519 }
1520
1521
1522 static PyObject *_wrap_Property_set__SWIG_0(PyObject *self, PyObject *args) {
1523 PyObject *resultobj;
1524 otk::Property *arg1 = (otk::Property *) 0 ;
1525 Window arg2 ;
1526 int arg3 ;
1527 int arg4 ;
1528 unsigned long arg5 ;
1529 PyObject * obj0 = 0 ;
1530 PyObject * obj1 = 0 ;
1531 PyObject * obj4 = 0 ;
1532
1533 if(!PyArg_ParseTuple(args,(char *)"OOiiO:Property_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
1534 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Property,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1535 arg2 = (Window) PyInt_AsLong(obj1);
1536 if (PyErr_Occurred()) SWIG_fail;
1537 arg5 = (unsigned long) PyInt_AsLong(obj4);
1538 if (PyErr_Occurred()) SWIG_fail;
1539 ((otk::Property const *)arg1)->set(arg2,(otk::Property::Atoms )arg3,(otk::Property::Atoms )arg4,arg5);
1540
1541 Py_INCREF(Py_None); resultobj = Py_None;
1542 return resultobj;
1543 fail:
1544 return NULL;
1545 }
1546
1547
1548 static PyObject *_wrap_Property_set__SWIG_1(PyObject *self, PyObject *args) {
1549 PyObject *resultobj;
1550 otk::Property *arg1 = (otk::Property *) 0 ;
1551 Window arg2 ;
1552 int arg3 ;
1553 int arg4 ;
1554 unsigned long *arg5 ;
1555 int arg6 ;
1556 PyObject * obj0 = 0 ;
1557 PyObject * obj1 = 0 ;
1558 PyObject * obj4 = 0 ;
1559
1560 if(!PyArg_ParseTuple(args,(char *)"OOiiOi:Property_set",&obj0,&obj1,&arg3,&arg4,&obj4,&arg6)) goto fail;
1561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Property,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1562 arg2 = (Window) PyInt_AsLong(obj1);
1563 if (PyErr_Occurred()) SWIG_fail;
1564 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1565 ((otk::Property const *)arg1)->set(arg2,(otk::Property::Atoms )arg3,(otk::Property::Atoms )arg4,arg5,arg6);
1566
1567 Py_INCREF(Py_None); resultobj = Py_None;
1568 return resultobj;
1569 fail:
1570 return NULL;
1571 }
1572
1573
1574 static PyObject *_wrap_Property_set__SWIG_2(PyObject *self, PyObject *args) {
1575 PyObject *resultobj;
1576 otk::Property *arg1 = (otk::Property *) 0 ;
1577 Window arg2 ;
1578 int arg3 ;
1579 int arg4 ;
1580 otk::ustring *arg5 = 0 ;
1581 otk::ustring temp5 ;
1582 PyObject * obj0 = 0 ;
1583 PyObject * obj1 = 0 ;
1584 PyObject * obj4 = 0 ;
1585
1586 if(!PyArg_ParseTuple(args,(char *)"OOiiO:Property_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
1587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Property,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1588 arg2 = (Window) PyInt_AsLong(obj1);
1589 if (PyErr_Occurred()) SWIG_fail;
1590 {
1591 if (PyString_Check(obj4)) {
1592 temp5 = otk::ustring(PyString_AsString(obj4));
1593 arg5 = &temp5;
1594 }else {
1595 SWIG_exception(SWIG_TypeError, "ustring expected");
1596 }
1597 }
1598 ((otk::Property const *)arg1)->set(arg2,(otk::Property::Atoms )arg3,(otk::Property::StringType )arg4,(otk::ustring const &)*arg5);
1599
1600 Py_INCREF(Py_None); resultobj = Py_None;
1601 return resultobj;
1602 fail:
1603 return NULL;
1604 }
1605
1606
1607 static PyObject *_wrap_Property_set__SWIG_3(PyObject *self, PyObject *args) {
1608 PyObject *resultobj;
1609 otk::Property *arg1 = (otk::Property *) 0 ;
1610 Window arg2 ;
1611 int arg3 ;
1612 int arg4 ;
1613 otk::Property::StringVect *arg5 = 0 ;
1614 PyObject * obj0 = 0 ;
1615 PyObject * obj1 = 0 ;
1616 PyObject * obj4 = 0 ;
1617
1618 if(!PyArg_ParseTuple(args,(char *)"OOiiO:Property_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
1619 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Property,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1620 arg2 = (Window) PyInt_AsLong(obj1);
1621 if (PyErr_Occurred()) SWIG_fail;
1622 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_otk__Property__StringVect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1623 if (arg5 == NULL) {
1624 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1625 }
1626 ((otk::Property const *)arg1)->set(arg2,(otk::Property::Atoms )arg3,(otk::Property::StringType )arg4,(otk::Property::StringVect const &)*arg5);
1627
1628 Py_INCREF(Py_None); resultobj = Py_None;
1629 return resultobj;
1630 fail:
1631 return NULL;
1632 }
1633
1634
1635 static PyObject *_wrap_Property_set(PyObject *self, PyObject *args) {
1636 int argc;
1637 PyObject *argv[7];
1638 int ii;
1639
1640 argc = PyObject_Length(args);
1641 for (ii = 0; (ii < argc) && (ii < 6); ii++) {
1642 argv[ii] = PyTuple_GetItem(args,ii);
1643 }
1644 if (argc == 5) {
1645 int _v;
1646 {
1647 void *ptr;
1648 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Property, 0) == -1) {
1649 _v = 0;
1650 PyErr_Clear();
1651 }else {
1652 _v = 1;
1653 }
1654 }
1655 if (_v) {
1656 {
1657 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1658 }
1659 if (_v) {
1660 {
1661 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1662 }
1663 if (_v) {
1664 {
1665 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1666 }
1667 if (_v) {
1668 {
1669 void *ptr;
1670 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_otk__Property__StringVect, 0) == -1) {
1671 _v = 0;
1672 PyErr_Clear();
1673 }else {
1674 _v = 1;
1675 }
1676 }
1677 if (_v) {
1678 return _wrap_Property_set__SWIG_3(self,args);
1679 }
1680 }
1681 }
1682 }
1683 }
1684 }
1685 if (argc == 5) {
1686 int _v;
1687 {
1688 void *ptr;
1689 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Property, 0) == -1) {
1690 _v = 0;
1691 PyErr_Clear();
1692 }else {
1693 _v = 1;
1694 }
1695 }
1696 if (_v) {
1697 {
1698 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1699 }
1700 if (_v) {
1701 {
1702 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1703 }
1704 if (_v) {
1705 {
1706 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1707 }
1708 if (_v) {
1709 {
1710 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
1711 }
1712 if (_v) {
1713 return _wrap_Property_set__SWIG_0(self,args);
1714 }
1715 }
1716 }
1717 }
1718 }
1719 }
1720 if (argc == 5) {
1721 int _v;
1722 {
1723 void *ptr;
1724 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Property, 0) == -1) {
1725 _v = 0;
1726 PyErr_Clear();
1727 }else {
1728 _v = 1;
1729 }
1730 }
1731 if (_v) {
1732 {
1733 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1734 }
1735 if (_v) {
1736 {
1737 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1738 }
1739 if (_v) {
1740 {
1741 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1742 }
1743 if (_v) {
1744 {
1745 _v = PyString_Check(argv[4]) ? 1 : 0;
1746 }
1747 if (_v) {
1748 return _wrap_Property_set__SWIG_2(self,args);
1749 }
1750 }
1751 }
1752 }
1753 }
1754 }
1755 if (argc == 6) {
1756 int _v;
1757 {
1758 void *ptr;
1759 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Property, 0) == -1) {
1760 _v = 0;
1761 PyErr_Clear();
1762 }else {
1763 _v = 1;
1764 }
1765 }
1766 if (_v) {
1767 {
1768 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1769 }
1770 if (_v) {
1771 {
1772 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1773 }
1774 if (_v) {
1775 {
1776 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1777 }
1778 if (_v) {
1779 {
1780 void *ptr;
1781 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
1782 _v = 0;
1783 PyErr_Clear();
1784 }else {
1785 _v = 1;
1786 }
1787 }
1788 if (_v) {
1789 {
1790 _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
1791 }
1792 if (_v) {
1793 return _wrap_Property_set__SWIG_1(self,args);
1794 }
1795 }
1796 }
1797 }
1798 }
1799 }
1800 }
1801
1802 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Property_set'");
1803 return NULL;
1804 }
1805
1806
1807 static PyObject *_wrap_Property_get__SWIG_0(PyObject *self, PyObject *args) {
1808 PyObject *resultobj;
1809 otk::Property *arg1 = (otk::Property *) 0 ;
1810 Window arg2 ;
1811 int arg3 ;
1812 int arg4 ;
1813 unsigned long *arg5 = (unsigned long *) 0 ;
1814 unsigned long **arg6 = (unsigned long **) 0 ;
1815 bool result;
1816 PyObject * obj0 = 0 ;
1817 PyObject * obj1 = 0 ;
1818 PyObject * obj4 = 0 ;
1819 PyObject * obj5 = 0 ;
1820
1821 if(!PyArg_ParseTuple(args,(char *)"OOiiOO:Property_get",&obj0,&obj1,&arg3,&arg4,&obj4,&obj5)) goto fail;
1822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Property,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1823 arg2 = (Window) PyInt_AsLong(obj1);
1824 if (PyErr_Occurred()) SWIG_fail;
1825 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1826 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1827 result = (bool)((otk::Property const *)arg1)->get(arg2,(otk::Property::Atoms )arg3,(otk::Property::Atoms )arg4,arg5,arg6);
1828
1829 resultobj = PyInt_FromLong((long)result);
1830 return resultobj;
1831 fail:
1832 return NULL;
1833 }
1834
1835
1836 static PyObject *_wrap_Property_get__SWIG_1(PyObject *self, PyObject *args) {
1837 PyObject *resultobj;
1838 otk::Property *arg1 = (otk::Property *) 0 ;
1839 Window arg2 ;
1840 int arg3 ;
1841 int arg4 ;
1842 unsigned long *arg5 = (unsigned long *) 0 ;
1843 bool result;
1844 PyObject * obj0 = 0 ;
1845 PyObject * obj1 = 0 ;
1846 PyObject * obj4 = 0 ;
1847
1848 if(!PyArg_ParseTuple(args,(char *)"OOiiO:Property_get",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
1849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Property,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1850 arg2 = (Window) PyInt_AsLong(obj1);
1851 if (PyErr_Occurred()) SWIG_fail;
1852 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1853 result = (bool)((otk::Property const *)arg1)->get(arg2,(otk::Property::Atoms )arg3,(otk::Property::Atoms )arg4,arg5);
1854
1855 resultobj = PyInt_FromLong((long)result);
1856 return resultobj;
1857 fail:
1858 return NULL;
1859 }
1860
1861
1862 static PyObject *_wrap_Property_get__SWIG_2(PyObject *self, PyObject *args) {
1863 PyObject *resultobj;
1864 otk::Property *arg1 = (otk::Property *) 0 ;
1865 Window arg2 ;
1866 int arg3 ;
1867 int arg4 ;
1868 otk::ustring *arg5 = (otk::ustring *) 0 ;
1869 bool result;
1870 PyObject * obj0 = 0 ;
1871 PyObject * obj1 = 0 ;
1872 PyObject * obj4 = 0 ;
1873
1874 if(!PyArg_ParseTuple(args,(char *)"OOiiO:Property_get",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
1875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Property,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1876 arg2 = (Window) PyInt_AsLong(obj1);
1877 if (PyErr_Occurred()) SWIG_fail;
1878 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_otk__ustring,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1879 result = (bool)((otk::Property const *)arg1)->get(arg2,(otk::Property::Atoms )arg3,(otk::Property::StringType )arg4,arg5);
1880
1881 resultobj = PyInt_FromLong((long)result);
1882 return resultobj;
1883 fail:
1884 return NULL;
1885 }
1886
1887
1888 static PyObject *_wrap_Property_get__SWIG_3(PyObject *self, PyObject *args) {
1889 PyObject *resultobj;
1890 otk::Property *arg1 = (otk::Property *) 0 ;
1891 Window arg2 ;
1892 int arg3 ;
1893 int arg4 ;
1894 unsigned long *arg5 = (unsigned long *) 0 ;
1895 otk::Property::StringVect *arg6 = (otk::Property::StringVect *) 0 ;
1896 bool result;
1897 PyObject * obj0 = 0 ;
1898 PyObject * obj1 = 0 ;
1899 PyObject * obj4 = 0 ;
1900 PyObject * obj5 = 0 ;
1901
1902 if(!PyArg_ParseTuple(args,(char *)"OOiiOO:Property_get",&obj0,&obj1,&arg3,&arg4,&obj4,&obj5)) goto fail;
1903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Property,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1904 arg2 = (Window) PyInt_AsLong(obj1);
1905 if (PyErr_Occurred()) SWIG_fail;
1906 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1907 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_otk__Property__StringVect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1908 result = (bool)((otk::Property const *)arg1)->get(arg2,(otk::Property::Atoms )arg3,(otk::Property::StringType )arg4,arg5,arg6);
1909
1910 resultobj = PyInt_FromLong((long)result);
1911 return resultobj;
1912 fail:
1913 return NULL;
1914 }
1915
1916
1917 static PyObject *_wrap_Property_get(PyObject *self, PyObject *args) {
1918 int argc;
1919 PyObject *argv[7];
1920 int ii;
1921
1922 argc = PyObject_Length(args);
1923 for (ii = 0; (ii < argc) && (ii < 6); ii++) {
1924 argv[ii] = PyTuple_GetItem(args,ii);
1925 }
1926 if (argc == 5) {
1927 int _v;
1928 {
1929 void *ptr;
1930 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Property, 0) == -1) {
1931 _v = 0;
1932 PyErr_Clear();
1933 }else {
1934 _v = 1;
1935 }
1936 }
1937 if (_v) {
1938 {
1939 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1940 }
1941 if (_v) {
1942 {
1943 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1944 }
1945 if (_v) {
1946 {
1947 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1948 }
1949 if (_v) {
1950 {
1951 void *ptr;
1952 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
1953 _v = 0;
1954 PyErr_Clear();
1955 }else {
1956 _v = 1;
1957 }
1958 }
1959 if (_v) {
1960 return _wrap_Property_get__SWIG_1(self,args);
1961 }
1962 }
1963 }
1964 }
1965 }
1966 }
1967 if (argc == 5) {
1968 int _v;
1969 {
1970 void *ptr;
1971 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Property, 0) == -1) {
1972 _v = 0;
1973 PyErr_Clear();
1974 }else {
1975 _v = 1;
1976 }
1977 }
1978 if (_v) {
1979 {
1980 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1981 }
1982 if (_v) {
1983 {
1984 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1985 }
1986 if (_v) {
1987 {
1988 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1989 }
1990 if (_v) {
1991 {
1992 void *ptr;
1993 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_otk__ustring, 0) == -1) {
1994 _v = 0;
1995 PyErr_Clear();
1996 }else {
1997 _v = 1;
1998 }
1999 }
2000 if (_v) {
2001 return _wrap_Property_get__SWIG_2(self,args);
2002 }
2003 }
2004 }
2005 }
2006 }
2007 }
2008 if (argc == 6) {
2009 int _v;
2010 {
2011 void *ptr;
2012 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Property, 0) == -1) {
2013 _v = 0;
2014 PyErr_Clear();
2015 }else {
2016 _v = 1;
2017 }
2018 }
2019 if (_v) {
2020 {
2021 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2022 }
2023 if (_v) {
2024 {
2025 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2026 }
2027 if (_v) {
2028 {
2029 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
2030 }
2031 if (_v) {
2032 {
2033 void *ptr;
2034 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
2035 _v = 0;
2036 PyErr_Clear();
2037 }else {
2038 _v = 1;
2039 }
2040 }
2041 if (_v) {
2042 {
2043 void *ptr;
2044 if (SWIG_ConvertPtr(argv[5], (void **) &ptr, SWIGTYPE_p_p_unsigned_long, 0) == -1) {
2045 _v = 0;
2046 PyErr_Clear();
2047 }else {
2048 _v = 1;
2049 }
2050 }
2051 if (_v) {
2052 return _wrap_Property_get__SWIG_0(self,args);
2053 }
2054 }
2055 }
2056 }
2057 }
2058 }
2059 }
2060 if (argc == 6) {
2061 int _v;
2062 {
2063 void *ptr;
2064 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Property, 0) == -1) {
2065 _v = 0;
2066 PyErr_Clear();
2067 }else {
2068 _v = 1;
2069 }
2070 }
2071 if (_v) {
2072 {
2073 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2074 }
2075 if (_v) {
2076 {
2077 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2078 }
2079 if (_v) {
2080 {
2081 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
2082 }
2083 if (_v) {
2084 {
2085 void *ptr;
2086 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
2087 _v = 0;
2088 PyErr_Clear();
2089 }else {
2090 _v = 1;
2091 }
2092 }
2093 if (_v) {
2094 {
2095 void *ptr;
2096 if (SWIG_ConvertPtr(argv[5], (void **) &ptr, SWIGTYPE_p_otk__Property__StringVect, 0) == -1) {
2097 _v = 0;
2098 PyErr_Clear();
2099 }else {
2100 _v = 1;
2101 }
2102 }
2103 if (_v) {
2104 return _wrap_Property_get__SWIG_3(self,args);
2105 }
2106 }
2107 }
2108 }
2109 }
2110 }
2111 }
2112
2113 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Property_get'");
2114 return NULL;
2115 }
2116
2117
2118 static PyObject *_wrap_Property_erase(PyObject *self, PyObject *args) {
2119 PyObject *resultobj;
2120 otk::Property *arg1 = (otk::Property *) 0 ;
2121 Window arg2 ;
2122 int arg3 ;
2123 PyObject * obj0 = 0 ;
2124 PyObject * obj1 = 0 ;
2125
2126 if(!PyArg_ParseTuple(args,(char *)"OOi:Property_erase",&obj0,&obj1,&arg3)) goto fail;
2127 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Property,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2128 arg2 = (Window) PyInt_AsLong(obj1);
2129 if (PyErr_Occurred()) SWIG_fail;
2130 ((otk::Property const *)arg1)->erase(arg2,(otk::Property::Atoms )arg3);
2131
2132 Py_INCREF(Py_None); resultobj = Py_None;
2133 return resultobj;
2134 fail:
2135 return NULL;
2136 }
2137
2138
2139 static PyObject *_wrap_Property_atom(PyObject *self, PyObject *args) {
2140 PyObject *resultobj;
2141 otk::Property *arg1 = (otk::Property *) 0 ;
2142 int arg2 ;
2143 Atom result;
2144 PyObject * obj0 = 0 ;
2145
2146 if(!PyArg_ParseTuple(args,(char *)"Oi:Property_atom",&obj0,&arg2)) goto fail;
2147 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Property,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2148 result = (Atom)((otk::Property const *)arg1)->atom((otk::Property::Atoms )arg2);
2149
2150 resultobj = PyInt_FromLong((long)result);
2151 return resultobj;
2152 fail:
2153 return NULL;
2154 }
2155
2156
2157 static PyObject * Property_swigregister(PyObject *self, PyObject *args) {
2158 PyObject *obj;
2159 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2160 SWIG_TypeClientData(SWIGTYPE_p_otk__Property, obj);
2161 Py_INCREF(obj);
2162 return Py_BuildValue((char *)"");
2163 }
2164 static PyObject *_wrap_new_Rect__SWIG_0(PyObject *self, PyObject *args) {
2165 PyObject *resultobj;
2166 otk::Rect *result;
2167
2168 if(!PyArg_ParseTuple(args,(char *)":new_Rect")) goto fail;
2169 result = (otk::Rect *)new otk::Rect();
2170
2171 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
2172 return resultobj;
2173 fail:
2174 return NULL;
2175 }
2176
2177
2178 static PyObject *_wrap_new_Rect__SWIG_1(PyObject *self, PyObject *args) {
2179 PyObject *resultobj;
2180 int arg1 ;
2181 int arg2 ;
2182 int arg3 ;
2183 int arg4 ;
2184 otk::Rect *result;
2185
2186 if(!PyArg_ParseTuple(args,(char *)"iiii:new_Rect",&arg1,&arg2,&arg3,&arg4)) goto fail;
2187 result = (otk::Rect *)new otk::Rect(arg1,arg2,arg3,arg4);
2188
2189 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
2190 return resultobj;
2191 fail:
2192 return NULL;
2193 }
2194
2195
2196 static PyObject *_wrap_new_Rect__SWIG_2(PyObject *self, PyObject *args) {
2197 PyObject *resultobj;
2198 otk::Point *arg1 = 0 ;
2199 otk::Point *arg2 = 0 ;
2200 otk::Rect *result;
2201 PyObject * obj0 = 0 ;
2202 PyObject * obj1 = 0 ;
2203
2204 if(!PyArg_ParseTuple(args,(char *)"OO:new_Rect",&obj0,&obj1)) goto fail;
2205 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2206 if (arg1 == NULL) {
2207 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2208 }
2209 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2210 if (arg2 == NULL) {
2211 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2212 }
2213 result = (otk::Rect *)new otk::Rect((otk::Point const &)*arg1,(otk::Point const &)*arg2);
2214
2215 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
2216 return resultobj;
2217 fail:
2218 return NULL;
2219 }
2220
2221
2222 static PyObject *_wrap_new_Rect__SWIG_3(PyObject *self, PyObject *args) {
2223 PyObject *resultobj;
2224 otk::Rect *arg1 = 0 ;
2225 otk::Rect *result;
2226 PyObject * obj0 = 0 ;
2227
2228 if(!PyArg_ParseTuple(args,(char *)"O:new_Rect",&obj0)) goto fail;
2229 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2230 if (arg1 == NULL) {
2231 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2232 }
2233 result = (otk::Rect *)new otk::Rect((otk::Rect const &)*arg1);
2234
2235 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
2236 return resultobj;
2237 fail:
2238 return NULL;
2239 }
2240
2241
2242 static PyObject *_wrap_new_Rect__SWIG_4(PyObject *self, PyObject *args) {
2243 PyObject *resultobj;
2244 XRectangle *arg1 = 0 ;
2245 otk::Rect *result;
2246 PyObject * obj0 = 0 ;
2247
2248 if(!PyArg_ParseTuple(args,(char *)"O:new_Rect",&obj0)) goto fail;
2249 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_XRectangle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2250 if (arg1 == NULL) {
2251 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2252 }
2253 result = (otk::Rect *)new otk::Rect((XRectangle const &)*arg1);
2254
2255 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
2256 return resultobj;
2257 fail:
2258 return NULL;
2259 }
2260
2261
2262 static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args) {
2263 int argc;
2264 PyObject *argv[5];
2265 int ii;
2266
2267 argc = PyObject_Length(args);
2268 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
2269 argv[ii] = PyTuple_GetItem(args,ii);
2270 }
2271 if (argc == 0) {
2272 return _wrap_new_Rect__SWIG_0(self,args);
2273 }
2274 if (argc == 1) {
2275 int _v;
2276 {
2277 void *ptr;
2278 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2279 _v = 0;
2280 PyErr_Clear();
2281 }else {
2282 _v = 1;
2283 }
2284 }
2285 if (_v) {
2286 return _wrap_new_Rect__SWIG_3(self,args);
2287 }
2288 }
2289 if (argc == 1) {
2290 int _v;
2291 {
2292 void *ptr;
2293 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_XRectangle, 0) == -1) {
2294 _v = 0;
2295 PyErr_Clear();
2296 }else {
2297 _v = 1;
2298 }
2299 }
2300 if (_v) {
2301 return _wrap_new_Rect__SWIG_4(self,args);
2302 }
2303 }
2304 if (argc == 2) {
2305 int _v;
2306 {
2307 void *ptr;
2308 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2309 _v = 0;
2310 PyErr_Clear();
2311 }else {
2312 _v = 1;
2313 }
2314 }
2315 if (_v) {
2316 {
2317 void *ptr;
2318 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2319 _v = 0;
2320 PyErr_Clear();
2321 }else {
2322 _v = 1;
2323 }
2324 }
2325 if (_v) {
2326 return _wrap_new_Rect__SWIG_2(self,args);
2327 }
2328 }
2329 }
2330 if (argc == 4) {
2331 int _v;
2332 {
2333 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
2334 }
2335 if (_v) {
2336 {
2337 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2338 }
2339 if (_v) {
2340 {
2341 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2342 }
2343 if (_v) {
2344 {
2345 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
2346 }
2347 if (_v) {
2348 return _wrap_new_Rect__SWIG_1(self,args);
2349 }
2350 }
2351 }
2352 }
2353 }
2354
2355 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Rect'");
2356 return NULL;
2357 }
2358
2359
2360 static PyObject *_wrap_Rect_left(PyObject *self, PyObject *args) {
2361 PyObject *resultobj;
2362 otk::Rect *arg1 = (otk::Rect *) 0 ;
2363 int result;
2364 PyObject * obj0 = 0 ;
2365
2366 if(!PyArg_ParseTuple(args,(char *)"O:Rect_left",&obj0)) goto fail;
2367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2368 result = (int)((otk::Rect const *)arg1)->left();
2369
2370 resultobj = PyInt_FromLong((long)result);
2371 return resultobj;
2372 fail:
2373 return NULL;
2374 }
2375
2376
2377 static PyObject *_wrap_Rect_top(PyObject *self, PyObject *args) {
2378 PyObject *resultobj;
2379 otk::Rect *arg1 = (otk::Rect *) 0 ;
2380 int result;
2381 PyObject * obj0 = 0 ;
2382
2383 if(!PyArg_ParseTuple(args,(char *)"O:Rect_top",&obj0)) goto fail;
2384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2385 result = (int)((otk::Rect const *)arg1)->top();
2386
2387 resultobj = PyInt_FromLong((long)result);
2388 return resultobj;
2389 fail:
2390 return NULL;
2391 }
2392
2393
2394 static PyObject *_wrap_Rect_right(PyObject *self, PyObject *args) {
2395 PyObject *resultobj;
2396 otk::Rect *arg1 = (otk::Rect *) 0 ;
2397 int result;
2398 PyObject * obj0 = 0 ;
2399
2400 if(!PyArg_ParseTuple(args,(char *)"O:Rect_right",&obj0)) goto fail;
2401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2402 result = (int)((otk::Rect const *)arg1)->right();
2403
2404 resultobj = PyInt_FromLong((long)result);
2405 return resultobj;
2406 fail:
2407 return NULL;
2408 }
2409
2410
2411 static PyObject *_wrap_Rect_bottom(PyObject *self, PyObject *args) {
2412 PyObject *resultobj;
2413 otk::Rect *arg1 = (otk::Rect *) 0 ;
2414 int result;
2415 PyObject * obj0 = 0 ;
2416
2417 if(!PyArg_ParseTuple(args,(char *)"O:Rect_bottom",&obj0)) goto fail;
2418 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2419 result = (int)((otk::Rect const *)arg1)->bottom();
2420
2421 resultobj = PyInt_FromLong((long)result);
2422 return resultobj;
2423 fail:
2424 return NULL;
2425 }
2426
2427
2428 static PyObject *_wrap_Rect_x(PyObject *self, PyObject *args) {
2429 PyObject *resultobj;
2430 otk::Rect *arg1 = (otk::Rect *) 0 ;
2431 int result;
2432 PyObject * obj0 = 0 ;
2433
2434 if(!PyArg_ParseTuple(args,(char *)"O:Rect_x",&obj0)) goto fail;
2435 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2436 result = (int)((otk::Rect const *)arg1)->x();
2437
2438 resultobj = PyInt_FromLong((long)result);
2439 return resultobj;
2440 fail:
2441 return NULL;
2442 }
2443
2444
2445 static PyObject *_wrap_Rect_y(PyObject *self, PyObject *args) {
2446 PyObject *resultobj;
2447 otk::Rect *arg1 = (otk::Rect *) 0 ;
2448 int result;
2449 PyObject * obj0 = 0 ;
2450
2451 if(!PyArg_ParseTuple(args,(char *)"O:Rect_y",&obj0)) goto fail;
2452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2453 result = (int)((otk::Rect const *)arg1)->y();
2454
2455 resultobj = PyInt_FromLong((long)result);
2456 return resultobj;
2457 fail:
2458 return NULL;
2459 }
2460
2461
2462 static PyObject *_wrap_Rect_location(PyObject *self, PyObject *args) {
2463 PyObject *resultobj;
2464 otk::Rect *arg1 = (otk::Rect *) 0 ;
2465 otk::Point result;
2466 PyObject * obj0 = 0 ;
2467
2468 if(!PyArg_ParseTuple(args,(char *)"O:Rect_location",&obj0)) goto fail;
2469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2470 result = ((otk::Rect const *)arg1)->location();
2471
2472 {
2473 otk::Point * resultptr;
2474 resultptr = new otk::Point((otk::Point &) result);
2475 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Point, 1);
2476 }
2477 return resultobj;
2478 fail:
2479 return NULL;
2480 }
2481
2482
2483 static PyObject *_wrap_Rect_setX(PyObject *self, PyObject *args) {
2484 PyObject *resultobj;
2485 otk::Rect *arg1 = (otk::Rect *) 0 ;
2486 int arg2 ;
2487 PyObject * obj0 = 0 ;
2488
2489 if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setX",&obj0,&arg2)) goto fail;
2490 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2491 (arg1)->setX(arg2);
2492
2493 Py_INCREF(Py_None); resultobj = Py_None;
2494 return resultobj;
2495 fail:
2496 return NULL;
2497 }
2498
2499
2500 static PyObject *_wrap_Rect_setY(PyObject *self, PyObject *args) {
2501 PyObject *resultobj;
2502 otk::Rect *arg1 = (otk::Rect *) 0 ;
2503 int arg2 ;
2504 PyObject * obj0 = 0 ;
2505
2506 if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setY",&obj0,&arg2)) goto fail;
2507 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2508 (arg1)->setY(arg2);
2509
2510 Py_INCREF(Py_None); resultobj = Py_None;
2511 return resultobj;
2512 fail:
2513 return NULL;
2514 }
2515
2516
2517 static PyObject *_wrap_Rect_setPos__SWIG_0(PyObject *self, PyObject *args) {
2518 PyObject *resultobj;
2519 otk::Rect *arg1 = (otk::Rect *) 0 ;
2520 int arg2 ;
2521 int arg3 ;
2522 PyObject * obj0 = 0 ;
2523
2524 if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_setPos",&obj0,&arg2,&arg3)) goto fail;
2525 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2526 (arg1)->setPos(arg2,arg3);
2527
2528 Py_INCREF(Py_None); resultobj = Py_None;
2529 return resultobj;
2530 fail:
2531 return NULL;
2532 }
2533
2534
2535 static PyObject *_wrap_Rect_setPos__SWIG_1(PyObject *self, PyObject *args) {
2536 PyObject *resultobj;
2537 otk::Rect *arg1 = (otk::Rect *) 0 ;
2538 otk::Point *arg2 = 0 ;
2539 PyObject * obj0 = 0 ;
2540 PyObject * obj1 = 0 ;
2541
2542 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_setPos",&obj0,&obj1)) goto fail;
2543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2544 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2545 if (arg2 == NULL) {
2546 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2547 }
2548 (arg1)->setPos((otk::Point const &)*arg2);
2549
2550 Py_INCREF(Py_None); resultobj = Py_None;
2551 return resultobj;
2552 fail:
2553 return NULL;
2554 }
2555
2556
2557 static PyObject *_wrap_Rect_setPos(PyObject *self, PyObject *args) {
2558 int argc;
2559 PyObject *argv[4];
2560 int ii;
2561
2562 argc = PyObject_Length(args);
2563 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
2564 argv[ii] = PyTuple_GetItem(args,ii);
2565 }
2566 if (argc == 2) {
2567 int _v;
2568 {
2569 void *ptr;
2570 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2571 _v = 0;
2572 PyErr_Clear();
2573 }else {
2574 _v = 1;
2575 }
2576 }
2577 if (_v) {
2578 {
2579 void *ptr;
2580 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2581 _v = 0;
2582 PyErr_Clear();
2583 }else {
2584 _v = 1;
2585 }
2586 }
2587 if (_v) {
2588 return _wrap_Rect_setPos__SWIG_1(self,args);
2589 }
2590 }
2591 }
2592 if (argc == 3) {
2593 int _v;
2594 {
2595 void *ptr;
2596 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2597 _v = 0;
2598 PyErr_Clear();
2599 }else {
2600 _v = 1;
2601 }
2602 }
2603 if (_v) {
2604 {
2605 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2606 }
2607 if (_v) {
2608 {
2609 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2610 }
2611 if (_v) {
2612 return _wrap_Rect_setPos__SWIG_0(self,args);
2613 }
2614 }
2615 }
2616 }
2617
2618 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setPos'");
2619 return NULL;
2620 }
2621
2622
2623 static PyObject *_wrap_Rect_width(PyObject *self, PyObject *args) {
2624 PyObject *resultobj;
2625 otk::Rect *arg1 = (otk::Rect *) 0 ;
2626 int result;
2627 PyObject * obj0 = 0 ;
2628
2629 if(!PyArg_ParseTuple(args,(char *)"O:Rect_width",&obj0)) goto fail;
2630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2631 result = (int)((otk::Rect const *)arg1)->width();
2632
2633 resultobj = PyInt_FromLong((long)result);
2634 return resultobj;
2635 fail:
2636 return NULL;
2637 }
2638
2639
2640 static PyObject *_wrap_Rect_height(PyObject *self, PyObject *args) {
2641 PyObject *resultobj;
2642 otk::Rect *arg1 = (otk::Rect *) 0 ;
2643 int result;
2644 PyObject * obj0 = 0 ;
2645
2646 if(!PyArg_ParseTuple(args,(char *)"O:Rect_height",&obj0)) goto fail;
2647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2648 result = (int)((otk::Rect const *)arg1)->height();
2649
2650 resultobj = PyInt_FromLong((long)result);
2651 return resultobj;
2652 fail:
2653 return NULL;
2654 }
2655
2656
2657 static PyObject *_wrap_Rect_size(PyObject *self, PyObject *args) {
2658 PyObject *resultobj;
2659 otk::Rect *arg1 = (otk::Rect *) 0 ;
2660 otk::Point result;
2661 PyObject * obj0 = 0 ;
2662
2663 if(!PyArg_ParseTuple(args,(char *)"O:Rect_size",&obj0)) goto fail;
2664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2665 result = ((otk::Rect const *)arg1)->size();
2666
2667 {
2668 otk::Point * resultptr;
2669 resultptr = new otk::Point((otk::Point &) result);
2670 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Point, 1);
2671 }
2672 return resultobj;
2673 fail:
2674 return NULL;
2675 }
2676
2677
2678 static PyObject *_wrap_Rect_setWidth(PyObject *self, PyObject *args) {
2679 PyObject *resultobj;
2680 otk::Rect *arg1 = (otk::Rect *) 0 ;
2681 int arg2 ;
2682 PyObject * obj0 = 0 ;
2683
2684 if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setWidth",&obj0,&arg2)) goto fail;
2685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2686 (arg1)->setWidth(arg2);
2687
2688 Py_INCREF(Py_None); resultobj = Py_None;
2689 return resultobj;
2690 fail:
2691 return NULL;
2692 }
2693
2694
2695 static PyObject *_wrap_Rect_setHeight(PyObject *self, PyObject *args) {
2696 PyObject *resultobj;
2697 otk::Rect *arg1 = (otk::Rect *) 0 ;
2698 int arg2 ;
2699 PyObject * obj0 = 0 ;
2700
2701 if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setHeight",&obj0,&arg2)) goto fail;
2702 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2703 (arg1)->setHeight(arg2);
2704
2705 Py_INCREF(Py_None); resultobj = Py_None;
2706 return resultobj;
2707 fail:
2708 return NULL;
2709 }
2710
2711
2712 static PyObject *_wrap_Rect_setSize__SWIG_0(PyObject *self, PyObject *args) {
2713 PyObject *resultobj;
2714 otk::Rect *arg1 = (otk::Rect *) 0 ;
2715 int arg2 ;
2716 int arg3 ;
2717 PyObject * obj0 = 0 ;
2718
2719 if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_setSize",&obj0,&arg2,&arg3)) goto fail;
2720 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2721 (arg1)->setSize(arg2,arg3);
2722
2723 Py_INCREF(Py_None); resultobj = Py_None;
2724 return resultobj;
2725 fail:
2726 return NULL;
2727 }
2728
2729
2730 static PyObject *_wrap_Rect_setSize__SWIG_1(PyObject *self, PyObject *args) {
2731 PyObject *resultobj;
2732 otk::Rect *arg1 = (otk::Rect *) 0 ;
2733 otk::Point *arg2 = 0 ;
2734 PyObject * obj0 = 0 ;
2735 PyObject * obj1 = 0 ;
2736
2737 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_setSize",&obj0,&obj1)) goto fail;
2738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2739 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2740 if (arg2 == NULL) {
2741 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2742 }
2743 (arg1)->setSize((otk::Point const &)*arg2);
2744
2745 Py_INCREF(Py_None); resultobj = Py_None;
2746 return resultobj;
2747 fail:
2748 return NULL;
2749 }
2750
2751
2752 static PyObject *_wrap_Rect_setSize(PyObject *self, PyObject *args) {
2753 int argc;
2754 PyObject *argv[4];
2755 int ii;
2756
2757 argc = PyObject_Length(args);
2758 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
2759 argv[ii] = PyTuple_GetItem(args,ii);
2760 }
2761 if (argc == 2) {
2762 int _v;
2763 {
2764 void *ptr;
2765 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2766 _v = 0;
2767 PyErr_Clear();
2768 }else {
2769 _v = 1;
2770 }
2771 }
2772 if (_v) {
2773 {
2774 void *ptr;
2775 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2776 _v = 0;
2777 PyErr_Clear();
2778 }else {
2779 _v = 1;
2780 }
2781 }
2782 if (_v) {
2783 return _wrap_Rect_setSize__SWIG_1(self,args);
2784 }
2785 }
2786 }
2787 if (argc == 3) {
2788 int _v;
2789 {
2790 void *ptr;
2791 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2792 _v = 0;
2793 PyErr_Clear();
2794 }else {
2795 _v = 1;
2796 }
2797 }
2798 if (_v) {
2799 {
2800 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2801 }
2802 if (_v) {
2803 {
2804 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2805 }
2806 if (_v) {
2807 return _wrap_Rect_setSize__SWIG_0(self,args);
2808 }
2809 }
2810 }
2811 }
2812
2813 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setSize'");
2814 return NULL;
2815 }
2816
2817
2818 static PyObject *_wrap_Rect_setRect__SWIG_0(PyObject *self, PyObject *args) {
2819 PyObject *resultobj;
2820 otk::Rect *arg1 = (otk::Rect *) 0 ;
2821 int arg2 ;
2822 int arg3 ;
2823 int arg4 ;
2824 int arg5 ;
2825 PyObject * obj0 = 0 ;
2826
2827 if(!PyArg_ParseTuple(args,(char *)"Oiiii:Rect_setRect",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
2828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2829 (arg1)->setRect(arg2,arg3,arg4,arg5);
2830
2831 Py_INCREF(Py_None); resultobj = Py_None;
2832 return resultobj;
2833 fail:
2834 return NULL;
2835 }
2836
2837
2838 static PyObject *_wrap_Rect_setRect__SWIG_1(PyObject *self, PyObject *args) {
2839 PyObject *resultobj;
2840 otk::Rect *arg1 = (otk::Rect *) 0 ;
2841 otk::Point *arg2 = 0 ;
2842 otk::Point *arg3 = 0 ;
2843 PyObject * obj0 = 0 ;
2844 PyObject * obj1 = 0 ;
2845 PyObject * obj2 = 0 ;
2846
2847 if(!PyArg_ParseTuple(args,(char *)"OOO:Rect_setRect",&obj0,&obj1,&obj2)) goto fail;
2848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2849 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2850 if (arg2 == NULL) {
2851 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2852 }
2853 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2854 if (arg3 == NULL) {
2855 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2856 }
2857 (arg1)->setRect((otk::Point const &)*arg2,(otk::Point const &)*arg3);
2858
2859 Py_INCREF(Py_None); resultobj = Py_None;
2860 return resultobj;
2861 fail:
2862 return NULL;
2863 }
2864
2865
2866 static PyObject *_wrap_Rect_setRect(PyObject *self, PyObject *args) {
2867 int argc;
2868 PyObject *argv[6];
2869 int ii;
2870
2871 argc = PyObject_Length(args);
2872 for (ii = 0; (ii < argc) && (ii < 5); ii++) {
2873 argv[ii] = PyTuple_GetItem(args,ii);
2874 }
2875 if (argc == 3) {
2876 int _v;
2877 {
2878 void *ptr;
2879 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2880 _v = 0;
2881 PyErr_Clear();
2882 }else {
2883 _v = 1;
2884 }
2885 }
2886 if (_v) {
2887 {
2888 void *ptr;
2889 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2890 _v = 0;
2891 PyErr_Clear();
2892 }else {
2893 _v = 1;
2894 }
2895 }
2896 if (_v) {
2897 {
2898 void *ptr;
2899 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2900 _v = 0;
2901 PyErr_Clear();
2902 }else {
2903 _v = 1;
2904 }
2905 }
2906 if (_v) {
2907 return _wrap_Rect_setRect__SWIG_1(self,args);
2908 }
2909 }
2910 }
2911 }
2912 if (argc == 5) {
2913 int _v;
2914 {
2915 void *ptr;
2916 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2917 _v = 0;
2918 PyErr_Clear();
2919 }else {
2920 _v = 1;
2921 }
2922 }
2923 if (_v) {
2924 {
2925 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2926 }
2927 if (_v) {
2928 {
2929 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2930 }
2931 if (_v) {
2932 {
2933 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
2934 }
2935 if (_v) {
2936 {
2937 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
2938 }
2939 if (_v) {
2940 return _wrap_Rect_setRect__SWIG_0(self,args);
2941 }
2942 }
2943 }
2944 }
2945 }
2946 }
2947
2948 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setRect'");
2949 return NULL;
2950 }
2951
2952
2953 static PyObject *_wrap_Rect_setCoords__SWIG_0(PyObject *self, PyObject *args) {
2954 PyObject *resultobj;
2955 otk::Rect *arg1 = (otk::Rect *) 0 ;
2956 int arg2 ;
2957 int arg3 ;
2958 int arg4 ;
2959 int arg5 ;
2960 PyObject * obj0 = 0 ;
2961
2962 if(!PyArg_ParseTuple(args,(char *)"Oiiii:Rect_setCoords",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
2963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2964 (arg1)->setCoords(arg2,arg3,arg4,arg5);
2965
2966 Py_INCREF(Py_None); resultobj = Py_None;
2967 return resultobj;
2968 fail:
2969 return NULL;
2970 }
2971
2972
2973 static PyObject *_wrap_Rect_setCoords__SWIG_1(PyObject *self, PyObject *args) {
2974 PyObject *resultobj;
2975 otk::Rect *arg1 = (otk::Rect *) 0 ;
2976 otk::Point *arg2 = 0 ;
2977 otk::Point *arg3 = 0 ;
2978 PyObject * obj0 = 0 ;
2979 PyObject * obj1 = 0 ;
2980 PyObject * obj2 = 0 ;
2981
2982 if(!PyArg_ParseTuple(args,(char *)"OOO:Rect_setCoords",&obj0,&obj1,&obj2)) goto fail;
2983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2984 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2985 if (arg2 == NULL) {
2986 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2987 }
2988 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2989 if (arg3 == NULL) {
2990 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2991 }
2992 (arg1)->setCoords((otk::Point const &)*arg2,(otk::Point const &)*arg3);
2993
2994 Py_INCREF(Py_None); resultobj = Py_None;
2995 return resultobj;
2996 fail:
2997 return NULL;
2998 }
2999
3000
3001 static PyObject *_wrap_Rect_setCoords(PyObject *self, PyObject *args) {
3002 int argc;
3003 PyObject *argv[6];
3004 int ii;
3005
3006 argc = PyObject_Length(args);
3007 for (ii = 0; (ii < argc) && (ii < 5); ii++) {
3008 argv[ii] = PyTuple_GetItem(args,ii);
3009 }
3010 if (argc == 3) {
3011 int _v;
3012 {
3013 void *ptr;
3014 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
3015 _v = 0;
3016 PyErr_Clear();
3017 }else {
3018 _v = 1;
3019 }
3020 }
3021 if (_v) {
3022 {
3023 void *ptr;
3024 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
3025 _v = 0;
3026 PyErr_Clear();
3027 }else {
3028 _v = 1;
3029 }
3030 }
3031 if (_v) {
3032 {
3033 void *ptr;
3034 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
3035 _v = 0;
3036 PyErr_Clear();
3037 }else {
3038 _v = 1;
3039 }
3040 }
3041 if (_v) {
3042 return _wrap_Rect_setCoords__SWIG_1(self,args);
3043 }
3044 }
3045 }
3046 }
3047 if (argc == 5) {
3048 int _v;
3049 {
3050 void *ptr;
3051 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
3052 _v = 0;
3053 PyErr_Clear();
3054 }else {
3055 _v = 1;
3056 }
3057 }
3058 if (_v) {
3059 {
3060 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
3061 }
3062 if (_v) {
3063 {
3064 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
3065 }
3066 if (_v) {
3067 {
3068 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
3069 }
3070 if (_v) {
3071 {
3072 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
3073 }
3074 if (_v) {
3075 return _wrap_Rect_setCoords__SWIG_0(self,args);
3076 }
3077 }
3078 }
3079 }
3080 }
3081 }
3082
3083 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setCoords'");
3084 return NULL;
3085 }
3086
3087
3088 static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args) {
3089 PyObject *resultobj;
3090 otk::Rect *arg1 = (otk::Rect *) 0 ;
3091 otk::Rect *arg2 = 0 ;
3092 bool result;
3093 PyObject * obj0 = 0 ;
3094 PyObject * obj1 = 0 ;
3095
3096 if(!PyArg_ParseTuple(args,(char *)"OO:Rect___eq__",&obj0,&obj1)) goto fail;
3097 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3098 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3099 if (arg2 == NULL) {
3100 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3101 }
3102 result = (bool)(arg1)->operator ==((otk::Rect const &)*arg2);
3103
3104 resultobj = PyInt_FromLong((long)result);
3105 return resultobj;
3106 fail:
3107 return NULL;
3108 }
3109
3110
3111 static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args) {
3112 PyObject *resultobj;
3113 otk::Rect *arg1 = (otk::Rect *) 0 ;
3114 otk::Rect *arg2 = 0 ;
3115 bool result;
3116 PyObject * obj0 = 0 ;
3117 PyObject * obj1 = 0 ;
3118
3119 if(!PyArg_ParseTuple(args,(char *)"OO:Rect___ne__",&obj0,&obj1)) goto fail;
3120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3121 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3122 if (arg2 == NULL) {
3123 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3124 }
3125 result = (bool)(arg1)->operator !=((otk::Rect const &)*arg2);
3126
3127 resultobj = PyInt_FromLong((long)result);
3128 return resultobj;
3129 fail:
3130 return NULL;
3131 }
3132
3133
3134 static PyObject *_wrap_Rect___or__(PyObject *self, PyObject *args) {
3135 PyObject *resultobj;
3136 otk::Rect *arg1 = (otk::Rect *) 0 ;
3137 otk::Rect *arg2 = 0 ;
3138 otk::Rect result;
3139 PyObject * obj0 = 0 ;
3140 PyObject * obj1 = 0 ;
3141
3142 if(!PyArg_ParseTuple(args,(char *)"OO:Rect___or__",&obj0,&obj1)) goto fail;
3143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3144 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3145 if (arg2 == NULL) {
3146 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3147 }
3148 result = ((otk::Rect const *)arg1)->operator |((otk::Rect const &)*arg2);
3149
3150 {
3151 otk::Rect * resultptr;
3152 resultptr = new otk::Rect((otk::Rect &) result);
3153 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Rect, 1);
3154 }
3155 return resultobj;
3156 fail:
3157 return NULL;
3158 }
3159
3160
3161 static PyObject *_wrap_Rect___and__(PyObject *self, PyObject *args) {
3162 PyObject *resultobj;
3163 otk::Rect *arg1 = (otk::Rect *) 0 ;
3164 otk::Rect *arg2 = 0 ;
3165 otk::Rect result;
3166 PyObject * obj0 = 0 ;
3167 PyObject * obj1 = 0 ;
3168
3169 if(!PyArg_ParseTuple(args,(char *)"OO:Rect___and__",&obj0,&obj1)) goto fail;
3170 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3171 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3172 if (arg2 == NULL) {
3173 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3174 }
3175 result = ((otk::Rect const *)arg1)->operator &((otk::Rect const &)*arg2);
3176
3177 {
3178 otk::Rect * resultptr;
3179 resultptr = new otk::Rect((otk::Rect &) result);
3180 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Rect, 1);
3181 }
3182 return resultobj;
3183 fail:
3184 return NULL;
3185 }
3186
3187
3188 static PyObject *_wrap_Rect___ior__(PyObject *self, PyObject *args) {
3189 PyObject *resultobj;
3190 otk::Rect *arg1 = (otk::Rect *) 0 ;
3191 otk::Rect *arg2 = 0 ;
3192 otk::Rect *result;
3193 PyObject * obj0 = 0 ;
3194 PyObject * obj1 = 0 ;
3195
3196 if(!PyArg_ParseTuple(args,(char *)"OO:Rect___ior__",&obj0,&obj1)) goto fail;
3197 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3198 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3199 if (arg2 == NULL) {
3200 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3201 }
3202 {
3203 otk::Rect &_result_ref = (arg1)->operator |=((otk::Rect const &)*arg2);
3204 result = (otk::Rect *) &_result_ref;
3205 }
3206
3207 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
3208 return resultobj;
3209 fail:
3210 return NULL;
3211 }
3212
3213
3214 static PyObject *_wrap_Rect___iand__(PyObject *self, PyObject *args) {
3215 PyObject *resultobj;
3216 otk::Rect *arg1 = (otk::Rect *) 0 ;
3217 otk::Rect *arg2 = 0 ;
3218 otk::Rect *result;
3219 PyObject * obj0 = 0 ;
3220 PyObject * obj1 = 0 ;
3221
3222 if(!PyArg_ParseTuple(args,(char *)"OO:Rect___iand__",&obj0,&obj1)) goto fail;
3223 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3224 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3225 if (arg2 == NULL) {
3226 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3227 }
3228 {
3229 otk::Rect &_result_ref = (arg1)->operator &=((otk::Rect const &)*arg2);
3230 result = (otk::Rect *) &_result_ref;
3231 }
3232
3233 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
3234 return resultobj;
3235 fail:
3236 return NULL;
3237 }
3238
3239
3240 static PyObject *_wrap_Rect_valid(PyObject *self, PyObject *args) {
3241 PyObject *resultobj;
3242 otk::Rect *arg1 = (otk::Rect *) 0 ;
3243 bool result;
3244 PyObject * obj0 = 0 ;
3245
3246 if(!PyArg_ParseTuple(args,(char *)"O:Rect_valid",&obj0)) goto fail;
3247 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3248 result = (bool)((otk::Rect const *)arg1)->valid();
3249
3250 resultobj = PyInt_FromLong((long)result);
3251 return resultobj;
3252 fail:
3253 return NULL;
3254 }
3255
3256
3257 static PyObject *_wrap_Rect_intersects(PyObject *self, PyObject *args) {
3258 PyObject *resultobj;
3259 otk::Rect *arg1 = (otk::Rect *) 0 ;
3260 otk::Rect *arg2 = 0 ;
3261 bool result;
3262 PyObject * obj0 = 0 ;
3263 PyObject * obj1 = 0 ;
3264
3265 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_intersects",&obj0,&obj1)) goto fail;
3266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3267 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3268 if (arg2 == NULL) {
3269 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3270 }
3271 result = (bool)((otk::Rect const *)arg1)->intersects((otk::Rect const &)*arg2);
3272
3273 resultobj = PyInt_FromLong((long)result);
3274 return resultobj;
3275 fail:
3276 return NULL;
3277 }
3278
3279
3280 static PyObject *_wrap_Rect_contains__SWIG_0(PyObject *self, PyObject *args) {
3281 PyObject *resultobj;
3282 otk::Rect *arg1 = (otk::Rect *) 0 ;
3283 int arg2 ;
3284 int arg3 ;
3285 bool result;
3286 PyObject * obj0 = 0 ;
3287
3288 if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_contains",&obj0,&arg2,&arg3)) goto fail;
3289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3290 result = (bool)((otk::Rect const *)arg1)->contains(arg2,arg3);
3291
3292 resultobj = PyInt_FromLong((long)result);
3293 return resultobj;
3294 fail:
3295 return NULL;
3296 }
3297
3298
3299 static PyObject *_wrap_Rect_contains__SWIG_1(PyObject *self, PyObject *args) {
3300 PyObject *resultobj;
3301 otk::Rect *arg1 = (otk::Rect *) 0 ;
3302 otk::Point *arg2 = 0 ;
3303 bool result;
3304 PyObject * obj0 = 0 ;
3305 PyObject * obj1 = 0 ;
3306
3307 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_contains",&obj0,&obj1)) goto fail;
3308 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3309 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3310 if (arg2 == NULL) {
3311 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3312 }
3313 result = (bool)((otk::Rect const *)arg1)->contains((otk::Point const &)*arg2);
3314
3315 resultobj = PyInt_FromLong((long)result);
3316 return resultobj;
3317 fail:
3318 return NULL;
3319 }
3320
3321
3322 static PyObject *_wrap_Rect_contains__SWIG_2(PyObject *self, PyObject *args) {
3323 PyObject *resultobj;
3324 otk::Rect *arg1 = (otk::Rect *) 0 ;
3325 otk::Rect *arg2 = 0 ;
3326 bool result;
3327 PyObject * obj0 = 0 ;
3328 PyObject * obj1 = 0 ;
3329
3330 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_contains",&obj0,&obj1)) goto fail;
3331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3332 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3333 if (arg2 == NULL) {
3334 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3335 }
3336 result = (bool)((otk::Rect const *)arg1)->contains((otk::Rect const &)*arg2);
3337
3338 resultobj = PyInt_FromLong((long)result);
3339 return resultobj;
3340 fail:
3341 return NULL;
3342 }
3343
3344
3345 static PyObject *_wrap_Rect_contains(PyObject *self, PyObject *args) {
3346 int argc;
3347 PyObject *argv[4];
3348 int ii;
3349
3350 argc = PyObject_Length(args);
3351 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
3352 argv[ii] = PyTuple_GetItem(args,ii);
3353 }
3354 if (argc == 2) {
3355 int _v;
3356 {
3357 void *ptr;
3358 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
3359 _v = 0;
3360 PyErr_Clear();
3361 }else {
3362 _v = 1;
3363 }
3364 }
3365 if (_v) {
3366 {
3367 void *ptr;
3368 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
3369 _v = 0;
3370 PyErr_Clear();
3371 }else {
3372 _v = 1;
3373 }
3374 }
3375 if (_v) {
3376 return _wrap_Rect_contains__SWIG_1(self,args);
3377 }
3378 }
3379 }
3380 if (argc == 2) {
3381 int _v;
3382 {
3383 void *ptr;
3384 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
3385 _v = 0;
3386 PyErr_Clear();
3387 }else {
3388 _v = 1;
3389 }
3390 }
3391 if (_v) {
3392 {
3393 void *ptr;
3394 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
3395 _v = 0;
3396 PyErr_Clear();
3397 }else {
3398 _v = 1;
3399 }
3400 }
3401 if (_v) {
3402 return _wrap_Rect_contains__SWIG_2(self,args);
3403 }
3404 }
3405 }
3406 if (argc == 3) {
3407 int _v;
3408 {
3409 void *ptr;
3410 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
3411 _v = 0;
3412 PyErr_Clear();
3413 }else {
3414 _v = 1;
3415 }
3416 }
3417 if (_v) {
3418 {
3419 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
3420 }
3421 if (_v) {
3422 {
3423 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
3424 }
3425 if (_v) {
3426 return _wrap_Rect_contains__SWIG_0(self,args);
3427 }
3428 }
3429 }
3430 }
3431
3432 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_contains'");
3433 return NULL;
3434 }
3435
3436
3437 static PyObject * Rect_swigregister(PyObject *self, PyObject *args) {
3438 PyObject *obj;
3439 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3440 SWIG_TypeClientData(SWIGTYPE_p_otk__Rect, obj);
3441 Py_INCREF(obj);
3442 return Py_BuildValue((char *)"");
3443 }
3444 static PyObject *_wrap_new_ScreenInfo(PyObject *self, PyObject *args) {
3445 PyObject *resultobj;
3446 unsigned int arg1 ;
3447 otk::ScreenInfo *result;
3448 PyObject * obj0 = 0 ;
3449
3450 if(!PyArg_ParseTuple(args,(char *)"O:new_ScreenInfo",&obj0)) goto fail;
3451 arg1 = (unsigned int) PyInt_AsLong(obj0);
3452 if (PyErr_Occurred()) SWIG_fail;
3453 result = (otk::ScreenInfo *)new otk::ScreenInfo(arg1);
3454
3455 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 1);
3456 return resultobj;
3457 fail:
3458 return NULL;
3459 }
3460
3461
3462 static PyObject *_wrap_ScreenInfo_visual(PyObject *self, PyObject *args) {
3463 PyObject *resultobj;
3464 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3465 Visual *result;
3466 PyObject * obj0 = 0 ;
3467
3468 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_visual",&obj0)) goto fail;
3469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3470 result = (Visual *)((otk::ScreenInfo const *)arg1)->visual();
3471
3472 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Visual, 0);
3473 return resultobj;
3474 fail:
3475 return NULL;
3476 }
3477
3478
3479 static PyObject *_wrap_ScreenInfo_rootWindow(PyObject *self, PyObject *args) {
3480 PyObject *resultobj;
3481 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3482 Window result;
3483 PyObject * obj0 = 0 ;
3484
3485 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_rootWindow",&obj0)) goto fail;
3486 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3487 result = (Window)((otk::ScreenInfo const *)arg1)->rootWindow();
3488
3489 resultobj = PyInt_FromLong((long)result);
3490 return resultobj;
3491 fail:
3492 return NULL;
3493 }
3494
3495
3496 static PyObject *_wrap_ScreenInfo_colormap(PyObject *self, PyObject *args) {
3497 PyObject *resultobj;
3498 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3499 Colormap result;
3500 PyObject * obj0 = 0 ;
3501
3502 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_colormap",&obj0)) goto fail;
3503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3504 result = (Colormap)((otk::ScreenInfo const *)arg1)->colormap();
3505
3506 resultobj = PyInt_FromLong((long)result);
3507 return resultobj;
3508 fail:
3509 return NULL;
3510 }
3511
3512
3513 static PyObject *_wrap_ScreenInfo_depth(PyObject *self, PyObject *args) {
3514 PyObject *resultobj;
3515 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3516 int result;
3517 PyObject * obj0 = 0 ;
3518
3519 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_depth",&obj0)) goto fail;
3520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3521 result = (int)((otk::ScreenInfo const *)arg1)->depth();
3522
3523 resultobj = PyInt_FromLong((long)result);
3524 return resultobj;
3525 fail:
3526 return NULL;
3527 }
3528
3529
3530 static PyObject *_wrap_ScreenInfo_screen(PyObject *self, PyObject *args) {
3531 PyObject *resultobj;
3532 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3533 unsigned int result;
3534 PyObject * obj0 = 0 ;
3535
3536 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_screen",&obj0)) goto fail;
3537 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3538 result = (unsigned int)((otk::ScreenInfo const *)arg1)->screen();
3539
3540 resultobj = PyInt_FromLong((long)result);
3541 return resultobj;
3542 fail:
3543 return NULL;
3544 }
3545
3546
3547 static PyObject *_wrap_ScreenInfo_rect(PyObject *self, PyObject *args) {
3548 PyObject *resultobj;
3549 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3550 otk::Rect *result;
3551 PyObject * obj0 = 0 ;
3552
3553 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_rect",&obj0)) goto fail;
3554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3555 {
3556 otk::Rect const &_result_ref = ((otk::ScreenInfo const *)arg1)->rect();
3557 result = (otk::Rect *) &_result_ref;
3558 }
3559
3560 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
3561 return resultobj;
3562 fail:
3563 return NULL;
3564 }
3565
3566
3567 static PyObject *_wrap_ScreenInfo_width(PyObject *self, PyObject *args) {
3568 PyObject *resultobj;
3569 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3570 unsigned int result;
3571 PyObject * obj0 = 0 ;
3572
3573 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_width",&obj0)) goto fail;
3574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3575 result = (unsigned int)((otk::ScreenInfo const *)arg1)->width();
3576
3577 resultobj = PyInt_FromLong((long)result);
3578 return resultobj;
3579 fail:
3580 return NULL;
3581 }
3582
3583
3584 static PyObject *_wrap_ScreenInfo_height(PyObject *self, PyObject *args) {
3585 PyObject *resultobj;
3586 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3587 unsigned int result;
3588 PyObject * obj0 = 0 ;
3589
3590 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_height",&obj0)) goto fail;
3591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3592 result = (unsigned int)((otk::ScreenInfo const *)arg1)->height();
3593
3594 resultobj = PyInt_FromLong((long)result);
3595 return resultobj;
3596 fail:
3597 return NULL;
3598 }
3599
3600
3601 static PyObject *_wrap_ScreenInfo_displayString(PyObject *self, PyObject *args) {
3602 PyObject *resultobj;
3603 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
3604 std::string *result;
3605 PyObject * obj0 = 0 ;
3606
3607 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_displayString",&obj0)) goto fail;
3608 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3609 {
3610 std::string const &_result_ref = ((otk::ScreenInfo const *)arg1)->displayString();
3611 result = (std::string *) &_result_ref;
3612 }
3613
3614 {
3615 resultobj = PyString_FromString(result->c_str());
3616 }
3617 return resultobj;
3618 fail:
3619 return NULL;
3620 }
3621
3622
3623 static PyObject * ScreenInfo_swigregister(PyObject *self, PyObject *args) {
3624 PyObject *obj;
3625 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3626 SWIG_TypeClientData(SWIGTYPE_p_otk__ScreenInfo, obj);
3627 Py_INCREF(obj);
3628 return Py_BuildValue((char *)"");
3629 }
3630 static PyObject *_wrap_Strut_top_set(PyObject *self, PyObject *args) {
3631 PyObject *resultobj;
3632 otk::Strut *arg1 = (otk::Strut *) 0 ;
3633 unsigned int arg2 ;
3634 PyObject * obj0 = 0 ;
3635 PyObject * obj1 = 0 ;
3636
3637 if(!PyArg_ParseTuple(args,(char *)"OO:Strut_top_set",&obj0,&obj1)) goto fail;
3638 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3639 arg2 = (unsigned int) PyInt_AsLong(obj1);
3640 if (PyErr_Occurred()) SWIG_fail;
3641 if (arg1) (arg1)->top = arg2;
3642
3643 Py_INCREF(Py_None); resultobj = Py_None;
3644 return resultobj;
3645 fail:
3646 return NULL;
3647 }
3648
3649
3650 static PyObject *_wrap_Strut_top_get(PyObject *self, PyObject *args) {
3651 PyObject *resultobj;
3652 otk::Strut *arg1 = (otk::Strut *) 0 ;
3653 unsigned int result;
3654 PyObject * obj0 = 0 ;
3655
3656 if(!PyArg_ParseTuple(args,(char *)"O:Strut_top_get",&obj0)) goto fail;
3657 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3658 result = (unsigned int) ((arg1)->top);
3659
3660 resultobj = PyInt_FromLong((long)result);
3661 return resultobj;
3662 fail:
3663 return NULL;
3664 }
3665
3666
3667 static PyObject *_wrap_Strut_bottom_set(PyObject *self, PyObject *args) {
3668 PyObject *resultobj;
3669 otk::Strut *arg1 = (otk::Strut *) 0 ;
3670 unsigned int arg2 ;
3671 PyObject * obj0 = 0 ;
3672 PyObject * obj1 = 0 ;
3673
3674 if(!PyArg_ParseTuple(args,(char *)"OO:Strut_bottom_set",&obj0,&obj1)) goto fail;
3675 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3676 arg2 = (unsigned int) PyInt_AsLong(obj1);
3677 if (PyErr_Occurred()) SWIG_fail;
3678 if (arg1) (arg1)->bottom = arg2;
3679
3680 Py_INCREF(Py_None); resultobj = Py_None;
3681 return resultobj;
3682 fail:
3683 return NULL;
3684 }
3685
3686
3687 static PyObject *_wrap_Strut_bottom_get(PyObject *self, PyObject *args) {
3688 PyObject *resultobj;
3689 otk::Strut *arg1 = (otk::Strut *) 0 ;
3690 unsigned int result;
3691 PyObject * obj0 = 0 ;
3692
3693 if(!PyArg_ParseTuple(args,(char *)"O:Strut_bottom_get",&obj0)) goto fail;
3694 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3695 result = (unsigned int) ((arg1)->bottom);
3696
3697 resultobj = PyInt_FromLong((long)result);
3698 return resultobj;
3699 fail:
3700 return NULL;
3701 }
3702
3703
3704 static PyObject *_wrap_Strut_left_set(PyObject *self, PyObject *args) {
3705 PyObject *resultobj;
3706 otk::Strut *arg1 = (otk::Strut *) 0 ;
3707 unsigned int arg2 ;
3708 PyObject * obj0 = 0 ;
3709 PyObject * obj1 = 0 ;
3710
3711 if(!PyArg_ParseTuple(args,(char *)"OO:Strut_left_set",&obj0,&obj1)) goto fail;
3712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3713 arg2 = (unsigned int) PyInt_AsLong(obj1);
3714 if (PyErr_Occurred()) SWIG_fail;
3715 if (arg1) (arg1)->left = arg2;
3716
3717 Py_INCREF(Py_None); resultobj = Py_None;
3718 return resultobj;
3719 fail:
3720 return NULL;
3721 }
3722
3723
3724 static PyObject *_wrap_Strut_left_get(PyObject *self, PyObject *args) {
3725 PyObject *resultobj;
3726 otk::Strut *arg1 = (otk::Strut *) 0 ;
3727 unsigned int result;
3728 PyObject * obj0 = 0 ;
3729
3730 if(!PyArg_ParseTuple(args,(char *)"O:Strut_left_get",&obj0)) goto fail;
3731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3732 result = (unsigned int) ((arg1)->left);
3733
3734 resultobj = PyInt_FromLong((long)result);
3735 return resultobj;
3736 fail:
3737 return NULL;
3738 }
3739
3740
3741 static PyObject *_wrap_Strut_right_set(PyObject *self, PyObject *args) {
3742 PyObject *resultobj;
3743 otk::Strut *arg1 = (otk::Strut *) 0 ;
3744 unsigned int arg2 ;
3745 PyObject * obj0 = 0 ;
3746 PyObject * obj1 = 0 ;
3747
3748 if(!PyArg_ParseTuple(args,(char *)"OO:Strut_right_set",&obj0,&obj1)) goto fail;
3749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3750 arg2 = (unsigned int) PyInt_AsLong(obj1);
3751 if (PyErr_Occurred()) SWIG_fail;
3752 if (arg1) (arg1)->right = arg2;
3753
3754 Py_INCREF(Py_None); resultobj = Py_None;
3755 return resultobj;
3756 fail:
3757 return NULL;
3758 }
3759
3760
3761 static PyObject *_wrap_Strut_right_get(PyObject *self, PyObject *args) {
3762 PyObject *resultobj;
3763 otk::Strut *arg1 = (otk::Strut *) 0 ;
3764 unsigned int result;
3765 PyObject * obj0 = 0 ;
3766
3767 if(!PyArg_ParseTuple(args,(char *)"O:Strut_right_get",&obj0)) goto fail;
3768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3769 result = (unsigned int) ((arg1)->right);
3770
3771 resultobj = PyInt_FromLong((long)result);
3772 return resultobj;
3773 fail:
3774 return NULL;
3775 }
3776
3777
3778 static PyObject *_wrap_new_Strut__SWIG_0(PyObject *self, PyObject *args) {
3779 PyObject *resultobj;
3780 otk::Strut *result;
3781
3782 if(!PyArg_ParseTuple(args,(char *)":new_Strut")) goto fail;
3783 result = (otk::Strut *)new otk::Strut();
3784
3785 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 1);
3786 return resultobj;
3787 fail:
3788 return NULL;
3789 }
3790
3791
3792 static PyObject *_wrap_new_Strut__SWIG_1(PyObject *self, PyObject *args) {
3793 PyObject *resultobj;
3794 int arg1 ;
3795 int arg2 ;
3796 int arg3 ;
3797 int arg4 ;
3798 otk::Strut *result;
3799
3800 if(!PyArg_ParseTuple(args,(char *)"iiii:new_Strut",&arg1,&arg2,&arg3,&arg4)) goto fail;
3801 result = (otk::Strut *)new otk::Strut(arg1,arg2,arg3,arg4);
3802
3803 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 1);
3804 return resultobj;
3805 fail:
3806 return NULL;
3807 }
3808
3809
3810 static PyObject *_wrap_new_Strut(PyObject *self, PyObject *args) {
3811 int argc;
3812 PyObject *argv[5];
3813 int ii;
3814
3815 argc = PyObject_Length(args);
3816 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
3817 argv[ii] = PyTuple_GetItem(args,ii);
3818 }
3819 if (argc == 0) {
3820 return _wrap_new_Strut__SWIG_0(self,args);
3821 }
3822 if (argc == 4) {
3823 int _v;
3824 {
3825 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
3826 }
3827 if (_v) {
3828 {
3829 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
3830 }
3831 if (_v) {
3832 {
3833 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
3834 }
3835 if (_v) {
3836 {
3837 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
3838 }
3839 if (_v) {
3840 return _wrap_new_Strut__SWIG_1(self,args);
3841 }
3842 }
3843 }
3844 }
3845 }
3846
3847 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Strut'");
3848 return NULL;
3849 }
3850
3851
3852 static PyObject * Strut_swigregister(PyObject *self, PyObject *args) {
3853 PyObject *obj;
3854 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3855 SWIG_TypeClientData(SWIGTYPE_p_otk__Strut, obj);
3856 Py_INCREF(obj);
3857 return Py_BuildValue((char *)"");
3858 }
3859 static PyObject *_wrap_EventHandler_handle(PyObject *self, PyObject *args) {
3860 PyObject *resultobj;
3861 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
3862 XEvent *arg2 = 0 ;
3863 PyObject * obj0 = 0 ;
3864 PyObject * obj1 = 0 ;
3865
3866 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_handle",&obj0,&obj1)) goto fail;
3867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3868 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3869 if (arg2 == NULL) {
3870 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3871 }
3872 (arg1)->handle((XEvent const &)*arg2);
3873
3874 Py_INCREF(Py_None); resultobj = Py_None;
3875 return resultobj;
3876 fail:
3877 return NULL;
3878 }
3879
3880
3881 static PyObject *_wrap_EventHandler_keyPressHandler(PyObject *self, PyObject *args) {
3882 PyObject *resultobj;
3883 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
3884 XKeyEvent *arg2 = 0 ;
3885 PyObject * obj0 = 0 ;
3886 PyObject * obj1 = 0 ;
3887
3888 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_keyPressHandler",&obj0,&obj1)) goto fail;
3889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3890 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3891 if (arg2 == NULL) {
3892 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3893 }
3894 (arg1)->keyPressHandler((XKeyEvent const &)*arg2);
3895
3896 Py_INCREF(Py_None); resultobj = Py_None;
3897 return resultobj;
3898 fail:
3899 return NULL;
3900 }
3901
3902
3903 static PyObject *_wrap_EventHandler_keyReleaseHandler(PyObject *self, PyObject *args) {
3904 PyObject *resultobj;
3905 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
3906 XKeyEvent *arg2 = 0 ;
3907 PyObject * obj0 = 0 ;
3908 PyObject * obj1 = 0 ;
3909
3910 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_keyReleaseHandler",&obj0,&obj1)) goto fail;
3911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3912 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3913 if (arg2 == NULL) {
3914 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3915 }
3916 (arg1)->keyReleaseHandler((XKeyEvent const &)*arg2);
3917
3918 Py_INCREF(Py_None); resultobj = Py_None;
3919 return resultobj;
3920 fail:
3921 return NULL;
3922 }
3923
3924
3925 static PyObject *_wrap_EventHandler_buttonPressHandler(PyObject *self, PyObject *args) {
3926 PyObject *resultobj;
3927 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
3928 XButtonEvent *arg2 = 0 ;
3929 PyObject * obj0 = 0 ;
3930 PyObject * obj1 = 0 ;
3931
3932 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_buttonPressHandler",&obj0,&obj1)) goto fail;
3933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3934 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3935 if (arg2 == NULL) {
3936 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3937 }
3938 (arg1)->buttonPressHandler((XButtonEvent const &)*arg2);
3939
3940 Py_INCREF(Py_None); resultobj = Py_None;
3941 return resultobj;
3942 fail:
3943 return NULL;
3944 }
3945
3946
3947 static PyObject *_wrap_EventHandler_buttonReleaseHandler(PyObject *self, PyObject *args) {
3948 PyObject *resultobj;
3949 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
3950 XButtonEvent *arg2 = 0 ;
3951 PyObject * obj0 = 0 ;
3952 PyObject * obj1 = 0 ;
3953
3954 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_buttonReleaseHandler",&obj0,&obj1)) goto fail;
3955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3956 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3957 if (arg2 == NULL) {
3958 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3959 }
3960 (arg1)->buttonReleaseHandler((XButtonEvent const &)*arg2);
3961
3962 Py_INCREF(Py_None); resultobj = Py_None;
3963 return resultobj;
3964 fail:
3965 return NULL;
3966 }
3967
3968
3969 static PyObject *_wrap_EventHandler_motionHandler(PyObject *self, PyObject *args) {
3970 PyObject *resultobj;
3971 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
3972 XMotionEvent *arg2 = 0 ;
3973 PyObject * obj0 = 0 ;
3974 PyObject * obj1 = 0 ;
3975
3976 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_motionHandler",&obj0,&obj1)) goto fail;
3977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3978 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMotionEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3979 if (arg2 == NULL) {
3980 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3981 }
3982 (arg1)->motionHandler((XMotionEvent const &)*arg2);
3983
3984 Py_INCREF(Py_None); resultobj = Py_None;
3985 return resultobj;
3986 fail:
3987 return NULL;
3988 }
3989
3990
3991 static PyObject *_wrap_EventHandler_enterHandler(PyObject *self, PyObject *args) {
3992 PyObject *resultobj;
3993 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
3994 XCrossingEvent *arg2 = 0 ;
3995 PyObject * obj0 = 0 ;
3996 PyObject * obj1 = 0 ;
3997
3998 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_enterHandler",&obj0,&obj1)) goto fail;
3999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4000 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCrossingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4001 if (arg2 == NULL) {
4002 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4003 }
4004 (arg1)->enterHandler((XCrossingEvent const &)*arg2);
4005
4006 Py_INCREF(Py_None); resultobj = Py_None;
4007 return resultobj;
4008 fail:
4009 return NULL;
4010 }
4011
4012
4013 static PyObject *_wrap_EventHandler_leaveHandler(PyObject *self, PyObject *args) {
4014 PyObject *resultobj;
4015 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4016 XCrossingEvent *arg2 = 0 ;
4017 PyObject * obj0 = 0 ;
4018 PyObject * obj1 = 0 ;
4019
4020 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_leaveHandler",&obj0,&obj1)) goto fail;
4021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4022 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCrossingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4023 if (arg2 == NULL) {
4024 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4025 }
4026 (arg1)->leaveHandler((XCrossingEvent const &)*arg2);
4027
4028 Py_INCREF(Py_None); resultobj = Py_None;
4029 return resultobj;
4030 fail:
4031 return NULL;
4032 }
4033
4034
4035 static PyObject *_wrap_EventHandler_focusHandler(PyObject *self, PyObject *args) {
4036 PyObject *resultobj;
4037 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4038 XFocusChangeEvent *arg2 = 0 ;
4039 PyObject * obj0 = 0 ;
4040 PyObject * obj1 = 0 ;
4041
4042 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_focusHandler",&obj0,&obj1)) goto fail;
4043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4044 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4045 if (arg2 == NULL) {
4046 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4047 }
4048 (arg1)->focusHandler((XFocusChangeEvent const &)*arg2);
4049
4050 Py_INCREF(Py_None); resultobj = Py_None;
4051 return resultobj;
4052 fail:
4053 return NULL;
4054 }
4055
4056
4057 static PyObject *_wrap_EventHandler_unfocusHandler(PyObject *self, PyObject *args) {
4058 PyObject *resultobj;
4059 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4060 XFocusChangeEvent *arg2 = 0 ;
4061 PyObject * obj0 = 0 ;
4062 PyObject * obj1 = 0 ;
4063
4064 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_unfocusHandler",&obj0,&obj1)) goto fail;
4065 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4066 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4067 if (arg2 == NULL) {
4068 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4069 }
4070 (arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2);
4071
4072 Py_INCREF(Py_None); resultobj = Py_None;
4073 return resultobj;
4074 fail:
4075 return NULL;
4076 }
4077
4078
4079 static PyObject *_wrap_EventHandler_exposeHandler(PyObject *self, PyObject *args) {
4080 PyObject *resultobj;
4081 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4082 XExposeEvent *arg2 = 0 ;
4083 PyObject * obj0 = 0 ;
4084 PyObject * obj1 = 0 ;
4085
4086 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_exposeHandler",&obj0,&obj1)) goto fail;
4087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4088 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4089 if (arg2 == NULL) {
4090 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4091 }
4092 (arg1)->exposeHandler((XExposeEvent const &)*arg2);
4093
4094 Py_INCREF(Py_None); resultobj = Py_None;
4095 return resultobj;
4096 fail:
4097 return NULL;
4098 }
4099
4100
4101 static PyObject *_wrap_EventHandler_graphicsExposeHandler(PyObject *self, PyObject *args) {
4102 PyObject *resultobj;
4103 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4104 XGraphicsExposeEvent *arg2 = 0 ;
4105 PyObject * obj0 = 0 ;
4106 PyObject * obj1 = 0 ;
4107
4108 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_graphicsExposeHandler",&obj0,&obj1)) goto fail;
4109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4110 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XGraphicsExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4111 if (arg2 == NULL) {
4112 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4113 }
4114 (arg1)->graphicsExposeHandler((XGraphicsExposeEvent const &)*arg2);
4115
4116 Py_INCREF(Py_None); resultobj = Py_None;
4117 return resultobj;
4118 fail:
4119 return NULL;
4120 }
4121
4122
4123 static PyObject *_wrap_EventHandler_noExposeEventHandler(PyObject *self, PyObject *args) {
4124 PyObject *resultobj;
4125 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4126 XNoExposeEvent *arg2 = 0 ;
4127 PyObject * obj0 = 0 ;
4128 PyObject * obj1 = 0 ;
4129
4130 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_noExposeEventHandler",&obj0,&obj1)) goto fail;
4131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4132 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XNoExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4133 if (arg2 == NULL) {
4134 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4135 }
4136 (arg1)->noExposeEventHandler((XNoExposeEvent const &)*arg2);
4137
4138 Py_INCREF(Py_None); resultobj = Py_None;
4139 return resultobj;
4140 fail:
4141 return NULL;
4142 }
4143
4144
4145 static PyObject *_wrap_EventHandler_circulateRequestHandler(PyObject *self, PyObject *args) {
4146 PyObject *resultobj;
4147 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4148 XCirculateRequestEvent *arg2 = 0 ;
4149 PyObject * obj0 = 0 ;
4150 PyObject * obj1 = 0 ;
4151
4152 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_circulateRequestHandler",&obj0,&obj1)) goto fail;
4153 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4154 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCirculateRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4155 if (arg2 == NULL) {
4156 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4157 }
4158 (arg1)->circulateRequestHandler((XCirculateRequestEvent const &)*arg2);
4159
4160 Py_INCREF(Py_None); resultobj = Py_None;
4161 return resultobj;
4162 fail:
4163 return NULL;
4164 }
4165
4166
4167 static PyObject *_wrap_EventHandler_configureRequestHandler(PyObject *self, PyObject *args) {
4168 PyObject *resultobj;
4169 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4170 XConfigureRequestEvent *arg2 = 0 ;
4171 PyObject * obj0 = 0 ;
4172 PyObject * obj1 = 0 ;
4173
4174 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_configureRequestHandler",&obj0,&obj1)) goto fail;
4175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4176 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4177 if (arg2 == NULL) {
4178 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4179 }
4180 (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2);
4181
4182 Py_INCREF(Py_None); resultobj = Py_None;
4183 return resultobj;
4184 fail:
4185 return NULL;
4186 }
4187
4188
4189 static PyObject *_wrap_EventHandler_mapRequestHandler(PyObject *self, PyObject *args) {
4190 PyObject *resultobj;
4191 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4192 XMapRequestEvent *arg2 = 0 ;
4193 PyObject * obj0 = 0 ;
4194 PyObject * obj1 = 0 ;
4195
4196 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_mapRequestHandler",&obj0,&obj1)) goto fail;
4197 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4198 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4199 if (arg2 == NULL) {
4200 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4201 }
4202 (arg1)->mapRequestHandler((XMapRequestEvent const &)*arg2);
4203
4204 Py_INCREF(Py_None); resultobj = Py_None;
4205 return resultobj;
4206 fail:
4207 return NULL;
4208 }
4209
4210
4211 static PyObject *_wrap_EventHandler_resizeRequestHandler(PyObject *self, PyObject *args) {
4212 PyObject *resultobj;
4213 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4214 XResizeRequestEvent *arg2 = 0 ;
4215 PyObject * obj0 = 0 ;
4216 PyObject * obj1 = 0 ;
4217
4218 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_resizeRequestHandler",&obj0,&obj1)) goto fail;
4219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4220 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XResizeRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4221 if (arg2 == NULL) {
4222 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4223 }
4224 (arg1)->resizeRequestHandler((XResizeRequestEvent const &)*arg2);
4225
4226 Py_INCREF(Py_None); resultobj = Py_None;
4227 return resultobj;
4228 fail:
4229 return NULL;
4230 }
4231
4232
4233 static PyObject *_wrap_EventHandler_circulateHandler(PyObject *self, PyObject *args) {
4234 PyObject *resultobj;
4235 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4236 XCirculateEvent *arg2 = 0 ;
4237 PyObject * obj0 = 0 ;
4238 PyObject * obj1 = 0 ;
4239
4240 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_circulateHandler",&obj0,&obj1)) goto fail;
4241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4242 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCirculateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4243 if (arg2 == NULL) {
4244 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4245 }
4246 (arg1)->circulateHandler((XCirculateEvent const &)*arg2);
4247
4248 Py_INCREF(Py_None); resultobj = Py_None;
4249 return resultobj;
4250 fail:
4251 return NULL;
4252 }
4253
4254
4255 static PyObject *_wrap_EventHandler_configureHandler(PyObject *self, PyObject *args) {
4256 PyObject *resultobj;
4257 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4258 XConfigureEvent *arg2 = 0 ;
4259 PyObject * obj0 = 0 ;
4260 PyObject * obj1 = 0 ;
4261
4262 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_configureHandler",&obj0,&obj1)) goto fail;
4263 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4264 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4265 if (arg2 == NULL) {
4266 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4267 }
4268 (arg1)->configureHandler((XConfigureEvent const &)*arg2);
4269
4270 Py_INCREF(Py_None); resultobj = Py_None;
4271 return resultobj;
4272 fail:
4273 return NULL;
4274 }
4275
4276
4277 static PyObject *_wrap_EventHandler_createHandler(PyObject *self, PyObject *args) {
4278 PyObject *resultobj;
4279 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4280 XCreateWindowEvent *arg2 = 0 ;
4281 PyObject * obj0 = 0 ;
4282 PyObject * obj1 = 0 ;
4283
4284 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_createHandler",&obj0,&obj1)) goto fail;
4285 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4286 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCreateWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4287 if (arg2 == NULL) {
4288 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4289 }
4290 (arg1)->createHandler((XCreateWindowEvent const &)*arg2);
4291
4292 Py_INCREF(Py_None); resultobj = Py_None;
4293 return resultobj;
4294 fail:
4295 return NULL;
4296 }
4297
4298
4299 static PyObject *_wrap_EventHandler_destroyHandler(PyObject *self, PyObject *args) {
4300 PyObject *resultobj;
4301 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4302 XDestroyWindowEvent *arg2 = 0 ;
4303 PyObject * obj0 = 0 ;
4304 PyObject * obj1 = 0 ;
4305
4306 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_destroyHandler",&obj0,&obj1)) goto fail;
4307 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4308 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4309 if (arg2 == NULL) {
4310 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4311 }
4312 (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2);
4313
4314 Py_INCREF(Py_None); resultobj = Py_None;
4315 return resultobj;
4316 fail:
4317 return NULL;
4318 }
4319
4320
4321 static PyObject *_wrap_EventHandler_gravityHandler(PyObject *self, PyObject *args) {
4322 PyObject *resultobj;
4323 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4324 XGravityEvent *arg2 = 0 ;
4325 PyObject * obj0 = 0 ;
4326 PyObject * obj1 = 0 ;
4327
4328 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_gravityHandler",&obj0,&obj1)) goto fail;
4329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4330 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XGravityEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4331 if (arg2 == NULL) {
4332 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4333 }
4334 (arg1)->gravityHandler((XGravityEvent const &)*arg2);
4335
4336 Py_INCREF(Py_None); resultobj = Py_None;
4337 return resultobj;
4338 fail:
4339 return NULL;
4340 }
4341
4342
4343 static PyObject *_wrap_EventHandler_mapHandler(PyObject *self, PyObject *args) {
4344 PyObject *resultobj;
4345 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4346 XMapEvent *arg2 = 0 ;
4347 PyObject * obj0 = 0 ;
4348 PyObject * obj1 = 0 ;
4349
4350 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_mapHandler",&obj0,&obj1)) goto fail;
4351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4352 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4353 if (arg2 == NULL) {
4354 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4355 }
4356 (arg1)->mapHandler((XMapEvent const &)*arg2);
4357
4358 Py_INCREF(Py_None); resultobj = Py_None;
4359 return resultobj;
4360 fail:
4361 return NULL;
4362 }
4363
4364
4365 static PyObject *_wrap_EventHandler_mappingHandler(PyObject *self, PyObject *args) {
4366 PyObject *resultobj;
4367 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4368 XMappingEvent *arg2 = 0 ;
4369 PyObject * obj0 = 0 ;
4370 PyObject * obj1 = 0 ;
4371
4372 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_mappingHandler",&obj0,&obj1)) goto fail;
4373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4374 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMappingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4375 if (arg2 == NULL) {
4376 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4377 }
4378 (arg1)->mappingHandler((XMappingEvent const &)*arg2);
4379
4380 Py_INCREF(Py_None); resultobj = Py_None;
4381 return resultobj;
4382 fail:
4383 return NULL;
4384 }
4385
4386
4387 static PyObject *_wrap_EventHandler_reparentHandler(PyObject *self, PyObject *args) {
4388 PyObject *resultobj;
4389 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4390 XReparentEvent *arg2 = 0 ;
4391 PyObject * obj0 = 0 ;
4392 PyObject * obj1 = 0 ;
4393
4394 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_reparentHandler",&obj0,&obj1)) goto fail;
4395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4396 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4397 if (arg2 == NULL) {
4398 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4399 }
4400 (arg1)->reparentHandler((XReparentEvent const &)*arg2);
4401
4402 Py_INCREF(Py_None); resultobj = Py_None;
4403 return resultobj;
4404 fail:
4405 return NULL;
4406 }
4407
4408
4409 static PyObject *_wrap_EventHandler_unmapHandler(PyObject *self, PyObject *args) {
4410 PyObject *resultobj;
4411 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4412 XUnmapEvent *arg2 = 0 ;
4413 PyObject * obj0 = 0 ;
4414 PyObject * obj1 = 0 ;
4415
4416 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_unmapHandler",&obj0,&obj1)) goto fail;
4417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4418 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4419 if (arg2 == NULL) {
4420 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4421 }
4422 (arg1)->unmapHandler((XUnmapEvent const &)*arg2);
4423
4424 Py_INCREF(Py_None); resultobj = Py_None;
4425 return resultobj;
4426 fail:
4427 return NULL;
4428 }
4429
4430
4431 static PyObject *_wrap_EventHandler_visibilityHandler(PyObject *self, PyObject *args) {
4432 PyObject *resultobj;
4433 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4434 XVisibilityEvent *arg2 = 0 ;
4435 PyObject * obj0 = 0 ;
4436 PyObject * obj1 = 0 ;
4437
4438 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_visibilityHandler",&obj0,&obj1)) goto fail;
4439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4440 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XVisibilityEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4441 if (arg2 == NULL) {
4442 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4443 }
4444 (arg1)->visibilityHandler((XVisibilityEvent const &)*arg2);
4445
4446 Py_INCREF(Py_None); resultobj = Py_None;
4447 return resultobj;
4448 fail:
4449 return NULL;
4450 }
4451
4452
4453 static PyObject *_wrap_EventHandler_colorMapHandler(PyObject *self, PyObject *args) {
4454 PyObject *resultobj;
4455 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4456 XColormapEvent *arg2 = 0 ;
4457 PyObject * obj0 = 0 ;
4458 PyObject * obj1 = 0 ;
4459
4460 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_colorMapHandler",&obj0,&obj1)) goto fail;
4461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4462 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XColormapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4463 if (arg2 == NULL) {
4464 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4465 }
4466 (arg1)->colorMapHandler((XColormapEvent const &)*arg2);
4467
4468 Py_INCREF(Py_None); resultobj = Py_None;
4469 return resultobj;
4470 fail:
4471 return NULL;
4472 }
4473
4474
4475 static PyObject *_wrap_EventHandler_propertyHandler(PyObject *self, PyObject *args) {
4476 PyObject *resultobj;
4477 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4478 XPropertyEvent *arg2 = 0 ;
4479 PyObject * obj0 = 0 ;
4480 PyObject * obj1 = 0 ;
4481
4482 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_propertyHandler",&obj0,&obj1)) goto fail;
4483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4484 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4485 if (arg2 == NULL) {
4486 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4487 }
4488 (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
4489
4490 Py_INCREF(Py_None); resultobj = Py_None;
4491 return resultobj;
4492 fail:
4493 return NULL;
4494 }
4495
4496
4497 static PyObject *_wrap_EventHandler_selectionClearHandler(PyObject *self, PyObject *args) {
4498 PyObject *resultobj;
4499 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4500 XSelectionClearEvent *arg2 = 0 ;
4501 PyObject * obj0 = 0 ;
4502 PyObject * obj1 = 0 ;
4503
4504 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_selectionClearHandler",&obj0,&obj1)) goto fail;
4505 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4506 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionClearEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4507 if (arg2 == NULL) {
4508 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4509 }
4510 (arg1)->selectionClearHandler((XSelectionClearEvent const &)*arg2);
4511
4512 Py_INCREF(Py_None); resultobj = Py_None;
4513 return resultobj;
4514 fail:
4515 return NULL;
4516 }
4517
4518
4519 static PyObject *_wrap_EventHandler_selectionHandler(PyObject *self, PyObject *args) {
4520 PyObject *resultobj;
4521 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4522 XSelectionEvent *arg2 = 0 ;
4523 PyObject * obj0 = 0 ;
4524 PyObject * obj1 = 0 ;
4525
4526 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_selectionHandler",&obj0,&obj1)) goto fail;
4527 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4528 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4529 if (arg2 == NULL) {
4530 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4531 }
4532 (arg1)->selectionHandler((XSelectionEvent const &)*arg2);
4533
4534 Py_INCREF(Py_None); resultobj = Py_None;
4535 return resultobj;
4536 fail:
4537 return NULL;
4538 }
4539
4540
4541 static PyObject *_wrap_EventHandler_selectionRequestHandler(PyObject *self, PyObject *args) {
4542 PyObject *resultobj;
4543 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4544 XSelectionRequestEvent *arg2 = 0 ;
4545 PyObject * obj0 = 0 ;
4546 PyObject * obj1 = 0 ;
4547
4548 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_selectionRequestHandler",&obj0,&obj1)) goto fail;
4549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4550 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4551 if (arg2 == NULL) {
4552 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4553 }
4554 (arg1)->selectionRequestHandler((XSelectionRequestEvent const &)*arg2);
4555
4556 Py_INCREF(Py_None); resultobj = Py_None;
4557 return resultobj;
4558 fail:
4559 return NULL;
4560 }
4561
4562
4563 static PyObject *_wrap_EventHandler_clientMessageHandler(PyObject *self, PyObject *args) {
4564 PyObject *resultobj;
4565 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4566 XClientMessageEvent *arg2 = 0 ;
4567 PyObject * obj0 = 0 ;
4568 PyObject * obj1 = 0 ;
4569
4570 if(!PyArg_ParseTuple(args,(char *)"OO:EventHandler_clientMessageHandler",&obj0,&obj1)) goto fail;
4571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4572 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4573 if (arg2 == NULL) {
4574 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4575 }
4576 (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
4577
4578 Py_INCREF(Py_None); resultobj = Py_None;
4579 return resultobj;
4580 fail:
4581 return NULL;
4582 }
4583
4584
4585 static PyObject *_wrap_delete_EventHandler(PyObject *self, PyObject *args) {
4586 PyObject *resultobj;
4587 otk::EventHandler *arg1 = (otk::EventHandler *) 0 ;
4588 PyObject * obj0 = 0 ;
4589
4590 if(!PyArg_ParseTuple(args,(char *)"O:delete_EventHandler",&obj0)) goto fail;
4591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4592 delete arg1;
4593
4594 Py_INCREF(Py_None); resultobj = Py_None;
4595 return resultobj;
4596 fail:
4597 return NULL;
4598 }
4599
4600
4601 static PyObject * EventHandler_swigregister(PyObject *self, PyObject *args) {
4602 PyObject *obj;
4603 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4604 SWIG_TypeClientData(SWIGTYPE_p_otk__EventHandler, obj);
4605 Py_INCREF(obj);
4606 return Py_BuildValue((char *)"");
4607 }
4608 static PyObject *_wrap_new_EventDispatcher(PyObject *self, PyObject *args) {
4609 PyObject *resultobj;
4610 otk::EventDispatcher *result;
4611
4612 if(!PyArg_ParseTuple(args,(char *)":new_EventDispatcher")) goto fail;
4613 result = (otk::EventDispatcher *)new otk::EventDispatcher();
4614
4615 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__EventDispatcher, 1);
4616 return resultobj;
4617 fail:
4618 return NULL;
4619 }
4620
4621
4622 static PyObject *_wrap_delete_EventDispatcher(PyObject *self, PyObject *args) {
4623 PyObject *resultobj;
4624 otk::EventDispatcher *arg1 = (otk::EventDispatcher *) 0 ;
4625 PyObject * obj0 = 0 ;
4626
4627 if(!PyArg_ParseTuple(args,(char *)"O:delete_EventDispatcher",&obj0)) goto fail;
4628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4629 delete arg1;
4630
4631 Py_INCREF(Py_None); resultobj = Py_None;
4632 return resultobj;
4633 fail:
4634 return NULL;
4635 }
4636
4637
4638 static PyObject *_wrap_EventDispatcher_clearAllHandlers(PyObject *self, PyObject *args) {
4639 PyObject *resultobj;
4640 otk::EventDispatcher *arg1 = (otk::EventDispatcher *) 0 ;
4641 PyObject * obj0 = 0 ;
4642
4643 if(!PyArg_ParseTuple(args,(char *)"O:EventDispatcher_clearAllHandlers",&obj0)) goto fail;
4644 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4645 (arg1)->clearAllHandlers();
4646
4647 Py_INCREF(Py_None); resultobj = Py_None;
4648 return resultobj;
4649 fail:
4650 return NULL;
4651 }
4652
4653
4654 static PyObject *_wrap_EventDispatcher_registerHandler(PyObject *self, PyObject *args) {
4655 PyObject *resultobj;
4656 otk::EventDispatcher *arg1 = (otk::EventDispatcher *) 0 ;
4657 Window arg2 ;
4658 otk::EventHandler *arg3 = (otk::EventHandler *) 0 ;
4659 PyObject * obj0 = 0 ;
4660 PyObject * obj1 = 0 ;
4661 PyObject * obj2 = 0 ;
4662
4663 if(!PyArg_ParseTuple(args,(char *)"OOO:EventDispatcher_registerHandler",&obj0,&obj1,&obj2)) goto fail;
4664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4665 arg2 = (Window) PyInt_AsLong(obj1);
4666 if (PyErr_Occurred()) SWIG_fail;
4667 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4668 (arg1)->registerHandler(arg2,arg3);
4669
4670 Py_INCREF(Py_None); resultobj = Py_None;
4671 return resultobj;
4672 fail:
4673 return NULL;
4674 }
4675
4676
4677 static PyObject *_wrap_EventDispatcher_clearHandler(PyObject *self, PyObject *args) {
4678 PyObject *resultobj;
4679 otk::EventDispatcher *arg1 = (otk::EventDispatcher *) 0 ;
4680 Window arg2 ;
4681 PyObject * obj0 = 0 ;
4682 PyObject * obj1 = 0 ;
4683
4684 if(!PyArg_ParseTuple(args,(char *)"OO:EventDispatcher_clearHandler",&obj0,&obj1)) goto fail;
4685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4686 arg2 = (Window) PyInt_AsLong(obj1);
4687 if (PyErr_Occurred()) SWIG_fail;
4688 (arg1)->clearHandler(arg2);
4689
4690 Py_INCREF(Py_None); resultobj = Py_None;
4691 return resultobj;
4692 fail:
4693 return NULL;
4694 }
4695
4696
4697 static PyObject *_wrap_EventDispatcher_dispatchEvents(PyObject *self, PyObject *args) {
4698 PyObject *resultobj;
4699 otk::EventDispatcher *arg1 = (otk::EventDispatcher *) 0 ;
4700 PyObject * obj0 = 0 ;
4701
4702 if(!PyArg_ParseTuple(args,(char *)"O:EventDispatcher_dispatchEvents",&obj0)) goto fail;
4703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4704 (arg1)->dispatchEvents();
4705
4706 Py_INCREF(Py_None); resultobj = Py_None;
4707 return resultobj;
4708 fail:
4709 return NULL;
4710 }
4711
4712
4713 static PyObject *_wrap_EventDispatcher_setFallbackHandler(PyObject *self, PyObject *args) {
4714 PyObject *resultobj;
4715 otk::EventDispatcher *arg1 = (otk::EventDispatcher *) 0 ;
4716 otk::EventHandler *arg2 = (otk::EventHandler *) 0 ;
4717 PyObject * obj0 = 0 ;
4718 PyObject * obj1 = 0 ;
4719
4720 if(!PyArg_ParseTuple(args,(char *)"OO:EventDispatcher_setFallbackHandler",&obj0,&obj1)) goto fail;
4721 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4722 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4723 (arg1)->setFallbackHandler(arg2);
4724
4725 Py_INCREF(Py_None); resultobj = Py_None;
4726 return resultobj;
4727 fail:
4728 return NULL;
4729 }
4730
4731
4732 static PyObject *_wrap_EventDispatcher_getFallbackHandler(PyObject *self, PyObject *args) {
4733 PyObject *resultobj;
4734 otk::EventDispatcher *arg1 = (otk::EventDispatcher *) 0 ;
4735 otk::EventHandler *result;
4736 PyObject * obj0 = 0 ;
4737
4738 if(!PyArg_ParseTuple(args,(char *)"O:EventDispatcher_getFallbackHandler",&obj0)) goto fail;
4739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4740 result = (otk::EventHandler *)((otk::EventDispatcher const *)arg1)->getFallbackHandler();
4741
4742 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__EventHandler, 0);
4743 return resultobj;
4744 fail:
4745 return NULL;
4746 }
4747
4748
4749 static PyObject *_wrap_EventDispatcher_setMasterHandler(PyObject *self, PyObject *args) {
4750 PyObject *resultobj;
4751 otk::EventDispatcher *arg1 = (otk::EventDispatcher *) 0 ;
4752 otk::EventHandler *arg2 = (otk::EventHandler *) 0 ;
4753 PyObject * obj0 = 0 ;
4754 PyObject * obj1 = 0 ;
4755
4756 if(!PyArg_ParseTuple(args,(char *)"OO:EventDispatcher_setMasterHandler",&obj0,&obj1)) goto fail;
4757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4758 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__EventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4759 (arg1)->setMasterHandler(arg2);
4760
4761 Py_INCREF(Py_None); resultobj = Py_None;
4762 return resultobj;
4763 fail:
4764 return NULL;
4765 }
4766
4767
4768 static PyObject *_wrap_EventDispatcher_getMasterHandler(PyObject *self, PyObject *args) {
4769 PyObject *resultobj;
4770 otk::EventDispatcher *arg1 = (otk::EventDispatcher *) 0 ;
4771 otk::EventHandler *result;
4772 PyObject * obj0 = 0 ;
4773
4774 if(!PyArg_ParseTuple(args,(char *)"O:EventDispatcher_getMasterHandler",&obj0)) goto fail;
4775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4776 result = (otk::EventHandler *)((otk::EventDispatcher const *)arg1)->getMasterHandler();
4777
4778 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__EventHandler, 0);
4779 return resultobj;
4780 fail:
4781 return NULL;
4782 }
4783
4784
4785 static PyObject *_wrap_EventDispatcher_findHandler(PyObject *self, PyObject *args) {
4786 PyObject *resultobj;
4787 otk::EventDispatcher *arg1 = (otk::EventDispatcher *) 0 ;
4788 Window arg2 ;
4789 otk::EventHandler *result;
4790 PyObject * obj0 = 0 ;
4791 PyObject * obj1 = 0 ;
4792
4793 if(!PyArg_ParseTuple(args,(char *)"OO:EventDispatcher_findHandler",&obj0,&obj1)) goto fail;
4794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4795 arg2 = (Window) PyInt_AsLong(obj1);
4796 if (PyErr_Occurred()) SWIG_fail;
4797 result = (otk::EventHandler *)(arg1)->findHandler(arg2);
4798
4799 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__EventHandler, 0);
4800 return resultobj;
4801 fail:
4802 return NULL;
4803 }
4804
4805
4806 static PyObject *_wrap_EventDispatcher_lastTime(PyObject *self, PyObject *args) {
4807 PyObject *resultobj;
4808 otk::EventDispatcher *arg1 = (otk::EventDispatcher *) 0 ;
4809 Time result;
4810 PyObject * obj0 = 0 ;
4811
4812 if(!PyArg_ParseTuple(args,(char *)"O:EventDispatcher_lastTime",&obj0)) goto fail;
4813 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__EventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4814 result = (Time)((otk::EventDispatcher const *)arg1)->lastTime();
4815
4816 resultobj = PyInt_FromLong((long)result);
4817 return resultobj;
4818 fail:
4819 return NULL;
4820 }
4821
4822
4823 static PyObject * EventDispatcher_swigregister(PyObject *self, PyObject *args) {
4824 PyObject *obj;
4825 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4826 SWIG_TypeClientData(SWIGTYPE_p_otk__EventDispatcher, obj);
4827 Py_INCREF(obj);
4828 return Py_BuildValue((char *)"");
4829 }
4830 static PyObject *_wrap_Cursors_session_set(PyObject *self, PyObject *args) {
4831 PyObject *resultobj;
4832 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
4833 Cursor arg2 ;
4834 PyObject * obj0 = 0 ;
4835 PyObject * obj1 = 0 ;
4836
4837 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_session_set",&obj0,&obj1)) goto fail;
4838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4839 arg2 = (Cursor) PyInt_AsLong(obj1);
4840 if (PyErr_Occurred()) SWIG_fail;
4841 if (arg1) (arg1)->session = arg2;
4842
4843 Py_INCREF(Py_None); resultobj = Py_None;
4844 return resultobj;
4845 fail:
4846 return NULL;
4847 }
4848
4849
4850 static PyObject *_wrap_Cursors_session_get(PyObject *self, PyObject *args) {
4851 PyObject *resultobj;
4852 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
4853 Cursor result;
4854 PyObject * obj0 = 0 ;
4855
4856 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_session_get",&obj0)) goto fail;
4857 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4858 result = (Cursor) ((arg1)->session);
4859
4860 resultobj = PyInt_FromLong((long)result);
4861 return resultobj;
4862 fail:
4863 return NULL;
4864 }
4865
4866
4867 static PyObject *_wrap_Cursors_move_set(PyObject *self, PyObject *args) {
4868 PyObject *resultobj;
4869 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
4870 Cursor arg2 ;
4871 PyObject * obj0 = 0 ;
4872 PyObject * obj1 = 0 ;
4873
4874 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_move_set",&obj0,&obj1)) goto fail;
4875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4876 arg2 = (Cursor) PyInt_AsLong(obj1);
4877 if (PyErr_Occurred()) SWIG_fail;
4878 if (arg1) (arg1)->move = arg2;
4879
4880 Py_INCREF(Py_None); resultobj = Py_None;
4881 return resultobj;
4882 fail:
4883 return NULL;
4884 }
4885
4886
4887 static PyObject *_wrap_Cursors_move_get(PyObject *self, PyObject *args) {
4888 PyObject *resultobj;
4889 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
4890 Cursor result;
4891 PyObject * obj0 = 0 ;
4892
4893 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_move_get",&obj0)) goto fail;
4894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4895 result = (Cursor) ((arg1)->move);
4896
4897 resultobj = PyInt_FromLong((long)result);
4898 return resultobj;
4899 fail:
4900 return NULL;
4901 }
4902
4903
4904 static PyObject *_wrap_Cursors_ll_angle_set(PyObject *self, PyObject *args) {
4905 PyObject *resultobj;
4906 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
4907 Cursor arg2 ;
4908 PyObject * obj0 = 0 ;
4909 PyObject * obj1 = 0 ;
4910
4911 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ll_angle_set",&obj0,&obj1)) goto fail;
4912 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4913 arg2 = (Cursor) PyInt_AsLong(obj1);
4914 if (PyErr_Occurred()) SWIG_fail;
4915 if (arg1) (arg1)->ll_angle = arg2;
4916
4917 Py_INCREF(Py_None); resultobj = Py_None;
4918 return resultobj;
4919 fail:
4920 return NULL;
4921 }
4922
4923
4924 static PyObject *_wrap_Cursors_ll_angle_get(PyObject *self, PyObject *args) {
4925 PyObject *resultobj;
4926 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
4927 Cursor result;
4928 PyObject * obj0 = 0 ;
4929
4930 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ll_angle_get",&obj0)) goto fail;
4931 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4932 result = (Cursor) ((arg1)->ll_angle);
4933
4934 resultobj = PyInt_FromLong((long)result);
4935 return resultobj;
4936 fail:
4937 return NULL;
4938 }
4939
4940
4941 static PyObject *_wrap_Cursors_lr_angle_set(PyObject *self, PyObject *args) {
4942 PyObject *resultobj;
4943 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
4944 Cursor arg2 ;
4945 PyObject * obj0 = 0 ;
4946 PyObject * obj1 = 0 ;
4947
4948 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_lr_angle_set",&obj0,&obj1)) goto fail;
4949 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4950 arg2 = (Cursor) PyInt_AsLong(obj1);
4951 if (PyErr_Occurred()) SWIG_fail;
4952 if (arg1) (arg1)->lr_angle = arg2;
4953
4954 Py_INCREF(Py_None); resultobj = Py_None;
4955 return resultobj;
4956 fail:
4957 return NULL;
4958 }
4959
4960
4961 static PyObject *_wrap_Cursors_lr_angle_get(PyObject *self, PyObject *args) {
4962 PyObject *resultobj;
4963 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
4964 Cursor result;
4965 PyObject * obj0 = 0 ;
4966
4967 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_lr_angle_get",&obj0)) goto fail;
4968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4969 result = (Cursor) ((arg1)->lr_angle);
4970
4971 resultobj = PyInt_FromLong((long)result);
4972 return resultobj;
4973 fail:
4974 return NULL;
4975 }
4976
4977
4978 static PyObject *_wrap_Cursors_ul_angle_set(PyObject *self, PyObject *args) {
4979 PyObject *resultobj;
4980 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
4981 Cursor arg2 ;
4982 PyObject * obj0 = 0 ;
4983 PyObject * obj1 = 0 ;
4984
4985 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ul_angle_set",&obj0,&obj1)) goto fail;
4986 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4987 arg2 = (Cursor) PyInt_AsLong(obj1);
4988 if (PyErr_Occurred()) SWIG_fail;
4989 if (arg1) (arg1)->ul_angle = arg2;
4990
4991 Py_INCREF(Py_None); resultobj = Py_None;
4992 return resultobj;
4993 fail:
4994 return NULL;
4995 }
4996
4997
4998 static PyObject *_wrap_Cursors_ul_angle_get(PyObject *self, PyObject *args) {
4999 PyObject *resultobj;
5000 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
5001 Cursor result;
5002 PyObject * obj0 = 0 ;
5003
5004 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ul_angle_get",&obj0)) goto fail;
5005 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5006 result = (Cursor) ((arg1)->ul_angle);
5007
5008 resultobj = PyInt_FromLong((long)result);
5009 return resultobj;
5010 fail:
5011 return NULL;
5012 }
5013
5014
5015 static PyObject *_wrap_Cursors_ur_angle_set(PyObject *self, PyObject *args) {
5016 PyObject *resultobj;
5017 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
5018 Cursor arg2 ;
5019 PyObject * obj0 = 0 ;
5020 PyObject * obj1 = 0 ;
5021
5022 if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ur_angle_set",&obj0,&obj1)) goto fail;
5023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5024 arg2 = (Cursor) PyInt_AsLong(obj1);
5025 if (PyErr_Occurred()) SWIG_fail;
5026 if (arg1) (arg1)->ur_angle = arg2;
5027
5028 Py_INCREF(Py_None); resultobj = Py_None;
5029 return resultobj;
5030 fail:
5031 return NULL;
5032 }
5033
5034
5035 static PyObject *_wrap_Cursors_ur_angle_get(PyObject *self, PyObject *args) {
5036 PyObject *resultobj;
5037 ob::Cursors *arg1 = (ob::Cursors *) 0 ;
5038 Cursor result;
5039 PyObject * obj0 = 0 ;
5040
5041 if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ur_angle_get",&obj0)) goto fail;
5042 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5043 result = (Cursor) ((arg1)->ur_angle);
5044
5045 resultobj = PyInt_FromLong((long)result);
5046 return resultobj;
5047 fail:
5048 return NULL;
5049 }
5050
5051
5052 static PyObject * Cursors_swigregister(PyObject *self, PyObject *args) {
5053 PyObject *obj;
5054 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5055 SWIG_TypeClientData(SWIGTYPE_p_ob__Cursors, obj);
5056 Py_INCREF(obj);
5057 return Py_BuildValue((char *)"");
5058 }
5059 static PyObject *_wrap_Openbox_state(PyObject *self, PyObject *args) {
5060 PyObject *resultobj;
5061 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5062 int result;
5063 PyObject * obj0 = 0 ;
5064
5065 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_state",&obj0)) goto fail;
5066 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5067 result = (int)((ob::Openbox const *)arg1)->state();
5068
5069 resultobj = PyInt_FromLong((long)result);
5070 return resultobj;
5071 fail:
5072 return NULL;
5073 }
5074
5075
5076 static PyObject *_wrap_Openbox_timerManager(PyObject *self, PyObject *args) {
5077 PyObject *resultobj;
5078 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5079 otk::TimerQueueManager *result;
5080 PyObject * obj0 = 0 ;
5081
5082 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_timerManager",&obj0)) goto fail;
5083 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5084 result = (otk::TimerQueueManager *)(arg1)->timerManager();
5085
5086 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__TimerQueueManager, 0);
5087 return resultobj;
5088 fail:
5089 return NULL;
5090 }
5091
5092
5093 static PyObject *_wrap_Openbox_property(PyObject *self, PyObject *args) {
5094 PyObject *resultobj;
5095 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5096 otk::Property *result;
5097 PyObject * obj0 = 0 ;
5098
5099 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_property",&obj0)) goto fail;
5100 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5101 result = (otk::Property *)((ob::Openbox const *)arg1)->property();
5102
5103 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Property, 0);
5104 return resultobj;
5105 fail:
5106 return NULL;
5107 }
5108
5109
5110 static PyObject *_wrap_Openbox_actions(PyObject *self, PyObject *args) {
5111 PyObject *resultobj;
5112 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5113 ob::Actions *result;
5114 PyObject * obj0 = 0 ;
5115
5116 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_actions",&obj0)) goto fail;
5117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5118 result = (ob::Actions *)((ob::Openbox const *)arg1)->actions();
5119
5120 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Actions, 0);
5121 return resultobj;
5122 fail:
5123 return NULL;
5124 }
5125
5126
5127 static PyObject *_wrap_Openbox_bindings(PyObject *self, PyObject *args) {
5128 PyObject *resultobj;
5129 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5130 ob::Bindings *result;
5131 PyObject * obj0 = 0 ;
5132
5133 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_bindings",&obj0)) goto fail;
5134 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5135 result = (ob::Bindings *)((ob::Openbox const *)arg1)->bindings();
5136
5137 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Bindings, 0);
5138 return resultobj;
5139 fail:
5140 return NULL;
5141 }
5142
5143
5144 static PyObject *_wrap_Openbox_screen(PyObject *self, PyObject *args) {
5145 PyObject *resultobj;
5146 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5147 int arg2 ;
5148 ob::Screen *result;
5149 PyObject * obj0 = 0 ;
5150
5151 if(!PyArg_ParseTuple(args,(char *)"Oi:Openbox_screen",&obj0,&arg2)) goto fail;
5152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5153 result = (ob::Screen *)(arg1)->screen(arg2);
5154
5155 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Screen, 0);
5156 return resultobj;
5157 fail:
5158 return NULL;
5159 }
5160
5161
5162 static PyObject *_wrap_Openbox_screenCount(PyObject *self, PyObject *args) {
5163 PyObject *resultobj;
5164 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5165 int result;
5166 PyObject * obj0 = 0 ;
5167
5168 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_screenCount",&obj0)) goto fail;
5169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5170 result = (int)((ob::Openbox const *)arg1)->screenCount();
5171
5172 resultobj = PyInt_FromLong((long)result);
5173 return resultobj;
5174 fail:
5175 return NULL;
5176 }
5177
5178
5179 static PyObject *_wrap_Openbox_cursors(PyObject *self, PyObject *args) {
5180 PyObject *resultobj;
5181 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5182 ob::Cursors *result;
5183 PyObject * obj0 = 0 ;
5184
5185 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_cursors",&obj0)) goto fail;
5186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5187 {
5188 ob::Cursors const &_result_ref = ((ob::Openbox const *)arg1)->cursors();
5189 result = (ob::Cursors *) &_result_ref;
5190 }
5191
5192 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Cursors, 0);
5193 return resultobj;
5194 fail:
5195 return NULL;
5196 }
5197
5198
5199 static PyObject *_wrap_Openbox_addClient(PyObject *self, PyObject *args) {
5200 PyObject *resultobj;
5201 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5202 Window arg2 ;
5203 ob::Client *arg3 = (ob::Client *) 0 ;
5204 PyObject * obj0 = 0 ;
5205 PyObject * obj1 = 0 ;
5206 PyObject * obj2 = 0 ;
5207
5208 if(!PyArg_ParseTuple(args,(char *)"OOO:Openbox_addClient",&obj0,&obj1,&obj2)) goto fail;
5209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5210 arg2 = (Window) PyInt_AsLong(obj1);
5211 if (PyErr_Occurred()) SWIG_fail;
5212 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5213 (arg1)->addClient(arg2,arg3);
5214
5215 Py_INCREF(Py_None); resultobj = Py_None;
5216 return resultobj;
5217 fail:
5218 return NULL;
5219 }
5220
5221
5222 static PyObject *_wrap_Openbox_removeClient(PyObject *self, PyObject *args) {
5223 PyObject *resultobj;
5224 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5225 Window arg2 ;
5226 PyObject * obj0 = 0 ;
5227 PyObject * obj1 = 0 ;
5228
5229 if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_removeClient",&obj0,&obj1)) goto fail;
5230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5231 arg2 = (Window) PyInt_AsLong(obj1);
5232 if (PyErr_Occurred()) SWIG_fail;
5233 (arg1)->removeClient(arg2);
5234
5235 Py_INCREF(Py_None); resultobj = Py_None;
5236 return resultobj;
5237 fail:
5238 return NULL;
5239 }
5240
5241
5242 static PyObject *_wrap_Openbox_findClient(PyObject *self, PyObject *args) {
5243 PyObject *resultobj;
5244 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5245 Window arg2 ;
5246 ob::Client *result;
5247 PyObject * obj0 = 0 ;
5248 PyObject * obj1 = 0 ;
5249
5250 if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_findClient",&obj0,&obj1)) goto fail;
5251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5252 arg2 = (Window) PyInt_AsLong(obj1);
5253 if (PyErr_Occurred()) SWIG_fail;
5254 result = (ob::Client *)(arg1)->findClient(arg2);
5255
5256 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Client, 0);
5257 return resultobj;
5258 fail:
5259 return NULL;
5260 }
5261
5262
5263 static PyObject *_wrap_Openbox_focusedClient(PyObject *self, PyObject *args) {
5264 PyObject *resultobj;
5265 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5266 ob::Client *result;
5267 PyObject * obj0 = 0 ;
5268
5269 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedClient",&obj0)) goto fail;
5270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5271 result = (ob::Client *)(arg1)->focusedClient();
5272
5273 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Client, 0);
5274 return resultobj;
5275 fail:
5276 return NULL;
5277 }
5278
5279
5280 static PyObject *_wrap_Openbox_setFocusedClient(PyObject *self, PyObject *args) {
5281 PyObject *resultobj;
5282 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5283 ob::Client *arg2 = (ob::Client *) 0 ;
5284 PyObject * obj0 = 0 ;
5285 PyObject * obj1 = 0 ;
5286
5287 if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_setFocusedClient",&obj0,&obj1)) goto fail;
5288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5289 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5290 (arg1)->setFocusedClient(arg2);
5291
5292 Py_INCREF(Py_None); resultobj = Py_None;
5293 return resultobj;
5294 fail:
5295 return NULL;
5296 }
5297
5298
5299 static PyObject *_wrap_Openbox_focusedScreen(PyObject *self, PyObject *args) {
5300 PyObject *resultobj;
5301 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5302 ob::Screen *result;
5303 PyObject * obj0 = 0 ;
5304
5305 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedScreen",&obj0)) goto fail;
5306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5307 result = (ob::Screen *)(arg1)->focusedScreen();
5308
5309 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Screen, 0);
5310 return resultobj;
5311 fail:
5312 return NULL;
5313 }
5314
5315
5316 static PyObject *_wrap_Openbox_shutdown(PyObject *self, PyObject *args) {
5317 PyObject *resultobj;
5318 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5319 PyObject * obj0 = 0 ;
5320
5321 if(!PyArg_ParseTuple(args,(char *)"O:Openbox_shutdown",&obj0)) goto fail;
5322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5323 (arg1)->shutdown();
5324
5325 Py_INCREF(Py_None); resultobj = Py_None;
5326 return resultobj;
5327 fail:
5328 return NULL;
5329 }
5330
5331
5332 static PyObject *_wrap_Openbox_restart(PyObject *self, PyObject *args) {
5333 PyObject *resultobj;
5334 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5335 std::string const &arg2_defvalue = "" ;
5336 std::string *arg2 = (std::string *) &arg2_defvalue ;
5337 std::string temp2 ;
5338 PyObject * obj0 = 0 ;
5339 PyObject * obj1 = 0 ;
5340
5341 if(!PyArg_ParseTuple(args,(char *)"O|O:Openbox_restart",&obj0,&obj1)) goto fail;
5342 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5343 if (obj1) {
5344 {
5345 if (PyString_Check(obj1)) {
5346 temp2 = std::string(PyString_AsString(obj1));
5347 arg2 = &temp2;
5348 }else {
5349 SWIG_exception(SWIG_TypeError, "string expected");
5350 }
5351 }
5352 }
5353 (arg1)->restart((std::string const &)*arg2);
5354
5355 Py_INCREF(Py_None); resultobj = Py_None;
5356 return resultobj;
5357 fail:
5358 return NULL;
5359 }
5360
5361
5362 static PyObject *_wrap_Openbox_execute(PyObject *self, PyObject *args) {
5363 PyObject *resultobj;
5364 ob::Openbox *arg1 = (ob::Openbox *) 0 ;
5365 int arg2 ;
5366 std::string *arg3 = 0 ;
5367 std::string temp3 ;
5368 PyObject * obj0 = 0 ;
5369 PyObject * obj2 = 0 ;
5370
5371 if(!PyArg_ParseTuple(args,(char *)"OiO:Openbox_execute",&obj0,&arg2,&obj2)) goto fail;
5372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5373 {
5374 if (PyString_Check(obj2)) {
5375 temp3 = std::string(PyString_AsString(obj2));
5376 arg3 = &temp3;
5377 }else {
5378 SWIG_exception(SWIG_TypeError, "string expected");
5379 }
5380 }
5381 (arg1)->execute(arg2,(std::string const &)*arg3);
5382
5383 Py_INCREF(Py_None); resultobj = Py_None;
5384 return resultobj;
5385 fail:
5386 return NULL;
5387 }
5388
5389
5390 static PyObject * Openbox_swigregister(PyObject *self, PyObject *args) {
5391 PyObject *obj;
5392 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5393 SWIG_TypeClientData(SWIGTYPE_p_ob__Openbox, obj);
5394 Py_INCREF(obj);
5395 return Py_BuildValue((char *)"");
5396 }
5397 static PyObject *_wrap_Screen_client(PyObject *self, PyObject *args) {
5398 PyObject *resultobj;
5399 ob::Screen *arg1 = (ob::Screen *) 0 ;
5400 int arg2 ;
5401 ob::Client *result;
5402 PyObject * obj0 = 0 ;
5403
5404 if(!PyArg_ParseTuple(args,(char *)"Oi:Screen_client",&obj0,&arg2)) goto fail;
5405 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5406 result = (ob::Client *)ob_Screen_client(arg1,arg2);
5407
5408 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Client, 0);
5409 return resultobj;
5410 fail:
5411 return NULL;
5412 }
5413
5414
5415 static PyObject *_wrap_Screen_clientCount(PyObject *self, PyObject *args) {
5416 PyObject *resultobj;
5417 ob::Screen *arg1 = (ob::Screen *) 0 ;
5418 int result;
5419 PyObject * obj0 = 0 ;
5420
5421 if(!PyArg_ParseTuple(args,(char *)"O:Screen_clientCount",&obj0)) goto fail;
5422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5423 result = (int)ob_Screen_clientCount((ob::Screen const *)arg1);
5424
5425 resultobj = PyInt_FromLong((long)result);
5426 return resultobj;
5427 fail:
5428 return NULL;
5429 }
5430
5431
5432 static PyObject *_wrap_Screen_number(PyObject *self, PyObject *args) {
5433 PyObject *resultobj;
5434 ob::Screen *arg1 = (ob::Screen *) 0 ;
5435 int result;
5436 PyObject * obj0 = 0 ;
5437
5438 if(!PyArg_ParseTuple(args,(char *)"O:Screen_number",&obj0)) goto fail;
5439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5440 result = (int)((ob::Screen const *)arg1)->number();
5441
5442 resultobj = PyInt_FromLong((long)result);
5443 return resultobj;
5444 fail:
5445 return NULL;
5446 }
5447
5448
5449 static PyObject *_wrap_Screen_managed(PyObject *self, PyObject *args) {
5450 PyObject *resultobj;
5451 ob::Screen *arg1 = (ob::Screen *) 0 ;
5452 bool result;
5453 PyObject * obj0 = 0 ;
5454
5455 if(!PyArg_ParseTuple(args,(char *)"O:Screen_managed",&obj0)) goto fail;
5456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5457 result = (bool)((ob::Screen const *)arg1)->managed();
5458
5459 resultobj = PyInt_FromLong((long)result);
5460 return resultobj;
5461 fail:
5462 return NULL;
5463 }
5464
5465
5466 static PyObject *_wrap_Screen_imageControl(PyObject *self, PyObject *args) {
5467 PyObject *resultobj;
5468 ob::Screen *arg1 = (ob::Screen *) 0 ;
5469 otk::ImageControl *result;
5470 PyObject * obj0 = 0 ;
5471
5472 if(!PyArg_ParseTuple(args,(char *)"O:Screen_imageControl",&obj0)) goto fail;
5473 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5474 result = (otk::ImageControl *)(arg1)->imageControl();
5475
5476 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ImageControl, 0);
5477 return resultobj;
5478 fail:
5479 return NULL;
5480 }
5481
5482
5483 static PyObject *_wrap_Screen_area(PyObject *self, PyObject *args) {
5484 PyObject *resultobj;
5485 ob::Screen *arg1 = (ob::Screen *) 0 ;
5486 otk::Rect *result;
5487 PyObject * obj0 = 0 ;
5488
5489 if(!PyArg_ParseTuple(args,(char *)"O:Screen_area",&obj0)) goto fail;
5490 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5491 {
5492 otk::Rect const &_result_ref = ((ob::Screen const *)arg1)->area();
5493 result = (otk::Rect *) &_result_ref;
5494 }
5495
5496 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
5497 return resultobj;
5498 fail:
5499 return NULL;
5500 }
5501
5502
5503 static PyObject *_wrap_Screen_style(PyObject *self, PyObject *args) {
5504 PyObject *resultobj;
5505 ob::Screen *arg1 = (ob::Screen *) 0 ;
5506 otk::Style *result;
5507 PyObject * obj0 = 0 ;
5508
5509 if(!PyArg_ParseTuple(args,(char *)"O:Screen_style",&obj0)) goto fail;
5510 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5511 result = (otk::Style *)((ob::Screen const *)arg1)->style();
5512
5513 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
5514 return resultobj;
5515 fail:
5516 return NULL;
5517 }
5518
5519
5520 static PyObject *_wrap_Screen_focuswindow(PyObject *self, PyObject *args) {
5521 PyObject *resultobj;
5522 ob::Screen *arg1 = (ob::Screen *) 0 ;
5523 Window result;
5524 PyObject * obj0 = 0 ;
5525
5526 if(!PyArg_ParseTuple(args,(char *)"O:Screen_focuswindow",&obj0)) goto fail;
5527 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5528 result = (Window)((ob::Screen const *)arg1)->focuswindow();
5529
5530 resultobj = PyInt_FromLong((long)result);
5531 return resultobj;
5532 fail:
5533 return NULL;
5534 }
5535
5536
5537 static PyObject *_wrap_Screen_desktop(PyObject *self, PyObject *args) {
5538 PyObject *resultobj;
5539 ob::Screen *arg1 = (ob::Screen *) 0 ;
5540 long result;
5541 PyObject * obj0 = 0 ;
5542
5543 if(!PyArg_ParseTuple(args,(char *)"O:Screen_desktop",&obj0)) goto fail;
5544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5545 result = (long)((ob::Screen const *)arg1)->desktop();
5546
5547 resultobj = PyInt_FromLong((long)result);
5548 return resultobj;
5549 fail:
5550 return NULL;
5551 }
5552
5553
5554 static PyObject *_wrap_Screen_numDesktops(PyObject *self, PyObject *args) {
5555 PyObject *resultobj;
5556 ob::Screen *arg1 = (ob::Screen *) 0 ;
5557 long result;
5558 PyObject * obj0 = 0 ;
5559
5560 if(!PyArg_ParseTuple(args,(char *)"O:Screen_numDesktops",&obj0)) goto fail;
5561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5562 result = (long)((ob::Screen const *)arg1)->numDesktops();
5563
5564 resultobj = PyInt_FromLong((long)result);
5565 return resultobj;
5566 fail:
5567 return NULL;
5568 }
5569
5570
5571 static PyObject *_wrap_Screen_updateStrut(PyObject *self, PyObject *args) {
5572 PyObject *resultobj;
5573 ob::Screen *arg1 = (ob::Screen *) 0 ;
5574 PyObject * obj0 = 0 ;
5575
5576 if(!PyArg_ParseTuple(args,(char *)"O:Screen_updateStrut",&obj0)) goto fail;
5577 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5578 (arg1)->updateStrut();
5579
5580 Py_INCREF(Py_None); resultobj = Py_None;
5581 return resultobj;
5582 fail:
5583 return NULL;
5584 }
5585
5586
5587 static PyObject *_wrap_Screen_manageExisting(PyObject *self, PyObject *args) {
5588 PyObject *resultobj;
5589 ob::Screen *arg1 = (ob::Screen *) 0 ;
5590 PyObject * obj0 = 0 ;
5591
5592 if(!PyArg_ParseTuple(args,(char *)"O:Screen_manageExisting",&obj0)) goto fail;
5593 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5594 (arg1)->manageExisting();
5595
5596 Py_INCREF(Py_None); resultobj = Py_None;
5597 return resultobj;
5598 fail:
5599 return NULL;
5600 }
5601
5602
5603 static PyObject *_wrap_Screen_manageWindow(PyObject *self, PyObject *args) {
5604 PyObject *resultobj;
5605 ob::Screen *arg1 = (ob::Screen *) 0 ;
5606 Window arg2 ;
5607 PyObject * obj0 = 0 ;
5608 PyObject * obj1 = 0 ;
5609
5610 if(!PyArg_ParseTuple(args,(char *)"OO:Screen_manageWindow",&obj0,&obj1)) goto fail;
5611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5612 arg2 = (Window) PyInt_AsLong(obj1);
5613 if (PyErr_Occurred()) SWIG_fail;
5614 (arg1)->manageWindow(arg2);
5615
5616 Py_INCREF(Py_None); resultobj = Py_None;
5617 return resultobj;
5618 fail:
5619 return NULL;
5620 }
5621
5622
5623 static PyObject *_wrap_Screen_unmanageWindow(PyObject *self, PyObject *args) {
5624 PyObject *resultobj;
5625 ob::Screen *arg1 = (ob::Screen *) 0 ;
5626 ob::Client *arg2 = (ob::Client *) 0 ;
5627 PyObject * obj0 = 0 ;
5628 PyObject * obj1 = 0 ;
5629
5630 if(!PyArg_ParseTuple(args,(char *)"OO:Screen_unmanageWindow",&obj0,&obj1)) goto fail;
5631 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5632 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5633 (arg1)->unmanageWindow(arg2);
5634
5635 Py_INCREF(Py_None); resultobj = Py_None;
5636 return resultobj;
5637 fail:
5638 return NULL;
5639 }
5640
5641
5642 static PyObject *_wrap_Screen_restack(PyObject *self, PyObject *args) {
5643 PyObject *resultobj;
5644 ob::Screen *arg1 = (ob::Screen *) 0 ;
5645 bool arg2 ;
5646 ob::Client *arg3 = (ob::Client *) 0 ;
5647 PyObject * obj0 = 0 ;
5648 PyObject * obj1 = 0 ;
5649 PyObject * obj2 = 0 ;
5650
5651 if(!PyArg_ParseTuple(args,(char *)"OOO:Screen_restack",&obj0,&obj1,&obj2)) goto fail;
5652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5653 arg2 = (bool) PyInt_AsLong(obj1);
5654 if (PyErr_Occurred()) SWIG_fail;
5655 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5656 (arg1)->restack(arg2,arg3);
5657
5658 Py_INCREF(Py_None); resultobj = Py_None;
5659 return resultobj;
5660 fail:
5661 return NULL;
5662 }
5663
5664
5665 static PyObject *_wrap_Screen_setDesktopName(PyObject *self, PyObject *args) {
5666 PyObject *resultobj;
5667 ob::Screen *arg1 = (ob::Screen *) 0 ;
5668 long arg2 ;
5669 otk::ustring *arg3 = 0 ;
5670 otk::ustring temp3 ;
5671 PyObject * obj0 = 0 ;
5672 PyObject * obj2 = 0 ;
5673
5674 if(!PyArg_ParseTuple(args,(char *)"OlO:Screen_setDesktopName",&obj0,&arg2,&obj2)) goto fail;
5675 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5676 {
5677 if (PyString_Check(obj2)) {
5678 temp3 = otk::ustring(PyString_AsString(obj2));
5679 arg3 = &temp3;
5680 }else {
5681 SWIG_exception(SWIG_TypeError, "ustring expected");
5682 }
5683 }
5684 (arg1)->setDesktopName(arg2,(otk::ustring const &)*arg3);
5685
5686 Py_INCREF(Py_None); resultobj = Py_None;
5687 return resultobj;
5688 fail:
5689 return NULL;
5690 }
5691
5692
5693 static PyObject *_wrap_Screen_propertyHandler(PyObject *self, PyObject *args) {
5694 PyObject *resultobj;
5695 ob::Screen *arg1 = (ob::Screen *) 0 ;
5696 XPropertyEvent *arg2 = 0 ;
5697 PyObject * obj0 = 0 ;
5698 PyObject * obj1 = 0 ;
5699
5700 if(!PyArg_ParseTuple(args,(char *)"OO:Screen_propertyHandler",&obj0,&obj1)) goto fail;
5701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5702 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5703 if (arg2 == NULL) {
5704 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5705 }
5706 (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
5707
5708 Py_INCREF(Py_None); resultobj = Py_None;
5709 return resultobj;
5710 fail:
5711 return NULL;
5712 }
5713
5714
5715 static PyObject *_wrap_Screen_clientMessageHandler(PyObject *self, PyObject *args) {
5716 PyObject *resultobj;
5717 ob::Screen *arg1 = (ob::Screen *) 0 ;
5718 XClientMessageEvent *arg2 = 0 ;
5719 PyObject * obj0 = 0 ;
5720 PyObject * obj1 = 0 ;
5721
5722 if(!PyArg_ParseTuple(args,(char *)"OO:Screen_clientMessageHandler",&obj0,&obj1)) goto fail;
5723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5724 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5725 if (arg2 == NULL) {
5726 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5727 }
5728 (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
5729
5730 Py_INCREF(Py_None); resultobj = Py_None;
5731 return resultobj;
5732 fail:
5733 return NULL;
5734 }
5735
5736
5737 static PyObject *_wrap_Screen_mapRequestHandler(PyObject *self, PyObject *args) {
5738 PyObject *resultobj;
5739 ob::Screen *arg1 = (ob::Screen *) 0 ;
5740 XMapRequestEvent *arg2 = 0 ;
5741 PyObject * obj0 = 0 ;
5742 PyObject * obj1 = 0 ;
5743
5744 if(!PyArg_ParseTuple(args,(char *)"OO:Screen_mapRequestHandler",&obj0,&obj1)) goto fail;
5745 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Screen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5746 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5747 if (arg2 == NULL) {
5748 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5749 }
5750 (arg1)->mapRequestHandler((XMapRequestEvent const &)*arg2);
5751
5752 Py_INCREF(Py_None); resultobj = Py_None;
5753 return resultobj;
5754 fail:
5755 return NULL;
5756 }
5757
5758
5759 static PyObject * Screen_swigregister(PyObject *self, PyObject *args) {
5760 PyObject *obj;
5761 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5762 SWIG_TypeClientData(SWIGTYPE_p_ob__Screen, obj);
5763 Py_INCREF(obj);
5764 return Py_BuildValue((char *)"");
5765 }
5766 static PyObject *_wrap_MwmHints_flags_set(PyObject *self, PyObject *args) {
5767 PyObject *resultobj;
5768 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
5769 unsigned long arg2 ;
5770 PyObject * obj0 = 0 ;
5771 PyObject * obj1 = 0 ;
5772
5773 if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_flags_set",&obj0,&obj1)) goto fail;
5774 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5775 arg2 = (unsigned long) PyInt_AsLong(obj1);
5776 if (PyErr_Occurred()) SWIG_fail;
5777 if (arg1) (arg1)->flags = arg2;
5778
5779 Py_INCREF(Py_None); resultobj = Py_None;
5780 return resultobj;
5781 fail:
5782 return NULL;
5783 }
5784
5785
5786 static PyObject *_wrap_MwmHints_flags_get(PyObject *self, PyObject *args) {
5787 PyObject *resultobj;
5788 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
5789 unsigned long result;
5790 PyObject * obj0 = 0 ;
5791
5792 if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_flags_get",&obj0)) goto fail;
5793 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5794 result = (unsigned long) ((arg1)->flags);
5795
5796 resultobj = PyInt_FromLong((long)result);
5797 return resultobj;
5798 fail:
5799 return NULL;
5800 }
5801
5802
5803 static PyObject *_wrap_MwmHints_functions_set(PyObject *self, PyObject *args) {
5804 PyObject *resultobj;
5805 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
5806 unsigned long arg2 ;
5807 PyObject * obj0 = 0 ;
5808 PyObject * obj1 = 0 ;
5809
5810 if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_functions_set",&obj0,&obj1)) goto fail;
5811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5812 arg2 = (unsigned long) PyInt_AsLong(obj1);
5813 if (PyErr_Occurred()) SWIG_fail;
5814 if (arg1) (arg1)->functions = arg2;
5815
5816 Py_INCREF(Py_None); resultobj = Py_None;
5817 return resultobj;
5818 fail:
5819 return NULL;
5820 }
5821
5822
5823 static PyObject *_wrap_MwmHints_functions_get(PyObject *self, PyObject *args) {
5824 PyObject *resultobj;
5825 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
5826 unsigned long result;
5827 PyObject * obj0 = 0 ;
5828
5829 if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_functions_get",&obj0)) goto fail;
5830 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5831 result = (unsigned long) ((arg1)->functions);
5832
5833 resultobj = PyInt_FromLong((long)result);
5834 return resultobj;
5835 fail:
5836 return NULL;
5837 }
5838
5839
5840 static PyObject *_wrap_MwmHints_decorations_set(PyObject *self, PyObject *args) {
5841 PyObject *resultobj;
5842 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
5843 unsigned long arg2 ;
5844 PyObject * obj0 = 0 ;
5845 PyObject * obj1 = 0 ;
5846
5847 if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_decorations_set",&obj0,&obj1)) goto fail;
5848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5849 arg2 = (unsigned long) PyInt_AsLong(obj1);
5850 if (PyErr_Occurred()) SWIG_fail;
5851 if (arg1) (arg1)->decorations = arg2;
5852
5853 Py_INCREF(Py_None); resultobj = Py_None;
5854 return resultobj;
5855 fail:
5856 return NULL;
5857 }
5858
5859
5860 static PyObject *_wrap_MwmHints_decorations_get(PyObject *self, PyObject *args) {
5861 PyObject *resultobj;
5862 ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
5863 unsigned long result;
5864 PyObject * obj0 = 0 ;
5865
5866 if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_decorations_get",&obj0)) goto fail;
5867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5868 result = (unsigned long) ((arg1)->decorations);
5869
5870 resultobj = PyInt_FromLong((long)result);
5871 return resultobj;
5872 fail:
5873 return NULL;
5874 }
5875
5876
5877 static PyObject * MwmHints_swigregister(PyObject *self, PyObject *args) {
5878 PyObject *obj;
5879 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5880 SWIG_TypeClientData(SWIGTYPE_p_ob__MwmHints, obj);
5881 Py_INCREF(obj);
5882 return Py_BuildValue((char *)"");
5883 }
5884 static PyObject *_wrap_Client_frame_set(PyObject *self, PyObject *args) {
5885 PyObject *resultobj;
5886 ob::Client *arg1 = (ob::Client *) 0 ;
5887 ob::Frame *arg2 = (ob::Frame *) 0 ;
5888 PyObject * obj0 = 0 ;
5889 PyObject * obj1 = 0 ;
5890
5891 if(!PyArg_ParseTuple(args,(char *)"OO:Client_frame_set",&obj0,&obj1)) goto fail;
5892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5893 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__Frame,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
5894 if (arg1) (arg1)->frame = arg2;
5895
5896 Py_INCREF(Py_None); resultobj = Py_None;
5897 return resultobj;
5898 fail:
5899 return NULL;
5900 }
5901
5902
5903 static PyObject *_wrap_Client_frame_get(PyObject *self, PyObject *args) {
5904 PyObject *resultobj;
5905 ob::Client *arg1 = (ob::Client *) 0 ;
5906 ob::Frame *result;
5907 PyObject * obj0 = 0 ;
5908
5909 if(!PyArg_ParseTuple(args,(char *)"O:Client_frame_get",&obj0)) goto fail;
5910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5911 result = (ob::Frame *) ((arg1)->frame);
5912
5913 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Frame, 0);
5914 return resultobj;
5915 fail:
5916 return NULL;
5917 }
5918
5919
5920 static PyObject *_wrap_Client_ignore_unmaps_set(PyObject *self, PyObject *args) {
5921 PyObject *resultobj;
5922 ob::Client *arg1 = (ob::Client *) 0 ;
5923 int arg2 ;
5924 PyObject * obj0 = 0 ;
5925
5926 if(!PyArg_ParseTuple(args,(char *)"Oi:Client_ignore_unmaps_set",&obj0,&arg2)) goto fail;
5927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5928 if (arg1) (arg1)->ignore_unmaps = arg2;
5929
5930 Py_INCREF(Py_None); resultobj = Py_None;
5931 return resultobj;
5932 fail:
5933 return NULL;
5934 }
5935
5936
5937 static PyObject *_wrap_Client_ignore_unmaps_get(PyObject *self, PyObject *args) {
5938 PyObject *resultobj;
5939 ob::Client *arg1 = (ob::Client *) 0 ;
5940 int result;
5941 PyObject * obj0 = 0 ;
5942
5943 if(!PyArg_ParseTuple(args,(char *)"O:Client_ignore_unmaps_get",&obj0)) goto fail;
5944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5945 result = (int) ((arg1)->ignore_unmaps);
5946
5947 resultobj = PyInt_FromLong((long)result);
5948 return resultobj;
5949 fail:
5950 return NULL;
5951 }
5952
5953
5954 static PyObject *_wrap_Client_screen(PyObject *self, PyObject *args) {
5955 PyObject *resultobj;
5956 ob::Client *arg1 = (ob::Client *) 0 ;
5957 int result;
5958 PyObject * obj0 = 0 ;
5959
5960 if(!PyArg_ParseTuple(args,(char *)"O:Client_screen",&obj0)) goto fail;
5961 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5962 result = (int)((ob::Client const *)arg1)->screen();
5963
5964 resultobj = PyInt_FromLong((long)result);
5965 return resultobj;
5966 fail:
5967 return NULL;
5968 }
5969
5970
5971 static PyObject *_wrap_Client_window(PyObject *self, PyObject *args) {
5972 PyObject *resultobj;
5973 ob::Client *arg1 = (ob::Client *) 0 ;
5974 Window result;
5975 PyObject * obj0 = 0 ;
5976
5977 if(!PyArg_ParseTuple(args,(char *)"O:Client_window",&obj0)) goto fail;
5978 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5979 result = (Window)((ob::Client const *)arg1)->window();
5980
5981 resultobj = PyInt_FromLong((long)result);
5982 return resultobj;
5983 fail:
5984 return NULL;
5985 }
5986
5987
5988 static PyObject *_wrap_Client_type(PyObject *self, PyObject *args) {
5989 PyObject *resultobj;
5990 ob::Client *arg1 = (ob::Client *) 0 ;
5991 int result;
5992 PyObject * obj0 = 0 ;
5993
5994 if(!PyArg_ParseTuple(args,(char *)"O:Client_type",&obj0)) goto fail;
5995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5996 result = (int)((ob::Client const *)arg1)->type();
5997
5998 resultobj = PyInt_FromLong((long)result);
5999 return resultobj;
6000 fail:
6001 return NULL;
6002 }
6003
6004
6005 static PyObject *_wrap_Client_normal(PyObject *self, PyObject *args) {
6006 PyObject *resultobj;
6007 ob::Client *arg1 = (ob::Client *) 0 ;
6008 bool result;
6009 PyObject * obj0 = 0 ;
6010
6011 if(!PyArg_ParseTuple(args,(char *)"O:Client_normal",&obj0)) goto fail;
6012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6013 result = (bool)((ob::Client const *)arg1)->normal();
6014
6015 resultobj = PyInt_FromLong((long)result);
6016 return resultobj;
6017 fail:
6018 return NULL;
6019 }
6020
6021
6022 static PyObject *_wrap_Client_desktop(PyObject *self, PyObject *args) {
6023 PyObject *resultobj;
6024 ob::Client *arg1 = (ob::Client *) 0 ;
6025 long result;
6026 PyObject * obj0 = 0 ;
6027
6028 if(!PyArg_ParseTuple(args,(char *)"O:Client_desktop",&obj0)) goto fail;
6029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6030 result = (long)((ob::Client const *)arg1)->desktop();
6031
6032 resultobj = PyInt_FromLong((long)result);
6033 return resultobj;
6034 fail:
6035 return NULL;
6036 }
6037
6038
6039 static PyObject *_wrap_Client_title(PyObject *self, PyObject *args) {
6040 PyObject *resultobj;
6041 ob::Client *arg1 = (ob::Client *) 0 ;
6042 otk::ustring *result;
6043 PyObject * obj0 = 0 ;
6044
6045 if(!PyArg_ParseTuple(args,(char *)"O:Client_title",&obj0)) goto fail;
6046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6047 {
6048 otk::ustring const &_result_ref = ((ob::Client const *)arg1)->title();
6049 result = (otk::ustring *) &_result_ref;
6050 }
6051
6052 {
6053 resultobj = PyString_FromString(result->c_str());
6054 }
6055 return resultobj;
6056 fail:
6057 return NULL;
6058 }
6059
6060
6061 static PyObject *_wrap_Client_iconTitle(PyObject *self, PyObject *args) {
6062 PyObject *resultobj;
6063 ob::Client *arg1 = (ob::Client *) 0 ;
6064 otk::ustring *result;
6065 PyObject * obj0 = 0 ;
6066
6067 if(!PyArg_ParseTuple(args,(char *)"O:Client_iconTitle",&obj0)) goto fail;
6068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6069 {
6070 otk::ustring const &_result_ref = ((ob::Client const *)arg1)->iconTitle();
6071 result = (otk::ustring *) &_result_ref;
6072 }
6073
6074 {
6075 resultobj = PyString_FromString(result->c_str());
6076 }
6077 return resultobj;
6078 fail:
6079 return NULL;
6080 }
6081
6082
6083 static PyObject *_wrap_Client_appName(PyObject *self, PyObject *args) {
6084 PyObject *resultobj;
6085 ob::Client *arg1 = (ob::Client *) 0 ;
6086 std::string *result;
6087 PyObject * obj0 = 0 ;
6088
6089 if(!PyArg_ParseTuple(args,(char *)"O:Client_appName",&obj0)) goto fail;
6090 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6091 {
6092 std::string const &_result_ref = ((ob::Client const *)arg1)->appName();
6093 result = (std::string *) &_result_ref;
6094 }
6095
6096 {
6097 resultobj = PyString_FromString(result->c_str());
6098 }
6099 return resultobj;
6100 fail:
6101 return NULL;
6102 }
6103
6104
6105 static PyObject *_wrap_Client_appClass(PyObject *self, PyObject *args) {
6106 PyObject *resultobj;
6107 ob::Client *arg1 = (ob::Client *) 0 ;
6108 std::string *result;
6109 PyObject * obj0 = 0 ;
6110
6111 if(!PyArg_ParseTuple(args,(char *)"O:Client_appClass",&obj0)) goto fail;
6112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6113 {
6114 std::string const &_result_ref = ((ob::Client const *)arg1)->appClass();
6115 result = (std::string *) &_result_ref;
6116 }
6117
6118 {
6119 resultobj = PyString_FromString(result->c_str());
6120 }
6121 return resultobj;
6122 fail:
6123 return NULL;
6124 }
6125
6126
6127 static PyObject *_wrap_Client_role(PyObject *self, PyObject *args) {
6128 PyObject *resultobj;
6129 ob::Client *arg1 = (ob::Client *) 0 ;
6130 std::string *result;
6131 PyObject * obj0 = 0 ;
6132
6133 if(!PyArg_ParseTuple(args,(char *)"O:Client_role",&obj0)) goto fail;
6134 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6135 {
6136 std::string const &_result_ref = ((ob::Client const *)arg1)->role();
6137 result = (std::string *) &_result_ref;
6138 }
6139
6140 {
6141 resultobj = PyString_FromString(result->c_str());
6142 }
6143 return resultobj;
6144 fail:
6145 return NULL;
6146 }
6147
6148
6149 static PyObject *_wrap_Client_canFocus(PyObject *self, PyObject *args) {
6150 PyObject *resultobj;
6151 ob::Client *arg1 = (ob::Client *) 0 ;
6152 bool result;
6153 PyObject * obj0 = 0 ;
6154
6155 if(!PyArg_ParseTuple(args,(char *)"O:Client_canFocus",&obj0)) goto fail;
6156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6157 result = (bool)((ob::Client const *)arg1)->canFocus();
6158
6159 resultobj = PyInt_FromLong((long)result);
6160 return resultobj;
6161 fail:
6162 return NULL;
6163 }
6164
6165
6166 static PyObject *_wrap_Client_urgent(PyObject *self, PyObject *args) {
6167 PyObject *resultobj;
6168 ob::Client *arg1 = (ob::Client *) 0 ;
6169 bool result;
6170 PyObject * obj0 = 0 ;
6171
6172 if(!PyArg_ParseTuple(args,(char *)"O:Client_urgent",&obj0)) goto fail;
6173 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6174 result = (bool)((ob::Client const *)arg1)->urgent();
6175
6176 resultobj = PyInt_FromLong((long)result);
6177 return resultobj;
6178 fail:
6179 return NULL;
6180 }
6181
6182
6183 static PyObject *_wrap_Client_focusNotify(PyObject *self, PyObject *args) {
6184 PyObject *resultobj;
6185 ob::Client *arg1 = (ob::Client *) 0 ;
6186 bool result;
6187 PyObject * obj0 = 0 ;
6188
6189 if(!PyArg_ParseTuple(args,(char *)"O:Client_focusNotify",&obj0)) goto fail;
6190 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6191 result = (bool)((ob::Client const *)arg1)->focusNotify();
6192
6193 resultobj = PyInt_FromLong((long)result);
6194 return resultobj;
6195 fail:
6196 return NULL;
6197 }
6198
6199
6200 static PyObject *_wrap_Client_shaped(PyObject *self, PyObject *args) {
6201 PyObject *resultobj;
6202 ob::Client *arg1 = (ob::Client *) 0 ;
6203 bool result;
6204 PyObject * obj0 = 0 ;
6205
6206 if(!PyArg_ParseTuple(args,(char *)"O:Client_shaped",&obj0)) goto fail;
6207 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6208 result = (bool)((ob::Client const *)arg1)->shaped();
6209
6210 resultobj = PyInt_FromLong((long)result);
6211 return resultobj;
6212 fail:
6213 return NULL;
6214 }
6215
6216
6217 static PyObject *_wrap_Client_gravity(PyObject *self, PyObject *args) {
6218 PyObject *resultobj;
6219 ob::Client *arg1 = (ob::Client *) 0 ;
6220 int result;
6221 PyObject * obj0 = 0 ;
6222
6223 if(!PyArg_ParseTuple(args,(char *)"O:Client_gravity",&obj0)) goto fail;
6224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6225 result = (int)((ob::Client const *)arg1)->gravity();
6226
6227 resultobj = PyInt_FromLong((long)result);
6228 return resultobj;
6229 fail:
6230 return NULL;
6231 }
6232
6233
6234 static PyObject *_wrap_Client_positionRequested(PyObject *self, PyObject *args) {
6235 PyObject *resultobj;
6236 ob::Client *arg1 = (ob::Client *) 0 ;
6237 bool result;
6238 PyObject * obj0 = 0 ;
6239
6240 if(!PyArg_ParseTuple(args,(char *)"O:Client_positionRequested",&obj0)) goto fail;
6241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6242 result = (bool)((ob::Client const *)arg1)->positionRequested();
6243
6244 resultobj = PyInt_FromLong((long)result);
6245 return resultobj;
6246 fail:
6247 return NULL;
6248 }
6249
6250
6251 static PyObject *_wrap_Client_decorations(PyObject *self, PyObject *args) {
6252 PyObject *resultobj;
6253 ob::Client *arg1 = (ob::Client *) 0 ;
6254 ob::Client::DecorationFlags result;
6255 PyObject * obj0 = 0 ;
6256
6257 if(!PyArg_ParseTuple(args,(char *)"O:Client_decorations",&obj0)) goto fail;
6258 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6259 result = (ob::Client::DecorationFlags)((ob::Client const *)arg1)->decorations();
6260
6261 resultobj = PyInt_FromLong((long)result);
6262 return resultobj;
6263 fail:
6264 return NULL;
6265 }
6266
6267
6268 static PyObject *_wrap_Client_funtions(PyObject *self, PyObject *args) {
6269 PyObject *resultobj;
6270 ob::Client *arg1 = (ob::Client *) 0 ;
6271 ob::Client::FunctionFlags result;
6272 PyObject * obj0 = 0 ;
6273
6274 if(!PyArg_ParseTuple(args,(char *)"O:Client_funtions",&obj0)) goto fail;
6275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6276 result = (ob::Client::FunctionFlags)((ob::Client const *)arg1)->funtions();
6277
6278 resultobj = PyInt_FromLong((long)result);
6279 return resultobj;
6280 fail:
6281 return NULL;
6282 }
6283
6284
6285 static PyObject *_wrap_Client_transientFor(PyObject *self, PyObject *args) {
6286 PyObject *resultobj;
6287 ob::Client *arg1 = (ob::Client *) 0 ;
6288 ob::Client *result;
6289 PyObject * obj0 = 0 ;
6290
6291 if(!PyArg_ParseTuple(args,(char *)"O:Client_transientFor",&obj0)) goto fail;
6292 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6293 result = (ob::Client *)((ob::Client const *)arg1)->transientFor();
6294
6295 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Client, 0);
6296 return resultobj;
6297 fail:
6298 return NULL;
6299 }
6300
6301
6302 static PyObject *_wrap_Client_modal(PyObject *self, PyObject *args) {
6303 PyObject *resultobj;
6304 ob::Client *arg1 = (ob::Client *) 0 ;
6305 bool result;
6306 PyObject * obj0 = 0 ;
6307
6308 if(!PyArg_ParseTuple(args,(char *)"O:Client_modal",&obj0)) goto fail;
6309 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6310 result = (bool)((ob::Client const *)arg1)->modal();
6311
6312 resultobj = PyInt_FromLong((long)result);
6313 return resultobj;
6314 fail:
6315 return NULL;
6316 }
6317
6318
6319 static PyObject *_wrap_Client_shaded(PyObject *self, PyObject *args) {
6320 PyObject *resultobj;
6321 ob::Client *arg1 = (ob::Client *) 0 ;
6322 bool result;
6323 PyObject * obj0 = 0 ;
6324
6325 if(!PyArg_ParseTuple(args,(char *)"O:Client_shaded",&obj0)) goto fail;
6326 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6327 result = (bool)((ob::Client const *)arg1)->shaded();
6328
6329 resultobj = PyInt_FromLong((long)result);
6330 return resultobj;
6331 fail:
6332 return NULL;
6333 }
6334
6335
6336 static PyObject *_wrap_Client_iconic(PyObject *self, PyObject *args) {
6337 PyObject *resultobj;
6338 ob::Client *arg1 = (ob::Client *) 0 ;
6339 bool result;
6340 PyObject * obj0 = 0 ;
6341
6342 if(!PyArg_ParseTuple(args,(char *)"O:Client_iconic",&obj0)) goto fail;
6343 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6344 result = (bool)((ob::Client const *)arg1)->iconic();
6345
6346 resultobj = PyInt_FromLong((long)result);
6347 return resultobj;
6348 fail:
6349 return NULL;
6350 }
6351
6352
6353 static PyObject *_wrap_Client_maxVert(PyObject *self, PyObject *args) {
6354 PyObject *resultobj;
6355 ob::Client *arg1 = (ob::Client *) 0 ;
6356 bool result;
6357 PyObject * obj0 = 0 ;
6358
6359 if(!PyArg_ParseTuple(args,(char *)"O:Client_maxVert",&obj0)) goto fail;
6360 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6361 result = (bool)((ob::Client const *)arg1)->maxVert();
6362
6363 resultobj = PyInt_FromLong((long)result);
6364 return resultobj;
6365 fail:
6366 return NULL;
6367 }
6368
6369
6370 static PyObject *_wrap_Client_maxHorz(PyObject *self, PyObject *args) {
6371 PyObject *resultobj;
6372 ob::Client *arg1 = (ob::Client *) 0 ;
6373 bool result;
6374 PyObject * obj0 = 0 ;
6375
6376 if(!PyArg_ParseTuple(args,(char *)"O:Client_maxHorz",&obj0)) goto fail;
6377 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6378 result = (bool)((ob::Client const *)arg1)->maxHorz();
6379
6380 resultobj = PyInt_FromLong((long)result);
6381 return resultobj;
6382 fail:
6383 return NULL;
6384 }
6385
6386
6387 static PyObject *_wrap_Client_layer(PyObject *self, PyObject *args) {
6388 PyObject *resultobj;
6389 ob::Client *arg1 = (ob::Client *) 0 ;
6390 int result;
6391 PyObject * obj0 = 0 ;
6392
6393 if(!PyArg_ParseTuple(args,(char *)"O:Client_layer",&obj0)) goto fail;
6394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6395 result = (int)((ob::Client const *)arg1)->layer();
6396
6397 resultobj = PyInt_FromLong((long)result);
6398 return resultobj;
6399 fail:
6400 return NULL;
6401 }
6402
6403
6404 static PyObject *_wrap_Client_toggleClientBorder(PyObject *self, PyObject *args) {
6405 PyObject *resultobj;
6406 ob::Client *arg1 = (ob::Client *) 0 ;
6407 bool arg2 ;
6408 PyObject * obj0 = 0 ;
6409 PyObject * obj1 = 0 ;
6410
6411 if(!PyArg_ParseTuple(args,(char *)"OO:Client_toggleClientBorder",&obj0,&obj1)) goto fail;
6412 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6413 arg2 = (bool) PyInt_AsLong(obj1);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 (arg1)->toggleClientBorder(arg2);
6416
6417 Py_INCREF(Py_None); resultobj = Py_None;
6418 return resultobj;
6419 fail:
6420 return NULL;
6421 }
6422
6423
6424 static PyObject *_wrap_Client_area(PyObject *self, PyObject *args) {
6425 PyObject *resultobj;
6426 ob::Client *arg1 = (ob::Client *) 0 ;
6427 otk::Rect *result;
6428 PyObject * obj0 = 0 ;
6429
6430 if(!PyArg_ParseTuple(args,(char *)"O:Client_area",&obj0)) goto fail;
6431 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6432 {
6433 otk::Rect const &_result_ref = ((ob::Client const *)arg1)->area();
6434 result = (otk::Rect *) &_result_ref;
6435 }
6436
6437 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
6438 return resultobj;
6439 fail:
6440 return NULL;
6441 }
6442
6443
6444 static PyObject *_wrap_Client_strut(PyObject *self, PyObject *args) {
6445 PyObject *resultobj;
6446 ob::Client *arg1 = (ob::Client *) 0 ;
6447 otk::Strut *result;
6448 PyObject * obj0 = 0 ;
6449
6450 if(!PyArg_ParseTuple(args,(char *)"O:Client_strut",&obj0)) goto fail;
6451 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6452 {
6453 otk::Strut const &_result_ref = ((ob::Client const *)arg1)->strut();
6454 result = (otk::Strut *) &_result_ref;
6455 }
6456
6457 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 0);
6458 return resultobj;
6459 fail:
6460 return NULL;
6461 }
6462
6463
6464 static PyObject *_wrap_Client_move(PyObject *self, PyObject *args) {
6465 PyObject *resultobj;
6466 ob::Client *arg1 = (ob::Client *) 0 ;
6467 int arg2 ;
6468 int arg3 ;
6469 PyObject * obj0 = 0 ;
6470
6471 if(!PyArg_ParseTuple(args,(char *)"Oii:Client_move",&obj0,&arg2,&arg3)) goto fail;
6472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6473 (arg1)->move(arg2,arg3);
6474
6475 Py_INCREF(Py_None); resultobj = Py_None;
6476 return resultobj;
6477 fail:
6478 return NULL;
6479 }
6480
6481
6482 static PyObject *_wrap_Client_resize(PyObject *self, PyObject *args) {
6483 PyObject *resultobj;
6484 ob::Client *arg1 = (ob::Client *) 0 ;
6485 int arg2 ;
6486 int arg3 ;
6487 int arg4 ;
6488 int arg5 = (int) INT_MIN ;
6489 int arg6 = (int) INT_MIN ;
6490 PyObject * obj0 = 0 ;
6491
6492 if(!PyArg_ParseTuple(args,(char *)"Oiii|ii:Client_resize",&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
6493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6494 (arg1)->resize((ob::Client::Corner )arg2,arg3,arg4,arg5,arg6);
6495
6496 Py_INCREF(Py_None); resultobj = Py_None;
6497 return resultobj;
6498 fail:
6499 return NULL;
6500 }
6501
6502
6503 static PyObject *_wrap_Client_focus(PyObject *self, PyObject *args) {
6504 PyObject *resultobj;
6505 ob::Client *arg1 = (ob::Client *) 0 ;
6506 bool result;
6507 PyObject * obj0 = 0 ;
6508
6509 if(!PyArg_ParseTuple(args,(char *)"O:Client_focus",&obj0)) goto fail;
6510 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6511 result = (bool)((ob::Client const *)arg1)->focus();
6512
6513 resultobj = PyInt_FromLong((long)result);
6514 return resultobj;
6515 fail:
6516 return NULL;
6517 }
6518
6519
6520 static PyObject *_wrap_Client_unfocus(PyObject *self, PyObject *args) {
6521 PyObject *resultobj;
6522 ob::Client *arg1 = (ob::Client *) 0 ;
6523 PyObject * obj0 = 0 ;
6524
6525 if(!PyArg_ParseTuple(args,(char *)"O:Client_unfocus",&obj0)) goto fail;
6526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6527 ((ob::Client const *)arg1)->unfocus();
6528
6529 Py_INCREF(Py_None); resultobj = Py_None;
6530 return resultobj;
6531 fail:
6532 return NULL;
6533 }
6534
6535
6536 static PyObject *_wrap_Client_focusHandler(PyObject *self, PyObject *args) {
6537 PyObject *resultobj;
6538 ob::Client *arg1 = (ob::Client *) 0 ;
6539 XFocusChangeEvent *arg2 = 0 ;
6540 PyObject * obj0 = 0 ;
6541 PyObject * obj1 = 0 ;
6542
6543 if(!PyArg_ParseTuple(args,(char *)"OO:Client_focusHandler",&obj0,&obj1)) goto fail;
6544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6545 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6546 if (arg2 == NULL) {
6547 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6548 }
6549 (arg1)->focusHandler((XFocusChangeEvent const &)*arg2);
6550
6551 Py_INCREF(Py_None); resultobj = Py_None;
6552 return resultobj;
6553 fail:
6554 return NULL;
6555 }
6556
6557
6558 static PyObject *_wrap_Client_unfocusHandler(PyObject *self, PyObject *args) {
6559 PyObject *resultobj;
6560 ob::Client *arg1 = (ob::Client *) 0 ;
6561 XFocusChangeEvent *arg2 = 0 ;
6562 PyObject * obj0 = 0 ;
6563 PyObject * obj1 = 0 ;
6564
6565 if(!PyArg_ParseTuple(args,(char *)"OO:Client_unfocusHandler",&obj0,&obj1)) goto fail;
6566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6567 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6568 if (arg2 == NULL) {
6569 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6570 }
6571 (arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2);
6572
6573 Py_INCREF(Py_None); resultobj = Py_None;
6574 return resultobj;
6575 fail:
6576 return NULL;
6577 }
6578
6579
6580 static PyObject *_wrap_Client_propertyHandler(PyObject *self, PyObject *args) {
6581 PyObject *resultobj;
6582 ob::Client *arg1 = (ob::Client *) 0 ;
6583 XPropertyEvent *arg2 = 0 ;
6584 PyObject * obj0 = 0 ;
6585 PyObject * obj1 = 0 ;
6586
6587 if(!PyArg_ParseTuple(args,(char *)"OO:Client_propertyHandler",&obj0,&obj1)) goto fail;
6588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6589 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6590 if (arg2 == NULL) {
6591 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6592 }
6593 (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
6594
6595 Py_INCREF(Py_None); resultobj = Py_None;
6596 return resultobj;
6597 fail:
6598 return NULL;
6599 }
6600
6601
6602 static PyObject *_wrap_Client_clientMessageHandler(PyObject *self, PyObject *args) {
6603 PyObject *resultobj;
6604 ob::Client *arg1 = (ob::Client *) 0 ;
6605 XClientMessageEvent *arg2 = 0 ;
6606 PyObject * obj0 = 0 ;
6607 PyObject * obj1 = 0 ;
6608
6609 if(!PyArg_ParseTuple(args,(char *)"OO:Client_clientMessageHandler",&obj0,&obj1)) goto fail;
6610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6611 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6612 if (arg2 == NULL) {
6613 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6614 }
6615 (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
6616
6617 Py_INCREF(Py_None); resultobj = Py_None;
6618 return resultobj;
6619 fail:
6620 return NULL;
6621 }
6622
6623
6624 static PyObject *_wrap_Client_configureRequestHandler(PyObject *self, PyObject *args) {
6625 PyObject *resultobj;
6626 ob::Client *arg1 = (ob::Client *) 0 ;
6627 XConfigureRequestEvent *arg2 = 0 ;
6628 PyObject * obj0 = 0 ;
6629 PyObject * obj1 = 0 ;
6630
6631 if(!PyArg_ParseTuple(args,(char *)"OO:Client_configureRequestHandler",&obj0,&obj1)) goto fail;
6632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6633 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6634 if (arg2 == NULL) {
6635 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6636 }
6637 (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2);
6638
6639 Py_INCREF(Py_None); resultobj = Py_None;
6640 return resultobj;
6641 fail:
6642 return NULL;
6643 }
6644
6645
6646 static PyObject *_wrap_Client_unmapHandler(PyObject *self, PyObject *args) {
6647 PyObject *resultobj;
6648 ob::Client *arg1 = (ob::Client *) 0 ;
6649 XUnmapEvent *arg2 = 0 ;
6650 PyObject * obj0 = 0 ;
6651 PyObject * obj1 = 0 ;
6652
6653 if(!PyArg_ParseTuple(args,(char *)"OO:Client_unmapHandler",&obj0,&obj1)) goto fail;
6654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6655 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6656 if (arg2 == NULL) {
6657 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6658 }
6659 (arg1)->unmapHandler((XUnmapEvent const &)*arg2);
6660
6661 Py_INCREF(Py_None); resultobj = Py_None;
6662 return resultobj;
6663 fail:
6664 return NULL;
6665 }
6666
6667
6668 static PyObject *_wrap_Client_destroyHandler(PyObject *self, PyObject *args) {
6669 PyObject *resultobj;
6670 ob::Client *arg1 = (ob::Client *) 0 ;
6671 XDestroyWindowEvent *arg2 = 0 ;
6672 PyObject * obj0 = 0 ;
6673 PyObject * obj1 = 0 ;
6674
6675 if(!PyArg_ParseTuple(args,(char *)"OO:Client_destroyHandler",&obj0,&obj1)) goto fail;
6676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6677 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6678 if (arg2 == NULL) {
6679 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6680 }
6681 (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2);
6682
6683 Py_INCREF(Py_None); resultobj = Py_None;
6684 return resultobj;
6685 fail:
6686 return NULL;
6687 }
6688
6689
6690 static PyObject *_wrap_Client_reparentHandler(PyObject *self, PyObject *args) {
6691 PyObject *resultobj;
6692 ob::Client *arg1 = (ob::Client *) 0 ;
6693 XReparentEvent *arg2 = 0 ;
6694 PyObject * obj0 = 0 ;
6695 PyObject * obj1 = 0 ;
6696
6697 if(!PyArg_ParseTuple(args,(char *)"OO:Client_reparentHandler",&obj0,&obj1)) goto fail;
6698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6699 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6700 if (arg2 == NULL) {
6701 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6702 }
6703 (arg1)->reparentHandler((XReparentEvent const &)*arg2);
6704
6705 Py_INCREF(Py_None); resultobj = Py_None;
6706 return resultobj;
6707 fail:
6708 return NULL;
6709 }
6710
6711
6712 static PyObject * Client_swigregister(PyObject *self, PyObject *args) {
6713 PyObject *obj;
6714 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6715 SWIG_TypeClientData(SWIGTYPE_p_ob__Client, obj);
6716 Py_INCREF(obj);
6717 return Py_BuildValue((char *)"");
6718 }
6719 static PyObject *_wrap_MouseData_screen_set(PyObject *self, PyObject *args) {
6720 PyObject *resultobj;
6721 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6722 int arg2 ;
6723 PyObject * obj0 = 0 ;
6724
6725 if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_screen_set",&obj0,&arg2)) goto fail;
6726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6727 if (arg1) (arg1)->screen = arg2;
6728
6729 Py_INCREF(Py_None); resultobj = Py_None;
6730 return resultobj;
6731 fail:
6732 return NULL;
6733 }
6734
6735
6736 static PyObject *_wrap_MouseData_screen_get(PyObject *self, PyObject *args) {
6737 PyObject *resultobj;
6738 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6739 int result;
6740 PyObject * obj0 = 0 ;
6741
6742 if(!PyArg_ParseTuple(args,(char *)"O:MouseData_screen_get",&obj0)) goto fail;
6743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6744 result = (int) ((arg1)->screen);
6745
6746 resultobj = PyInt_FromLong((long)result);
6747 return resultobj;
6748 fail:
6749 return NULL;
6750 }
6751
6752
6753 static PyObject *_wrap_MouseData_client_set(PyObject *self, PyObject *args) {
6754 PyObject *resultobj;
6755 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6756 ob::Client *arg2 = (ob::Client *) 0 ;
6757 PyObject * obj0 = 0 ;
6758 PyObject * obj1 = 0 ;
6759
6760 if(!PyArg_ParseTuple(args,(char *)"OO:MouseData_client_set",&obj0,&obj1)) goto fail;
6761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6762 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
6763 if (arg1) (arg1)->client = arg2;
6764
6765 Py_INCREF(Py_None); resultobj = Py_None;
6766 return resultobj;
6767 fail:
6768 return NULL;
6769 }
6770
6771
6772 static PyObject *_wrap_MouseData_client_get(PyObject *self, PyObject *args) {
6773 PyObject *resultobj;
6774 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6775 ob::Client *result;
6776 PyObject * obj0 = 0 ;
6777
6778 if(!PyArg_ParseTuple(args,(char *)"O:MouseData_client_get",&obj0)) goto fail;
6779 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6780 result = (ob::Client *) ((arg1)->client);
6781
6782 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Client, 0);
6783 return resultobj;
6784 fail:
6785 return NULL;
6786 }
6787
6788
6789 static PyObject *_wrap_MouseData_time_set(PyObject *self, PyObject *args) {
6790 PyObject *resultobj;
6791 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6792 Time arg2 ;
6793 PyObject * obj0 = 0 ;
6794 PyObject * obj1 = 0 ;
6795
6796 if(!PyArg_ParseTuple(args,(char *)"OO:MouseData_time_set",&obj0,&obj1)) goto fail;
6797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6798 arg2 = (Time) PyInt_AsLong(obj1);
6799 if (PyErr_Occurred()) SWIG_fail;
6800 if (arg1) (arg1)->time = arg2;
6801
6802 Py_INCREF(Py_None); resultobj = Py_None;
6803 return resultobj;
6804 fail:
6805 return NULL;
6806 }
6807
6808
6809 static PyObject *_wrap_MouseData_time_get(PyObject *self, PyObject *args) {
6810 PyObject *resultobj;
6811 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6812 Time result;
6813 PyObject * obj0 = 0 ;
6814
6815 if(!PyArg_ParseTuple(args,(char *)"O:MouseData_time_get",&obj0)) goto fail;
6816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6817 result = (Time) ((arg1)->time);
6818
6819 resultobj = PyInt_FromLong((long)result);
6820 return resultobj;
6821 fail:
6822 return NULL;
6823 }
6824
6825
6826 static PyObject *_wrap_MouseData_state_set(PyObject *self, PyObject *args) {
6827 PyObject *resultobj;
6828 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6829 unsigned int arg2 ;
6830 PyObject * obj0 = 0 ;
6831 PyObject * obj1 = 0 ;
6832
6833 if(!PyArg_ParseTuple(args,(char *)"OO:MouseData_state_set",&obj0,&obj1)) goto fail;
6834 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6835 arg2 = (unsigned int) PyInt_AsLong(obj1);
6836 if (PyErr_Occurred()) SWIG_fail;
6837 if (arg1) (arg1)->state = arg2;
6838
6839 Py_INCREF(Py_None); resultobj = Py_None;
6840 return resultobj;
6841 fail:
6842 return NULL;
6843 }
6844
6845
6846 static PyObject *_wrap_MouseData_state_get(PyObject *self, PyObject *args) {
6847 PyObject *resultobj;
6848 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6849 unsigned int result;
6850 PyObject * obj0 = 0 ;
6851
6852 if(!PyArg_ParseTuple(args,(char *)"O:MouseData_state_get",&obj0)) goto fail;
6853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6854 result = (unsigned int) ((arg1)->state);
6855
6856 resultobj = PyInt_FromLong((long)result);
6857 return resultobj;
6858 fail:
6859 return NULL;
6860 }
6861
6862
6863 static PyObject *_wrap_MouseData_button_set(PyObject *self, PyObject *args) {
6864 PyObject *resultobj;
6865 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6866 unsigned int arg2 ;
6867 PyObject * obj0 = 0 ;
6868 PyObject * obj1 = 0 ;
6869
6870 if(!PyArg_ParseTuple(args,(char *)"OO:MouseData_button_set",&obj0,&obj1)) goto fail;
6871 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6872 arg2 = (unsigned int) PyInt_AsLong(obj1);
6873 if (PyErr_Occurred()) SWIG_fail;
6874 if (arg1) (arg1)->button = arg2;
6875
6876 Py_INCREF(Py_None); resultobj = Py_None;
6877 return resultobj;
6878 fail:
6879 return NULL;
6880 }
6881
6882
6883 static PyObject *_wrap_MouseData_button_get(PyObject *self, PyObject *args) {
6884 PyObject *resultobj;
6885 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6886 unsigned int result;
6887 PyObject * obj0 = 0 ;
6888
6889 if(!PyArg_ParseTuple(args,(char *)"O:MouseData_button_get",&obj0)) goto fail;
6890 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6891 result = (unsigned int) ((arg1)->button);
6892
6893 resultobj = PyInt_FromLong((long)result);
6894 return resultobj;
6895 fail:
6896 return NULL;
6897 }
6898
6899
6900 static PyObject *_wrap_MouseData_context_set(PyObject *self, PyObject *args) {
6901 PyObject *resultobj;
6902 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6903 int arg2 ;
6904 PyObject * obj0 = 0 ;
6905
6906 if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_context_set",&obj0,&arg2)) goto fail;
6907 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6908 if (arg1) (arg1)->context = (ob::MouseContext )arg2;
6909
6910 Py_INCREF(Py_None); resultobj = Py_None;
6911 return resultobj;
6912 fail:
6913 return NULL;
6914 }
6915
6916
6917 static PyObject *_wrap_MouseData_context_get(PyObject *self, PyObject *args) {
6918 PyObject *resultobj;
6919 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6920 int result;
6921 PyObject * obj0 = 0 ;
6922
6923 if(!PyArg_ParseTuple(args,(char *)"O:MouseData_context_get",&obj0)) goto fail;
6924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6925 result = (int) ((arg1)->context);
6926
6927 resultobj = PyInt_FromLong((long)result);
6928 return resultobj;
6929 fail:
6930 return NULL;
6931 }
6932
6933
6934 static PyObject *_wrap_MouseData_action_set(PyObject *self, PyObject *args) {
6935 PyObject *resultobj;
6936 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6937 int arg2 ;
6938 PyObject * obj0 = 0 ;
6939
6940 if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_action_set",&obj0,&arg2)) goto fail;
6941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6942 if (arg1) (arg1)->action = (ob::MouseAction )arg2;
6943
6944 Py_INCREF(Py_None); resultobj = Py_None;
6945 return resultobj;
6946 fail:
6947 return NULL;
6948 }
6949
6950
6951 static PyObject *_wrap_MouseData_action_get(PyObject *self, PyObject *args) {
6952 PyObject *resultobj;
6953 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6954 int result;
6955 PyObject * obj0 = 0 ;
6956
6957 if(!PyArg_ParseTuple(args,(char *)"O:MouseData_action_get",&obj0)) goto fail;
6958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6959 result = (int) ((arg1)->action);
6960
6961 resultobj = PyInt_FromLong((long)result);
6962 return resultobj;
6963 fail:
6964 return NULL;
6965 }
6966
6967
6968 static PyObject *_wrap_MouseData_xroot_set(PyObject *self, PyObject *args) {
6969 PyObject *resultobj;
6970 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6971 int arg2 ;
6972 PyObject * obj0 = 0 ;
6973
6974 if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_xroot_set",&obj0,&arg2)) goto fail;
6975 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6976 if (arg1) (arg1)->xroot = arg2;
6977
6978 Py_INCREF(Py_None); resultobj = Py_None;
6979 return resultobj;
6980 fail:
6981 return NULL;
6982 }
6983
6984
6985 static PyObject *_wrap_MouseData_xroot_get(PyObject *self, PyObject *args) {
6986 PyObject *resultobj;
6987 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
6988 int result;
6989 PyObject * obj0 = 0 ;
6990
6991 if(!PyArg_ParseTuple(args,(char *)"O:MouseData_xroot_get",&obj0)) goto fail;
6992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6993 result = (int) ((arg1)->xroot);
6994
6995 resultobj = PyInt_FromLong((long)result);
6996 return resultobj;
6997 fail:
6998 return NULL;
6999 }
7000
7001
7002 static PyObject *_wrap_MouseData_yroot_set(PyObject *self, PyObject *args) {
7003 PyObject *resultobj;
7004 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7005 int arg2 ;
7006 PyObject * obj0 = 0 ;
7007
7008 if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_yroot_set",&obj0,&arg2)) goto fail;
7009 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7010 if (arg1) (arg1)->yroot = arg2;
7011
7012 Py_INCREF(Py_None); resultobj = Py_None;
7013 return resultobj;
7014 fail:
7015 return NULL;
7016 }
7017
7018
7019 static PyObject *_wrap_MouseData_yroot_get(PyObject *self, PyObject *args) {
7020 PyObject *resultobj;
7021 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7022 int result;
7023 PyObject * obj0 = 0 ;
7024
7025 if(!PyArg_ParseTuple(args,(char *)"O:MouseData_yroot_get",&obj0)) goto fail;
7026 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7027 result = (int) ((arg1)->yroot);
7028
7029 resultobj = PyInt_FromLong((long)result);
7030 return resultobj;
7031 fail:
7032 return NULL;
7033 }
7034
7035
7036 static PyObject *_wrap_MouseData_pressx_set(PyObject *self, PyObject *args) {
7037 PyObject *resultobj;
7038 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7039 int arg2 ;
7040 PyObject * obj0 = 0 ;
7041
7042 if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_pressx_set",&obj0,&arg2)) goto fail;
7043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7044 if (arg1) (arg1)->pressx = arg2;
7045
7046 Py_INCREF(Py_None); resultobj = Py_None;
7047 return resultobj;
7048 fail:
7049 return NULL;
7050 }
7051
7052
7053 static PyObject *_wrap_MouseData_pressx_get(PyObject *self, PyObject *args) {
7054 PyObject *resultobj;
7055 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7056 int result;
7057 PyObject * obj0 = 0 ;
7058
7059 if(!PyArg_ParseTuple(args,(char *)"O:MouseData_pressx_get",&obj0)) goto fail;
7060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7061 result = (int) ((arg1)->pressx);
7062
7063 resultobj = PyInt_FromLong((long)result);
7064 return resultobj;
7065 fail:
7066 return NULL;
7067 }
7068
7069
7070 static PyObject *_wrap_MouseData_pressy_set(PyObject *self, PyObject *args) {
7071 PyObject *resultobj;
7072 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7073 int arg2 ;
7074 PyObject * obj0 = 0 ;
7075
7076 if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_pressy_set",&obj0,&arg2)) goto fail;
7077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7078 if (arg1) (arg1)->pressy = arg2;
7079
7080 Py_INCREF(Py_None); resultobj = Py_None;
7081 return resultobj;
7082 fail:
7083 return NULL;
7084 }
7085
7086
7087 static PyObject *_wrap_MouseData_pressy_get(PyObject *self, PyObject *args) {
7088 PyObject *resultobj;
7089 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7090 int result;
7091 PyObject * obj0 = 0 ;
7092
7093 if(!PyArg_ParseTuple(args,(char *)"O:MouseData_pressy_get",&obj0)) goto fail;
7094 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7095 result = (int) ((arg1)->pressy);
7096
7097 resultobj = PyInt_FromLong((long)result);
7098 return resultobj;
7099 fail:
7100 return NULL;
7101 }
7102
7103
7104 static PyObject *_wrap_MouseData_press_clientx_set(PyObject *self, PyObject *args) {
7105 PyObject *resultobj;
7106 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7107 int arg2 ;
7108 PyObject * obj0 = 0 ;
7109
7110 if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_press_clientx_set",&obj0,&arg2)) goto fail;
7111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7112 if (arg1) (arg1)->press_clientx = arg2;
7113
7114 Py_INCREF(Py_None); resultobj = Py_None;
7115 return resultobj;
7116 fail:
7117 return NULL;
7118 }
7119
7120
7121 static PyObject *_wrap_MouseData_press_clientx_get(PyObject *self, PyObject *args) {
7122 PyObject *resultobj;
7123 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7124 int result;
7125 PyObject * obj0 = 0 ;
7126
7127 if(!PyArg_ParseTuple(args,(char *)"O:MouseData_press_clientx_get",&obj0)) goto fail;
7128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7129 result = (int) ((arg1)->press_clientx);
7130
7131 resultobj = PyInt_FromLong((long)result);
7132 return resultobj;
7133 fail:
7134 return NULL;
7135 }
7136
7137
7138 static PyObject *_wrap_MouseData_press_clienty_set(PyObject *self, PyObject *args) {
7139 PyObject *resultobj;
7140 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7141 int arg2 ;
7142 PyObject * obj0 = 0 ;
7143
7144 if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_press_clienty_set",&obj0,&arg2)) goto fail;
7145 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7146 if (arg1) (arg1)->press_clienty = arg2;
7147
7148 Py_INCREF(Py_None); resultobj = Py_None;
7149 return resultobj;
7150 fail:
7151 return NULL;
7152 }
7153
7154
7155 static PyObject *_wrap_MouseData_press_clienty_get(PyObject *self, PyObject *args) {
7156 PyObject *resultobj;
7157 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7158 int result;
7159 PyObject * obj0 = 0 ;
7160
7161 if(!PyArg_ParseTuple(args,(char *)"O:MouseData_press_clienty_get",&obj0)) goto fail;
7162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7163 result = (int) ((arg1)->press_clienty);
7164
7165 resultobj = PyInt_FromLong((long)result);
7166 return resultobj;
7167 fail:
7168 return NULL;
7169 }
7170
7171
7172 static PyObject *_wrap_MouseData_press_clientwidth_set(PyObject *self, PyObject *args) {
7173 PyObject *resultobj;
7174 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7175 int arg2 ;
7176 PyObject * obj0 = 0 ;
7177
7178 if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_press_clientwidth_set",&obj0,&arg2)) goto fail;
7179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7180 if (arg1) (arg1)->press_clientwidth = arg2;
7181
7182 Py_INCREF(Py_None); resultobj = Py_None;
7183 return resultobj;
7184 fail:
7185 return NULL;
7186 }
7187
7188
7189 static PyObject *_wrap_MouseData_press_clientwidth_get(PyObject *self, PyObject *args) {
7190 PyObject *resultobj;
7191 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7192 int result;
7193 PyObject * obj0 = 0 ;
7194
7195 if(!PyArg_ParseTuple(args,(char *)"O:MouseData_press_clientwidth_get",&obj0)) goto fail;
7196 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7197 result = (int) ((arg1)->press_clientwidth);
7198
7199 resultobj = PyInt_FromLong((long)result);
7200 return resultobj;
7201 fail:
7202 return NULL;
7203 }
7204
7205
7206 static PyObject *_wrap_MouseData_press_clientheight_set(PyObject *self, PyObject *args) {
7207 PyObject *resultobj;
7208 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7209 int arg2 ;
7210 PyObject * obj0 = 0 ;
7211
7212 if(!PyArg_ParseTuple(args,(char *)"Oi:MouseData_press_clientheight_set",&obj0,&arg2)) goto fail;
7213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7214 if (arg1) (arg1)->press_clientheight = arg2;
7215
7216 Py_INCREF(Py_None); resultobj = Py_None;
7217 return resultobj;
7218 fail:
7219 return NULL;
7220 }
7221
7222
7223 static PyObject *_wrap_MouseData_press_clientheight_get(PyObject *self, PyObject *args) {
7224 PyObject *resultobj;
7225 ob::MouseData *arg1 = (ob::MouseData *) 0 ;
7226 int result;
7227 PyObject * obj0 = 0 ;
7228
7229 if(!PyArg_ParseTuple(args,(char *)"O:MouseData_press_clientheight_get",&obj0)) goto fail;
7230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MouseData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7231 result = (int) ((arg1)->press_clientheight);
7232
7233 resultobj = PyInt_FromLong((long)result);
7234 return resultobj;
7235 fail:
7236 return NULL;
7237 }
7238
7239
7240 static PyObject *_wrap_new_MouseData__SWIG_0(PyObject *self, PyObject *args) {
7241 PyObject *resultobj;
7242 int arg1 ;
7243 ob::Client *arg2 = (ob::Client *) 0 ;
7244 Time arg3 ;
7245 unsigned int arg4 ;
7246 unsigned int arg5 ;
7247 int arg6 ;
7248 int arg7 ;
7249 int arg8 ;
7250 int arg9 ;
7251 otk::Point *arg10 = 0 ;
7252 otk::Rect *arg11 = 0 ;
7253 ob::MouseData *result;
7254 PyObject * obj1 = 0 ;
7255 PyObject * obj2 = 0 ;
7256 PyObject * obj3 = 0 ;
7257 PyObject * obj4 = 0 ;
7258 PyObject * obj9 = 0 ;
7259 PyObject * obj10 = 0 ;
7260
7261 if(!PyArg_ParseTuple(args,(char *)"iOOOOiiiiOO:new_MouseData",&arg1,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7,&arg8,&arg9,&obj9,&obj10)) goto fail;
7262 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7263 arg3 = (Time) PyInt_AsLong(obj2);
7264 if (PyErr_Occurred()) SWIG_fail;
7265 arg4 = (unsigned int) PyInt_AsLong(obj3);
7266 if (PyErr_Occurred()) SWIG_fail;
7267 arg5 = (unsigned int) PyInt_AsLong(obj4);
7268 if (PyErr_Occurred()) SWIG_fail;
7269 if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7270 if (arg10 == NULL) {
7271 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7272 }
7273 if ((SWIG_ConvertPtr(obj10,(void **) &arg11, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7274 if (arg11 == NULL) {
7275 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7276 }
7277 result = (ob::MouseData *)new ob::MouseData(arg1,arg2,arg3,arg4,arg5,(ob::MouseContext )arg6,(ob::MouseAction )arg7,arg8,arg9,(otk::Point const &)*arg10,(otk::Rect const &)*arg11);
7278
7279 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__MouseData, 1);
7280 return resultobj;
7281 fail:
7282 return NULL;
7283 }
7284
7285
7286 static PyObject *_wrap_new_MouseData__SWIG_1(PyObject *self, PyObject *args) {
7287 PyObject *resultobj;
7288 int arg1 ;
7289 ob::Client *arg2 = (ob::Client *) 0 ;
7290 Time arg3 ;
7291 unsigned int arg4 ;
7292 unsigned int arg5 ;
7293 int arg6 ;
7294 int arg7 ;
7295 ob::MouseData *result;
7296 PyObject * obj1 = 0 ;
7297 PyObject * obj2 = 0 ;
7298 PyObject * obj3 = 0 ;
7299 PyObject * obj4 = 0 ;
7300
7301 if(!PyArg_ParseTuple(args,(char *)"iOOOOii:new_MouseData",&arg1,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7)) goto fail;
7302 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7303 arg3 = (Time) PyInt_AsLong(obj2);
7304 if (PyErr_Occurred()) SWIG_fail;
7305 arg4 = (unsigned int) PyInt_AsLong(obj3);
7306 if (PyErr_Occurred()) SWIG_fail;
7307 arg5 = (unsigned int) PyInt_AsLong(obj4);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 result = (ob::MouseData *)new ob::MouseData(arg1,arg2,arg3,arg4,arg5,(ob::MouseContext )arg6,(ob::MouseAction )arg7);
7310
7311 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__MouseData, 1);
7312 return resultobj;
7313 fail:
7314 return NULL;
7315 }
7316
7317
7318 static PyObject *_wrap_new_MouseData(PyObject *self, PyObject *args) {
7319 int argc;
7320 PyObject *argv[12];
7321 int ii;
7322
7323 argc = PyObject_Length(args);
7324 for (ii = 0; (ii < argc) && (ii < 11); ii++) {
7325 argv[ii] = PyTuple_GetItem(args,ii);
7326 }
7327 if (argc == 7) {
7328 int _v;
7329 {
7330 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
7331 }
7332 if (_v) {
7333 {
7334 void *ptr;
7335 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_ob__Client, 0) == -1) {
7336 _v = 0;
7337 PyErr_Clear();
7338 }else {
7339 _v = 1;
7340 }
7341 }
7342 if (_v) {
7343 {
7344 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7345 }
7346 if (_v) {
7347 {
7348 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7349 }
7350 if (_v) {
7351 {
7352 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
7353 }
7354 if (_v) {
7355 {
7356 _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
7357 }
7358 if (_v) {
7359 {
7360 _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
7361 }
7362 if (_v) {
7363 return _wrap_new_MouseData__SWIG_1(self,args);
7364 }
7365 }
7366 }
7367 }
7368 }
7369 }
7370 }
7371 }
7372 if (argc == 11) {
7373 int _v;
7374 {
7375 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
7376 }
7377 if (_v) {
7378 {
7379 void *ptr;
7380 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_ob__Client, 0) == -1) {
7381 _v = 0;
7382 PyErr_Clear();
7383 }else {
7384 _v = 1;
7385 }
7386 }
7387 if (_v) {
7388 {
7389 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7390 }
7391 if (_v) {
7392 {
7393 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7394 }
7395 if (_v) {
7396 {
7397 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
7398 }
7399 if (_v) {
7400 {
7401 _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
7402 }
7403 if (_v) {
7404 {
7405 _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
7406 }
7407 if (_v) {
7408 {
7409 _v = (PyInt_Check(argv[7]) || PyLong_Check(argv[7])) ? 1 : 0;
7410 }
7411 if (_v) {
7412 {
7413 _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
7414 }
7415 if (_v) {
7416 {
7417 void *ptr;
7418 if (SWIG_ConvertPtr(argv[9], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
7419 _v = 0;
7420 PyErr_Clear();
7421 }else {
7422 _v = 1;
7423 }
7424 }
7425 if (_v) {
7426 {
7427 void *ptr;
7428 if (SWIG_ConvertPtr(argv[10], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
7429 _v = 0;
7430 PyErr_Clear();
7431 }else {
7432 _v = 1;
7433 }
7434 }
7435 if (_v) {
7436 return _wrap_new_MouseData__SWIG_0(self,args);
7437 }
7438 }
7439 }
7440 }
7441 }
7442 }
7443 }
7444 }
7445 }
7446 }
7447 }
7448 }
7449
7450 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_MouseData'");
7451 return NULL;
7452 }
7453
7454
7455 static PyObject * MouseData_swigregister(PyObject *self, PyObject *args) {
7456 PyObject *obj;
7457 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7458 SWIG_TypeClientData(SWIGTYPE_p_ob__MouseData, obj);
7459 Py_INCREF(obj);
7460 return Py_BuildValue((char *)"");
7461 }
7462 static PyObject *_wrap_EventData_screen_set(PyObject *self, PyObject *args) {
7463 PyObject *resultobj;
7464 ob::EventData *arg1 = (ob::EventData *) 0 ;
7465 int arg2 ;
7466 PyObject * obj0 = 0 ;
7467
7468 if(!PyArg_ParseTuple(args,(char *)"Oi:EventData_screen_set",&obj0,&arg2)) goto fail;
7469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7470 if (arg1) (arg1)->screen = arg2;
7471
7472 Py_INCREF(Py_None); resultobj = Py_None;
7473 return resultobj;
7474 fail:
7475 return NULL;
7476 }
7477
7478
7479 static PyObject *_wrap_EventData_screen_get(PyObject *self, PyObject *args) {
7480 PyObject *resultobj;
7481 ob::EventData *arg1 = (ob::EventData *) 0 ;
7482 int result;
7483 PyObject * obj0 = 0 ;
7484
7485 if(!PyArg_ParseTuple(args,(char *)"O:EventData_screen_get",&obj0)) goto fail;
7486 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7487 result = (int) ((arg1)->screen);
7488
7489 resultobj = PyInt_FromLong((long)result);
7490 return resultobj;
7491 fail:
7492 return NULL;
7493 }
7494
7495
7496 static PyObject *_wrap_EventData_client_set(PyObject *self, PyObject *args) {
7497 PyObject *resultobj;
7498 ob::EventData *arg1 = (ob::EventData *) 0 ;
7499 ob::Client *arg2 = (ob::Client *) 0 ;
7500 PyObject * obj0 = 0 ;
7501 PyObject * obj1 = 0 ;
7502
7503 if(!PyArg_ParseTuple(args,(char *)"OO:EventData_client_set",&obj0,&obj1)) goto fail;
7504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7505 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
7506 if (arg1) (arg1)->client = arg2;
7507
7508 Py_INCREF(Py_None); resultobj = Py_None;
7509 return resultobj;
7510 fail:
7511 return NULL;
7512 }
7513
7514
7515 static PyObject *_wrap_EventData_client_get(PyObject *self, PyObject *args) {
7516 PyObject *resultobj;
7517 ob::EventData *arg1 = (ob::EventData *) 0 ;
7518 ob::Client *result;
7519 PyObject * obj0 = 0 ;
7520
7521 if(!PyArg_ParseTuple(args,(char *)"O:EventData_client_get",&obj0)) goto fail;
7522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7523 result = (ob::Client *) ((arg1)->client);
7524
7525 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Client, 0);
7526 return resultobj;
7527 fail:
7528 return NULL;
7529 }
7530
7531
7532 static PyObject *_wrap_EventData_state_set(PyObject *self, PyObject *args) {
7533 PyObject *resultobj;
7534 ob::EventData *arg1 = (ob::EventData *) 0 ;
7535 unsigned int arg2 ;
7536 PyObject * obj0 = 0 ;
7537 PyObject * obj1 = 0 ;
7538
7539 if(!PyArg_ParseTuple(args,(char *)"OO:EventData_state_set",&obj0,&obj1)) goto fail;
7540 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7541 arg2 = (unsigned int) PyInt_AsLong(obj1);
7542 if (PyErr_Occurred()) SWIG_fail;
7543 if (arg1) (arg1)->state = arg2;
7544
7545 Py_INCREF(Py_None); resultobj = Py_None;
7546 return resultobj;
7547 fail:
7548 return NULL;
7549 }
7550
7551
7552 static PyObject *_wrap_EventData_state_get(PyObject *self, PyObject *args) {
7553 PyObject *resultobj;
7554 ob::EventData *arg1 = (ob::EventData *) 0 ;
7555 unsigned int result;
7556 PyObject * obj0 = 0 ;
7557
7558 if(!PyArg_ParseTuple(args,(char *)"O:EventData_state_get",&obj0)) goto fail;
7559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7560 result = (unsigned int) ((arg1)->state);
7561
7562 resultobj = PyInt_FromLong((long)result);
7563 return resultobj;
7564 fail:
7565 return NULL;
7566 }
7567
7568
7569 static PyObject *_wrap_EventData_action_set(PyObject *self, PyObject *args) {
7570 PyObject *resultobj;
7571 ob::EventData *arg1 = (ob::EventData *) 0 ;
7572 int arg2 ;
7573 PyObject * obj0 = 0 ;
7574
7575 if(!PyArg_ParseTuple(args,(char *)"Oi:EventData_action_set",&obj0,&arg2)) goto fail;
7576 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7577 if (arg1) (arg1)->action = (ob::EventAction )arg2;
7578
7579 Py_INCREF(Py_None); resultobj = Py_None;
7580 return resultobj;
7581 fail:
7582 return NULL;
7583 }
7584
7585
7586 static PyObject *_wrap_EventData_action_get(PyObject *self, PyObject *args) {
7587 PyObject *resultobj;
7588 ob::EventData *arg1 = (ob::EventData *) 0 ;
7589 int result;
7590 PyObject * obj0 = 0 ;
7591
7592 if(!PyArg_ParseTuple(args,(char *)"O:EventData_action_get",&obj0)) goto fail;
7593 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__EventData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7594 result = (int) ((arg1)->action);
7595
7596 resultobj = PyInt_FromLong((long)result);
7597 return resultobj;
7598 fail:
7599 return NULL;
7600 }
7601
7602
7603 static PyObject *_wrap_new_EventData(PyObject *self, PyObject *args) {
7604 PyObject *resultobj;
7605 int arg1 ;
7606 ob::Client *arg2 = (ob::Client *) 0 ;
7607 int arg3 ;
7608 unsigned int arg4 ;
7609 ob::EventData *result;
7610 PyObject * obj1 = 0 ;
7611 PyObject * obj3 = 0 ;
7612
7613 if(!PyArg_ParseTuple(args,(char *)"iOiO:new_EventData",&arg1,&obj1,&arg3,&obj3)) goto fail;
7614 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7615 arg4 = (unsigned int) PyInt_AsLong(obj3);
7616 if (PyErr_Occurred()) SWIG_fail;
7617 result = (ob::EventData *)new ob::EventData(arg1,arg2,(ob::EventAction )arg3,arg4);
7618
7619 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__EventData, 1);
7620 return resultobj;
7621 fail:
7622 return NULL;
7623 }
7624
7625
7626 static PyObject * EventData_swigregister(PyObject *self, PyObject *args) {
7627 PyObject *obj;
7628 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7629 SWIG_TypeClientData(SWIGTYPE_p_ob__EventData, obj);
7630 Py_INCREF(obj);
7631 return Py_BuildValue((char *)"");
7632 }
7633 static PyObject *_wrap_KeyData_screen_set(PyObject *self, PyObject *args) {
7634 PyObject *resultobj;
7635 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7636 int arg2 ;
7637 PyObject * obj0 = 0 ;
7638
7639 if(!PyArg_ParseTuple(args,(char *)"Oi:KeyData_screen_set",&obj0,&arg2)) goto fail;
7640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7641 if (arg1) (arg1)->screen = arg2;
7642
7643 Py_INCREF(Py_None); resultobj = Py_None;
7644 return resultobj;
7645 fail:
7646 return NULL;
7647 }
7648
7649
7650 static PyObject *_wrap_KeyData_screen_get(PyObject *self, PyObject *args) {
7651 PyObject *resultobj;
7652 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7653 int result;
7654 PyObject * obj0 = 0 ;
7655
7656 if(!PyArg_ParseTuple(args,(char *)"O:KeyData_screen_get",&obj0)) goto fail;
7657 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7658 result = (int) ((arg1)->screen);
7659
7660 resultobj = PyInt_FromLong((long)result);
7661 return resultobj;
7662 fail:
7663 return NULL;
7664 }
7665
7666
7667 static PyObject *_wrap_KeyData_client_set(PyObject *self, PyObject *args) {
7668 PyObject *resultobj;
7669 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7670 ob::Client *arg2 = (ob::Client *) 0 ;
7671 PyObject * obj0 = 0 ;
7672 PyObject * obj1 = 0 ;
7673
7674 if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_client_set",&obj0,&obj1)) goto fail;
7675 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7676 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
7677 if (arg1) (arg1)->client = arg2;
7678
7679 Py_INCREF(Py_None); resultobj = Py_None;
7680 return resultobj;
7681 fail:
7682 return NULL;
7683 }
7684
7685
7686 static PyObject *_wrap_KeyData_client_get(PyObject *self, PyObject *args) {
7687 PyObject *resultobj;
7688 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7689 ob::Client *result;
7690 PyObject * obj0 = 0 ;
7691
7692 if(!PyArg_ParseTuple(args,(char *)"O:KeyData_client_get",&obj0)) goto fail;
7693 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7694 result = (ob::Client *) ((arg1)->client);
7695
7696 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Client, 0);
7697 return resultobj;
7698 fail:
7699 return NULL;
7700 }
7701
7702
7703 static PyObject *_wrap_KeyData_time_set(PyObject *self, PyObject *args) {
7704 PyObject *resultobj;
7705 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7706 Time arg2 ;
7707 PyObject * obj0 = 0 ;
7708 PyObject * obj1 = 0 ;
7709
7710 if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_time_set",&obj0,&obj1)) goto fail;
7711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7712 arg2 = (Time) PyInt_AsLong(obj1);
7713 if (PyErr_Occurred()) SWIG_fail;
7714 if (arg1) (arg1)->time = arg2;
7715
7716 Py_INCREF(Py_None); resultobj = Py_None;
7717 return resultobj;
7718 fail:
7719 return NULL;
7720 }
7721
7722
7723 static PyObject *_wrap_KeyData_time_get(PyObject *self, PyObject *args) {
7724 PyObject *resultobj;
7725 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7726 Time result;
7727 PyObject * obj0 = 0 ;
7728
7729 if(!PyArg_ParseTuple(args,(char *)"O:KeyData_time_get",&obj0)) goto fail;
7730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7731 result = (Time) ((arg1)->time);
7732
7733 resultobj = PyInt_FromLong((long)result);
7734 return resultobj;
7735 fail:
7736 return NULL;
7737 }
7738
7739
7740 static PyObject *_wrap_KeyData_state_set(PyObject *self, PyObject *args) {
7741 PyObject *resultobj;
7742 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7743 unsigned int arg2 ;
7744 PyObject * obj0 = 0 ;
7745 PyObject * obj1 = 0 ;
7746
7747 if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_state_set",&obj0,&obj1)) goto fail;
7748 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7749 arg2 = (unsigned int) PyInt_AsLong(obj1);
7750 if (PyErr_Occurred()) SWIG_fail;
7751 if (arg1) (arg1)->state = arg2;
7752
7753 Py_INCREF(Py_None); resultobj = Py_None;
7754 return resultobj;
7755 fail:
7756 return NULL;
7757 }
7758
7759
7760 static PyObject *_wrap_KeyData_state_get(PyObject *self, PyObject *args) {
7761 PyObject *resultobj;
7762 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7763 unsigned int result;
7764 PyObject * obj0 = 0 ;
7765
7766 if(!PyArg_ParseTuple(args,(char *)"O:KeyData_state_get",&obj0)) goto fail;
7767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7768 result = (unsigned int) ((arg1)->state);
7769
7770 resultobj = PyInt_FromLong((long)result);
7771 return resultobj;
7772 fail:
7773 return NULL;
7774 }
7775
7776
7777 static PyObject *_wrap_KeyData_key_set(PyObject *self, PyObject *args) {
7778 PyObject *resultobj;
7779 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7780 std::string *arg2 = (std::string *) 0 ;
7781 PyObject * obj0 = 0 ;
7782 PyObject * obj1 = 0 ;
7783
7784 if(!PyArg_ParseTuple(args,(char *)"OO:KeyData_key_set",&obj0,&obj1)) goto fail;
7785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7786 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7787 if (arg1) (arg1)->key = *arg2;
7788
7789 Py_INCREF(Py_None); resultobj = Py_None;
7790 return resultobj;
7791 fail:
7792 return NULL;
7793 }
7794
7795
7796 static PyObject *_wrap_KeyData_key_get(PyObject *self, PyObject *args) {
7797 PyObject *resultobj;
7798 ob::KeyData *arg1 = (ob::KeyData *) 0 ;
7799 std::string *result;
7800 PyObject * obj0 = 0 ;
7801
7802 if(!PyArg_ParseTuple(args,(char *)"O:KeyData_key_get",&obj0)) goto fail;
7803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__KeyData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7804 result = (std::string *)& ((arg1)->key);
7805
7806 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__string, 0);
7807 return resultobj;
7808 fail:
7809 return NULL;
7810 }
7811
7812
7813 static PyObject *_wrap_new_KeyData(PyObject *self, PyObject *args) {
7814 PyObject *resultobj;
7815 int arg1 ;
7816 ob::Client *arg2 = (ob::Client *) 0 ;
7817 Time arg3 ;
7818 unsigned int arg4 ;
7819 unsigned int arg5 ;
7820 ob::KeyData *result;
7821 PyObject * obj1 = 0 ;
7822 PyObject * obj2 = 0 ;
7823 PyObject * obj3 = 0 ;
7824 PyObject * obj4 = 0 ;
7825
7826 if(!PyArg_ParseTuple(args,(char *)"iOOOO:new_KeyData",&arg1,&obj1,&obj2,&obj3,&obj4)) goto fail;
7827 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__Client,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7828 arg3 = (Time) PyInt_AsLong(obj2);
7829 if (PyErr_Occurred()) SWIG_fail;
7830 arg4 = (unsigned int) PyInt_AsLong(obj3);
7831 if (PyErr_Occurred()) SWIG_fail;
7832 arg5 = (unsigned int) PyInt_AsLong(obj4);
7833 if (PyErr_Occurred()) SWIG_fail;
7834 result = (ob::KeyData *)new ob::KeyData(arg1,arg2,arg3,arg4,arg5);
7835
7836 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__KeyData, 1);
7837 return resultobj;
7838 fail:
7839 return NULL;
7840 }
7841
7842
7843 static PyObject * KeyData_swigregister(PyObject *self, PyObject *args) {
7844 PyObject *obj;
7845 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7846 SWIG_TypeClientData(SWIGTYPE_p_ob__KeyData, obj);
7847 Py_INCREF(obj);
7848 return Py_BuildValue((char *)"");
7849 }
7850 static PyObject *_wrap_mbind(PyObject *self, PyObject *args) {
7851 PyObject *resultobj;
7852 std::string *arg1 = 0 ;
7853 int arg2 ;
7854 int arg3 ;
7855 PyObject *arg4 = (PyObject *) 0 ;
7856 PyObject *result;
7857 std::string temp1 ;
7858 PyObject * obj0 = 0 ;
7859 PyObject * obj3 = 0 ;
7860
7861 if(!PyArg_ParseTuple(args,(char *)"OiiO:mbind",&obj0,&arg2,&arg3,&obj3)) goto fail;
7862 {
7863 if (PyString_Check(obj0)) {
7864 temp1 = std::string(PyString_AsString(obj0));
7865 arg1 = &temp1;
7866 }else {
7867 SWIG_exception(SWIG_TypeError, "string expected");
7868 }
7869 }
7870 arg4 = obj3;
7871 result = (PyObject *)ob::mbind((std::string const &)*arg1,(ob::MouseContext )arg2,(ob::MouseAction )arg3,arg4);
7872
7873 resultobj = result;
7874 return resultobj;
7875 fail:
7876 return NULL;
7877 }
7878
7879
7880 static PyObject *_wrap_kbind(PyObject *self, PyObject *args) {
7881 PyObject *resultobj;
7882 PyObject *arg1 = (PyObject *) 0 ;
7883 int arg2 ;
7884 PyObject *arg3 = (PyObject *) 0 ;
7885 PyObject *result;
7886 PyObject * obj0 = 0 ;
7887 PyObject * obj2 = 0 ;
7888
7889 if(!PyArg_ParseTuple(args,(char *)"OiO:kbind",&obj0,&arg2,&obj2)) goto fail;
7890 arg1 = obj0;
7891 arg3 = obj2;
7892 result = (PyObject *)ob::kbind(arg1,(ob::KeyContext )arg2,arg3);
7893
7894 resultobj = result;
7895 return resultobj;
7896 fail:
7897 return NULL;
7898 }
7899
7900
7901 static PyObject *_wrap_ebind(PyObject *self, PyObject *args) {
7902 PyObject *resultobj;
7903 int arg1 ;
7904 PyObject *arg2 = (PyObject *) 0 ;
7905 PyObject *result;
7906 PyObject * obj1 = 0 ;
7907
7908 if(!PyArg_ParseTuple(args,(char *)"iO:ebind",&arg1,&obj1)) goto fail;
7909 arg2 = obj1;
7910 result = (PyObject *)ob::ebind((ob::EventAction )arg1,arg2);
7911
7912 resultobj = result;
7913 return resultobj;
7914 fail:
7915 return NULL;
7916 }
7917
7918
7919 static PyObject *_wrap_set_reset_key(PyObject *self, PyObject *args) {
7920 PyObject *resultobj;
7921 std::string *arg1 = 0 ;
7922 std::string temp1 ;
7923 PyObject * obj0 = 0 ;
7924
7925 if(!PyArg_ParseTuple(args,(char *)"O:set_reset_key",&obj0)) goto fail;
7926 {
7927 if (PyString_Check(obj0)) {
7928 temp1 = std::string(PyString_AsString(obj0));
7929 arg1 = &temp1;
7930 }else {
7931 SWIG_exception(SWIG_TypeError, "string expected");
7932 }
7933 }
7934 ob::set_reset_key((std::string const &)*arg1);
7935
7936 Py_INCREF(Py_None); resultobj = Py_None;
7937 return resultobj;
7938 fail:
7939 return NULL;
7940 }
7941
7942
7943 static PyObject *_wrap_send_client_msg(PyObject *self, PyObject *args) {
7944 PyObject *resultobj;
7945 Window arg1 ;
7946 int arg2 ;
7947 Window arg3 ;
7948 long arg4 ;
7949 long arg5 = (long) 0 ;
7950 long arg6 = (long) 0 ;
7951 long arg7 = (long) 0 ;
7952 long arg8 = (long) 0 ;
7953 PyObject *result;
7954 PyObject * obj0 = 0 ;
7955 PyObject * obj2 = 0 ;
7956
7957 if(!PyArg_ParseTuple(args,(char *)"OiOl|llll:send_client_msg",&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&arg7,&arg8)) goto fail;
7958 arg1 = (Window) PyInt_AsLong(obj0);
7959 if (PyErr_Occurred()) SWIG_fail;
7960 arg3 = (Window) PyInt_AsLong(obj2);
7961 if (PyErr_Occurred()) SWIG_fail;
7962 result = (PyObject *)ob::send_client_msg(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
7963
7964 resultobj = result;
7965 return resultobj;
7966 fail:
7967 return NULL;
7968 }
7969
7970
7971 static PyMethodDef SwigMethods[] = {
7972 { (char *)"Openbox_instance", _wrap_Openbox_instance, METH_VARARGS },
7973 { (char *)"Display_instance", _wrap_Display_instance, METH_VARARGS },
7974 { (char *)"new_Display", _wrap_new_Display, METH_VARARGS },
7975 { (char *)"delete_Display", _wrap_delete_Display, METH_VARARGS },
7976 { (char *)"Display_gcCache", _wrap_Display_gcCache, METH_VARARGS },
7977 { (char *)"Display_screenInfo", _wrap_Display_screenInfo, METH_VARARGS },
7978 { (char *)"Display_findScreen", _wrap_Display_findScreen, METH_VARARGS },
7979 { (char *)"Display_xkb", _wrap_Display_xkb, METH_VARARGS },
7980 { (char *)"Display_xkbEventBase", _wrap_Display_xkbEventBase, METH_VARARGS },
7981 { (char *)"Display_shape", _wrap_Display_shape, METH_VARARGS },
7982 { (char *)"Display_shapeEventBase", _wrap_Display_shapeEventBase, METH_VARARGS },
7983 { (char *)"Display_xinerama", _wrap_Display_xinerama, METH_VARARGS },
7984 { (char *)"Display_numLockMask", _wrap_Display_numLockMask, METH_VARARGS },
7985 { (char *)"Display_scrollLockMask", _wrap_Display_scrollLockMask, METH_VARARGS },
7986 { (char *)"Display___mul__", _wrap_Display___mul__, METH_VARARGS },
7987 { (char *)"Display_grab", _wrap_Display_grab, METH_VARARGS },
7988 { (char *)"Display_ungrab", _wrap_Display_ungrab, METH_VARARGS },
7989 { (char *)"Display_grabButton", _wrap_Display_grabButton, METH_VARARGS },
7990 { (char *)"Display_ungrabButton", _wrap_Display_ungrabButton, METH_VARARGS },
7991 { (char *)"Display_grabKey", _wrap_Display_grabKey, METH_VARARGS },
7992 { (char *)"Display_ungrabKey", _wrap_Display_ungrabKey, METH_VARARGS },
7993 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS },
7994 { (char *)"new_Point", _wrap_new_Point, METH_VARARGS },
7995 { (char *)"Point_setX", _wrap_Point_setX, METH_VARARGS },
7996 { (char *)"Point_x", _wrap_Point_x, METH_VARARGS },
7997 { (char *)"Point_setY", _wrap_Point_setY, METH_VARARGS },
7998 { (char *)"Point_y", _wrap_Point_y, METH_VARARGS },
7999 { (char *)"Point_setPoint", _wrap_Point_setPoint, METH_VARARGS },
8000 { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS },
8001 { (char *)"new_Property", _wrap_new_Property, METH_VARARGS },
8002 { (char *)"delete_Property", _wrap_delete_Property, METH_VARARGS },
8003 { (char *)"Property_set", _wrap_Property_set, METH_VARARGS },
8004 { (char *)"Property_get", _wrap_Property_get, METH_VARARGS },
8005 { (char *)"Property_erase", _wrap_Property_erase, METH_VARARGS },
8006 { (char *)"Property_atom", _wrap_Property_atom, METH_VARARGS },
8007 { (char *)"Property_swigregister", Property_swigregister, METH_VARARGS },
8008 { (char *)"new_Rect", _wrap_new_Rect, METH_VARARGS },
8009 { (char *)"Rect_left", _wrap_Rect_left, METH_VARARGS },
8010 { (char *)"Rect_top", _wrap_Rect_top, METH_VARARGS },
8011 { (char *)"Rect_right", _wrap_Rect_right, METH_VARARGS },
8012 { (char *)"Rect_bottom", _wrap_Rect_bottom, METH_VARARGS },
8013 { (char *)"Rect_x", _wrap_Rect_x, METH_VARARGS },
8014 { (char *)"Rect_y", _wrap_Rect_y, METH_VARARGS },
8015 { (char *)"Rect_location", _wrap_Rect_location, METH_VARARGS },
8016 { (char *)"Rect_setX", _wrap_Rect_setX, METH_VARARGS },
8017 { (char *)"Rect_setY", _wrap_Rect_setY, METH_VARARGS },
8018 { (char *)"Rect_setPos", _wrap_Rect_setPos, METH_VARARGS },
8019 { (char *)"Rect_width", _wrap_Rect_width, METH_VARARGS },
8020 { (char *)"Rect_height", _wrap_Rect_height, METH_VARARGS },
8021 { (char *)"Rect_size", _wrap_Rect_size, METH_VARARGS },
8022 { (char *)"Rect_setWidth", _wrap_Rect_setWidth, METH_VARARGS },
8023 { (char *)"Rect_setHeight", _wrap_Rect_setHeight, METH_VARARGS },
8024 { (char *)"Rect_setSize", _wrap_Rect_setSize, METH_VARARGS },
8025 { (char *)"Rect_setRect", _wrap_Rect_setRect, METH_VARARGS },
8026 { (char *)"Rect_setCoords", _wrap_Rect_setCoords, METH_VARARGS },
8027 { (char *)"Rect___eq__", _wrap_Rect___eq__, METH_VARARGS },
8028 { (char *)"Rect___ne__", _wrap_Rect___ne__, METH_VARARGS },
8029 { (char *)"Rect___or__", _wrap_Rect___or__, METH_VARARGS },
8030 { (char *)"Rect___and__", _wrap_Rect___and__, METH_VARARGS },
8031 { (char *)"Rect___ior__", _wrap_Rect___ior__, METH_VARARGS },
8032 { (char *)"Rect___iand__", _wrap_Rect___iand__, METH_VARARGS },
8033 { (char *)"Rect_valid", _wrap_Rect_valid, METH_VARARGS },
8034 { (char *)"Rect_intersects", _wrap_Rect_intersects, METH_VARARGS },
8035 { (char *)"Rect_contains", _wrap_Rect_contains, METH_VARARGS },
8036 { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS },
8037 { (char *)"new_ScreenInfo", _wrap_new_ScreenInfo, METH_VARARGS },
8038 { (char *)"ScreenInfo_visual", _wrap_ScreenInfo_visual, METH_VARARGS },
8039 { (char *)"ScreenInfo_rootWindow", _wrap_ScreenInfo_rootWindow, METH_VARARGS },
8040 { (char *)"ScreenInfo_colormap", _wrap_ScreenInfo_colormap, METH_VARARGS },
8041 { (char *)"ScreenInfo_depth", _wrap_ScreenInfo_depth, METH_VARARGS },
8042 { (char *)"ScreenInfo_screen", _wrap_ScreenInfo_screen, METH_VARARGS },
8043 { (char *)"ScreenInfo_rect", _wrap_ScreenInfo_rect, METH_VARARGS },
8044 { (char *)"ScreenInfo_width", _wrap_ScreenInfo_width, METH_VARARGS },
8045 { (char *)"ScreenInfo_height", _wrap_ScreenInfo_height, METH_VARARGS },
8046 { (char *)"ScreenInfo_displayString", _wrap_ScreenInfo_displayString, METH_VARARGS },
8047 { (char *)"ScreenInfo_swigregister", ScreenInfo_swigregister, METH_VARARGS },
8048 { (char *)"Strut_top_set", _wrap_Strut_top_set, METH_VARARGS },
8049 { (char *)"Strut_top_get", _wrap_Strut_top_get, METH_VARARGS },
8050 { (char *)"Strut_bottom_set", _wrap_Strut_bottom_set, METH_VARARGS },
8051 { (char *)"Strut_bottom_get", _wrap_Strut_bottom_get, METH_VARARGS },
8052 { (char *)"Strut_left_set", _wrap_Strut_left_set, METH_VARARGS },
8053 { (char *)"Strut_left_get", _wrap_Strut_left_get, METH_VARARGS },
8054 { (char *)"Strut_right_set", _wrap_Strut_right_set, METH_VARARGS },
8055 { (char *)"Strut_right_get", _wrap_Strut_right_get, METH_VARARGS },
8056 { (char *)"new_Strut", _wrap_new_Strut, METH_VARARGS },
8057 { (char *)"Strut_swigregister", Strut_swigregister, METH_VARARGS },
8058 { (char *)"EventHandler_handle", _wrap_EventHandler_handle, METH_VARARGS },
8059 { (char *)"EventHandler_keyPressHandler", _wrap_EventHandler_keyPressHandler, METH_VARARGS },
8060 { (char *)"EventHandler_keyReleaseHandler", _wrap_EventHandler_keyReleaseHandler, METH_VARARGS },
8061 { (char *)"EventHandler_buttonPressHandler", _wrap_EventHandler_buttonPressHandler, METH_VARARGS },
8062 { (char *)"EventHandler_buttonReleaseHandler", _wrap_EventHandler_buttonReleaseHandler, METH_VARARGS },
8063 { (char *)"EventHandler_motionHandler", _wrap_EventHandler_motionHandler, METH_VARARGS },
8064 { (char *)"EventHandler_enterHandler", _wrap_EventHandler_enterHandler, METH_VARARGS },
8065 { (char *)"EventHandler_leaveHandler", _wrap_EventHandler_leaveHandler, METH_VARARGS },
8066 { (char *)"EventHandler_focusHandler", _wrap_EventHandler_focusHandler, METH_VARARGS },
8067 { (char *)"EventHandler_unfocusHandler", _wrap_EventHandler_unfocusHandler, METH_VARARGS },
8068 { (char *)"EventHandler_exposeHandler", _wrap_EventHandler_exposeHandler, METH_VARARGS },
8069 { (char *)"EventHandler_graphicsExposeHandler", _wrap_EventHandler_graphicsExposeHandler, METH_VARARGS },
8070 { (char *)"EventHandler_noExposeEventHandler", _wrap_EventHandler_noExposeEventHandler, METH_VARARGS },
8071 { (char *)"EventHandler_circulateRequestHandler", _wrap_EventHandler_circulateRequestHandler, METH_VARARGS },
8072 { (char *)"EventHandler_configureRequestHandler", _wrap_EventHandler_configureRequestHandler, METH_VARARGS },
8073 { (char *)"EventHandler_mapRequestHandler", _wrap_EventHandler_mapRequestHandler, METH_VARARGS },
8074 { (char *)"EventHandler_resizeRequestHandler", _wrap_EventHandler_resizeRequestHandler, METH_VARARGS },
8075 { (char *)"EventHandler_circulateHandler", _wrap_EventHandler_circulateHandler, METH_VARARGS },
8076 { (char *)"EventHandler_configureHandler", _wrap_EventHandler_configureHandler, METH_VARARGS },
8077 { (char *)"EventHandler_createHandler", _wrap_EventHandler_createHandler, METH_VARARGS },
8078 { (char *)"EventHandler_destroyHandler", _wrap_EventHandler_destroyHandler, METH_VARARGS },
8079 { (char *)"EventHandler_gravityHandler", _wrap_EventHandler_gravityHandler, METH_VARARGS },
8080 { (char *)"EventHandler_mapHandler", _wrap_EventHandler_mapHandler, METH_VARARGS },
8081 { (char *)"EventHandler_mappingHandler", _wrap_EventHandler_mappingHandler, METH_VARARGS },
8082 { (char *)"EventHandler_reparentHandler", _wrap_EventHandler_reparentHandler, METH_VARARGS },
8083 { (char *)"EventHandler_unmapHandler", _wrap_EventHandler_unmapHandler, METH_VARARGS },
8084 { (char *)"EventHandler_visibilityHandler", _wrap_EventHandler_visibilityHandler, METH_VARARGS },
8085 { (char *)"EventHandler_colorMapHandler", _wrap_EventHandler_colorMapHandler, METH_VARARGS },
8086 { (char *)"EventHandler_propertyHandler", _wrap_EventHandler_propertyHandler, METH_VARARGS },
8087 { (char *)"EventHandler_selectionClearHandler", _wrap_EventHandler_selectionClearHandler, METH_VARARGS },
8088 { (char *)"EventHandler_selectionHandler", _wrap_EventHandler_selectionHandler, METH_VARARGS },
8089 { (char *)"EventHandler_selectionRequestHandler", _wrap_EventHandler_selectionRequestHandler, METH_VARARGS },
8090 { (char *)"EventHandler_clientMessageHandler", _wrap_EventHandler_clientMessageHandler, METH_VARARGS },
8091 { (char *)"delete_EventHandler", _wrap_delete_EventHandler, METH_VARARGS },
8092 { (char *)"EventHandler_swigregister", EventHandler_swigregister, METH_VARARGS },
8093 { (char *)"new_EventDispatcher", _wrap_new_EventDispatcher, METH_VARARGS },
8094 { (char *)"delete_EventDispatcher", _wrap_delete_EventDispatcher, METH_VARARGS },
8095 { (char *)"EventDispatcher_clearAllHandlers", _wrap_EventDispatcher_clearAllHandlers, METH_VARARGS },
8096 { (char *)"EventDispatcher_registerHandler", _wrap_EventDispatcher_registerHandler, METH_VARARGS },
8097 { (char *)"EventDispatcher_clearHandler", _wrap_EventDispatcher_clearHandler, METH_VARARGS },
8098 { (char *)"EventDispatcher_dispatchEvents", _wrap_EventDispatcher_dispatchEvents, METH_VARARGS },
8099 { (char *)"EventDispatcher_setFallbackHandler", _wrap_EventDispatcher_setFallbackHandler, METH_VARARGS },
8100 { (char *)"EventDispatcher_getFallbackHandler", _wrap_EventDispatcher_getFallbackHandler, METH_VARARGS },
8101 { (char *)"EventDispatcher_setMasterHandler", _wrap_EventDispatcher_setMasterHandler, METH_VARARGS },
8102 { (char *)"EventDispatcher_getMasterHandler", _wrap_EventDispatcher_getMasterHandler, METH_VARARGS },
8103 { (char *)"EventDispatcher_findHandler", _wrap_EventDispatcher_findHandler, METH_VARARGS },
8104 { (char *)"EventDispatcher_lastTime", _wrap_EventDispatcher_lastTime, METH_VARARGS },
8105 { (char *)"EventDispatcher_swigregister", EventDispatcher_swigregister, METH_VARARGS },
8106 { (char *)"Cursors_session_set", _wrap_Cursors_session_set, METH_VARARGS },
8107 { (char *)"Cursors_session_get", _wrap_Cursors_session_get, METH_VARARGS },
8108 { (char *)"Cursors_move_set", _wrap_Cursors_move_set, METH_VARARGS },
8109 { (char *)"Cursors_move_get", _wrap_Cursors_move_get, METH_VARARGS },
8110 { (char *)"Cursors_ll_angle_set", _wrap_Cursors_ll_angle_set, METH_VARARGS },
8111 { (char *)"Cursors_ll_angle_get", _wrap_Cursors_ll_angle_get, METH_VARARGS },
8112 { (char *)"Cursors_lr_angle_set", _wrap_Cursors_lr_angle_set, METH_VARARGS },
8113 { (char *)"Cursors_lr_angle_get", _wrap_Cursors_lr_angle_get, METH_VARARGS },
8114 { (char *)"Cursors_ul_angle_set", _wrap_Cursors_ul_angle_set, METH_VARARGS },
8115 { (char *)"Cursors_ul_angle_get", _wrap_Cursors_ul_angle_get, METH_VARARGS },
8116 { (char *)"Cursors_ur_angle_set", _wrap_Cursors_ur_angle_set, METH_VARARGS },
8117 { (char *)"Cursors_ur_angle_get", _wrap_Cursors_ur_angle_get, METH_VARARGS },
8118 { (char *)"Cursors_swigregister", Cursors_swigregister, METH_VARARGS },
8119 { (char *)"Openbox_state", _wrap_Openbox_state, METH_VARARGS },
8120 { (char *)"Openbox_timerManager", _wrap_Openbox_timerManager, METH_VARARGS },
8121 { (char *)"Openbox_property", _wrap_Openbox_property, METH_VARARGS },
8122 { (char *)"Openbox_actions", _wrap_Openbox_actions, METH_VARARGS },
8123 { (char *)"Openbox_bindings", _wrap_Openbox_bindings, METH_VARARGS },
8124 { (char *)"Openbox_screen", _wrap_Openbox_screen, METH_VARARGS },
8125 { (char *)"Openbox_screenCount", _wrap_Openbox_screenCount, METH_VARARGS },
8126 { (char *)"Openbox_cursors", _wrap_Openbox_cursors, METH_VARARGS },
8127 { (char *)"Openbox_addClient", _wrap_Openbox_addClient, METH_VARARGS },
8128 { (char *)"Openbox_removeClient", _wrap_Openbox_removeClient, METH_VARARGS },
8129 { (char *)"Openbox_findClient", _wrap_Openbox_findClient, METH_VARARGS },
8130 { (char *)"Openbox_focusedClient", _wrap_Openbox_focusedClient, METH_VARARGS },
8131 { (char *)"Openbox_setFocusedClient", _wrap_Openbox_setFocusedClient, METH_VARARGS },
8132 { (char *)"Openbox_focusedScreen", _wrap_Openbox_focusedScreen, METH_VARARGS },
8133 { (char *)"Openbox_shutdown", _wrap_Openbox_shutdown, METH_VARARGS },
8134 { (char *)"Openbox_restart", _wrap_Openbox_restart, METH_VARARGS },
8135 { (char *)"Openbox_execute", _wrap_Openbox_execute, METH_VARARGS },
8136 { (char *)"Openbox_swigregister", Openbox_swigregister, METH_VARARGS },
8137 { (char *)"Screen_client", _wrap_Screen_client, METH_VARARGS },
8138 { (char *)"Screen_clientCount", _wrap_Screen_clientCount, METH_VARARGS },
8139 { (char *)"Screen_number", _wrap_Screen_number, METH_VARARGS },
8140 { (char *)"Screen_managed", _wrap_Screen_managed, METH_VARARGS },
8141 { (char *)"Screen_imageControl", _wrap_Screen_imageControl, METH_VARARGS },
8142 { (char *)"Screen_area", _wrap_Screen_area, METH_VARARGS },
8143 { (char *)"Screen_style", _wrap_Screen_style, METH_VARARGS },
8144 { (char *)"Screen_focuswindow", _wrap_Screen_focuswindow, METH_VARARGS },
8145 { (char *)"Screen_desktop", _wrap_Screen_desktop, METH_VARARGS },
8146 { (char *)"Screen_numDesktops", _wrap_Screen_numDesktops, METH_VARARGS },
8147 { (char *)"Screen_updateStrut", _wrap_Screen_updateStrut, METH_VARARGS },
8148 { (char *)"Screen_manageExisting", _wrap_Screen_manageExisting, METH_VARARGS },
8149 { (char *)"Screen_manageWindow", _wrap_Screen_manageWindow, METH_VARARGS },
8150 { (char *)"Screen_unmanageWindow", _wrap_Screen_unmanageWindow, METH_VARARGS },
8151 { (char *)"Screen_restack", _wrap_Screen_restack, METH_VARARGS },
8152 { (char *)"Screen_setDesktopName", _wrap_Screen_setDesktopName, METH_VARARGS },
8153 { (char *)"Screen_propertyHandler", _wrap_Screen_propertyHandler, METH_VARARGS },
8154 { (char *)"Screen_clientMessageHandler", _wrap_Screen_clientMessageHandler, METH_VARARGS },
8155 { (char *)"Screen_mapRequestHandler", _wrap_Screen_mapRequestHandler, METH_VARARGS },
8156 { (char *)"Screen_swigregister", Screen_swigregister, METH_VARARGS },
8157 { (char *)"MwmHints_flags_set", _wrap_MwmHints_flags_set, METH_VARARGS },
8158 { (char *)"MwmHints_flags_get", _wrap_MwmHints_flags_get, METH_VARARGS },
8159 { (char *)"MwmHints_functions_set", _wrap_MwmHints_functions_set, METH_VARARGS },
8160 { (char *)"MwmHints_functions_get", _wrap_MwmHints_functions_get, METH_VARARGS },
8161 { (char *)"MwmHints_decorations_set", _wrap_MwmHints_decorations_set, METH_VARARGS },
8162 { (char *)"MwmHints_decorations_get", _wrap_MwmHints_decorations_get, METH_VARARGS },
8163 { (char *)"MwmHints_swigregister", MwmHints_swigregister, METH_VARARGS },
8164 { (char *)"Client_frame_set", _wrap_Client_frame_set, METH_VARARGS },
8165 { (char *)"Client_frame_get", _wrap_Client_frame_get, METH_VARARGS },
8166 { (char *)"Client_ignore_unmaps_set", _wrap_Client_ignore_unmaps_set, METH_VARARGS },
8167 { (char *)"Client_ignore_unmaps_get", _wrap_Client_ignore_unmaps_get, METH_VARARGS },
8168 { (char *)"Client_screen", _wrap_Client_screen, METH_VARARGS },
8169 { (char *)"Client_window", _wrap_Client_window, METH_VARARGS },
8170 { (char *)"Client_type", _wrap_Client_type, METH_VARARGS },
8171 { (char *)"Client_normal", _wrap_Client_normal, METH_VARARGS },
8172 { (char *)"Client_desktop", _wrap_Client_desktop, METH_VARARGS },
8173 { (char *)"Client_title", _wrap_Client_title, METH_VARARGS },
8174 { (char *)"Client_iconTitle", _wrap_Client_iconTitle, METH_VARARGS },
8175 { (char *)"Client_appName", _wrap_Client_appName, METH_VARARGS },
8176 { (char *)"Client_appClass", _wrap_Client_appClass, METH_VARARGS },
8177 { (char *)"Client_role", _wrap_Client_role, METH_VARARGS },
8178 { (char *)"Client_canFocus", _wrap_Client_canFocus, METH_VARARGS },
8179 { (char *)"Client_urgent", _wrap_Client_urgent, METH_VARARGS },
8180 { (char *)"Client_focusNotify", _wrap_Client_focusNotify, METH_VARARGS },
8181 { (char *)"Client_shaped", _wrap_Client_shaped, METH_VARARGS },
8182 { (char *)"Client_gravity", _wrap_Client_gravity, METH_VARARGS },
8183 { (char *)"Client_positionRequested", _wrap_Client_positionRequested, METH_VARARGS },
8184 { (char *)"Client_decorations", _wrap_Client_decorations, METH_VARARGS },
8185 { (char *)"Client_funtions", _wrap_Client_funtions, METH_VARARGS },
8186 { (char *)"Client_transientFor", _wrap_Client_transientFor, METH_VARARGS },
8187 { (char *)"Client_modal", _wrap_Client_modal, METH_VARARGS },
8188 { (char *)"Client_shaded", _wrap_Client_shaded, METH_VARARGS },
8189 { (char *)"Client_iconic", _wrap_Client_iconic, METH_VARARGS },
8190 { (char *)"Client_maxVert", _wrap_Client_maxVert, METH_VARARGS },
8191 { (char *)"Client_maxHorz", _wrap_Client_maxHorz, METH_VARARGS },
8192 { (char *)"Client_layer", _wrap_Client_layer, METH_VARARGS },
8193 { (char *)"Client_toggleClientBorder", _wrap_Client_toggleClientBorder, METH_VARARGS },
8194 { (char *)"Client_area", _wrap_Client_area, METH_VARARGS },
8195 { (char *)"Client_strut", _wrap_Client_strut, METH_VARARGS },
8196 { (char *)"Client_move", _wrap_Client_move, METH_VARARGS },
8197 { (char *)"Client_resize", _wrap_Client_resize, METH_VARARGS },
8198 { (char *)"Client_focus", _wrap_Client_focus, METH_VARARGS },
8199 { (char *)"Client_unfocus", _wrap_Client_unfocus, METH_VARARGS },
8200 { (char *)"Client_focusHandler", _wrap_Client_focusHandler, METH_VARARGS },
8201 { (char *)"Client_unfocusHandler", _wrap_Client_unfocusHandler, METH_VARARGS },
8202 { (char *)"Client_propertyHandler", _wrap_Client_propertyHandler, METH_VARARGS },
8203 { (char *)"Client_clientMessageHandler", _wrap_Client_clientMessageHandler, METH_VARARGS },
8204 { (char *)"Client_configureRequestHandler", _wrap_Client_configureRequestHandler, METH_VARARGS },
8205 { (char *)"Client_unmapHandler", _wrap_Client_unmapHandler, METH_VARARGS },
8206 { (char *)"Client_destroyHandler", _wrap_Client_destroyHandler, METH_VARARGS },
8207 { (char *)"Client_reparentHandler", _wrap_Client_reparentHandler, METH_VARARGS },
8208 { (char *)"Client_swigregister", Client_swigregister, METH_VARARGS },
8209 { (char *)"MouseData_screen_set", _wrap_MouseData_screen_set, METH_VARARGS },
8210 { (char *)"MouseData_screen_get", _wrap_MouseData_screen_get, METH_VARARGS },
8211 { (char *)"MouseData_client_set", _wrap_MouseData_client_set, METH_VARARGS },
8212 { (char *)"MouseData_client_get", _wrap_MouseData_client_get, METH_VARARGS },
8213 { (char *)"MouseData_time_set", _wrap_MouseData_time_set, METH_VARARGS },
8214 { (char *)"MouseData_time_get", _wrap_MouseData_time_get, METH_VARARGS },
8215 { (char *)"MouseData_state_set", _wrap_MouseData_state_set, METH_VARARGS },
8216 { (char *)"MouseData_state_get", _wrap_MouseData_state_get, METH_VARARGS },
8217 { (char *)"MouseData_button_set", _wrap_MouseData_button_set, METH_VARARGS },
8218 { (char *)"MouseData_button_get", _wrap_MouseData_button_get, METH_VARARGS },
8219 { (char *)"MouseData_context_set", _wrap_MouseData_context_set, METH_VARARGS },
8220 { (char *)"MouseData_context_get", _wrap_MouseData_context_get, METH_VARARGS },
8221 { (char *)"MouseData_action_set", _wrap_MouseData_action_set, METH_VARARGS },
8222 { (char *)"MouseData_action_get", _wrap_MouseData_action_get, METH_VARARGS },
8223 { (char *)"MouseData_xroot_set", _wrap_MouseData_xroot_set, METH_VARARGS },
8224 { (char *)"MouseData_xroot_get", _wrap_MouseData_xroot_get, METH_VARARGS },
8225 { (char *)"MouseData_yroot_set", _wrap_MouseData_yroot_set, METH_VARARGS },
8226 { (char *)"MouseData_yroot_get", _wrap_MouseData_yroot_get, METH_VARARGS },
8227 { (char *)"MouseData_pressx_set", _wrap_MouseData_pressx_set, METH_VARARGS },
8228 { (char *)"MouseData_pressx_get", _wrap_MouseData_pressx_get, METH_VARARGS },
8229 { (char *)"MouseData_pressy_set", _wrap_MouseData_pressy_set, METH_VARARGS },
8230 { (char *)"MouseData_pressy_get", _wrap_MouseData_pressy_get, METH_VARARGS },
8231 { (char *)"MouseData_press_clientx_set", _wrap_MouseData_press_clientx_set, METH_VARARGS },
8232 { (char *)"MouseData_press_clientx_get", _wrap_MouseData_press_clientx_get, METH_VARARGS },
8233 { (char *)"MouseData_press_clienty_set", _wrap_MouseData_press_clienty_set, METH_VARARGS },
8234 { (char *)"MouseData_press_clienty_get", _wrap_MouseData_press_clienty_get, METH_VARARGS },
8235 { (char *)"MouseData_press_clientwidth_set", _wrap_MouseData_press_clientwidth_set, METH_VARARGS },
8236 { (char *)"MouseData_press_clientwidth_get", _wrap_MouseData_press_clientwidth_get, METH_VARARGS },
8237 { (char *)"MouseData_press_clientheight_set", _wrap_MouseData_press_clientheight_set, METH_VARARGS },
8238 { (char *)"MouseData_press_clientheight_get", _wrap_MouseData_press_clientheight_get, METH_VARARGS },
8239 { (char *)"new_MouseData", _wrap_new_MouseData, METH_VARARGS },
8240 { (char *)"MouseData_swigregister", MouseData_swigregister, METH_VARARGS },
8241 { (char *)"EventData_screen_set", _wrap_EventData_screen_set, METH_VARARGS },
8242 { (char *)"EventData_screen_get", _wrap_EventData_screen_get, METH_VARARGS },
8243 { (char *)"EventData_client_set", _wrap_EventData_client_set, METH_VARARGS },
8244 { (char *)"EventData_client_get", _wrap_EventData_client_get, METH_VARARGS },
8245 { (char *)"EventData_state_set", _wrap_EventData_state_set, METH_VARARGS },
8246 { (char *)"EventData_state_get", _wrap_EventData_state_get, METH_VARARGS },
8247 { (char *)"EventData_action_set", _wrap_EventData_action_set, METH_VARARGS },
8248 { (char *)"EventData_action_get", _wrap_EventData_action_get, METH_VARARGS },
8249 { (char *)"new_EventData", _wrap_new_EventData, METH_VARARGS },
8250 { (char *)"EventData_swigregister", EventData_swigregister, METH_VARARGS },
8251 { (char *)"KeyData_screen_set", _wrap_KeyData_screen_set, METH_VARARGS },
8252 { (char *)"KeyData_screen_get", _wrap_KeyData_screen_get, METH_VARARGS },
8253 { (char *)"KeyData_client_set", _wrap_KeyData_client_set, METH_VARARGS },
8254 { (char *)"KeyData_client_get", _wrap_KeyData_client_get, METH_VARARGS },
8255 { (char *)"KeyData_time_set", _wrap_KeyData_time_set, METH_VARARGS },
8256 { (char *)"KeyData_time_get", _wrap_KeyData_time_get, METH_VARARGS },
8257 { (char *)"KeyData_state_set", _wrap_KeyData_state_set, METH_VARARGS },
8258 { (char *)"KeyData_state_get", _wrap_KeyData_state_get, METH_VARARGS },
8259 { (char *)"KeyData_key_set", _wrap_KeyData_key_set, METH_VARARGS },
8260 { (char *)"KeyData_key_get", _wrap_KeyData_key_get, METH_VARARGS },
8261 { (char *)"new_KeyData", _wrap_new_KeyData, METH_VARARGS },
8262 { (char *)"KeyData_swigregister", KeyData_swigregister, METH_VARARGS },
8263 { (char *)"mbind", _wrap_mbind, METH_VARARGS },
8264 { (char *)"kbind", _wrap_kbind, METH_VARARGS },
8265 { (char *)"ebind", _wrap_ebind, METH_VARARGS },
8266 { (char *)"set_reset_key", _wrap_set_reset_key, METH_VARARGS },
8267 { (char *)"send_client_msg", _wrap_send_client_msg, METH_VARARGS },
8268 { NULL, NULL }
8269 };
8270
8271
8272 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
8273
8274 static void *_p_ob__ActionsTo_p_otk__EventHandler(void *x) {
8275 return (void *)((otk::EventHandler *) ((ob::Actions *) x));
8276 }
8277 static void *_p_ob__OpenboxTo_p_otk__EventHandler(void *x) {
8278 return (void *)((otk::EventHandler *) ((ob::Openbox *) x));
8279 }
8280 static void *_p_ob__ScreenTo_p_otk__EventHandler(void *x) {
8281 return (void *)((otk::EventHandler *) ((ob::Screen *) x));
8282 }
8283 static void *_p_ob__ClientTo_p_otk__EventHandler(void *x) {
8284 return (void *)((otk::EventHandler *) ((ob::Client *) x));
8285 }
8286 static void *_p_ob__OpenboxTo_p_otk__EventDispatcher(void *x) {
8287 return (void *)((otk::EventDispatcher *) ((ob::Openbox *) x));
8288 }
8289 static void *_p_ob__ScreenTo_p_ob__WidgetBase(void *x) {
8290 return (void *)((ob::WidgetBase *) ((ob::Screen *) x));
8291 }
8292 static void *_p_ob__ClientTo_p_ob__WidgetBase(void *x) {
8293 return (void *)((ob::WidgetBase *) ((ob::Client *) x));
8294 }
8295 static swig_type_info _swigt__p_otk__Point[] = {{"_p_otk__Point", 0, "otk::Point *", 0},{"_p_otk__Point"},{0}};
8296 static swig_type_info _swigt__p_ob__Client[] = {{"_p_ob__Client", 0, "ob::Client *", 0},{"_p_ob__Client"},{0}};
8297 static swig_type_info _swigt__p_XMapEvent[] = {{"_p_XMapEvent", 0, "XMapEvent *", 0},{"_p_XMapEvent"},{0}};
8298 static swig_type_info _swigt__p_XUnmapEvent[] = {{"_p_XUnmapEvent", 0, "XUnmapEvent *", 0},{"_p_XUnmapEvent"},{0}};
8299 static swig_type_info _swigt__p_XColormapEvent[] = {{"_p_XColormapEvent", 0, "XColormapEvent *", 0},{"_p_XColormapEvent"},{0}};
8300 static swig_type_info _swigt__p_XNoExposeEvent[] = {{"_p_XNoExposeEvent", 0, "XNoExposeEvent *", 0},{"_p_XNoExposeEvent"},{0}};
8301 static swig_type_info _swigt__p_XGraphicsExposeEvent[] = {{"_p_XGraphicsExposeEvent", 0, "XGraphicsExposeEvent *", 0},{"_p_XGraphicsExposeEvent"},{0}};
8302 static swig_type_info _swigt__p_XExposeEvent[] = {{"_p_XExposeEvent", 0, "XExposeEvent *", 0},{"_p_XExposeEvent"},{0}};
8303 static swig_type_info _swigt__p_XFocusChangeEvent[] = {{"_p_XFocusChangeEvent", 0, "XFocusChangeEvent *", 0},{"_p_XFocusChangeEvent"},{0}};
8304 static swig_type_info _swigt__p_XClientMessageEvent[] = {{"_p_XClientMessageEvent", 0, "XClientMessageEvent *", 0},{"_p_XClientMessageEvent"},{0}};
8305 static swig_type_info _swigt__p_ob__MouseData[] = {{"_p_ob__MouseData", 0, "ob::MouseData *", 0},{"_p_ob__MouseData"},{0}};
8306 static swig_type_info _swigt__p_XSelectionClearEvent[] = {{"_p_XSelectionClearEvent", 0, "XSelectionClearEvent *", 0},{"_p_XSelectionClearEvent"},{0}};
8307 static swig_type_info _swigt__p_otk__Rect[] = {{"_p_otk__Rect", 0, "otk::Rect *", 0},{"_p_otk__Rect"},{0}};
8308 static swig_type_info _swigt__p_Visual[] = {{"_p_Visual", 0, "Visual *", 0},{"_p_Visual"},{0}};
8309 static swig_type_info _swigt__p_XResizeRequestEvent[] = {{"_p_XResizeRequestEvent", 0, "XResizeRequestEvent *", 0},{"_p_XResizeRequestEvent"},{0}};
8310 static swig_type_info _swigt__p_XMapRequestEvent[] = {{"_p_XMapRequestEvent", 0, "XMapRequestEvent *", 0},{"_p_XMapRequestEvent"},{0}};
8311 static swig_type_info _swigt__p_XConfigureRequestEvent[] = {{"_p_XConfigureRequestEvent", 0, "XConfigureRequestEvent *", 0},{"_p_XConfigureRequestEvent"},{0}};
8312 static swig_type_info _swigt__p_XCirculateRequestEvent[] = {{"_p_XCirculateRequestEvent", 0, "XCirculateRequestEvent *", 0},{"_p_XCirculateRequestEvent"},{0}};
8313 static swig_type_info _swigt__p_XGravityEvent[] = {{"_p_XGravityEvent", 0, "XGravityEvent *", 0},{"_p_XGravityEvent"},{0}};
8314 static swig_type_info _swigt__p_XVisibilityEvent[] = {{"_p_XVisibilityEvent", 0, "XVisibilityEvent *", 0},{"_p_XVisibilityEvent"},{0}};
8315 static swig_type_info _swigt__p_XPropertyEvent[] = {{"_p_XPropertyEvent", 0, "XPropertyEvent *", 0},{"_p_XPropertyEvent"},{0}};
8316 static swig_type_info _swigt__p_XSelectionRequestEvent[] = {{"_p_XSelectionRequestEvent", 0, "XSelectionRequestEvent *", 0},{"_p_XSelectionRequestEvent"},{0}};
8317 static swig_type_info _swigt__p_ob__Cursors[] = {{"_p_ob__Cursors", 0, "ob::Cursors *", 0},{"_p_ob__Cursors"},{0}};
8318 static swig_type_info _swigt__p_otk__ImageControl[] = {{"_p_otk__ImageControl", 0, "otk::ImageControl *", 0},{"_p_otk__ImageControl"},{0}};
8319 static swig_type_info _swigt__p_ob__MwmHints[] = {{"_p_ob__MwmHints", 0, "ob::MwmHints *", 0},{"_p_ob__MwmHints"},{0}};
8320 static swig_type_info _swigt__p_ob__Screen[] = {{"_p_ob__Screen", 0, "ob::Screen *", 0},{"_p_ob__Screen"},{0}};
8321 static swig_type_info _swigt__p_ob__Frame[] = {{"_p_ob__Frame", 0, "ob::Frame *", 0},{"_p_ob__Frame"},{0}};
8322 static swig_type_info _swigt__p_ob__KeyData[] = {{"_p_ob__KeyData", 0, "ob::KeyData *", 0},{"_p_ob__KeyData"},{0}};
8323 static swig_type_info _swigt__p_XConfigureEvent[] = {{"_p_XConfigureEvent", 0, "XConfigureEvent *", 0},{"_p_XConfigureEvent"},{0}};
8324 static swig_type_info _swigt__p_XCirculateEvent[] = {{"_p_XCirculateEvent", 0, "XCirculateEvent *", 0},{"_p_XCirculateEvent"},{0}};
8325 static swig_type_info _swigt__p_XRectangle[] = {{"_p_XRectangle", 0, "XRectangle *", 0},{"_p_XRectangle"},{0}};
8326 static swig_type_info _swigt__p_otk__ustring[] = {{"_p_otk__ustring", 0, "otk::ustring *", 0},{"_p_otk__ustring"},{0}};
8327 static swig_type_info _swigt__p_std__string[] = {{"_p_std__string", 0, "std::string *", 0},{"_p_std__string"},{0}};
8328 static swig_type_info _swigt__p_XCrossingEvent[] = {{"_p_XCrossingEvent", 0, "XCrossingEvent *", 0},{"_p_XCrossingEvent"},{0}};
8329 static swig_type_info _swigt__p_otk__Display[] = {{"_p_otk__Display", 0, "otk::Display *", 0},{"_p_otk__Display"},{0}};
8330 static swig_type_info _swigt__p_Display[] = {{"_p_Display", 0, "Display *", 0},{"_p_Display"},{0}};
8331 static swig_type_info _swigt__p_XMappingEvent[] = {{"_p_XMappingEvent", 0, "XMappingEvent *", 0},{"_p_XMappingEvent"},{0}};
8332 static swig_type_info _swigt__p_otk__Style[] = {{"_p_otk__Style", 0, "otk::Style *", 0},{"_p_otk__Style"},{0}};
8333 static swig_type_info _swigt__p_otk__EventHandler[] = {{"_p_otk__EventHandler", 0, "otk::EventHandler *", 0},{"_p_ob__Client", _p_ob__ClientTo_p_otk__EventHandler},{"_p_ob__Actions", _p_ob__ActionsTo_p_otk__EventHandler},{"_p_otk__EventHandler"},{"_p_ob__Openbox", _p_ob__OpenboxTo_p_otk__EventHandler},{"_p_ob__Screen", _p_ob__ScreenTo_p_otk__EventHandler},{0}};
8334 static swig_type_info _swigt__p_XReparentEvent[] = {{"_p_XReparentEvent", 0, "XReparentEvent *", 0},{"_p_XReparentEvent"},{0}};
8335 static swig_type_info _swigt__p_otk__EventDispatcher[] = {{"_p_otk__EventDispatcher", 0, "otk::EventDispatcher *", 0},{"_p_otk__EventDispatcher"},{"_p_ob__Openbox", _p_ob__OpenboxTo_p_otk__EventDispatcher},{0}};
8336 static swig_type_info _swigt__p_otk__GCCache[] = {{"_p_otk__GCCache", 0, "otk::GCCache *", 0},{"_p_otk__GCCache"},{0}};
8337 static swig_type_info _swigt__p_ob__Bindings[] = {{"_p_ob__Bindings", 0, "ob::Bindings *", 0},{"_p_ob__Bindings"},{0}};
8338 static swig_type_info _swigt__p_ob__Openbox[] = {{"_p_ob__Openbox", 0, "ob::Openbox *", 0},{"_p_ob__Openbox"},{0}};
8339 static swig_type_info _swigt__p_ob__Actions[] = {{"_p_ob__Actions", 0, "ob::Actions *", 0},{"_p_ob__Actions"},{0}};
8340 static swig_type_info _swigt__p_XEvent[] = {{"_p_XEvent", 0, "XEvent *", 0},{"_p_XEvent"},{0}};
8341 static swig_type_info _swigt__p_otk__Property[] = {{"_p_otk__Property", 0, "otk::Property *", 0},{"_p_otk__Property"},{0}};
8342 static swig_type_info _swigt__p_PyObject[] = {{"_p_PyObject", 0, "PyObject *", 0},{"_p_PyObject"},{0}};
8343 static swig_type_info _swigt__p_otk__ScreenInfo[] = {{"_p_otk__ScreenInfo", 0, "otk::ScreenInfo *", 0},{"_p_otk__ScreenInfo"},{0}};
8344 static swig_type_info _swigt__p_ob__EventData[] = {{"_p_ob__EventData", 0, "ob::EventData *", 0},{"_p_ob__EventData"},{0}};
8345 static swig_type_info _swigt__p_XCreateWindowEvent[] = {{"_p_XCreateWindowEvent", 0, "XCreateWindowEvent *", 0},{"_p_XCreateWindowEvent"},{0}};
8346 static swig_type_info _swigt__p_XDestroyWindowEvent[] = {{"_p_XDestroyWindowEvent", 0, "XDestroyWindowEvent *", 0},{"_p_XDestroyWindowEvent"},{0}};
8347 static swig_type_info _swigt__p_otk__Property__StringVect[] = {{"_p_otk__Property__StringVect", 0, "otk::Property::StringVect *", 0},{"_p_otk__Property__StringVect"},{0}};
8348 static swig_type_info _swigt__p_ob__WidgetBase[] = {{"_p_ob__WidgetBase", 0, "ob::WidgetBase *", 0},{"_p_ob__WidgetBase"},{"_p_ob__Client", _p_ob__ClientTo_p_ob__WidgetBase},{"_p_ob__Screen", _p_ob__ScreenTo_p_ob__WidgetBase},{0}};
8349 static swig_type_info _swigt__p_XKeyEvent[] = {{"_p_XKeyEvent", 0, "XKeyEvent *", 0},{"_p_XKeyEvent"},{0}};
8350 static swig_type_info _swigt__p_otk__Strut[] = {{"_p_otk__Strut", 0, "otk::Strut *", 0},{"_p_otk__Strut"},{0}};
8351 static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *", 0},{"_p_unsigned_long"},{0}};
8352 static swig_type_info _swigt__p_p_unsigned_long[] = {{"_p_p_unsigned_long", 0, "unsigned long **", 0},{"_p_p_unsigned_long"},{0}};
8353 static swig_type_info _swigt__p_XMotionEvent[] = {{"_p_XMotionEvent", 0, "XMotionEvent *", 0},{"_p_XMotionEvent"},{0}};
8354 static swig_type_info _swigt__p_XButtonEvent[] = {{"_p_XButtonEvent", 0, "XButtonEvent *", 0},{"_p_XButtonEvent"},{0}};
8355 static swig_type_info _swigt__p_XSelectionEvent[] = {{"_p_XSelectionEvent", 0, "XSelectionEvent *", 0},{"_p_XSelectionEvent"},{0}};
8356 static swig_type_info _swigt__p_otk__TimerQueueManager[] = {{"_p_otk__TimerQueueManager", 0, "otk::TimerQueueManager *", 0},{"_p_otk__TimerQueueManager"},{0}};
8357
8358 static swig_type_info *swig_types_initial[] = {
8359 _swigt__p_otk__Point,
8360 _swigt__p_ob__Client,
8361 _swigt__p_XMapEvent,
8362 _swigt__p_XUnmapEvent,
8363 _swigt__p_XColormapEvent,
8364 _swigt__p_XNoExposeEvent,
8365 _swigt__p_XGraphicsExposeEvent,
8366 _swigt__p_XExposeEvent,
8367 _swigt__p_XFocusChangeEvent,
8368 _swigt__p_XClientMessageEvent,
8369 _swigt__p_ob__MouseData,
8370 _swigt__p_XSelectionClearEvent,
8371 _swigt__p_otk__Rect,
8372 _swigt__p_Visual,
8373 _swigt__p_XResizeRequestEvent,
8374 _swigt__p_XMapRequestEvent,
8375 _swigt__p_XConfigureRequestEvent,
8376 _swigt__p_XCirculateRequestEvent,
8377 _swigt__p_XGravityEvent,
8378 _swigt__p_XVisibilityEvent,
8379 _swigt__p_XPropertyEvent,
8380 _swigt__p_XSelectionRequestEvent,
8381 _swigt__p_ob__Cursors,
8382 _swigt__p_otk__ImageControl,
8383 _swigt__p_ob__MwmHints,
8384 _swigt__p_ob__Screen,
8385 _swigt__p_ob__Frame,
8386 _swigt__p_ob__KeyData,
8387 _swigt__p_XConfigureEvent,
8388 _swigt__p_XCirculateEvent,
8389 _swigt__p_XRectangle,
8390 _swigt__p_otk__ustring,
8391 _swigt__p_std__string,
8392 _swigt__p_XCrossingEvent,
8393 _swigt__p_otk__Display,
8394 _swigt__p_Display,
8395 _swigt__p_XMappingEvent,
8396 _swigt__p_otk__Style,
8397 _swigt__p_otk__EventHandler,
8398 _swigt__p_XReparentEvent,
8399 _swigt__p_otk__EventDispatcher,
8400 _swigt__p_otk__GCCache,
8401 _swigt__p_ob__Bindings,
8402 _swigt__p_ob__Openbox,
8403 _swigt__p_ob__Actions,
8404 _swigt__p_XEvent,
8405 _swigt__p_otk__Property,
8406 _swigt__p_PyObject,
8407 _swigt__p_otk__ScreenInfo,
8408 _swigt__p_ob__EventData,
8409 _swigt__p_XCreateWindowEvent,
8410 _swigt__p_XDestroyWindowEvent,
8411 _swigt__p_otk__Property__StringVect,
8412 _swigt__p_ob__WidgetBase,
8413 _swigt__p_XKeyEvent,
8414 _swigt__p_otk__Strut,
8415 _swigt__p_unsigned_long,
8416 _swigt__p_p_unsigned_long,
8417 _swigt__p_XMotionEvent,
8418 _swigt__p_XButtonEvent,
8419 _swigt__p_XSelectionEvent,
8420 _swigt__p_otk__TimerQueueManager,
8421 0
8422 };
8423
8424
8425 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
8426
8427 static swig_const_info swig_const_table[] = {
8428 { SWIG_PY_INT, (char *)"Property_Atom_Cardinal", (long) otk::Property::Atom_Cardinal, 0, 0, 0},
8429 { SWIG_PY_INT, (char *)"Property_Atom_Window", (long) otk::Property::Atom_Window, 0, 0, 0},
8430 { SWIG_PY_INT, (char *)"Property_Atom_Pixmap", (long) otk::Property::Atom_Pixmap, 0, 0, 0},
8431 { SWIG_PY_INT, (char *)"Property_Atom_Atom", (long) otk::Property::Atom_Atom, 0, 0, 0},
8432 { SWIG_PY_INT, (char *)"Property_Atom_String", (long) otk::Property::Atom_String, 0, 0, 0},
8433 { SWIG_PY_INT, (char *)"Property_Atom_Utf8", (long) otk::Property::Atom_Utf8, 0, 0, 0},
8434 { SWIG_PY_INT, (char *)"Property_openbox_pid", (long) otk::Property::openbox_pid, 0, 0, 0},
8435 { SWIG_PY_INT, (char *)"Property_wm_colormap_windows", (long) otk::Property::wm_colormap_windows, 0, 0, 0},
8436 { SWIG_PY_INT, (char *)"Property_wm_protocols", (long) otk::Property::wm_protocols, 0, 0, 0},
8437 { SWIG_PY_INT, (char *)"Property_wm_state", (long) otk::Property::wm_state, 0, 0, 0},
8438 { SWIG_PY_INT, (char *)"Property_wm_delete_window", (long) otk::Property::wm_delete_window, 0, 0, 0},
8439 { SWIG_PY_INT, (char *)"Property_wm_take_focus", (long) otk::Property::wm_take_focus, 0, 0, 0},
8440 { SWIG_PY_INT, (char *)"Property_wm_change_state", (long) otk::Property::wm_change_state, 0, 0, 0},
8441 { SWIG_PY_INT, (char *)"Property_wm_name", (long) otk::Property::wm_name, 0, 0, 0},
8442 { SWIG_PY_INT, (char *)"Property_wm_icon_name", (long) otk::Property::wm_icon_name, 0, 0, 0},
8443 { SWIG_PY_INT, (char *)"Property_wm_class", (long) otk::Property::wm_class, 0, 0, 0},
8444 { SWIG_PY_INT, (char *)"Property_wm_window_role", (long) otk::Property::wm_window_role, 0, 0, 0},
8445 { SWIG_PY_INT, (char *)"Property_motif_wm_hints", (long) otk::Property::motif_wm_hints, 0, 0, 0},
8446 { SWIG_PY_INT, (char *)"Property_blackbox_attributes", (long) otk::Property::blackbox_attributes, 0, 0, 0},
8447 { SWIG_PY_INT, (char *)"Property_blackbox_change_attributes", (long) otk::Property::blackbox_change_attributes, 0, 0, 0},
8448 { SWIG_PY_INT, (char *)"Property_blackbox_hints", (long) otk::Property::blackbox_hints, 0, 0, 0},
8449 { SWIG_PY_INT, (char *)"Property_blackbox_structure_messages", (long) otk::Property::blackbox_structure_messages, 0, 0, 0},
8450 { SWIG_PY_INT, (char *)"Property_blackbox_notify_startup", (long) otk::Property::blackbox_notify_startup, 0, 0, 0},
8451 { SWIG_PY_INT, (char *)"Property_blackbox_notify_window_add", (long) otk::Property::blackbox_notify_window_add, 0, 0, 0},
8452 { SWIG_PY_INT, (char *)"Property_blackbox_notify_window_del", (long) otk::Property::blackbox_notify_window_del, 0, 0, 0},
8453 { SWIG_PY_INT, (char *)"Property_blackbox_notify_window_focus", (long) otk::Property::blackbox_notify_window_focus, 0, 0, 0},
8454 { SWIG_PY_INT, (char *)"Property_blackbox_notify_current_workspace", (long) otk::Property::blackbox_notify_current_workspace, 0, 0, 0},
8455 { SWIG_PY_INT, (char *)"Property_blackbox_notify_workspace_count", (long) otk::Property::blackbox_notify_workspace_count, 0, 0, 0},
8456 { SWIG_PY_INT, (char *)"Property_blackbox_notify_window_raise", (long) otk::Property::blackbox_notify_window_raise, 0, 0, 0},
8457 { SWIG_PY_INT, (char *)"Property_blackbox_notify_window_lower", (long) otk::Property::blackbox_notify_window_lower, 0, 0, 0},
8458 { SWIG_PY_INT, (char *)"Property_blackbox_change_workspace", (long) otk::Property::blackbox_change_workspace, 0, 0, 0},
8459 { SWIG_PY_INT, (char *)"Property_blackbox_change_window_focus", (long) otk::Property::blackbox_change_window_focus, 0, 0, 0},
8460 { SWIG_PY_INT, (char *)"Property_blackbox_cycle_window_focus", (long) otk::Property::blackbox_cycle_window_focus, 0, 0, 0},
8461 { SWIG_PY_INT, (char *)"Property_openbox_show_root_menu", (long) otk::Property::openbox_show_root_menu, 0, 0, 0},
8462 { SWIG_PY_INT, (char *)"Property_openbox_show_workspace_menu", (long) otk::Property::openbox_show_workspace_menu, 0, 0, 0},
8463 { SWIG_PY_INT, (char *)"Property_net_supported", (long) otk::Property::net_supported, 0, 0, 0},
8464 { SWIG_PY_INT, (char *)"Property_net_client_list", (long) otk::Property::net_client_list, 0, 0, 0},
8465 { SWIG_PY_INT, (char *)"Property_net_client_list_stacking", (long) otk::Property::net_client_list_stacking, 0, 0, 0},
8466 { SWIG_PY_INT, (char *)"Property_net_number_of_desktops", (long) otk::Property::net_number_of_desktops, 0, 0, 0},
8467 { SWIG_PY_INT, (char *)"Property_net_desktop_geometry", (long) otk::Property::net_desktop_geometry, 0, 0, 0},
8468 { SWIG_PY_INT, (char *)"Property_net_desktop_viewport", (long) otk::Property::net_desktop_viewport, 0, 0, 0},
8469 { SWIG_PY_INT, (char *)"Property_net_current_desktop", (long) otk::Property::net_current_desktop, 0, 0, 0},
8470 { SWIG_PY_INT, (char *)"Property_net_desktop_names", (long) otk::Property::net_desktop_names, 0, 0, 0},
8471 { SWIG_PY_INT, (char *)"Property_net_active_window", (long) otk::Property::net_active_window, 0, 0, 0},
8472 { SWIG_PY_INT, (char *)"Property_net_workarea", (long) otk::Property::net_workarea, 0, 0, 0},
8473 { SWIG_PY_INT, (char *)"Property_net_supporting_wm_check", (long) otk::Property::net_supporting_wm_check, 0, 0, 0},
8474 { SWIG_PY_INT, (char *)"Property_net_close_window", (long) otk::Property::net_close_window, 0, 0, 0},
8475 { SWIG_PY_INT, (char *)"Property_net_wm_moveresize", (long) otk::Property::net_wm_moveresize, 0, 0, 0},
8476 { SWIG_PY_INT, (char *)"Property_net_wm_name", (long) otk::Property::net_wm_name, 0, 0, 0},
8477 { SWIG_PY_INT, (char *)"Property_net_wm_visible_name", (long) otk::Property::net_wm_visible_name, 0, 0, 0},
8478 { SWIG_PY_INT, (char *)"Property_net_wm_icon_name", (long) otk::Property::net_wm_icon_name, 0, 0, 0},
8479 { SWIG_PY_INT, (char *)"Property_net_wm_visible_icon_name", (long) otk::Property::net_wm_visible_icon_name, 0, 0, 0},
8480 { SWIG_PY_INT, (char *)"Property_net_wm_desktop", (long) otk::Property::net_wm_desktop, 0, 0, 0},
8481 { SWIG_PY_INT, (char *)"Property_net_wm_window_type", (long) otk::Property::net_wm_window_type, 0, 0, 0},
8482 { SWIG_PY_INT, (char *)"Property_net_wm_state", (long) otk::Property::net_wm_state, 0, 0, 0},
8483 { SWIG_PY_INT, (char *)"Property_net_wm_strut", (long) otk::Property::net_wm_strut, 0, 0, 0},
8484 { SWIG_PY_INT, (char *)"Property_net_wm_allowed_actions", (long) otk::Property::net_wm_allowed_actions, 0, 0, 0},
8485 { SWIG_PY_INT, (char *)"Property_net_wm_window_type_desktop", (long) otk::Property::net_wm_window_type_desktop, 0, 0, 0},
8486 { SWIG_PY_INT, (char *)"Property_net_wm_window_type_dock", (long) otk::Property::net_wm_window_type_dock, 0, 0, 0},
8487 { SWIG_PY_INT, (char *)"Property_net_wm_window_type_toolbar", (long) otk::Property::net_wm_window_type_toolbar, 0, 0, 0},
8488 { SWIG_PY_INT, (char *)"Property_net_wm_window_type_menu", (long) otk::Property::net_wm_window_type_menu, 0, 0, 0},
8489 { SWIG_PY_INT, (char *)"Property_net_wm_window_type_utility", (long) otk::Property::net_wm_window_type_utility, 0, 0, 0},
8490 { SWIG_PY_INT, (char *)"Property_net_wm_window_type_splash", (long) otk::Property::net_wm_window_type_splash, 0, 0, 0},
8491 { SWIG_PY_INT, (char *)"Property_net_wm_window_type_dialog", (long) otk::Property::net_wm_window_type_dialog, 0, 0, 0},
8492 { SWIG_PY_INT, (char *)"Property_net_wm_window_type_normal", (long) otk::Property::net_wm_window_type_normal, 0, 0, 0},
8493 { SWIG_PY_INT, (char *)"Property_net_wm_moveresize_size_topleft", (long) otk::Property::net_wm_moveresize_size_topleft, 0, 0, 0},
8494 { SWIG_PY_INT, (char *)"Property_net_wm_moveresize_size_topright", (long) otk::Property::net_wm_moveresize_size_topright, 0, 0, 0},
8495 { SWIG_PY_INT, (char *)"Property_net_wm_moveresize_size_bottomleft", (long) otk::Property::net_wm_moveresize_size_bottomleft, 0, 0, 0},
8496 { SWIG_PY_INT, (char *)"Property_net_wm_moveresize_size_bottomright", (long) otk::Property::net_wm_moveresize_size_bottomright, 0, 0, 0},
8497 { SWIG_PY_INT, (char *)"Property_net_wm_moveresize_move", (long) otk::Property::net_wm_moveresize_move, 0, 0, 0},
8498 { SWIG_PY_INT, (char *)"Property_net_wm_action_move", (long) otk::Property::net_wm_action_move, 0, 0, 0},
8499 { SWIG_PY_INT, (char *)"Property_net_wm_action_resize", (long) otk::Property::net_wm_action_resize, 0, 0, 0},
8500 { SWIG_PY_INT, (char *)"Property_net_wm_action_shade", (long) otk::Property::net_wm_action_shade, 0, 0, 0},
8501 { SWIG_PY_INT, (char *)"Property_net_wm_action_maximize_horz", (long) otk::Property::net_wm_action_maximize_horz, 0, 0, 0},
8502 { SWIG_PY_INT, (char *)"Property_net_wm_action_maximize_vert", (long) otk::Property::net_wm_action_maximize_vert, 0, 0, 0},
8503 { SWIG_PY_INT, (char *)"Property_net_wm_action_change_desktop", (long) otk::Property::net_wm_action_change_desktop, 0, 0, 0},
8504 { SWIG_PY_INT, (char *)"Property_net_wm_action_close", (long) otk::Property::net_wm_action_close, 0, 0, 0},
8505 { SWIG_PY_INT, (char *)"Property_net_wm_state_modal", (long) otk::Property::net_wm_state_modal, 0, 0, 0},
8506 { SWIG_PY_INT, (char *)"Property_net_wm_state_sticky", (long) otk::Property::net_wm_state_sticky, 0, 0, 0},
8507 { SWIG_PY_INT, (char *)"Property_net_wm_state_maximized_vert", (long) otk::Property::net_wm_state_maximized_vert, 0, 0, 0},
8508 { SWIG_PY_INT, (char *)"Property_net_wm_state_maximized_horz", (long) otk::Property::net_wm_state_maximized_horz, 0, 0, 0},
8509 { SWIG_PY_INT, (char *)"Property_net_wm_state_shaded", (long) otk::Property::net_wm_state_shaded, 0, 0, 0},
8510 { SWIG_PY_INT, (char *)"Property_net_wm_state_skip_taskbar", (long) otk::Property::net_wm_state_skip_taskbar, 0, 0, 0},
8511 { SWIG_PY_INT, (char *)"Property_net_wm_state_skip_pager", (long) otk::Property::net_wm_state_skip_pager, 0, 0, 0},
8512 { SWIG_PY_INT, (char *)"Property_net_wm_state_hidden", (long) otk::Property::net_wm_state_hidden, 0, 0, 0},
8513 { SWIG_PY_INT, (char *)"Property_net_wm_state_fullscreen", (long) otk::Property::net_wm_state_fullscreen, 0, 0, 0},
8514 { SWIG_PY_INT, (char *)"Property_net_wm_state_above", (long) otk::Property::net_wm_state_above, 0, 0, 0},
8515 { SWIG_PY_INT, (char *)"Property_net_wm_state_below", (long) otk::Property::net_wm_state_below, 0, 0, 0},
8516 { SWIG_PY_INT, (char *)"Property_kde_net_system_tray_windows", (long) otk::Property::kde_net_system_tray_windows, 0, 0, 0},
8517 { SWIG_PY_INT, (char *)"Property_kde_net_wm_system_tray_window_for", (long) otk::Property::kde_net_wm_system_tray_window_for, 0, 0, 0},
8518 { SWIG_PY_INT, (char *)"Property_kde_net_wm_window_type_override", (long) otk::Property::kde_net_wm_window_type_override, 0, 0, 0},
8519 { SWIG_PY_INT, (char *)"Property_NUM_ATOMS", (long) otk::Property::NUM_ATOMS, 0, 0, 0},
8520 { SWIG_PY_INT, (char *)"Property_ascii", (long) otk::Property::ascii, 0, 0, 0},
8521 { SWIG_PY_INT, (char *)"Property_utf8", (long) otk::Property::utf8, 0, 0, 0},
8522 { SWIG_PY_INT, (char *)"Property_NUM_STRING_TYPE", (long) otk::Property::NUM_STRING_TYPE, 0, 0, 0},
8523 { SWIG_PY_INT, (char *)"Openbox_State_Starting", (long) ob::Openbox::State_Starting, 0, 0, 0},
8524 { SWIG_PY_INT, (char *)"Openbox_State_Normal", (long) ob::Openbox::State_Normal, 0, 0, 0},
8525 { SWIG_PY_INT, (char *)"Openbox_State_Exiting", (long) ob::Openbox::State_Exiting, 0, 0, 0},
8526 { SWIG_PY_INT, (char *)"Screen_event_mask", (long) ob::Screen::event_mask, 0, 0, 0},
8527 { SWIG_PY_INT, (char *)"MwmHints_elements", (long) ob::MwmHints::elements, 0, 0, 0},
8528 { SWIG_PY_INT, (char *)"Client_Layer_Icon", (long) ob::Client::Layer_Icon, 0, 0, 0},
8529 { SWIG_PY_INT, (char *)"Client_Layer_Desktop", (long) ob::Client::Layer_Desktop, 0, 0, 0},
8530 { SWIG_PY_INT, (char *)"Client_Layer_Below", (long) ob::Client::Layer_Below, 0, 0, 0},
8531 { SWIG_PY_INT, (char *)"Client_Layer_Normal", (long) ob::Client::Layer_Normal, 0, 0, 0},
8532 { SWIG_PY_INT, (char *)"Client_Layer_Above", (long) ob::Client::Layer_Above, 0, 0, 0},
8533 { SWIG_PY_INT, (char *)"Client_Layer_Top", (long) ob::Client::Layer_Top, 0, 0, 0},
8534 { SWIG_PY_INT, (char *)"Client_Layer_Fullscreen", (long) ob::Client::Layer_Fullscreen, 0, 0, 0},
8535 { SWIG_PY_INT, (char *)"Client_Layer_Internal", (long) ob::Client::Layer_Internal, 0, 0, 0},
8536 { SWIG_PY_INT, (char *)"Client_NUM_LAYERS", (long) ob::Client::NUM_LAYERS, 0, 0, 0},
8537 { SWIG_PY_INT, (char *)"Client_TopLeft", (long) ob::Client::TopLeft, 0, 0, 0},
8538 { SWIG_PY_INT, (char *)"Client_TopRight", (long) ob::Client::TopRight, 0, 0, 0},
8539 { SWIG_PY_INT, (char *)"Client_BottomLeft", (long) ob::Client::BottomLeft, 0, 0, 0},
8540 { SWIG_PY_INT, (char *)"Client_BottomRight", (long) ob::Client::BottomRight, 0, 0, 0},
8541 { SWIG_PY_INT, (char *)"Client_Type_Desktop", (long) ob::Client::Type_Desktop, 0, 0, 0},
8542 { SWIG_PY_INT, (char *)"Client_Type_Dock", (long) ob::Client::Type_Dock, 0, 0, 0},
8543 { SWIG_PY_INT, (char *)"Client_Type_Toolbar", (long) ob::Client::Type_Toolbar, 0, 0, 0},
8544 { SWIG_PY_INT, (char *)"Client_Type_Menu", (long) ob::Client::Type_Menu, 0, 0, 0},
8545 { SWIG_PY_INT, (char *)"Client_Type_Utility", (long) ob::Client::Type_Utility, 0, 0, 0},
8546 { SWIG_PY_INT, (char *)"Client_Type_Splash", (long) ob::Client::Type_Splash, 0, 0, 0},
8547 { SWIG_PY_INT, (char *)"Client_Type_Dialog", (long) ob::Client::Type_Dialog, 0, 0, 0},
8548 { SWIG_PY_INT, (char *)"Client_Type_Normal", (long) ob::Client::Type_Normal, 0, 0, 0},
8549 { SWIG_PY_INT, (char *)"Client_MwmFlag_Functions", (long) ob::Client::MwmFlag_Functions, 0, 0, 0},
8550 { SWIG_PY_INT, (char *)"Client_MwmFlag_Decorations", (long) ob::Client::MwmFlag_Decorations, 0, 0, 0},
8551 { SWIG_PY_INT, (char *)"Client_MwmFunc_All", (long) ob::Client::MwmFunc_All, 0, 0, 0},
8552 { SWIG_PY_INT, (char *)"Client_MwmFunc_Resize", (long) ob::Client::MwmFunc_Resize, 0, 0, 0},
8553 { SWIG_PY_INT, (char *)"Client_MwmFunc_Move", (long) ob::Client::MwmFunc_Move, 0, 0, 0},
8554 { SWIG_PY_INT, (char *)"Client_MwmFunc_Iconify", (long) ob::Client::MwmFunc_Iconify, 0, 0, 0},
8555 { SWIG_PY_INT, (char *)"Client_MwmFunc_Maximize", (long) ob::Client::MwmFunc_Maximize, 0, 0, 0},
8556 { SWIG_PY_INT, (char *)"Client_MwmDecor_All", (long) ob::Client::MwmDecor_All, 0, 0, 0},
8557 { SWIG_PY_INT, (char *)"Client_MwmDecor_Border", (long) ob::Client::MwmDecor_Border, 0, 0, 0},
8558 { SWIG_PY_INT, (char *)"Client_MwmDecor_Handle", (long) ob::Client::MwmDecor_Handle, 0, 0, 0},
8559 { SWIG_PY_INT, (char *)"Client_MwmDecor_Title", (long) ob::Client::MwmDecor_Title, 0, 0, 0},
8560 { SWIG_PY_INT, (char *)"Client_MwmDecor_Iconify", (long) ob::Client::MwmDecor_Iconify, 0, 0, 0},
8561 { SWIG_PY_INT, (char *)"Client_MwmDecor_Maximize", (long) ob::Client::MwmDecor_Maximize, 0, 0, 0},
8562 { SWIG_PY_INT, (char *)"Client_Func_Resize", (long) ob::Client::Func_Resize, 0, 0, 0},
8563 { SWIG_PY_INT, (char *)"Client_Func_Move", (long) ob::Client::Func_Move, 0, 0, 0},
8564 { SWIG_PY_INT, (char *)"Client_Func_Iconify", (long) ob::Client::Func_Iconify, 0, 0, 0},
8565 { SWIG_PY_INT, (char *)"Client_Func_Maximize", (long) ob::Client::Func_Maximize, 0, 0, 0},
8566 { SWIG_PY_INT, (char *)"Client_Func_Close", (long) ob::Client::Func_Close, 0, 0, 0},
8567 { SWIG_PY_INT, (char *)"Client_Decor_Titlebar", (long) ob::Client::Decor_Titlebar, 0, 0, 0},
8568 { SWIG_PY_INT, (char *)"Client_Decor_Handle", (long) ob::Client::Decor_Handle, 0, 0, 0},
8569 { SWIG_PY_INT, (char *)"Client_Decor_Border", (long) ob::Client::Decor_Border, 0, 0, 0},
8570 { SWIG_PY_INT, (char *)"Client_Decor_Iconify", (long) ob::Client::Decor_Iconify, 0, 0, 0},
8571 { SWIG_PY_INT, (char *)"Client_Decor_Maximize", (long) ob::Client::Decor_Maximize, 0, 0, 0},
8572 { SWIG_PY_INT, (char *)"Client_Decor_Sticky", (long) ob::Client::Decor_Sticky, 0, 0, 0},
8573 { SWIG_PY_INT, (char *)"Client_Decor_Close", (long) ob::Client::Decor_Close, 0, 0, 0},
8574 { SWIG_PY_INT, (char *)"Client_State_Remove", (long) ob::Client::State_Remove, 0, 0, 0},
8575 { SWIG_PY_INT, (char *)"Client_State_Add", (long) ob::Client::State_Add, 0, 0, 0},
8576 { SWIG_PY_INT, (char *)"Client_State_Toggle", (long) ob::Client::State_Toggle, 0, 0, 0},
8577 { SWIG_PY_INT, (char *)"Client_event_mask", (long) ob::Client::event_mask, 0, 0, 0},
8578 { SWIG_PY_INT, (char *)"Client_no_propagate_mask", (long) ob::Client::no_propagate_mask, 0, 0, 0},
8579 { SWIG_PY_INT, (char *)"MC_Frame", (long) ob::MC_Frame, 0, 0, 0},
8580 { SWIG_PY_INT, (char *)"MC_Titlebar", (long) ob::MC_Titlebar, 0, 0, 0},
8581 { SWIG_PY_INT, (char *)"MC_Handle", (long) ob::MC_Handle, 0, 0, 0},
8582 { SWIG_PY_INT, (char *)"MC_Window", (long) ob::MC_Window, 0, 0, 0},
8583 { SWIG_PY_INT, (char *)"MC_MaximizeButton", (long) ob::MC_MaximizeButton, 0, 0, 0},
8584 { SWIG_PY_INT, (char *)"MC_CloseButton", (long) ob::MC_CloseButton, 0, 0, 0},
8585 { SWIG_PY_INT, (char *)"MC_IconifyButton", (long) ob::MC_IconifyButton, 0, 0, 0},
8586 { SWIG_PY_INT, (char *)"MC_StickyButton", (long) ob::MC_StickyButton, 0, 0, 0},
8587 { SWIG_PY_INT, (char *)"MC_Grip", (long) ob::MC_Grip, 0, 0, 0},
8588 { SWIG_PY_INT, (char *)"MC_Root", (long) ob::MC_Root, 0, 0, 0},
8589 { SWIG_PY_INT, (char *)"MC_MenuItem", (long) ob::MC_MenuItem, 0, 0, 0},
8590 { SWIG_PY_INT, (char *)"NUM_MOUSE_CONTEXT", (long) ob::NUM_MOUSE_CONTEXT, 0, 0, 0},
8591 { SWIG_PY_INT, (char *)"MousePress", (long) ob::MousePress, 0, 0, 0},
8592 { SWIG_PY_INT, (char *)"MouseClick", (long) ob::MouseClick, 0, 0, 0},
8593 { SWIG_PY_INT, (char *)"MouseDoubleClick", (long) ob::MouseDoubleClick, 0, 0, 0},
8594 { SWIG_PY_INT, (char *)"MouseMotion", (long) ob::MouseMotion, 0, 0, 0},
8595 { SWIG_PY_INT, (char *)"NUM_MOUSE_ACTION", (long) ob::NUM_MOUSE_ACTION, 0, 0, 0},
8596 { SWIG_PY_INT, (char *)"KC_Menu", (long) ob::KC_Menu, 0, 0, 0},
8597 { SWIG_PY_INT, (char *)"KC_All", (long) ob::KC_All, 0, 0, 0},
8598 { SWIG_PY_INT, (char *)"NUM_KEY_CONTEXT", (long) ob::NUM_KEY_CONTEXT, 0, 0, 0},
8599 { SWIG_PY_INT, (char *)"EventEnterWindow", (long) ob::EventEnterWindow, 0, 0, 0},
8600 { SWIG_PY_INT, (char *)"EventLeaveWindow", (long) ob::EventLeaveWindow, 0, 0, 0},
8601 { SWIG_PY_INT, (char *)"EventPlaceWindow", (long) ob::EventPlaceWindow, 0, 0, 0},
8602 { SWIG_PY_INT, (char *)"EventNewWindow", (long) ob::EventNewWindow, 0, 0, 0},
8603 { SWIG_PY_INT, (char *)"EventCloseWindow", (long) ob::EventCloseWindow, 0, 0, 0},
8604 { SWIG_PY_INT, (char *)"EventStartup", (long) ob::EventStartup, 0, 0, 0},
8605 { SWIG_PY_INT, (char *)"EventShutdown", (long) ob::EventShutdown, 0, 0, 0},
8606 { SWIG_PY_INT, (char *)"EventFocus", (long) ob::EventFocus, 0, 0, 0},
8607 { SWIG_PY_INT, (char *)"EventBell", (long) ob::EventBell, 0, 0, 0},
8608 { SWIG_PY_INT, (char *)"NUM_EVENTS", (long) ob::NUM_EVENTS, 0, 0, 0},
8609 { SWIG_PY_INT, (char *)"X_PROTOCOL", (long) 11, 0, 0, 0},
8610 { SWIG_PY_INT, (char *)"X_PROTOCOL_REVISION", (long) 0, 0, 0, 0},
8611 { SWIG_PY_INT, (char *)"None", (long) 0L, 0, 0, 0},
8612 { SWIG_PY_INT, (char *)"ParentRelative", (long) 1L, 0, 0, 0},
8613 { SWIG_PY_INT, (char *)"CopyFromParent", (long) 0L, 0, 0, 0},
8614 { SWIG_PY_INT, (char *)"PointerWindow", (long) 0L, 0, 0, 0},
8615 { SWIG_PY_INT, (char *)"InputFocus", (long) 1L, 0, 0, 0},
8616 { SWIG_PY_INT, (char *)"PointerRoot", (long) 1L, 0, 0, 0},
8617 { SWIG_PY_INT, (char *)"AnyPropertyType", (long) 0L, 0, 0, 0},
8618 { SWIG_PY_INT, (char *)"AnyKey", (long) 0L, 0, 0, 0},
8619 { SWIG_PY_INT, (char *)"AnyButton", (long) 0L, 0, 0, 0},
8620 { SWIG_PY_INT, (char *)"AllTemporary", (long) 0L, 0, 0, 0},
8621 { SWIG_PY_INT, (char *)"CurrentTime", (long) 0L, 0, 0, 0},
8622 { SWIG_PY_INT, (char *)"NoSymbol", (long) 0L, 0, 0, 0},
8623 { SWIG_PY_INT, (char *)"NoEventMask", (long) 0L, 0, 0, 0},
8624 { SWIG_PY_INT, (char *)"KeyPressMask", (long) (1L<<0), 0, 0, 0},
8625 { SWIG_PY_INT, (char *)"KeyReleaseMask", (long) (1L<<1), 0, 0, 0},
8626 { SWIG_PY_INT, (char *)"ButtonPressMask", (long) (1L<<2), 0, 0, 0},
8627 { SWIG_PY_INT, (char *)"ButtonReleaseMask", (long) (1L<<3), 0, 0, 0},
8628 { SWIG_PY_INT, (char *)"EnterWindowMask", (long) (1L<<4), 0, 0, 0},
8629 { SWIG_PY_INT, (char *)"LeaveWindowMask", (long) (1L<<5), 0, 0, 0},
8630 { SWIG_PY_INT, (char *)"PointerMotionMask", (long) (1L<<6), 0, 0, 0},
8631 { SWIG_PY_INT, (char *)"PointerMotionHintMask", (long) (1L<<7), 0, 0, 0},
8632 { SWIG_PY_INT, (char *)"Button1MotionMask", (long) (1L<<8), 0, 0, 0},
8633 { SWIG_PY_INT, (char *)"Button2MotionMask", (long) (1L<<9), 0, 0, 0},
8634 { SWIG_PY_INT, (char *)"Button3MotionMask", (long) (1L<<10), 0, 0, 0},
8635 { SWIG_PY_INT, (char *)"Button4MotionMask", (long) (1L<<11), 0, 0, 0},
8636 { SWIG_PY_INT, (char *)"Button5MotionMask", (long) (1L<<12), 0, 0, 0},
8637 { SWIG_PY_INT, (char *)"ButtonMotionMask", (long) (1L<<13), 0, 0, 0},
8638 { SWIG_PY_INT, (char *)"KeymapStateMask", (long) (1L<<14), 0, 0, 0},
8639 { SWIG_PY_INT, (char *)"ExposureMask", (long) (1L<<15), 0, 0, 0},
8640 { SWIG_PY_INT, (char *)"VisibilityChangeMask", (long) (1L<<16), 0, 0, 0},
8641 { SWIG_PY_INT, (char *)"StructureNotifyMask", (long) (1L<<17), 0, 0, 0},
8642 { SWIG_PY_INT, (char *)"ResizeRedirectMask", (long) (1L<<18), 0, 0, 0},
8643 { SWIG_PY_INT, (char *)"SubstructureNotifyMask", (long) (1L<<19), 0, 0, 0},
8644 { SWIG_PY_INT, (char *)"SubstructureRedirectMask", (long) (1L<<20), 0, 0, 0},
8645 { SWIG_PY_INT, (char *)"FocusChangeMask", (long) (1L<<21), 0, 0, 0},
8646 { SWIG_PY_INT, (char *)"PropertyChangeMask", (long) (1L<<22), 0, 0, 0},
8647 { SWIG_PY_INT, (char *)"ColormapChangeMask", (long) (1L<<23), 0, 0, 0},
8648 { SWIG_PY_INT, (char *)"OwnerGrabButtonMask", (long) (1L<<24), 0, 0, 0},
8649 { SWIG_PY_INT, (char *)"KeyPress", (long) 2, 0, 0, 0},
8650 { SWIG_PY_INT, (char *)"KeyRelease", (long) 3, 0, 0, 0},
8651 { SWIG_PY_INT, (char *)"ButtonPress", (long) 4, 0, 0, 0},
8652 { SWIG_PY_INT, (char *)"ButtonRelease", (long) 5, 0, 0, 0},
8653 { SWIG_PY_INT, (char *)"MotionNotify", (long) 6, 0, 0, 0},
8654 { SWIG_PY_INT, (char *)"EnterNotify", (long) 7, 0, 0, 0},
8655 { SWIG_PY_INT, (char *)"LeaveNotify", (long) 8, 0, 0, 0},
8656 { SWIG_PY_INT, (char *)"FocusIn", (long) 9, 0, 0, 0},
8657 { SWIG_PY_INT, (char *)"FocusOut", (long) 10, 0, 0, 0},
8658 { SWIG_PY_INT, (char *)"KeymapNotify", (long) 11, 0, 0, 0},
8659 { SWIG_PY_INT, (char *)"Expose", (long) 12, 0, 0, 0},
8660 { SWIG_PY_INT, (char *)"GraphicsExpose", (long) 13, 0, 0, 0},
8661 { SWIG_PY_INT, (char *)"NoExpose", (long) 14, 0, 0, 0},
8662 { SWIG_PY_INT, (char *)"VisibilityNotify", (long) 15, 0, 0, 0},
8663 { SWIG_PY_INT, (char *)"CreateNotify", (long) 16, 0, 0, 0},
8664 { SWIG_PY_INT, (char *)"DestroyNotify", (long) 17, 0, 0, 0},
8665 { SWIG_PY_INT, (char *)"UnmapNotify", (long) 18, 0, 0, 0},
8666 { SWIG_PY_INT, (char *)"MapNotify", (long) 19, 0, 0, 0},
8667 { SWIG_PY_INT, (char *)"MapRequest", (long) 20, 0, 0, 0},
8668 { SWIG_PY_INT, (char *)"ReparentNotify", (long) 21, 0, 0, 0},
8669 { SWIG_PY_INT, (char *)"ConfigureNotify", (long) 22, 0, 0, 0},
8670 { SWIG_PY_INT, (char *)"ConfigureRequest", (long) 23, 0, 0, 0},
8671 { SWIG_PY_INT, (char *)"GravityNotify", (long) 24, 0, 0, 0},
8672 { SWIG_PY_INT, (char *)"ResizeRequest", (long) 25, 0, 0, 0},
8673 { SWIG_PY_INT, (char *)"CirculateNotify", (long) 26, 0, 0, 0},
8674 { SWIG_PY_INT, (char *)"CirculateRequest", (long) 27, 0, 0, 0},
8675 { SWIG_PY_INT, (char *)"PropertyNotify", (long) 28, 0, 0, 0},
8676 { SWIG_PY_INT, (char *)"SelectionClear", (long) 29, 0, 0, 0},
8677 { SWIG_PY_INT, (char *)"SelectionRequest", (long) 30, 0, 0, 0},
8678 { SWIG_PY_INT, (char *)"SelectionNotify", (long) 31, 0, 0, 0},
8679 { SWIG_PY_INT, (char *)"ColormapNotify", (long) 32, 0, 0, 0},
8680 { SWIG_PY_INT, (char *)"ClientMessage", (long) 33, 0, 0, 0},
8681 { SWIG_PY_INT, (char *)"MappingNotify", (long) 34, 0, 0, 0},
8682 { SWIG_PY_INT, (char *)"LASTEvent", (long) 35, 0, 0, 0},
8683 { SWIG_PY_INT, (char *)"ShiftMask", (long) (1<<0), 0, 0, 0},
8684 { SWIG_PY_INT, (char *)"LockMask", (long) (1<<1), 0, 0, 0},
8685 { SWIG_PY_INT, (char *)"ControlMask", (long) (1<<2), 0, 0, 0},
8686 { SWIG_PY_INT, (char *)"Mod1Mask", (long) (1<<3), 0, 0, 0},
8687 { SWIG_PY_INT, (char *)"Mod2Mask", (long) (1<<4), 0, 0, 0},
8688 { SWIG_PY_INT, (char *)"Mod3Mask", (long) (1<<5), 0, 0, 0},
8689 { SWIG_PY_INT, (char *)"Mod4Mask", (long) (1<<6), 0, 0, 0},
8690 { SWIG_PY_INT, (char *)"Mod5Mask", (long) (1<<7), 0, 0, 0},
8691 { SWIG_PY_INT, (char *)"ShiftMapIndex", (long) 0, 0, 0, 0},
8692 { SWIG_PY_INT, (char *)"LockMapIndex", (long) 1, 0, 0, 0},
8693 { SWIG_PY_INT, (char *)"ControlMapIndex", (long) 2, 0, 0, 0},
8694 { SWIG_PY_INT, (char *)"Mod1MapIndex", (long) 3, 0, 0, 0},
8695 { SWIG_PY_INT, (char *)"Mod2MapIndex", (long) 4, 0, 0, 0},
8696 { SWIG_PY_INT, (char *)"Mod3MapIndex", (long) 5, 0, 0, 0},
8697 { SWIG_PY_INT, (char *)"Mod4MapIndex", (long) 6, 0, 0, 0},
8698 { SWIG_PY_INT, (char *)"Mod5MapIndex", (long) 7, 0, 0, 0},
8699 { SWIG_PY_INT, (char *)"Button1Mask", (long) (1<<8), 0, 0, 0},
8700 { SWIG_PY_INT, (char *)"Button2Mask", (long) (1<<9), 0, 0, 0},
8701 { SWIG_PY_INT, (char *)"Button3Mask", (long) (1<<10), 0, 0, 0},
8702 { SWIG_PY_INT, (char *)"Button4Mask", (long) (1<<11), 0, 0, 0},
8703 { SWIG_PY_INT, (char *)"Button5Mask", (long) (1<<12), 0, 0, 0},
8704 { SWIG_PY_INT, (char *)"AnyModifier", (long) (1<<15), 0, 0, 0},
8705 { SWIG_PY_INT, (char *)"Button1", (long) 1, 0, 0, 0},
8706 { SWIG_PY_INT, (char *)"Button2", (long) 2, 0, 0, 0},
8707 { SWIG_PY_INT, (char *)"Button3", (long) 3, 0, 0, 0},
8708 { SWIG_PY_INT, (char *)"Button4", (long) 4, 0, 0, 0},
8709 { SWIG_PY_INT, (char *)"Button5", (long) 5, 0, 0, 0},
8710 { SWIG_PY_INT, (char *)"NotifyNormal", (long) 0, 0, 0, 0},
8711 { SWIG_PY_INT, (char *)"NotifyGrab", (long) 1, 0, 0, 0},
8712 { SWIG_PY_INT, (char *)"NotifyUngrab", (long) 2, 0, 0, 0},
8713 { SWIG_PY_INT, (char *)"NotifyWhileGrabbed", (long) 3, 0, 0, 0},
8714 { SWIG_PY_INT, (char *)"NotifyHint", (long) 1, 0, 0, 0},
8715 { SWIG_PY_INT, (char *)"NotifyAncestor", (long) 0, 0, 0, 0},
8716 { SWIG_PY_INT, (char *)"NotifyVirtual", (long) 1, 0, 0, 0},
8717 { SWIG_PY_INT, (char *)"NotifyInferior", (long) 2, 0, 0, 0},
8718 { SWIG_PY_INT, (char *)"NotifyNonlinear", (long) 3, 0, 0, 0},
8719 { SWIG_PY_INT, (char *)"NotifyNonlinearVirtual", (long) 4, 0, 0, 0},
8720 { SWIG_PY_INT, (char *)"NotifyPointer", (long) 5, 0, 0, 0},
8721 { SWIG_PY_INT, (char *)"NotifyPointerRoot", (long) 6, 0, 0, 0},
8722 { SWIG_PY_INT, (char *)"NotifyDetailNone", (long) 7, 0, 0, 0},
8723 { SWIG_PY_INT, (char *)"VisibilityUnobscured", (long) 0, 0, 0, 0},
8724 { SWIG_PY_INT, (char *)"VisibilityPartiallyObscured", (long) 1, 0, 0, 0},
8725 { SWIG_PY_INT, (char *)"VisibilityFullyObscured", (long) 2, 0, 0, 0},
8726 { SWIG_PY_INT, (char *)"PlaceOnTop", (long) 0, 0, 0, 0},
8727 { SWIG_PY_INT, (char *)"PlaceOnBottom", (long) 1, 0, 0, 0},
8728 { SWIG_PY_INT, (char *)"FamilyInternet", (long) 0, 0, 0, 0},
8729 { SWIG_PY_INT, (char *)"FamilyDECnet", (long) 1, 0, 0, 0},
8730 { SWIG_PY_INT, (char *)"FamilyChaos", (long) 2, 0, 0, 0},
8731 { SWIG_PY_INT, (char *)"PropertyNewValue", (long) 0, 0, 0, 0},
8732 { SWIG_PY_INT, (char *)"PropertyDelete", (long) 1, 0, 0, 0},
8733 { SWIG_PY_INT, (char *)"ColormapUninstalled", (long) 0, 0, 0, 0},
8734 { SWIG_PY_INT, (char *)"ColormapInstalled", (long) 1, 0, 0, 0},
8735 { SWIG_PY_INT, (char *)"GrabModeSync", (long) 0, 0, 0, 0},
8736 { SWIG_PY_INT, (char *)"GrabModeAsync", (long) 1, 0, 0, 0},
8737 { SWIG_PY_INT, (char *)"GrabSuccess", (long) 0, 0, 0, 0},
8738 { SWIG_PY_INT, (char *)"AlreadyGrabbed", (long) 1, 0, 0, 0},
8739 { SWIG_PY_INT, (char *)"GrabInvalidTime", (long) 2, 0, 0, 0},
8740 { SWIG_PY_INT, (char *)"GrabNotViewable", (long) 3, 0, 0, 0},
8741 { SWIG_PY_INT, (char *)"GrabFrozen", (long) 4, 0, 0, 0},
8742 { SWIG_PY_INT, (char *)"AsyncPointer", (long) 0, 0, 0, 0},
8743 { SWIG_PY_INT, (char *)"SyncPointer", (long) 1, 0, 0, 0},
8744 { SWIG_PY_INT, (char *)"ReplayPointer", (long) 2, 0, 0, 0},
8745 { SWIG_PY_INT, (char *)"AsyncKeyboard", (long) 3, 0, 0, 0},
8746 { SWIG_PY_INT, (char *)"SyncKeyboard", (long) 4, 0, 0, 0},
8747 { SWIG_PY_INT, (char *)"ReplayKeyboard", (long) 5, 0, 0, 0},
8748 { SWIG_PY_INT, (char *)"AsyncBoth", (long) 6, 0, 0, 0},
8749 { SWIG_PY_INT, (char *)"SyncBoth", (long) 7, 0, 0, 0},
8750 { SWIG_PY_INT, (char *)"RevertToParent", (long) 2, 0, 0, 0},
8751 { SWIG_PY_INT, (char *)"Success", (long) 0, 0, 0, 0},
8752 { SWIG_PY_INT, (char *)"BadRequest", (long) 1, 0, 0, 0},
8753 { SWIG_PY_INT, (char *)"BadValue", (long) 2, 0, 0, 0},
8754 { SWIG_PY_INT, (char *)"BadWindow", (long) 3, 0, 0, 0},
8755 { SWIG_PY_INT, (char *)"BadPixmap", (long) 4, 0, 0, 0},
8756 { SWIG_PY_INT, (char *)"BadAtom", (long) 5, 0, 0, 0},
8757 { SWIG_PY_INT, (char *)"BadCursor", (long) 6, 0, 0, 0},
8758 { SWIG_PY_INT, (char *)"BadFont", (long) 7, 0, 0, 0},
8759 { SWIG_PY_INT, (char *)"BadMatch", (long) 8, 0, 0, 0},
8760 { SWIG_PY_INT, (char *)"BadDrawable", (long) 9, 0, 0, 0},
8761 { SWIG_PY_INT, (char *)"BadAccess", (long) 10, 0, 0, 0},
8762 { SWIG_PY_INT, (char *)"BadAlloc", (long) 11, 0, 0, 0},
8763 { SWIG_PY_INT, (char *)"BadColor", (long) 12, 0, 0, 0},
8764 { SWIG_PY_INT, (char *)"BadGC", (long) 13, 0, 0, 0},
8765 { SWIG_PY_INT, (char *)"BadIDChoice", (long) 14, 0, 0, 0},
8766 { SWIG_PY_INT, (char *)"BadName", (long) 15, 0, 0, 0},
8767 { SWIG_PY_INT, (char *)"BadLength", (long) 16, 0, 0, 0},
8768 { SWIG_PY_INT, (char *)"BadImplementation", (long) 17, 0, 0, 0},
8769 { SWIG_PY_INT, (char *)"FirstExtensionError", (long) 128, 0, 0, 0},
8770 { SWIG_PY_INT, (char *)"LastExtensionError", (long) 255, 0, 0, 0},
8771 { SWIG_PY_INT, (char *)"InputOutput", (long) 1, 0, 0, 0},
8772 { SWIG_PY_INT, (char *)"InputOnly", (long) 2, 0, 0, 0},
8773 { SWIG_PY_INT, (char *)"CWBackPixmap", (long) (1L<<0), 0, 0, 0},
8774 { SWIG_PY_INT, (char *)"CWBackPixel", (long) (1L<<1), 0, 0, 0},
8775 { SWIG_PY_INT, (char *)"CWBorderPixmap", (long) (1L<<2), 0, 0, 0},
8776 { SWIG_PY_INT, (char *)"CWBorderPixel", (long) (1L<<3), 0, 0, 0},
8777 { SWIG_PY_INT, (char *)"CWBitGravity", (long) (1L<<4), 0, 0, 0},
8778 { SWIG_PY_INT, (char *)"CWWinGravity", (long) (1L<<5), 0, 0, 0},
8779 { SWIG_PY_INT, (char *)"CWBackingStore", (long) (1L<<6), 0, 0, 0},
8780 { SWIG_PY_INT, (char *)"CWBackingPlanes", (long) (1L<<7), 0, 0, 0},
8781 { SWIG_PY_INT, (char *)"CWBackingPixel", (long) (1L<<8), 0, 0, 0},
8782 { SWIG_PY_INT, (char *)"CWOverrideRedirect", (long) (1L<<9), 0, 0, 0},
8783 { SWIG_PY_INT, (char *)"CWSaveUnder", (long) (1L<<10), 0, 0, 0},
8784 { SWIG_PY_INT, (char *)"CWEventMask", (long) (1L<<11), 0, 0, 0},
8785 { SWIG_PY_INT, (char *)"CWDontPropagate", (long) (1L<<12), 0, 0, 0},
8786 { SWIG_PY_INT, (char *)"CWColormap", (long) (1L<<13), 0, 0, 0},
8787 { SWIG_PY_INT, (char *)"CWCursor", (long) (1L<<14), 0, 0, 0},
8788 { SWIG_PY_INT, (char *)"CWX", (long) (1<<0), 0, 0, 0},
8789 { SWIG_PY_INT, (char *)"CWY", (long) (1<<1), 0, 0, 0},
8790 { SWIG_PY_INT, (char *)"CWWidth", (long) (1<<2), 0, 0, 0},
8791 { SWIG_PY_INT, (char *)"CWHeight", (long) (1<<3), 0, 0, 0},
8792 { SWIG_PY_INT, (char *)"CWBorderWidth", (long) (1<<4), 0, 0, 0},
8793 { SWIG_PY_INT, (char *)"CWSibling", (long) (1<<5), 0, 0, 0},
8794 { SWIG_PY_INT, (char *)"CWStackMode", (long) (1<<6), 0, 0, 0},
8795 { SWIG_PY_INT, (char *)"ForgetGravity", (long) 0, 0, 0, 0},
8796 { SWIG_PY_INT, (char *)"NorthWestGravity", (long) 1, 0, 0, 0},
8797 { SWIG_PY_INT, (char *)"NorthGravity", (long) 2, 0, 0, 0},
8798 { SWIG_PY_INT, (char *)"NorthEastGravity", (long) 3, 0, 0, 0},
8799 { SWIG_PY_INT, (char *)"WestGravity", (long) 4, 0, 0, 0},
8800 { SWIG_PY_INT, (char *)"CenterGravity", (long) 5, 0, 0, 0},
8801 { SWIG_PY_INT, (char *)"EastGravity", (long) 6, 0, 0, 0},
8802 { SWIG_PY_INT, (char *)"SouthWestGravity", (long) 7, 0, 0, 0},
8803 { SWIG_PY_INT, (char *)"SouthGravity", (long) 8, 0, 0, 0},
8804 { SWIG_PY_INT, (char *)"SouthEastGravity", (long) 9, 0, 0, 0},
8805 { SWIG_PY_INT, (char *)"StaticGravity", (long) 10, 0, 0, 0},
8806 { SWIG_PY_INT, (char *)"UnmapGravity", (long) 0, 0, 0, 0},
8807 { SWIG_PY_INT, (char *)"NotUseful", (long) 0, 0, 0, 0},
8808 { SWIG_PY_INT, (char *)"WhenMapped", (long) 1, 0, 0, 0},
8809 { SWIG_PY_INT, (char *)"Always", (long) 2, 0, 0, 0},
8810 { SWIG_PY_INT, (char *)"IsUnmapped", (long) 0, 0, 0, 0},
8811 { SWIG_PY_INT, (char *)"IsUnviewable", (long) 1, 0, 0, 0},
8812 { SWIG_PY_INT, (char *)"IsViewable", (long) 2, 0, 0, 0},
8813 { SWIG_PY_INT, (char *)"SetModeInsert", (long) 0, 0, 0, 0},
8814 { SWIG_PY_INT, (char *)"SetModeDelete", (long) 1, 0, 0, 0},
8815 { SWIG_PY_INT, (char *)"DestroyAll", (long) 0, 0, 0, 0},
8816 { SWIG_PY_INT, (char *)"RetainPermanent", (long) 1, 0, 0, 0},
8817 { SWIG_PY_INT, (char *)"RetainTemporary", (long) 2, 0, 0, 0},
8818 { SWIG_PY_INT, (char *)"Above", (long) 0, 0, 0, 0},
8819 { SWIG_PY_INT, (char *)"Below", (long) 1, 0, 0, 0},
8820 { SWIG_PY_INT, (char *)"TopIf", (long) 2, 0, 0, 0},
8821 { SWIG_PY_INT, (char *)"BottomIf", (long) 3, 0, 0, 0},
8822 { SWIG_PY_INT, (char *)"Opposite", (long) 4, 0, 0, 0},
8823 { SWIG_PY_INT, (char *)"RaiseLowest", (long) 0, 0, 0, 0},
8824 { SWIG_PY_INT, (char *)"LowerHighest", (long) 1, 0, 0, 0},
8825 { SWIG_PY_INT, (char *)"PropModeReplace", (long) 0, 0, 0, 0},
8826 { SWIG_PY_INT, (char *)"PropModePrepend", (long) 1, 0, 0, 0},
8827 { SWIG_PY_INT, (char *)"PropModeAppend", (long) 2, 0, 0, 0},
8828 { SWIG_PY_INT, (char *)"GXclear", (long) 0x0, 0, 0, 0},
8829 { SWIG_PY_INT, (char *)"GXand", (long) 0x1, 0, 0, 0},
8830 { SWIG_PY_INT, (char *)"GXandReverse", (long) 0x2, 0, 0, 0},
8831 { SWIG_PY_INT, (char *)"GXcopy", (long) 0x3, 0, 0, 0},
8832 { SWIG_PY_INT, (char *)"GXandInverted", (long) 0x4, 0, 0, 0},
8833 { SWIG_PY_INT, (char *)"GXnoop", (long) 0x5, 0, 0, 0},
8834 { SWIG_PY_INT, (char *)"GXxor", (long) 0x6, 0, 0, 0},
8835 { SWIG_PY_INT, (char *)"GXor", (long) 0x7, 0, 0, 0},
8836 { SWIG_PY_INT, (char *)"GXnor", (long) 0x8, 0, 0, 0},
8837 { SWIG_PY_INT, (char *)"GXequiv", (long) 0x9, 0, 0, 0},
8838 { SWIG_PY_INT, (char *)"GXinvert", (long) 0xa, 0, 0, 0},
8839 { SWIG_PY_INT, (char *)"GXorReverse", (long) 0xb, 0, 0, 0},
8840 { SWIG_PY_INT, (char *)"GXcopyInverted", (long) 0xc, 0, 0, 0},
8841 { SWIG_PY_INT, (char *)"GXorInverted", (long) 0xd, 0, 0, 0},
8842 { SWIG_PY_INT, (char *)"GXnand", (long) 0xe, 0, 0, 0},
8843 { SWIG_PY_INT, (char *)"GXset", (long) 0xf, 0, 0, 0},
8844 { SWIG_PY_INT, (char *)"LineSolid", (long) 0, 0, 0, 0},
8845 { SWIG_PY_INT, (char *)"LineOnOffDash", (long) 1, 0, 0, 0},
8846 { SWIG_PY_INT, (char *)"LineDoubleDash", (long) 2, 0, 0, 0},
8847 { SWIG_PY_INT, (char *)"CapNotLast", (long) 0, 0, 0, 0},
8848 { SWIG_PY_INT, (char *)"CapButt", (long) 1, 0, 0, 0},
8849 { SWIG_PY_INT, (char *)"CapRound", (long) 2, 0, 0, 0},
8850 { SWIG_PY_INT, (char *)"CapProjecting", (long) 3, 0, 0, 0},
8851 { SWIG_PY_INT, (char *)"JoinMiter", (long) 0, 0, 0, 0},
8852 { SWIG_PY_INT, (char *)"JoinRound", (long) 1, 0, 0, 0},
8853 { SWIG_PY_INT, (char *)"JoinBevel", (long) 2, 0, 0, 0},
8854 { SWIG_PY_INT, (char *)"FillSolid", (long) 0, 0, 0, 0},
8855 { SWIG_PY_INT, (char *)"FillTiled", (long) 1, 0, 0, 0},
8856 { SWIG_PY_INT, (char *)"FillStippled", (long) 2, 0, 0, 0},
8857 { SWIG_PY_INT, (char *)"FillOpaqueStippled", (long) 3, 0, 0, 0},
8858 { SWIG_PY_INT, (char *)"EvenOddRule", (long) 0, 0, 0, 0},
8859 { SWIG_PY_INT, (char *)"WindingRule", (long) 1, 0, 0, 0},
8860 { SWIG_PY_INT, (char *)"ClipByChildren", (long) 0, 0, 0, 0},
8861 { SWIG_PY_INT, (char *)"IncludeInferiors", (long) 1, 0, 0, 0},
8862 { SWIG_PY_INT, (char *)"Unsorted", (long) 0, 0, 0, 0},
8863 { SWIG_PY_INT, (char *)"YSorted", (long) 1, 0, 0, 0},
8864 { SWIG_PY_INT, (char *)"YXSorted", (long) 2, 0, 0, 0},
8865 { SWIG_PY_INT, (char *)"YXBanded", (long) 3, 0, 0, 0},
8866 { SWIG_PY_INT, (char *)"CoordModeOrigin", (long) 0, 0, 0, 0},
8867 { SWIG_PY_INT, (char *)"CoordModePrevious", (long) 1, 0, 0, 0},
8868 { SWIG_PY_INT, (char *)"Complex", (long) 0, 0, 0, 0},
8869 { SWIG_PY_INT, (char *)"Nonconvex", (long) 1, 0, 0, 0},
8870 { SWIG_PY_INT, (char *)"Convex", (long) 2, 0, 0, 0},
8871 { SWIG_PY_INT, (char *)"ArcChord", (long) 0, 0, 0, 0},
8872 { SWIG_PY_INT, (char *)"ArcPieSlice", (long) 1, 0, 0, 0},
8873 { SWIG_PY_INT, (char *)"GCFunction", (long) (1L<<0), 0, 0, 0},
8874 { SWIG_PY_INT, (char *)"GCPlaneMask", (long) (1L<<1), 0, 0, 0},
8875 { SWIG_PY_INT, (char *)"GCForeground", (long) (1L<<2), 0, 0, 0},
8876 { SWIG_PY_INT, (char *)"GCBackground", (long) (1L<<3), 0, 0, 0},
8877 { SWIG_PY_INT, (char *)"GCLineWidth", (long) (1L<<4), 0, 0, 0},
8878 { SWIG_PY_INT, (char *)"GCLineStyle", (long) (1L<<5), 0, 0, 0},
8879 { SWIG_PY_INT, (char *)"GCCapStyle", (long) (1L<<6), 0, 0, 0},
8880 { SWIG_PY_INT, (char *)"GCJoinStyle", (long) (1L<<7), 0, 0, 0},
8881 { SWIG_PY_INT, (char *)"GCFillStyle", (long) (1L<<8), 0, 0, 0},
8882 { SWIG_PY_INT, (char *)"GCFillRule", (long) (1L<<9), 0, 0, 0},
8883 { SWIG_PY_INT, (char *)"GCTile", (long) (1L<<10), 0, 0, 0},
8884 { SWIG_PY_INT, (char *)"GCStipple", (long) (1L<<11), 0, 0, 0},
8885 { SWIG_PY_INT, (char *)"GCTileStipXOrigin", (long) (1L<<12), 0, 0, 0},
8886 { SWIG_PY_INT, (char *)"GCTileStipYOrigin", (long) (1L<<13), 0, 0, 0},
8887 { SWIG_PY_INT, (char *)"GCFont", (long) (1L<<14), 0, 0, 0},
8888 { SWIG_PY_INT, (char *)"GCSubwindowMode", (long) (1L<<15), 0, 0, 0},
8889 { SWIG_PY_INT, (char *)"GCGraphicsExposures", (long) (1L<<16), 0, 0, 0},
8890 { SWIG_PY_INT, (char *)"GCClipXOrigin", (long) (1L<<17), 0, 0, 0},
8891 { SWIG_PY_INT, (char *)"GCClipYOrigin", (long) (1L<<18), 0, 0, 0},
8892 { SWIG_PY_INT, (char *)"GCClipMask", (long) (1L<<19), 0, 0, 0},
8893 { SWIG_PY_INT, (char *)"GCDashOffset", (long) (1L<<20), 0, 0, 0},
8894 { SWIG_PY_INT, (char *)"GCDashList", (long) (1L<<21), 0, 0, 0},
8895 { SWIG_PY_INT, (char *)"GCArcMode", (long) (1L<<22), 0, 0, 0},
8896 { SWIG_PY_INT, (char *)"GCLastBit", (long) 22, 0, 0, 0},
8897 { SWIG_PY_INT, (char *)"FontLeftToRight", (long) 0, 0, 0, 0},
8898 { SWIG_PY_INT, (char *)"FontRightToLeft", (long) 1, 0, 0, 0},
8899 { SWIG_PY_INT, (char *)"FontChange", (long) 255, 0, 0, 0},
8900 { SWIG_PY_INT, (char *)"XYBitmap", (long) 0, 0, 0, 0},
8901 { SWIG_PY_INT, (char *)"XYPixmap", (long) 1, 0, 0, 0},
8902 { SWIG_PY_INT, (char *)"ZPixmap", (long) 2, 0, 0, 0},
8903 { SWIG_PY_INT, (char *)"AllocNone", (long) 0, 0, 0, 0},
8904 { SWIG_PY_INT, (char *)"AllocAll", (long) 1, 0, 0, 0},
8905 { SWIG_PY_INT, (char *)"DoRed", (long) (1<<0), 0, 0, 0},
8906 { SWIG_PY_INT, (char *)"DoGreen", (long) (1<<1), 0, 0, 0},
8907 { SWIG_PY_INT, (char *)"DoBlue", (long) (1<<2), 0, 0, 0},
8908 { SWIG_PY_INT, (char *)"CursorShape", (long) 0, 0, 0, 0},
8909 { SWIG_PY_INT, (char *)"TileShape", (long) 1, 0, 0, 0},
8910 { SWIG_PY_INT, (char *)"StippleShape", (long) 2, 0, 0, 0},
8911 { SWIG_PY_INT, (char *)"AutoRepeatModeOff", (long) 0, 0, 0, 0},
8912 { SWIG_PY_INT, (char *)"AutoRepeatModeOn", (long) 1, 0, 0, 0},
8913 { SWIG_PY_INT, (char *)"AutoRepeatModeDefault", (long) 2, 0, 0, 0},
8914 { SWIG_PY_INT, (char *)"LedModeOff", (long) 0, 0, 0, 0},
8915 { SWIG_PY_INT, (char *)"LedModeOn", (long) 1, 0, 0, 0},
8916 { SWIG_PY_INT, (char *)"KBKeyClickPercent", (long) (1L<<0), 0, 0, 0},
8917 { SWIG_PY_INT, (char *)"KBBellPercent", (long) (1L<<1), 0, 0, 0},
8918 { SWIG_PY_INT, (char *)"KBBellPitch", (long) (1L<<2), 0, 0, 0},
8919 { SWIG_PY_INT, (char *)"KBBellDuration", (long) (1L<<3), 0, 0, 0},
8920 { SWIG_PY_INT, (char *)"KBLed", (long) (1L<<4), 0, 0, 0},
8921 { SWIG_PY_INT, (char *)"KBLedMode", (long) (1L<<5), 0, 0, 0},
8922 { SWIG_PY_INT, (char *)"KBKey", (long) (1L<<6), 0, 0, 0},
8923 { SWIG_PY_INT, (char *)"KBAutoRepeatMode", (long) (1L<<7), 0, 0, 0},
8924 { SWIG_PY_INT, (char *)"MappingSuccess", (long) 0, 0, 0, 0},
8925 { SWIG_PY_INT, (char *)"MappingBusy", (long) 1, 0, 0, 0},
8926 { SWIG_PY_INT, (char *)"MappingFailed", (long) 2, 0, 0, 0},
8927 { SWIG_PY_INT, (char *)"MappingModifier", (long) 0, 0, 0, 0},
8928 { SWIG_PY_INT, (char *)"MappingKeyboard", (long) 1, 0, 0, 0},
8929 { SWIG_PY_INT, (char *)"MappingPointer", (long) 2, 0, 0, 0},
8930 { SWIG_PY_INT, (char *)"DontPreferBlanking", (long) 0, 0, 0, 0},
8931 { SWIG_PY_INT, (char *)"PreferBlanking", (long) 1, 0, 0, 0},
8932 { SWIG_PY_INT, (char *)"DefaultBlanking", (long) 2, 0, 0, 0},
8933 { SWIG_PY_INT, (char *)"DisableScreenSaver", (long) 0, 0, 0, 0},
8934 { SWIG_PY_INT, (char *)"DisableScreenInterval", (long) 0, 0, 0, 0},
8935 { SWIG_PY_INT, (char *)"DontAllowExposures", (long) 0, 0, 0, 0},
8936 { SWIG_PY_INT, (char *)"AllowExposures", (long) 1, 0, 0, 0},
8937 { SWIG_PY_INT, (char *)"DefaultExposures", (long) 2, 0, 0, 0},
8938 { SWIG_PY_INT, (char *)"ScreenSaverReset", (long) 0, 0, 0, 0},
8939 { SWIG_PY_INT, (char *)"ScreenSaverActive", (long) 1, 0, 0, 0},
8940 { SWIG_PY_INT, (char *)"HostInsert", (long) 0, 0, 0, 0},
8941 { SWIG_PY_INT, (char *)"HostDelete", (long) 1, 0, 0, 0},
8942 { SWIG_PY_INT, (char *)"EnableAccess", (long) 1, 0, 0, 0},
8943 { SWIG_PY_INT, (char *)"DisableAccess", (long) 0, 0, 0, 0},
8944 { SWIG_PY_INT, (char *)"StaticGray", (long) 0, 0, 0, 0},
8945 { SWIG_PY_INT, (char *)"GrayScale", (long) 1, 0, 0, 0},
8946 { SWIG_PY_INT, (char *)"StaticColor", (long) 2, 0, 0, 0},
8947 { SWIG_PY_INT, (char *)"PseudoColor", (long) 3, 0, 0, 0},
8948 { SWIG_PY_INT, (char *)"TrueColor", (long) 4, 0, 0, 0},
8949 { SWIG_PY_INT, (char *)"DirectColor", (long) 5, 0, 0, 0},
8950 { SWIG_PY_INT, (char *)"LSBFirst", (long) 0, 0, 0, 0},
8951 { SWIG_PY_INT, (char *)"MSBFirst", (long) 1, 0, 0, 0},
8952 {0}};
8953
8954 #ifdef __cplusplus
8955 }
8956 #endif
8957
8958 #ifdef __cplusplus
8959 extern "C"
8960 #endif
8961 SWIGEXPORT(void) SWIG_init(void) {
8962 static PyObject *SWIG_globals = 0;
8963 static int typeinit = 0;
8964 PyObject *m, *d;
8965 int i;
8966 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
8967 m = Py_InitModule((char *) SWIG_name, SwigMethods);
8968 d = PyModule_GetDict(m);
8969
8970 if (!typeinit) {
8971 for (i = 0; swig_types_initial[i]; i++) {
8972 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
8973 }
8974 typeinit = 1;
8975 }
8976 SWIG_InstallConstants(d,swig_const_table);
8977
8978 }
8979
This page took 0.533065 seconds and 4 git commands to generate.