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