]> Dogcows Code - chaz/openbox/blob - otk/otk_wrap.cc
5d44b3efa601c5d36084d282f92cb242a21355b9
[chaz/openbox] / otk / otk_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__OBProperty__StringVect swig_types[0]
649 #define SWIGTYPE_p_otk__BGCCache swig_types[1]
650 #define SWIGTYPE_p_otk__BColor swig_types[2]
651 #define SWIGTYPE_p_XFontStruct swig_types[3]
652 #define SWIGTYPE_p_otk__Configuration swig_types[4]
653 #define SWIGTYPE_p_otk__PixmapMask swig_types[5]
654 #define SWIGTYPE_p_otk__PointerAssassin swig_types[6]
655 #define SWIGTYPE_p_otk__BImage swig_types[7]
656 #define SWIGTYPE_p_otk__OBTimer swig_types[8]
657 #define SWIGTYPE_p_otk__OtkWidget__OtkWidgetList swig_types[9]
658 #define SWIGTYPE_p_bool swig_types[10]
659 #define SWIGTYPE_p_otk__OBDisplay swig_types[11]
660 #define SWIGTYPE_p_Display swig_types[12]
661 #define SWIGTYPE_p_p_XColor swig_types[13]
662 #define SWIGTYPE_p_XReparentEvent swig_types[14]
663 #define SWIGTYPE_p_otk__BPen swig_types[15]
664 #define SWIGTYPE_p_otk__BImageControl swig_types[16]
665 #define SWIGTYPE_p_otk__OtkButton swig_types[17]
666 #define SWIGTYPE_p_otk__Rect swig_types[18]
667 #define SWIGTYPE_p_otk__Style swig_types[19]
668 #define SWIGTYPE_p_XSelectionClearEvent swig_types[20]
669 #define SWIGTYPE_p_Visual swig_types[21]
670 #define SWIGTYPE_p_timeval swig_types[22]
671 #define SWIGTYPE_p_int swig_types[23]
672 #define SWIGTYPE_p_otk__Strut swig_types[24]
673 #define SWIGTYPE_p_otk__OtkApplication swig_types[25]
674 #define SWIGTYPE_p_XRectangle swig_types[26]
675 #define SWIGTYPE_p_otk__OtkFocusWidget swig_types[27]
676 #define SWIGTYPE_p_otk__OtkWidget swig_types[28]
677 #define SWIGTYPE_p_XGravityEvent swig_types[29]
678 #define SWIGTYPE_p_XVisibilityEvent swig_types[30]
679 #define SWIGTYPE_p_XPropertyEvent swig_types[31]
680 #define SWIGTYPE_p_otk__BGCCacheContext swig_types[32]
681 #define SWIGTYPE_p_XCreateWindowEvent swig_types[33]
682 #define SWIGTYPE_p_XDestroyWindowEvent swig_types[34]
683 #define SWIGTYPE_p_XCirculateEvent swig_types[35]
684 #define SWIGTYPE_p_XConfigureEvent swig_types[36]
685 #define SWIGTYPE_p_otk__OBProperty swig_types[37]
686 #define SWIGTYPE_p_long swig_types[38]
687 #define SWIGTYPE_p_XTextProperty swig_types[39]
688 #define SWIGTYPE_p_otk__OtkEventHandler swig_types[40]
689 #define SWIGTYPE_p_XCirculateRequestEvent swig_types[41]
690 #define SWIGTYPE_p_XConfigureRequestEvent swig_types[42]
691 #define SWIGTYPE_p_XMapRequestEvent swig_types[43]
692 #define SWIGTYPE_p_XResizeRequestEvent swig_types[44]
693 #define SWIGTYPE_p_XSelectionRequestEvent swig_types[45]
694 #define SWIGTYPE_otk__OBTimeoutHandler swig_types[46]
695 #define SWIGTYPE_p_XftDraw swig_types[47]
696 #define SWIGTYPE_p_otk__ScreenInfo swig_types[48]
697 #define SWIGTYPE_p_otk__OtkFocusLabel swig_types[49]
698 #define SWIGTYPE_p_otk__BTexture swig_types[50]
699 #define SWIGTYPE_p_otk__OtkEventDispatcher swig_types[51]
700 #define SWIGTYPE_p_otk__BFont swig_types[52]
701 #define SWIGTYPE_p_otk__Point swig_types[53]
702 #define SWIGTYPE_p_p_char swig_types[54]
703 #define SWIGTYPE_p_XMotionEvent swig_types[55]
704 #define SWIGTYPE_p_XButtonEvent swig_types[56]
705 #define SWIGTYPE_p_XSelectionEvent swig_types[57]
706 #define SWIGTYPE_p_GC swig_types[58]
707 #define SWIGTYPE_p_otk__OBTimerQueueManager swig_types[59]
708 #define SWIGTYPE_p_otk__OtkAppWidget swig_types[60]
709 #define SWIGTYPE_p_XKeyEvent swig_types[61]
710 #define SWIGTYPE_p_p_unsigned_long swig_types[62]
711 #define SWIGTYPE_p_unsigned_long swig_types[63]
712 #define SWIGTYPE_p_XEvent swig_types[64]
713 #define SWIGTYPE_p_std__string swig_types[65]
714 #define SWIGTYPE_p_XCrossingEvent swig_types[66]
715 #define SWIGTYPE_p_XMappingEvent swig_types[67]
716 #define SWIGTYPE_p_otk__BGCCacheItem swig_types[68]
717 #define SWIGTYPE_p_p_unsigned_int swig_types[69]
718 #define SWIGTYPE_p_unsigned_int swig_types[70]
719 #define SWIGTYPE_p_p_unsigned_char swig_types[71]
720 #define SWIGTYPE_p_XClientMessageEvent swig_types[72]
721 #define SWIGTYPE_p_XGraphicsExposeEvent swig_types[73]
722 #define SWIGTYPE_p_XExposeEvent swig_types[74]
723 #define SWIGTYPE_p_XFocusChangeEvent swig_types[75]
724 #define SWIGTYPE_p_XNoExposeEvent swig_types[76]
725 #define SWIGTYPE_p_XMapEvent swig_types[77]
726 #define SWIGTYPE_p_XUnmapEvent swig_types[78]
727 #define SWIGTYPE_p_XColormapEvent swig_types[79]
728 static swig_type_info *swig_types[81];
729
730 /* -------- TYPES TABLE (END) -------- */
731
732
733 /*-----------------------------------------------
734 @(target):= _otk.so
735 ------------------------------------------------*/
736 #define SWIG_init init_otk
737
738 #define SWIG_name "_otk"
739
740 #ifdef HAVE_CONFIG_H
741 # include "../config.h"
742 #endif
743
744 #include "application.hh"
745 #include "appwidget.hh"
746 #include "assassin.hh"
747 #include "button.hh"
748 #include "color.hh"
749 #include "configuration.hh"
750 #include "display.hh"
751 #include "eventdispatcher.hh"
752 #include "eventhandler.hh"
753 #include "focuslabel.hh"
754 #include "focuswidget.hh"
755 #include "font.hh"
756 #include "gccache.hh"
757 #include "image.hh"
758 #include "label.hh"
759 #include "point.hh"
760 #include "property.hh"
761 #include "rect.hh"
762 #include "screeninfo.hh"
763 #include "strut.hh"
764 #include "style.hh"
765 #include "texture.hh"
766 #include "timer.hh"
767 #include "timerqueue.hh"
768 #include "timerqueuemanager.hh"
769 #include "util.hh"
770 #include "widget.hh"
771
772
773 #define SWIG_MemoryError 1
774 #define SWIG_IOError 2
775 #define SWIG_RuntimeError 3
776 #define SWIG_IndexError 4
777 #define SWIG_TypeError 5
778 #define SWIG_DivisionByZero 6
779 #define SWIG_OverflowError 7
780 #define SWIG_SyntaxError 8
781 #define SWIG_ValueError 9
782 #define SWIG_SystemError 10
783 #define SWIG_UnknownError 99
784
785
786 static void _SWIG_exception(int code, const char *msg) {
787 switch(code) {
788 case SWIG_MemoryError:
789 PyErr_SetString(PyExc_MemoryError,msg);
790 break;
791 case SWIG_IOError:
792 PyErr_SetString(PyExc_IOError,msg);
793 break;
794 case SWIG_RuntimeError:
795 PyErr_SetString(PyExc_RuntimeError,msg);
796 break;
797 case SWIG_IndexError:
798 PyErr_SetString(PyExc_IndexError,msg);
799 break;
800 case SWIG_TypeError:
801 PyErr_SetString(PyExc_TypeError,msg);
802 break;
803 case SWIG_DivisionByZero:
804 PyErr_SetString(PyExc_ZeroDivisionError,msg);
805 break;
806 case SWIG_OverflowError:
807 PyErr_SetString(PyExc_OverflowError,msg);
808 break;
809 case SWIG_SyntaxError:
810 PyErr_SetString(PyExc_SyntaxError,msg);
811 break;
812 case SWIG_ValueError:
813 PyErr_SetString(PyExc_ValueError,msg);
814 break;
815 case SWIG_SystemError:
816 PyErr_SetString(PyExc_SystemError,msg);
817 break;
818 default:
819 PyErr_SetString(PyExc_RuntimeError,msg);
820 break;
821 }
822 }
823
824 #define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
825
826
827 #include <string>
828
829
830 #include <string>
831
832 static PyObject* SwigInt_FromBool(bool b) {
833 return PyInt_FromLong(b ? 1L : 0L);
834 }
835 static double SwigNumber_Check(PyObject* o) {
836 return PyFloat_Check(o) || PyInt_Check(o);
837 }
838 static double SwigNumber_AsDouble(PyObject* o) {
839 return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o)));
840 }
841 static PyObject* SwigString_FromString(const std::string& s) {
842 return PyString_FromString(s.c_str());
843 }
844 static std::string SwigString_AsString(PyObject* o) {
845 return std::string(PyString_AsString(o));
846 }
847
848
849 #include <vector>
850 #include <algorithm>
851 #include <stdexcept>
852
853
854 Display *OBDisplay_display() { return otk::OBDisplay::display; }
855
856 #ifdef __cplusplus
857 extern "C" {
858 #endif
859 static PyObject *_wrap_OBDisplay_display(PyObject *self, PyObject *args) {
860 PyObject *resultobj;
861 Display *result;
862
863 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_display")) goto fail;
864 result = (Display *)OBDisplay_display();
865
866 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Display, 0);
867 return resultobj;
868 fail:
869 return NULL;
870 }
871
872
873 static PyObject *_wrap_new_OtkEventDispatcher(PyObject *self, PyObject *args) {
874 PyObject *resultobj;
875 otk::OtkEventDispatcher *result;
876
877 if(!PyArg_ParseTuple(args,(char *)":new_OtkEventDispatcher")) goto fail;
878 result = (otk::OtkEventDispatcher *)new otk::OtkEventDispatcher();
879
880 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventDispatcher, 1);
881 return resultobj;
882 fail:
883 return NULL;
884 }
885
886
887 static PyObject *_wrap_delete_OtkEventDispatcher(PyObject *self, PyObject *args) {
888 PyObject *resultobj;
889 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
890 PyObject * obj0 = 0 ;
891
892 if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkEventDispatcher",&obj0)) goto fail;
893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
894 delete arg1;
895
896 Py_INCREF(Py_None); resultobj = Py_None;
897 return resultobj;
898 fail:
899 return NULL;
900 }
901
902
903 static PyObject *_wrap_OtkEventDispatcher_clearAllHandlers(PyObject *self, PyObject *args) {
904 PyObject *resultobj;
905 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
906 PyObject * obj0 = 0 ;
907
908 if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_clearAllHandlers",&obj0)) goto fail;
909 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
910 (arg1)->clearAllHandlers();
911
912 Py_INCREF(Py_None); resultobj = Py_None;
913 return resultobj;
914 fail:
915 return NULL;
916 }
917
918
919 static PyObject *_wrap_OtkEventDispatcher_registerHandler(PyObject *self, PyObject *args) {
920 PyObject *resultobj;
921 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
922 Window arg2 ;
923 otk::OtkEventHandler *arg3 = (otk::OtkEventHandler *) 0 ;
924 PyObject * obj0 = 0 ;
925 PyObject * obj1 = 0 ;
926 PyObject * obj2 = 0 ;
927
928 if(!PyArg_ParseTuple(args,(char *)"OOO:OtkEventDispatcher_registerHandler",&obj0,&obj1,&obj2)) goto fail;
929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
930 arg2 = (Window) PyInt_AsLong(obj1);
931 if (PyErr_Occurred()) SWIG_fail;
932 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
933 (arg1)->registerHandler(arg2,arg3);
934
935 Py_INCREF(Py_None); resultobj = Py_None;
936 return resultobj;
937 fail:
938 return NULL;
939 }
940
941
942 static PyObject *_wrap_OtkEventDispatcher_clearHandler(PyObject *self, PyObject *args) {
943 PyObject *resultobj;
944 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
945 Window arg2 ;
946 PyObject * obj0 = 0 ;
947 PyObject * obj1 = 0 ;
948
949 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_clearHandler",&obj0,&obj1)) goto fail;
950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
951 arg2 = (Window) PyInt_AsLong(obj1);
952 if (PyErr_Occurred()) SWIG_fail;
953 (arg1)->clearHandler(arg2);
954
955 Py_INCREF(Py_None); resultobj = Py_None;
956 return resultobj;
957 fail:
958 return NULL;
959 }
960
961
962 static PyObject *_wrap_OtkEventDispatcher_dispatchEvents(PyObject *self, PyObject *args) {
963 PyObject *resultobj;
964 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
965 PyObject * obj0 = 0 ;
966
967 if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_dispatchEvents",&obj0)) goto fail;
968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
969 (arg1)->dispatchEvents();
970
971 Py_INCREF(Py_None); resultobj = Py_None;
972 return resultobj;
973 fail:
974 return NULL;
975 }
976
977
978 static PyObject *_wrap_OtkEventDispatcher_setFallbackHandler(PyObject *self, PyObject *args) {
979 PyObject *resultobj;
980 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
981 otk::OtkEventHandler *arg2 = (otk::OtkEventHandler *) 0 ;
982 PyObject * obj0 = 0 ;
983 PyObject * obj1 = 0 ;
984
985 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_setFallbackHandler",&obj0,&obj1)) goto fail;
986 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
987 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
988 (arg1)->setFallbackHandler(arg2);
989
990 Py_INCREF(Py_None); resultobj = Py_None;
991 return resultobj;
992 fail:
993 return NULL;
994 }
995
996
997 static PyObject *_wrap_OtkEventDispatcher_getFallbackHandler(PyObject *self, PyObject *args) {
998 PyObject *resultobj;
999 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
1000 otk::OtkEventHandler *result;
1001 PyObject * obj0 = 0 ;
1002
1003 if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_getFallbackHandler",&obj0)) goto fail;
1004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1005 result = (otk::OtkEventHandler *)((otk::OtkEventDispatcher const *)arg1)->getFallbackHandler();
1006
1007 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventHandler, 0);
1008 return resultobj;
1009 fail:
1010 return NULL;
1011 }
1012
1013
1014 static PyObject *_wrap_OtkEventDispatcher_setMasterHandler(PyObject *self, PyObject *args) {
1015 PyObject *resultobj;
1016 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
1017 otk::OtkEventHandler *arg2 = (otk::OtkEventHandler *) 0 ;
1018 PyObject * obj0 = 0 ;
1019 PyObject * obj1 = 0 ;
1020
1021 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_setMasterHandler",&obj0,&obj1)) goto fail;
1022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1023 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1024 (arg1)->setMasterHandler(arg2);
1025
1026 Py_INCREF(Py_None); resultobj = Py_None;
1027 return resultobj;
1028 fail:
1029 return NULL;
1030 }
1031
1032
1033 static PyObject *_wrap_OtkEventDispatcher_getMasterHandler(PyObject *self, PyObject *args) {
1034 PyObject *resultobj;
1035 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
1036 otk::OtkEventHandler *result;
1037 PyObject * obj0 = 0 ;
1038
1039 if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_getMasterHandler",&obj0)) goto fail;
1040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1041 result = (otk::OtkEventHandler *)((otk::OtkEventDispatcher const *)arg1)->getMasterHandler();
1042
1043 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventHandler, 0);
1044 return resultobj;
1045 fail:
1046 return NULL;
1047 }
1048
1049
1050 static PyObject *_wrap_OtkEventDispatcher_findHandler(PyObject *self, PyObject *args) {
1051 PyObject *resultobj;
1052 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
1053 Window arg2 ;
1054 otk::OtkEventHandler *result;
1055 PyObject * obj0 = 0 ;
1056 PyObject * obj1 = 0 ;
1057
1058 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_findHandler",&obj0,&obj1)) goto fail;
1059 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1060 arg2 = (Window) PyInt_AsLong(obj1);
1061 if (PyErr_Occurred()) SWIG_fail;
1062 result = (otk::OtkEventHandler *)(arg1)->findHandler(arg2);
1063
1064 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventHandler, 0);
1065 return resultobj;
1066 fail:
1067 return NULL;
1068 }
1069
1070
1071 static PyObject *_wrap_OtkEventDispatcher_lastTime(PyObject *self, PyObject *args) {
1072 PyObject *resultobj;
1073 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
1074 Time result;
1075 PyObject * obj0 = 0 ;
1076
1077 if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_lastTime",&obj0)) goto fail;
1078 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1079 result = (Time)((otk::OtkEventDispatcher const *)arg1)->lastTime();
1080
1081 resultobj = PyInt_FromLong((long)result);
1082 return resultobj;
1083 fail:
1084 return NULL;
1085 }
1086
1087
1088 static PyObject * OtkEventDispatcher_swigregister(PyObject *self, PyObject *args) {
1089 PyObject *obj;
1090 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1091 SWIG_TypeClientData(SWIGTYPE_p_otk__OtkEventDispatcher, obj);
1092 Py_INCREF(obj);
1093 return Py_BuildValue((char *)"");
1094 }
1095 static PyObject *_wrap_OtkEventHandler_handle(PyObject *self, PyObject *args) {
1096 PyObject *resultobj;
1097 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1098 XEvent *arg2 = 0 ;
1099 PyObject * obj0 = 0 ;
1100 PyObject * obj1 = 0 ;
1101
1102 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_handle",&obj0,&obj1)) goto fail;
1103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1104 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1105 if (arg2 == NULL) {
1106 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1107 }
1108 (arg1)->handle((XEvent const &)*arg2);
1109
1110 Py_INCREF(Py_None); resultobj = Py_None;
1111 return resultobj;
1112 fail:
1113 return NULL;
1114 }
1115
1116
1117 static PyObject *_wrap_OtkEventHandler_keyPressHandler(PyObject *self, PyObject *args) {
1118 PyObject *resultobj;
1119 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1120 XKeyEvent *arg2 = 0 ;
1121 PyObject * obj0 = 0 ;
1122 PyObject * obj1 = 0 ;
1123
1124 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_keyPressHandler",&obj0,&obj1)) goto fail;
1125 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1126 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1127 if (arg2 == NULL) {
1128 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1129 }
1130 (arg1)->keyPressHandler((XKeyEvent const &)*arg2);
1131
1132 Py_INCREF(Py_None); resultobj = Py_None;
1133 return resultobj;
1134 fail:
1135 return NULL;
1136 }
1137
1138
1139 static PyObject *_wrap_OtkEventHandler_keyReleaseHandler(PyObject *self, PyObject *args) {
1140 PyObject *resultobj;
1141 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1142 XKeyEvent *arg2 = 0 ;
1143 PyObject * obj0 = 0 ;
1144 PyObject * obj1 = 0 ;
1145
1146 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_keyReleaseHandler",&obj0,&obj1)) goto fail;
1147 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1148 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1149 if (arg2 == NULL) {
1150 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1151 }
1152 (arg1)->keyReleaseHandler((XKeyEvent const &)*arg2);
1153
1154 Py_INCREF(Py_None); resultobj = Py_None;
1155 return resultobj;
1156 fail:
1157 return NULL;
1158 }
1159
1160
1161 static PyObject *_wrap_OtkEventHandler_buttonPressHandler(PyObject *self, PyObject *args) {
1162 PyObject *resultobj;
1163 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1164 XButtonEvent *arg2 = 0 ;
1165 PyObject * obj0 = 0 ;
1166 PyObject * obj1 = 0 ;
1167
1168 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_buttonPressHandler",&obj0,&obj1)) goto fail;
1169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1170 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1171 if (arg2 == NULL) {
1172 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1173 }
1174 (arg1)->buttonPressHandler((XButtonEvent const &)*arg2);
1175
1176 Py_INCREF(Py_None); resultobj = Py_None;
1177 return resultobj;
1178 fail:
1179 return NULL;
1180 }
1181
1182
1183 static PyObject *_wrap_OtkEventHandler_buttonReleaseHandler(PyObject *self, PyObject *args) {
1184 PyObject *resultobj;
1185 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1186 XButtonEvent *arg2 = 0 ;
1187 PyObject * obj0 = 0 ;
1188 PyObject * obj1 = 0 ;
1189
1190 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_buttonReleaseHandler",&obj0,&obj1)) goto fail;
1191 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1192 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1193 if (arg2 == NULL) {
1194 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1195 }
1196 (arg1)->buttonReleaseHandler((XButtonEvent const &)*arg2);
1197
1198 Py_INCREF(Py_None); resultobj = Py_None;
1199 return resultobj;
1200 fail:
1201 return NULL;
1202 }
1203
1204
1205 static PyObject *_wrap_OtkEventHandler_motionHandler(PyObject *self, PyObject *args) {
1206 PyObject *resultobj;
1207 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1208 XMotionEvent *arg2 = 0 ;
1209 PyObject * obj0 = 0 ;
1210 PyObject * obj1 = 0 ;
1211
1212 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_motionHandler",&obj0,&obj1)) goto fail;
1213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1214 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMotionEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1215 if (arg2 == NULL) {
1216 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1217 }
1218 (arg1)->motionHandler((XMotionEvent const &)*arg2);
1219
1220 Py_INCREF(Py_None); resultobj = Py_None;
1221 return resultobj;
1222 fail:
1223 return NULL;
1224 }
1225
1226
1227 static PyObject *_wrap_OtkEventHandler_enterHandler(PyObject *self, PyObject *args) {
1228 PyObject *resultobj;
1229 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1230 XCrossingEvent *arg2 = 0 ;
1231 PyObject * obj0 = 0 ;
1232 PyObject * obj1 = 0 ;
1233
1234 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_enterHandler",&obj0,&obj1)) goto fail;
1235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1236 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCrossingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1237 if (arg2 == NULL) {
1238 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1239 }
1240 (arg1)->enterHandler((XCrossingEvent const &)*arg2);
1241
1242 Py_INCREF(Py_None); resultobj = Py_None;
1243 return resultobj;
1244 fail:
1245 return NULL;
1246 }
1247
1248
1249 static PyObject *_wrap_OtkEventHandler_leaveHandler(PyObject *self, PyObject *args) {
1250 PyObject *resultobj;
1251 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1252 XCrossingEvent *arg2 = 0 ;
1253 PyObject * obj0 = 0 ;
1254 PyObject * obj1 = 0 ;
1255
1256 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_leaveHandler",&obj0,&obj1)) goto fail;
1257 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1258 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCrossingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1259 if (arg2 == NULL) {
1260 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1261 }
1262 (arg1)->leaveHandler((XCrossingEvent const &)*arg2);
1263
1264 Py_INCREF(Py_None); resultobj = Py_None;
1265 return resultobj;
1266 fail:
1267 return NULL;
1268 }
1269
1270
1271 static PyObject *_wrap_OtkEventHandler_focusHandler(PyObject *self, PyObject *args) {
1272 PyObject *resultobj;
1273 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1274 XFocusChangeEvent *arg2 = 0 ;
1275 PyObject * obj0 = 0 ;
1276 PyObject * obj1 = 0 ;
1277
1278 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_focusHandler",&obj0,&obj1)) goto fail;
1279 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1280 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1281 if (arg2 == NULL) {
1282 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1283 }
1284 (arg1)->focusHandler((XFocusChangeEvent const &)*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_OtkEventHandler_unfocusHandler(PyObject *self, PyObject *args) {
1294 PyObject *resultobj;
1295 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1296 XFocusChangeEvent *arg2 = 0 ;
1297 PyObject * obj0 = 0 ;
1298 PyObject * obj1 = 0 ;
1299
1300 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_unfocusHandler",&obj0,&obj1)) goto fail;
1301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1302 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1303 if (arg2 == NULL) {
1304 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1305 }
1306 (arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2);
1307
1308 Py_INCREF(Py_None); resultobj = Py_None;
1309 return resultobj;
1310 fail:
1311 return NULL;
1312 }
1313
1314
1315 static PyObject *_wrap_OtkEventHandler_exposeHandler(PyObject *self, PyObject *args) {
1316 PyObject *resultobj;
1317 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1318 XExposeEvent *arg2 = 0 ;
1319 PyObject * obj0 = 0 ;
1320 PyObject * obj1 = 0 ;
1321
1322 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_exposeHandler",&obj0,&obj1)) goto fail;
1323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1324 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1325 if (arg2 == NULL) {
1326 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1327 }
1328 (arg1)->exposeHandler((XExposeEvent const &)*arg2);
1329
1330 Py_INCREF(Py_None); resultobj = Py_None;
1331 return resultobj;
1332 fail:
1333 return NULL;
1334 }
1335
1336
1337 static PyObject *_wrap_OtkEventHandler_graphicsExposeHandler(PyObject *self, PyObject *args) {
1338 PyObject *resultobj;
1339 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1340 XGraphicsExposeEvent *arg2 = 0 ;
1341 PyObject * obj0 = 0 ;
1342 PyObject * obj1 = 0 ;
1343
1344 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_graphicsExposeHandler",&obj0,&obj1)) goto fail;
1345 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1346 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XGraphicsExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1347 if (arg2 == NULL) {
1348 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1349 }
1350 (arg1)->graphicsExposeHandler((XGraphicsExposeEvent const &)*arg2);
1351
1352 Py_INCREF(Py_None); resultobj = Py_None;
1353 return resultobj;
1354 fail:
1355 return NULL;
1356 }
1357
1358
1359 static PyObject *_wrap_OtkEventHandler_noExposeEventHandler(PyObject *self, PyObject *args) {
1360 PyObject *resultobj;
1361 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1362 XNoExposeEvent *arg2 = 0 ;
1363 PyObject * obj0 = 0 ;
1364 PyObject * obj1 = 0 ;
1365
1366 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_noExposeEventHandler",&obj0,&obj1)) goto fail;
1367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1368 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XNoExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1369 if (arg2 == NULL) {
1370 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1371 }
1372 (arg1)->noExposeEventHandler((XNoExposeEvent const &)*arg2);
1373
1374 Py_INCREF(Py_None); resultobj = Py_None;
1375 return resultobj;
1376 fail:
1377 return NULL;
1378 }
1379
1380
1381 static PyObject *_wrap_OtkEventHandler_circulateRequestHandler(PyObject *self, PyObject *args) {
1382 PyObject *resultobj;
1383 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1384 XCirculateRequestEvent *arg2 = 0 ;
1385 PyObject * obj0 = 0 ;
1386 PyObject * obj1 = 0 ;
1387
1388 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_circulateRequestHandler",&obj0,&obj1)) goto fail;
1389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1390 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCirculateRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1391 if (arg2 == NULL) {
1392 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1393 }
1394 (arg1)->circulateRequestHandler((XCirculateRequestEvent const &)*arg2);
1395
1396 Py_INCREF(Py_None); resultobj = Py_None;
1397 return resultobj;
1398 fail:
1399 return NULL;
1400 }
1401
1402
1403 static PyObject *_wrap_OtkEventHandler_configureRequestHandler(PyObject *self, PyObject *args) {
1404 PyObject *resultobj;
1405 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1406 XConfigureRequestEvent *arg2 = 0 ;
1407 PyObject * obj0 = 0 ;
1408 PyObject * obj1 = 0 ;
1409
1410 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_configureRequestHandler",&obj0,&obj1)) goto fail;
1411 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1412 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1413 if (arg2 == NULL) {
1414 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1415 }
1416 (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2);
1417
1418 Py_INCREF(Py_None); resultobj = Py_None;
1419 return resultobj;
1420 fail:
1421 return NULL;
1422 }
1423
1424
1425 static PyObject *_wrap_OtkEventHandler_mapRequestHandler(PyObject *self, PyObject *args) {
1426 PyObject *resultobj;
1427 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1428 XMapRequestEvent *arg2 = 0 ;
1429 PyObject * obj0 = 0 ;
1430 PyObject * obj1 = 0 ;
1431
1432 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_mapRequestHandler",&obj0,&obj1)) goto fail;
1433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1434 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1435 if (arg2 == NULL) {
1436 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1437 }
1438 (arg1)->mapRequestHandler((XMapRequestEvent const &)*arg2);
1439
1440 Py_INCREF(Py_None); resultobj = Py_None;
1441 return resultobj;
1442 fail:
1443 return NULL;
1444 }
1445
1446
1447 static PyObject *_wrap_OtkEventHandler_resizeRequestHandler(PyObject *self, PyObject *args) {
1448 PyObject *resultobj;
1449 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1450 XResizeRequestEvent *arg2 = 0 ;
1451 PyObject * obj0 = 0 ;
1452 PyObject * obj1 = 0 ;
1453
1454 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_resizeRequestHandler",&obj0,&obj1)) goto fail;
1455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1456 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XResizeRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1457 if (arg2 == NULL) {
1458 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1459 }
1460 (arg1)->resizeRequestHandler((XResizeRequestEvent const &)*arg2);
1461
1462 Py_INCREF(Py_None); resultobj = Py_None;
1463 return resultobj;
1464 fail:
1465 return NULL;
1466 }
1467
1468
1469 static PyObject *_wrap_OtkEventHandler_circulateHandler(PyObject *self, PyObject *args) {
1470 PyObject *resultobj;
1471 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1472 XCirculateEvent *arg2 = 0 ;
1473 PyObject * obj0 = 0 ;
1474 PyObject * obj1 = 0 ;
1475
1476 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_circulateHandler",&obj0,&obj1)) goto fail;
1477 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1478 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCirculateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1479 if (arg2 == NULL) {
1480 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1481 }
1482 (arg1)->circulateHandler((XCirculateEvent const &)*arg2);
1483
1484 Py_INCREF(Py_None); resultobj = Py_None;
1485 return resultobj;
1486 fail:
1487 return NULL;
1488 }
1489
1490
1491 static PyObject *_wrap_OtkEventHandler_configureHandler(PyObject *self, PyObject *args) {
1492 PyObject *resultobj;
1493 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1494 XConfigureEvent *arg2 = 0 ;
1495 PyObject * obj0 = 0 ;
1496 PyObject * obj1 = 0 ;
1497
1498 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_configureHandler",&obj0,&obj1)) goto fail;
1499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1500 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1501 if (arg2 == NULL) {
1502 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1503 }
1504 (arg1)->configureHandler((XConfigureEvent const &)*arg2);
1505
1506 Py_INCREF(Py_None); resultobj = Py_None;
1507 return resultobj;
1508 fail:
1509 return NULL;
1510 }
1511
1512
1513 static PyObject *_wrap_OtkEventHandler_createHandler(PyObject *self, PyObject *args) {
1514 PyObject *resultobj;
1515 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1516 XCreateWindowEvent *arg2 = 0 ;
1517 PyObject * obj0 = 0 ;
1518 PyObject * obj1 = 0 ;
1519
1520 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_createHandler",&obj0,&obj1)) goto fail;
1521 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1522 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCreateWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1523 if (arg2 == NULL) {
1524 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1525 }
1526 (arg1)->createHandler((XCreateWindowEvent const &)*arg2);
1527
1528 Py_INCREF(Py_None); resultobj = Py_None;
1529 return resultobj;
1530 fail:
1531 return NULL;
1532 }
1533
1534
1535 static PyObject *_wrap_OtkEventHandler_destroyHandler(PyObject *self, PyObject *args) {
1536 PyObject *resultobj;
1537 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1538 XDestroyWindowEvent *arg2 = 0 ;
1539 PyObject * obj0 = 0 ;
1540 PyObject * obj1 = 0 ;
1541
1542 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_destroyHandler",&obj0,&obj1)) goto fail;
1543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1544 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1545 if (arg2 == NULL) {
1546 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1547 }
1548 (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2);
1549
1550 Py_INCREF(Py_None); resultobj = Py_None;
1551 return resultobj;
1552 fail:
1553 return NULL;
1554 }
1555
1556
1557 static PyObject *_wrap_OtkEventHandler_gravityHandler(PyObject *self, PyObject *args) {
1558 PyObject *resultobj;
1559 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1560 XGravityEvent *arg2 = 0 ;
1561 PyObject * obj0 = 0 ;
1562 PyObject * obj1 = 0 ;
1563
1564 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_gravityHandler",&obj0,&obj1)) goto fail;
1565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1566 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XGravityEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1567 if (arg2 == NULL) {
1568 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1569 }
1570 (arg1)->gravityHandler((XGravityEvent const &)*arg2);
1571
1572 Py_INCREF(Py_None); resultobj = Py_None;
1573 return resultobj;
1574 fail:
1575 return NULL;
1576 }
1577
1578
1579 static PyObject *_wrap_OtkEventHandler_mapHandler(PyObject *self, PyObject *args) {
1580 PyObject *resultobj;
1581 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1582 XMapEvent *arg2 = 0 ;
1583 PyObject * obj0 = 0 ;
1584 PyObject * obj1 = 0 ;
1585
1586 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_mapHandler",&obj0,&obj1)) goto fail;
1587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1588 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1589 if (arg2 == NULL) {
1590 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1591 }
1592 (arg1)->mapHandler((XMapEvent const &)*arg2);
1593
1594 Py_INCREF(Py_None); resultobj = Py_None;
1595 return resultobj;
1596 fail:
1597 return NULL;
1598 }
1599
1600
1601 static PyObject *_wrap_OtkEventHandler_mappingHandler(PyObject *self, PyObject *args) {
1602 PyObject *resultobj;
1603 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1604 XMappingEvent *arg2 = 0 ;
1605 PyObject * obj0 = 0 ;
1606 PyObject * obj1 = 0 ;
1607
1608 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_mappingHandler",&obj0,&obj1)) goto fail;
1609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1610 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMappingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1611 if (arg2 == NULL) {
1612 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1613 }
1614 (arg1)->mappingHandler((XMappingEvent const &)*arg2);
1615
1616 Py_INCREF(Py_None); resultobj = Py_None;
1617 return resultobj;
1618 fail:
1619 return NULL;
1620 }
1621
1622
1623 static PyObject *_wrap_OtkEventHandler_reparentHandler(PyObject *self, PyObject *args) {
1624 PyObject *resultobj;
1625 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1626 XReparentEvent *arg2 = 0 ;
1627 PyObject * obj0 = 0 ;
1628 PyObject * obj1 = 0 ;
1629
1630 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_reparentHandler",&obj0,&obj1)) goto fail;
1631 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1632 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1633 if (arg2 == NULL) {
1634 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1635 }
1636 (arg1)->reparentHandler((XReparentEvent const &)*arg2);
1637
1638 Py_INCREF(Py_None); resultobj = Py_None;
1639 return resultobj;
1640 fail:
1641 return NULL;
1642 }
1643
1644
1645 static PyObject *_wrap_OtkEventHandler_unmapHandler(PyObject *self, PyObject *args) {
1646 PyObject *resultobj;
1647 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1648 XUnmapEvent *arg2 = 0 ;
1649 PyObject * obj0 = 0 ;
1650 PyObject * obj1 = 0 ;
1651
1652 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_unmapHandler",&obj0,&obj1)) goto fail;
1653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1654 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1655 if (arg2 == NULL) {
1656 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1657 }
1658 (arg1)->unmapHandler((XUnmapEvent const &)*arg2);
1659
1660 Py_INCREF(Py_None); resultobj = Py_None;
1661 return resultobj;
1662 fail:
1663 return NULL;
1664 }
1665
1666
1667 static PyObject *_wrap_OtkEventHandler_visibilityHandler(PyObject *self, PyObject *args) {
1668 PyObject *resultobj;
1669 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1670 XVisibilityEvent *arg2 = 0 ;
1671 PyObject * obj0 = 0 ;
1672 PyObject * obj1 = 0 ;
1673
1674 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_visibilityHandler",&obj0,&obj1)) goto fail;
1675 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1676 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XVisibilityEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1677 if (arg2 == NULL) {
1678 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1679 }
1680 (arg1)->visibilityHandler((XVisibilityEvent const &)*arg2);
1681
1682 Py_INCREF(Py_None); resultobj = Py_None;
1683 return resultobj;
1684 fail:
1685 return NULL;
1686 }
1687
1688
1689 static PyObject *_wrap_OtkEventHandler_colorMapHandler(PyObject *self, PyObject *args) {
1690 PyObject *resultobj;
1691 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1692 XColormapEvent *arg2 = 0 ;
1693 PyObject * obj0 = 0 ;
1694 PyObject * obj1 = 0 ;
1695
1696 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_colorMapHandler",&obj0,&obj1)) goto fail;
1697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1698 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XColormapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1699 if (arg2 == NULL) {
1700 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1701 }
1702 (arg1)->colorMapHandler((XColormapEvent const &)*arg2);
1703
1704 Py_INCREF(Py_None); resultobj = Py_None;
1705 return resultobj;
1706 fail:
1707 return NULL;
1708 }
1709
1710
1711 static PyObject *_wrap_OtkEventHandler_propertyHandler(PyObject *self, PyObject *args) {
1712 PyObject *resultobj;
1713 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1714 XPropertyEvent *arg2 = 0 ;
1715 PyObject * obj0 = 0 ;
1716 PyObject * obj1 = 0 ;
1717
1718 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_propertyHandler",&obj0,&obj1)) goto fail;
1719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1720 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1721 if (arg2 == NULL) {
1722 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1723 }
1724 (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
1725
1726 Py_INCREF(Py_None); resultobj = Py_None;
1727 return resultobj;
1728 fail:
1729 return NULL;
1730 }
1731
1732
1733 static PyObject *_wrap_OtkEventHandler_selectionClearHandler(PyObject *self, PyObject *args) {
1734 PyObject *resultobj;
1735 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1736 XSelectionClearEvent *arg2 = 0 ;
1737 PyObject * obj0 = 0 ;
1738 PyObject * obj1 = 0 ;
1739
1740 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_selectionClearHandler",&obj0,&obj1)) goto fail;
1741 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1742 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionClearEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1743 if (arg2 == NULL) {
1744 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1745 }
1746 (arg1)->selectionClearHandler((XSelectionClearEvent const &)*arg2);
1747
1748 Py_INCREF(Py_None); resultobj = Py_None;
1749 return resultobj;
1750 fail:
1751 return NULL;
1752 }
1753
1754
1755 static PyObject *_wrap_OtkEventHandler_selectionHandler(PyObject *self, PyObject *args) {
1756 PyObject *resultobj;
1757 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1758 XSelectionEvent *arg2 = 0 ;
1759 PyObject * obj0 = 0 ;
1760 PyObject * obj1 = 0 ;
1761
1762 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_selectionHandler",&obj0,&obj1)) goto fail;
1763 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1764 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1765 if (arg2 == NULL) {
1766 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1767 }
1768 (arg1)->selectionHandler((XSelectionEvent const &)*arg2);
1769
1770 Py_INCREF(Py_None); resultobj = Py_None;
1771 return resultobj;
1772 fail:
1773 return NULL;
1774 }
1775
1776
1777 static PyObject *_wrap_OtkEventHandler_selectionRequestHandler(PyObject *self, PyObject *args) {
1778 PyObject *resultobj;
1779 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1780 XSelectionRequestEvent *arg2 = 0 ;
1781 PyObject * obj0 = 0 ;
1782 PyObject * obj1 = 0 ;
1783
1784 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_selectionRequestHandler",&obj0,&obj1)) goto fail;
1785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1786 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1787 if (arg2 == NULL) {
1788 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1789 }
1790 (arg1)->selectionRequestHandler((XSelectionRequestEvent const &)*arg2);
1791
1792 Py_INCREF(Py_None); resultobj = Py_None;
1793 return resultobj;
1794 fail:
1795 return NULL;
1796 }
1797
1798
1799 static PyObject *_wrap_OtkEventHandler_clientMessageHandler(PyObject *self, PyObject *args) {
1800 PyObject *resultobj;
1801 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1802 XClientMessageEvent *arg2 = 0 ;
1803 PyObject * obj0 = 0 ;
1804 PyObject * obj1 = 0 ;
1805
1806 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_clientMessageHandler",&obj0,&obj1)) goto fail;
1807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1808 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1809 if (arg2 == NULL) {
1810 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1811 }
1812 (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
1813
1814 Py_INCREF(Py_None); resultobj = Py_None;
1815 return resultobj;
1816 fail:
1817 return NULL;
1818 }
1819
1820
1821 static PyObject *_wrap_delete_OtkEventHandler(PyObject *self, PyObject *args) {
1822 PyObject *resultobj;
1823 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1824 PyObject * obj0 = 0 ;
1825
1826 if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkEventHandler",&obj0)) goto fail;
1827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1828 delete arg1;
1829
1830 Py_INCREF(Py_None); resultobj = Py_None;
1831 return resultobj;
1832 fail:
1833 return NULL;
1834 }
1835
1836
1837 static PyObject * OtkEventHandler_swigregister(PyObject *self, PyObject *args) {
1838 PyObject *obj;
1839 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1840 SWIG_TypeClientData(SWIGTYPE_p_otk__OtkEventHandler, obj);
1841 Py_INCREF(obj);
1842 return Py_BuildValue((char *)"");
1843 }
1844 static PyObject *_wrap_new_OtkWidget__SWIG_0(PyObject *self, PyObject *args) {
1845 PyObject *resultobj;
1846 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
1847 int arg2 = (int) otk::OtkWidget::Horizontal ;
1848 otk::OtkWidget *result;
1849 PyObject * obj0 = 0 ;
1850
1851 if(!PyArg_ParseTuple(args,(char *)"O|i:new_OtkWidget",&obj0,&arg2)) goto fail;
1852 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1853 result = (otk::OtkWidget *)new otk::OtkWidget(arg1,(otk::OtkWidget::Direction )arg2);
1854
1855 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkWidget, 1);
1856 return resultobj;
1857 fail:
1858 return NULL;
1859 }
1860
1861
1862 static PyObject *_wrap_new_OtkWidget__SWIG_1(PyObject *self, PyObject *args) {
1863 PyObject *resultobj;
1864 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
1865 otk::Style *arg2 = (otk::Style *) 0 ;
1866 int arg3 = (int) otk::OtkWidget::Horizontal ;
1867 Cursor arg4 = (Cursor) 0 ;
1868 int arg5 = (int) 1 ;
1869 bool arg6 = (bool) false ;
1870 otk::OtkWidget *result;
1871 PyObject * obj0 = 0 ;
1872 PyObject * obj1 = 0 ;
1873 PyObject * obj3 = 0 ;
1874 PyObject * obj5 = 0 ;
1875
1876 if(!PyArg_ParseTuple(args,(char *)"OO|iOiO:new_OtkWidget",&obj0,&obj1,&arg3,&obj3,&arg5,&obj5)) goto fail;
1877 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1878 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1879 if (obj3) {
1880 arg4 = (Cursor) PyInt_AsLong(obj3);
1881 if (PyErr_Occurred()) SWIG_fail;
1882 }
1883 if (obj5) {
1884 arg6 = (bool) PyInt_AsLong(obj5);
1885 if (PyErr_Occurred()) SWIG_fail;
1886 }
1887 result = (otk::OtkWidget *)new otk::OtkWidget(arg1,arg2,(otk::OtkWidget::Direction )arg3,arg4,arg5,arg6);
1888
1889 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkWidget, 1);
1890 return resultobj;
1891 fail:
1892 return NULL;
1893 }
1894
1895
1896 static PyObject *_wrap_new_OtkWidget(PyObject *self, PyObject *args) {
1897 int argc;
1898 PyObject *argv[7];
1899 int ii;
1900
1901 argc = PyObject_Length(args);
1902 for (ii = 0; (ii < argc) && (ii < 6); ii++) {
1903 argv[ii] = PyTuple_GetItem(args,ii);
1904 }
1905 if ((argc >= 1) && (argc <= 2)) {
1906 int _v;
1907 {
1908 void *ptr;
1909 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
1910 _v = 0;
1911 PyErr_Clear();
1912 }else {
1913 _v = 1;
1914 }
1915 }
1916 if (_v) {
1917 if (argc <= 1) {
1918 return _wrap_new_OtkWidget__SWIG_0(self,args);
1919 }
1920 {
1921 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1922 }
1923 if (_v) {
1924 return _wrap_new_OtkWidget__SWIG_0(self,args);
1925 }
1926 }
1927 }
1928 if ((argc >= 2) && (argc <= 6)) {
1929 int _v;
1930 {
1931 void *ptr;
1932 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkEventDispatcher, 0) == -1) {
1933 _v = 0;
1934 PyErr_Clear();
1935 }else {
1936 _v = 1;
1937 }
1938 }
1939 if (_v) {
1940 {
1941 void *ptr;
1942 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Style, 0) == -1) {
1943 _v = 0;
1944 PyErr_Clear();
1945 }else {
1946 _v = 1;
1947 }
1948 }
1949 if (_v) {
1950 if (argc <= 2) {
1951 return _wrap_new_OtkWidget__SWIG_1(self,args);
1952 }
1953 {
1954 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1955 }
1956 if (_v) {
1957 if (argc <= 3) {
1958 return _wrap_new_OtkWidget__SWIG_1(self,args);
1959 }
1960 {
1961 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
1962 }
1963 if (_v) {
1964 if (argc <= 4) {
1965 return _wrap_new_OtkWidget__SWIG_1(self,args);
1966 }
1967 {
1968 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
1969 }
1970 if (_v) {
1971 if (argc <= 5) {
1972 return _wrap_new_OtkWidget__SWIG_1(self,args);
1973 }
1974 {
1975 _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
1976 }
1977 if (_v) {
1978 return _wrap_new_OtkWidget__SWIG_1(self,args);
1979 }
1980 }
1981 }
1982 }
1983 }
1984 }
1985 }
1986
1987 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_OtkWidget'");
1988 return NULL;
1989 }
1990
1991
1992 static PyObject *_wrap_delete_OtkWidget(PyObject *self, PyObject *args) {
1993 PyObject *resultobj;
1994 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
1995 PyObject * obj0 = 0 ;
1996
1997 if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkWidget",&obj0)) goto fail;
1998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1999 delete arg1;
2000
2001 Py_INCREF(Py_None); resultobj = Py_None;
2002 return resultobj;
2003 fail:
2004 return NULL;
2005 }
2006
2007
2008 static PyObject *_wrap_OtkWidget_update(PyObject *self, PyObject *args) {
2009 PyObject *resultobj;
2010 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2011 PyObject * obj0 = 0 ;
2012
2013 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_update",&obj0)) goto fail;
2014 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2015 (arg1)->update();
2016
2017 Py_INCREF(Py_None); resultobj = Py_None;
2018 return resultobj;
2019 fail:
2020 return NULL;
2021 }
2022
2023
2024 static PyObject *_wrap_OtkWidget_exposeHandler(PyObject *self, PyObject *args) {
2025 PyObject *resultobj;
2026 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2027 XExposeEvent *arg2 = 0 ;
2028 PyObject * obj0 = 0 ;
2029 PyObject * obj1 = 0 ;
2030
2031 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_exposeHandler",&obj0,&obj1)) goto fail;
2032 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2033 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2034 if (arg2 == NULL) {
2035 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2036 }
2037 (arg1)->exposeHandler((XExposeEvent const &)*arg2);
2038
2039 Py_INCREF(Py_None); resultobj = Py_None;
2040 return resultobj;
2041 fail:
2042 return NULL;
2043 }
2044
2045
2046 static PyObject *_wrap_OtkWidget_configureHandler(PyObject *self, PyObject *args) {
2047 PyObject *resultobj;
2048 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2049 XConfigureEvent *arg2 = 0 ;
2050 PyObject * obj0 = 0 ;
2051 PyObject * obj1 = 0 ;
2052
2053 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_configureHandler",&obj0,&obj1)) goto fail;
2054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2055 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2056 if (arg2 == NULL) {
2057 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2058 }
2059 (arg1)->configureHandler((XConfigureEvent const &)*arg2);
2060
2061 Py_INCREF(Py_None); resultobj = Py_None;
2062 return resultobj;
2063 fail:
2064 return NULL;
2065 }
2066
2067
2068 static PyObject *_wrap_OtkWidget_window(PyObject *self, PyObject *args) {
2069 PyObject *resultobj;
2070 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2071 Window result;
2072 PyObject * obj0 = 0 ;
2073
2074 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_window",&obj0)) goto fail;
2075 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2076 result = (Window)((otk::OtkWidget const *)arg1)->window();
2077
2078 resultobj = PyInt_FromLong((long)result);
2079 return resultobj;
2080 fail:
2081 return NULL;
2082 }
2083
2084
2085 static PyObject *_wrap_OtkWidget_parent(PyObject *self, PyObject *args) {
2086 PyObject *resultobj;
2087 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2088 otk::OtkWidget *result;
2089 PyObject * obj0 = 0 ;
2090
2091 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_parent",&obj0)) goto fail;
2092 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2093 result = (otk::OtkWidget *)((otk::OtkWidget const *)arg1)->parent();
2094
2095 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkWidget, 0);
2096 return resultobj;
2097 fail:
2098 return NULL;
2099 }
2100
2101
2102 static PyObject *_wrap_OtkWidget_children(PyObject *self, PyObject *args) {
2103 PyObject *resultobj;
2104 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2105 otk::OtkWidget::OtkWidgetList *result;
2106 PyObject * obj0 = 0 ;
2107
2108 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_children",&obj0)) goto fail;
2109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2110 {
2111 otk::OtkWidget::OtkWidgetList const &_result_ref = ((otk::OtkWidget const *)arg1)->children();
2112 result = (otk::OtkWidget::OtkWidgetList *) &_result_ref;
2113 }
2114
2115 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkWidget__OtkWidgetList, 0);
2116 return resultobj;
2117 fail:
2118 return NULL;
2119 }
2120
2121
2122 static PyObject *_wrap_OtkWidget_screen(PyObject *self, PyObject *args) {
2123 PyObject *resultobj;
2124 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2125 unsigned int result;
2126 PyObject * obj0 = 0 ;
2127
2128 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_screen",&obj0)) goto fail;
2129 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2130 result = (unsigned int)((otk::OtkWidget const *)arg1)->screen();
2131
2132 resultobj = PyInt_FromLong((long)result);
2133 return resultobj;
2134 fail:
2135 return NULL;
2136 }
2137
2138
2139 static PyObject *_wrap_OtkWidget_rect(PyObject *self, PyObject *args) {
2140 PyObject *resultobj;
2141 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2142 otk::Rect *result;
2143 PyObject * obj0 = 0 ;
2144
2145 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_rect",&obj0)) goto fail;
2146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2147 {
2148 otk::Rect const &_result_ref = ((otk::OtkWidget const *)arg1)->rect();
2149 result = (otk::Rect *) &_result_ref;
2150 }
2151
2152 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
2153 return resultobj;
2154 fail:
2155 return NULL;
2156 }
2157
2158
2159 static PyObject *_wrap_OtkWidget_move__SWIG_0(PyObject *self, PyObject *args) {
2160 PyObject *resultobj;
2161 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2162 otk::Point *arg2 = 0 ;
2163 PyObject * obj0 = 0 ;
2164 PyObject * obj1 = 0 ;
2165
2166 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_move",&obj0,&obj1)) goto fail;
2167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2168 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2169 if (arg2 == NULL) {
2170 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2171 }
2172 (arg1)->move((otk::Point const &)*arg2);
2173
2174 Py_INCREF(Py_None); resultobj = Py_None;
2175 return resultobj;
2176 fail:
2177 return NULL;
2178 }
2179
2180
2181 static PyObject *_wrap_OtkWidget_move__SWIG_1(PyObject *self, PyObject *args) {
2182 PyObject *resultobj;
2183 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2184 int arg2 ;
2185 int arg3 ;
2186 PyObject * obj0 = 0 ;
2187
2188 if(!PyArg_ParseTuple(args,(char *)"Oii:OtkWidget_move",&obj0,&arg2,&arg3)) goto fail;
2189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2190 (arg1)->move(arg2,arg3);
2191
2192 Py_INCREF(Py_None); resultobj = Py_None;
2193 return resultobj;
2194 fail:
2195 return NULL;
2196 }
2197
2198
2199 static PyObject *_wrap_OtkWidget_move(PyObject *self, PyObject *args) {
2200 int argc;
2201 PyObject *argv[4];
2202 int ii;
2203
2204 argc = PyObject_Length(args);
2205 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
2206 argv[ii] = PyTuple_GetItem(args,ii);
2207 }
2208 if (argc == 2) {
2209 int _v;
2210 {
2211 void *ptr;
2212 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
2213 _v = 0;
2214 PyErr_Clear();
2215 }else {
2216 _v = 1;
2217 }
2218 }
2219 if (_v) {
2220 {
2221 void *ptr;
2222 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2223 _v = 0;
2224 PyErr_Clear();
2225 }else {
2226 _v = 1;
2227 }
2228 }
2229 if (_v) {
2230 return _wrap_OtkWidget_move__SWIG_0(self,args);
2231 }
2232 }
2233 }
2234 if (argc == 3) {
2235 int _v;
2236 {
2237 void *ptr;
2238 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
2239 _v = 0;
2240 PyErr_Clear();
2241 }else {
2242 _v = 1;
2243 }
2244 }
2245 if (_v) {
2246 {
2247 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2248 }
2249 if (_v) {
2250 {
2251 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2252 }
2253 if (_v) {
2254 return _wrap_OtkWidget_move__SWIG_1(self,args);
2255 }
2256 }
2257 }
2258 }
2259
2260 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OtkWidget_move'");
2261 return NULL;
2262 }
2263
2264
2265 static PyObject *_wrap_OtkWidget_setWidth(PyObject *self, PyObject *args) {
2266 PyObject *resultobj;
2267 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2268 int arg2 ;
2269 PyObject * obj0 = 0 ;
2270
2271 if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setWidth",&obj0,&arg2)) goto fail;
2272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2273 (arg1)->setWidth(arg2);
2274
2275 Py_INCREF(Py_None); resultobj = Py_None;
2276 return resultobj;
2277 fail:
2278 return NULL;
2279 }
2280
2281
2282 static PyObject *_wrap_OtkWidget_setHeight(PyObject *self, PyObject *args) {
2283 PyObject *resultobj;
2284 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2285 int arg2 ;
2286 PyObject * obj0 = 0 ;
2287
2288 if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setHeight",&obj0,&arg2)) goto fail;
2289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2290 (arg1)->setHeight(arg2);
2291
2292 Py_INCREF(Py_None); resultobj = Py_None;
2293 return resultobj;
2294 fail:
2295 return NULL;
2296 }
2297
2298
2299 static PyObject *_wrap_OtkWidget_width(PyObject *self, PyObject *args) {
2300 PyObject *resultobj;
2301 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2302 int result;
2303 PyObject * obj0 = 0 ;
2304
2305 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_width",&obj0)) goto fail;
2306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2307 result = (int)((otk::OtkWidget const *)arg1)->width();
2308
2309 resultobj = PyInt_FromLong((long)result);
2310 return resultobj;
2311 fail:
2312 return NULL;
2313 }
2314
2315
2316 static PyObject *_wrap_OtkWidget_height(PyObject *self, PyObject *args) {
2317 PyObject *resultobj;
2318 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2319 int result;
2320 PyObject * obj0 = 0 ;
2321
2322 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_height",&obj0)) goto fail;
2323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2324 result = (int)((otk::OtkWidget const *)arg1)->height();
2325
2326 resultobj = PyInt_FromLong((long)result);
2327 return resultobj;
2328 fail:
2329 return NULL;
2330 }
2331
2332
2333 static PyObject *_wrap_OtkWidget_resize__SWIG_0(PyObject *self, PyObject *args) {
2334 PyObject *resultobj;
2335 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2336 otk::Point *arg2 = 0 ;
2337 PyObject * obj0 = 0 ;
2338 PyObject * obj1 = 0 ;
2339
2340 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_resize",&obj0,&obj1)) goto fail;
2341 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2342 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2343 if (arg2 == NULL) {
2344 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2345 }
2346 (arg1)->resize((otk::Point const &)*arg2);
2347
2348 Py_INCREF(Py_None); resultobj = Py_None;
2349 return resultobj;
2350 fail:
2351 return NULL;
2352 }
2353
2354
2355 static PyObject *_wrap_OtkWidget_resize__SWIG_1(PyObject *self, PyObject *args) {
2356 PyObject *resultobj;
2357 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2358 int arg2 ;
2359 int arg3 ;
2360 PyObject * obj0 = 0 ;
2361
2362 if(!PyArg_ParseTuple(args,(char *)"Oii:OtkWidget_resize",&obj0,&arg2,&arg3)) goto fail;
2363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2364 (arg1)->resize(arg2,arg3);
2365
2366 Py_INCREF(Py_None); resultobj = Py_None;
2367 return resultobj;
2368 fail:
2369 return NULL;
2370 }
2371
2372
2373 static PyObject *_wrap_OtkWidget_resize(PyObject *self, PyObject *args) {
2374 int argc;
2375 PyObject *argv[4];
2376 int ii;
2377
2378 argc = PyObject_Length(args);
2379 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
2380 argv[ii] = PyTuple_GetItem(args,ii);
2381 }
2382 if (argc == 2) {
2383 int _v;
2384 {
2385 void *ptr;
2386 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
2387 _v = 0;
2388 PyErr_Clear();
2389 }else {
2390 _v = 1;
2391 }
2392 }
2393 if (_v) {
2394 {
2395 void *ptr;
2396 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2397 _v = 0;
2398 PyErr_Clear();
2399 }else {
2400 _v = 1;
2401 }
2402 }
2403 if (_v) {
2404 return _wrap_OtkWidget_resize__SWIG_0(self,args);
2405 }
2406 }
2407 }
2408 if (argc == 3) {
2409 int _v;
2410 {
2411 void *ptr;
2412 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
2413 _v = 0;
2414 PyErr_Clear();
2415 }else {
2416 _v = 1;
2417 }
2418 }
2419 if (_v) {
2420 {
2421 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2422 }
2423 if (_v) {
2424 {
2425 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2426 }
2427 if (_v) {
2428 return _wrap_OtkWidget_resize__SWIG_1(self,args);
2429 }
2430 }
2431 }
2432 }
2433
2434 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OtkWidget_resize'");
2435 return NULL;
2436 }
2437
2438
2439 static PyObject *_wrap_OtkWidget_setGeometry__SWIG_0(PyObject *self, PyObject *args) {
2440 PyObject *resultobj;
2441 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2442 otk::Rect *arg2 = 0 ;
2443 PyObject * obj0 = 0 ;
2444 PyObject * obj1 = 0 ;
2445
2446 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setGeometry",&obj0,&obj1)) goto fail;
2447 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2448 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2449 if (arg2 == NULL) {
2450 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2451 }
2452 (arg1)->setGeometry((otk::Rect const &)*arg2);
2453
2454 Py_INCREF(Py_None); resultobj = Py_None;
2455 return resultobj;
2456 fail:
2457 return NULL;
2458 }
2459
2460
2461 static PyObject *_wrap_OtkWidget_setGeometry__SWIG_1(PyObject *self, PyObject *args) {
2462 PyObject *resultobj;
2463 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2464 otk::Point *arg2 = 0 ;
2465 int arg3 ;
2466 int arg4 ;
2467 PyObject * obj0 = 0 ;
2468 PyObject * obj1 = 0 ;
2469
2470 if(!PyArg_ParseTuple(args,(char *)"OOii:OtkWidget_setGeometry",&obj0,&obj1,&arg3,&arg4)) goto fail;
2471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2472 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2473 if (arg2 == NULL) {
2474 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2475 }
2476 (arg1)->setGeometry((otk::Point const &)*arg2,arg3,arg4);
2477
2478 Py_INCREF(Py_None); resultobj = Py_None;
2479 return resultobj;
2480 fail:
2481 return NULL;
2482 }
2483
2484
2485 static PyObject *_wrap_OtkWidget_setGeometry__SWIG_2(PyObject *self, PyObject *args) {
2486 PyObject *resultobj;
2487 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2488 int arg2 ;
2489 int arg3 ;
2490 int arg4 ;
2491 int arg5 ;
2492 PyObject * obj0 = 0 ;
2493
2494 if(!PyArg_ParseTuple(args,(char *)"Oiiii:OtkWidget_setGeometry",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
2495 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2496 (arg1)->setGeometry(arg2,arg3,arg4,arg5);
2497
2498 Py_INCREF(Py_None); resultobj = Py_None;
2499 return resultobj;
2500 fail:
2501 return NULL;
2502 }
2503
2504
2505 static PyObject *_wrap_OtkWidget_setGeometry(PyObject *self, PyObject *args) {
2506 int argc;
2507 PyObject *argv[6];
2508 int ii;
2509
2510 argc = PyObject_Length(args);
2511 for (ii = 0; (ii < argc) && (ii < 5); ii++) {
2512 argv[ii] = PyTuple_GetItem(args,ii);
2513 }
2514 if (argc == 2) {
2515 int _v;
2516 {
2517 void *ptr;
2518 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
2519 _v = 0;
2520 PyErr_Clear();
2521 }else {
2522 _v = 1;
2523 }
2524 }
2525 if (_v) {
2526 {
2527 void *ptr;
2528 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2529 _v = 0;
2530 PyErr_Clear();
2531 }else {
2532 _v = 1;
2533 }
2534 }
2535 if (_v) {
2536 return _wrap_OtkWidget_setGeometry__SWIG_0(self,args);
2537 }
2538 }
2539 }
2540 if (argc == 4) {
2541 int _v;
2542 {
2543 void *ptr;
2544 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
2545 _v = 0;
2546 PyErr_Clear();
2547 }else {
2548 _v = 1;
2549 }
2550 }
2551 if (_v) {
2552 {
2553 void *ptr;
2554 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2555 _v = 0;
2556 PyErr_Clear();
2557 }else {
2558 _v = 1;
2559 }
2560 }
2561 if (_v) {
2562 {
2563 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2564 }
2565 if (_v) {
2566 {
2567 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
2568 }
2569 if (_v) {
2570 return _wrap_OtkWidget_setGeometry__SWIG_1(self,args);
2571 }
2572 }
2573 }
2574 }
2575 }
2576 if (argc == 5) {
2577 int _v;
2578 {
2579 void *ptr;
2580 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
2581 _v = 0;
2582 PyErr_Clear();
2583 }else {
2584 _v = 1;
2585 }
2586 }
2587 if (_v) {
2588 {
2589 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2590 }
2591 if (_v) {
2592 {
2593 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2594 }
2595 if (_v) {
2596 {
2597 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
2598 }
2599 if (_v) {
2600 {
2601 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
2602 }
2603 if (_v) {
2604 return _wrap_OtkWidget_setGeometry__SWIG_2(self,args);
2605 }
2606 }
2607 }
2608 }
2609 }
2610 }
2611
2612 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OtkWidget_setGeometry'");
2613 return NULL;
2614 }
2615
2616
2617 static PyObject *_wrap_OtkWidget_isVisible(PyObject *self, PyObject *args) {
2618 PyObject *resultobj;
2619 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2620 bool result;
2621 PyObject * obj0 = 0 ;
2622
2623 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_isVisible",&obj0)) goto fail;
2624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2625 result = (bool)((otk::OtkWidget const *)arg1)->isVisible();
2626
2627 resultobj = PyInt_FromLong((long)result);
2628 return resultobj;
2629 fail:
2630 return NULL;
2631 }
2632
2633
2634 static PyObject *_wrap_OtkWidget_show(PyObject *self, PyObject *args) {
2635 PyObject *resultobj;
2636 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2637 bool arg2 = (bool) false ;
2638 PyObject * obj0 = 0 ;
2639 PyObject * obj1 = 0 ;
2640
2641 if(!PyArg_ParseTuple(args,(char *)"O|O:OtkWidget_show",&obj0,&obj1)) goto fail;
2642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2643 if (obj1) {
2644 arg2 = (bool) PyInt_AsLong(obj1);
2645 if (PyErr_Occurred()) SWIG_fail;
2646 }
2647 (arg1)->show(arg2);
2648
2649 Py_INCREF(Py_None); resultobj = Py_None;
2650 return resultobj;
2651 fail:
2652 return NULL;
2653 }
2654
2655
2656 static PyObject *_wrap_OtkWidget_hide(PyObject *self, PyObject *args) {
2657 PyObject *resultobj;
2658 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2659 bool arg2 = (bool) false ;
2660 PyObject * obj0 = 0 ;
2661 PyObject * obj1 = 0 ;
2662
2663 if(!PyArg_ParseTuple(args,(char *)"O|O:OtkWidget_hide",&obj0,&obj1)) goto fail;
2664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2665 if (obj1) {
2666 arg2 = (bool) PyInt_AsLong(obj1);
2667 if (PyErr_Occurred()) SWIG_fail;
2668 }
2669 (arg1)->hide(arg2);
2670
2671 Py_INCREF(Py_None); resultobj = Py_None;
2672 return resultobj;
2673 fail:
2674 return NULL;
2675 }
2676
2677
2678 static PyObject *_wrap_OtkWidget_isFocused(PyObject *self, PyObject *args) {
2679 PyObject *resultobj;
2680 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2681 bool result;
2682 PyObject * obj0 = 0 ;
2683
2684 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_isFocused",&obj0)) goto fail;
2685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2686 result = (bool)((otk::OtkWidget const *)arg1)->isFocused();
2687
2688 resultobj = PyInt_FromLong((long)result);
2689 return resultobj;
2690 fail:
2691 return NULL;
2692 }
2693
2694
2695 static PyObject *_wrap_OtkWidget_focus(PyObject *self, PyObject *args) {
2696 PyObject *resultobj;
2697 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2698 PyObject * obj0 = 0 ;
2699
2700 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_focus",&obj0)) goto fail;
2701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2702 (arg1)->focus();
2703
2704 Py_INCREF(Py_None); resultobj = Py_None;
2705 return resultobj;
2706 fail:
2707 return NULL;
2708 }
2709
2710
2711 static PyObject *_wrap_OtkWidget_unfocus(PyObject *self, PyObject *args) {
2712 PyObject *resultobj;
2713 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2714 PyObject * obj0 = 0 ;
2715
2716 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_unfocus",&obj0)) goto fail;
2717 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2718 (arg1)->unfocus();
2719
2720 Py_INCREF(Py_None); resultobj = Py_None;
2721 return resultobj;
2722 fail:
2723 return NULL;
2724 }
2725
2726
2727 static PyObject *_wrap_OtkWidget_hasGrabbedMouse(PyObject *self, PyObject *args) {
2728 PyObject *resultobj;
2729 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2730 bool result;
2731 PyObject * obj0 = 0 ;
2732
2733 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_hasGrabbedMouse",&obj0)) goto fail;
2734 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2735 result = (bool)((otk::OtkWidget const *)arg1)->hasGrabbedMouse();
2736
2737 resultobj = PyInt_FromLong((long)result);
2738 return resultobj;
2739 fail:
2740 return NULL;
2741 }
2742
2743
2744 static PyObject *_wrap_OtkWidget_grabMouse(PyObject *self, PyObject *args) {
2745 PyObject *resultobj;
2746 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2747 bool result;
2748 PyObject * obj0 = 0 ;
2749
2750 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_grabMouse",&obj0)) goto fail;
2751 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2752 result = (bool)(arg1)->grabMouse();
2753
2754 resultobj = PyInt_FromLong((long)result);
2755 return resultobj;
2756 fail:
2757 return NULL;
2758 }
2759
2760
2761 static PyObject *_wrap_OtkWidget_ungrabMouse(PyObject *self, PyObject *args) {
2762 PyObject *resultobj;
2763 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2764 PyObject * obj0 = 0 ;
2765
2766 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_ungrabMouse",&obj0)) goto fail;
2767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2768 (arg1)->ungrabMouse();
2769
2770 Py_INCREF(Py_None); resultobj = Py_None;
2771 return resultobj;
2772 fail:
2773 return NULL;
2774 }
2775
2776
2777 static PyObject *_wrap_OtkWidget_hasGrabbedKeyboard(PyObject *self, PyObject *args) {
2778 PyObject *resultobj;
2779 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2780 bool result;
2781 PyObject * obj0 = 0 ;
2782
2783 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_hasGrabbedKeyboard",&obj0)) goto fail;
2784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2785 result = (bool)((otk::OtkWidget const *)arg1)->hasGrabbedKeyboard();
2786
2787 resultobj = PyInt_FromLong((long)result);
2788 return resultobj;
2789 fail:
2790 return NULL;
2791 }
2792
2793
2794 static PyObject *_wrap_OtkWidget_grabKeyboard(PyObject *self, PyObject *args) {
2795 PyObject *resultobj;
2796 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2797 bool result;
2798 PyObject * obj0 = 0 ;
2799
2800 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_grabKeyboard",&obj0)) goto fail;
2801 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2802 result = (bool)(arg1)->grabKeyboard();
2803
2804 resultobj = PyInt_FromLong((long)result);
2805 return resultobj;
2806 fail:
2807 return NULL;
2808 }
2809
2810
2811 static PyObject *_wrap_OtkWidget_ungrabKeyboard(PyObject *self, PyObject *args) {
2812 PyObject *resultobj;
2813 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2814 PyObject * obj0 = 0 ;
2815
2816 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_ungrabKeyboard",&obj0)) goto fail;
2817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2818 (arg1)->ungrabKeyboard();
2819
2820 Py_INCREF(Py_None); resultobj = Py_None;
2821 return resultobj;
2822 fail:
2823 return NULL;
2824 }
2825
2826
2827 static PyObject *_wrap_OtkWidget_texture(PyObject *self, PyObject *args) {
2828 PyObject *resultobj;
2829 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2830 otk::BTexture *result;
2831 PyObject * obj0 = 0 ;
2832
2833 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_texture",&obj0)) goto fail;
2834 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2835 result = (otk::BTexture *)((otk::OtkWidget const *)arg1)->texture();
2836
2837 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
2838 return resultobj;
2839 fail:
2840 return NULL;
2841 }
2842
2843
2844 static PyObject *_wrap_OtkWidget_setTexture(PyObject *self, PyObject *args) {
2845 PyObject *resultobj;
2846 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2847 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
2848 PyObject * obj0 = 0 ;
2849 PyObject * obj1 = 0 ;
2850
2851 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setTexture",&obj0,&obj1)) goto fail;
2852 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2853 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2854 (arg1)->setTexture(arg2);
2855
2856 Py_INCREF(Py_None); resultobj = Py_None;
2857 return resultobj;
2858 fail:
2859 return NULL;
2860 }
2861
2862
2863 static PyObject *_wrap_OtkWidget_borderColor(PyObject *self, PyObject *args) {
2864 PyObject *resultobj;
2865 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2866 otk::BColor *result;
2867 PyObject * obj0 = 0 ;
2868
2869 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_borderColor",&obj0)) goto fail;
2870 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2871 result = (otk::BColor *)((otk::OtkWidget const *)arg1)->borderColor();
2872
2873 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
2874 return resultobj;
2875 fail:
2876 return NULL;
2877 }
2878
2879
2880 static PyObject *_wrap_OtkWidget_setBorderColor(PyObject *self, PyObject *args) {
2881 PyObject *resultobj;
2882 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2883 otk::BColor *arg2 = (otk::BColor *) 0 ;
2884 PyObject * obj0 = 0 ;
2885 PyObject * obj1 = 0 ;
2886
2887 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setBorderColor",&obj0,&obj1)) goto fail;
2888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2889 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2890 (arg1)->setBorderColor((otk::BColor const *)arg2);
2891
2892 Py_INCREF(Py_None); resultobj = Py_None;
2893 return resultobj;
2894 fail:
2895 return NULL;
2896 }
2897
2898
2899 static PyObject *_wrap_OtkWidget_borderWidth(PyObject *self, PyObject *args) {
2900 PyObject *resultobj;
2901 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2902 int result;
2903 PyObject * obj0 = 0 ;
2904
2905 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_borderWidth",&obj0)) goto fail;
2906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2907 result = (int)((otk::OtkWidget const *)arg1)->borderWidth();
2908
2909 resultobj = PyInt_FromLong((long)result);
2910 return resultobj;
2911 fail:
2912 return NULL;
2913 }
2914
2915
2916 static PyObject *_wrap_OtkWidget_setBorderWidth(PyObject *self, PyObject *args) {
2917 PyObject *resultobj;
2918 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2919 int arg2 ;
2920 PyObject * obj0 = 0 ;
2921
2922 if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setBorderWidth",&obj0,&arg2)) goto fail;
2923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2924 (arg1)->setBorderWidth(arg2);
2925
2926 Py_INCREF(Py_None); resultobj = Py_None;
2927 return resultobj;
2928 fail:
2929 return NULL;
2930 }
2931
2932
2933 static PyObject *_wrap_OtkWidget_addChild(PyObject *self, PyObject *args) {
2934 PyObject *resultobj;
2935 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2936 otk::OtkWidget *arg2 = (otk::OtkWidget *) 0 ;
2937 bool arg3 = (bool) false ;
2938 PyObject * obj0 = 0 ;
2939 PyObject * obj1 = 0 ;
2940 PyObject * obj2 = 0 ;
2941
2942 if(!PyArg_ParseTuple(args,(char *)"OO|O:OtkWidget_addChild",&obj0,&obj1,&obj2)) goto fail;
2943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2944 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2945 if (obj2) {
2946 arg3 = (bool) PyInt_AsLong(obj2);
2947 if (PyErr_Occurred()) SWIG_fail;
2948 }
2949 (arg1)->addChild(arg2,arg3);
2950
2951 Py_INCREF(Py_None); resultobj = Py_None;
2952 return resultobj;
2953 fail:
2954 return NULL;
2955 }
2956
2957
2958 static PyObject *_wrap_OtkWidget_removeChild(PyObject *self, PyObject *args) {
2959 PyObject *resultobj;
2960 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2961 otk::OtkWidget *arg2 = (otk::OtkWidget *) 0 ;
2962 PyObject * obj0 = 0 ;
2963 PyObject * obj1 = 0 ;
2964
2965 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_removeChild",&obj0,&obj1)) goto fail;
2966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2967 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2968 (arg1)->removeChild(arg2);
2969
2970 Py_INCREF(Py_None); resultobj = Py_None;
2971 return resultobj;
2972 fail:
2973 return NULL;
2974 }
2975
2976
2977 static PyObject *_wrap_OtkWidget_isStretchableHorz(PyObject *self, PyObject *args) {
2978 PyObject *resultobj;
2979 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2980 bool result;
2981 PyObject * obj0 = 0 ;
2982
2983 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_isStretchableHorz",&obj0)) goto fail;
2984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2985 result = (bool)((otk::OtkWidget const *)arg1)->isStretchableHorz();
2986
2987 resultobj = PyInt_FromLong((long)result);
2988 return resultobj;
2989 fail:
2990 return NULL;
2991 }
2992
2993
2994 static PyObject *_wrap_OtkWidget_setStretchableHorz(PyObject *self, PyObject *args) {
2995 PyObject *resultobj;
2996 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2997 bool arg2 = (bool) true ;
2998 PyObject * obj0 = 0 ;
2999 PyObject * obj1 = 0 ;
3000
3001 if(!PyArg_ParseTuple(args,(char *)"O|O:OtkWidget_setStretchableHorz",&obj0,&obj1)) goto fail;
3002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3003 if (obj1) {
3004 arg2 = (bool) PyInt_AsLong(obj1);
3005 if (PyErr_Occurred()) SWIG_fail;
3006 }
3007 (arg1)->setStretchableHorz(arg2);
3008
3009 Py_INCREF(Py_None); resultobj = Py_None;
3010 return resultobj;
3011 fail:
3012 return NULL;
3013 }
3014
3015
3016 static PyObject *_wrap_OtkWidget_isStretchableVert(PyObject *self, PyObject *args) {
3017 PyObject *resultobj;
3018 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3019 bool result;
3020 PyObject * obj0 = 0 ;
3021
3022 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_isStretchableVert",&obj0)) goto fail;
3023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3024 result = (bool)((otk::OtkWidget const *)arg1)->isStretchableVert();
3025
3026 resultobj = PyInt_FromLong((long)result);
3027 return resultobj;
3028 fail:
3029 return NULL;
3030 }
3031
3032
3033 static PyObject *_wrap_OtkWidget_setStretchableVert(PyObject *self, PyObject *args) {
3034 PyObject *resultobj;
3035 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3036 bool arg2 = (bool) true ;
3037 PyObject * obj0 = 0 ;
3038 PyObject * obj1 = 0 ;
3039
3040 if(!PyArg_ParseTuple(args,(char *)"O|O:OtkWidget_setStretchableVert",&obj0,&obj1)) goto fail;
3041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3042 if (obj1) {
3043 arg2 = (bool) PyInt_AsLong(obj1);
3044 if (PyErr_Occurred()) SWIG_fail;
3045 }
3046 (arg1)->setStretchableVert(arg2);
3047
3048 Py_INCREF(Py_None); resultobj = Py_None;
3049 return resultobj;
3050 fail:
3051 return NULL;
3052 }
3053
3054
3055 static PyObject *_wrap_OtkWidget_cursor(PyObject *self, PyObject *args) {
3056 PyObject *resultobj;
3057 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3058 Cursor result;
3059 PyObject * obj0 = 0 ;
3060
3061 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_cursor",&obj0)) goto fail;
3062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3063 result = (Cursor)((otk::OtkWidget const *)arg1)->cursor();
3064
3065 resultobj = PyInt_FromLong((long)result);
3066 return resultobj;
3067 fail:
3068 return NULL;
3069 }
3070
3071
3072 static PyObject *_wrap_OtkWidget_setCursor(PyObject *self, PyObject *args) {
3073 PyObject *resultobj;
3074 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3075 Cursor arg2 ;
3076 PyObject * obj0 = 0 ;
3077 PyObject * obj1 = 0 ;
3078
3079 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setCursor",&obj0,&obj1)) goto fail;
3080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3081 arg2 = (Cursor) PyInt_AsLong(obj1);
3082 if (PyErr_Occurred()) SWIG_fail;
3083 (arg1)->setCursor(arg2);
3084
3085 Py_INCREF(Py_None); resultobj = Py_None;
3086 return resultobj;
3087 fail:
3088 return NULL;
3089 }
3090
3091
3092 static PyObject *_wrap_OtkWidget_bevelWidth(PyObject *self, PyObject *args) {
3093 PyObject *resultobj;
3094 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3095 int result;
3096 PyObject * obj0 = 0 ;
3097
3098 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_bevelWidth",&obj0)) goto fail;
3099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3100 result = (int)((otk::OtkWidget const *)arg1)->bevelWidth();
3101
3102 resultobj = PyInt_FromLong((long)result);
3103 return resultobj;
3104 fail:
3105 return NULL;
3106 }
3107
3108
3109 static PyObject *_wrap_OtkWidget_setBevelWidth(PyObject *self, PyObject *args) {
3110 PyObject *resultobj;
3111 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3112 int arg2 ;
3113 PyObject * obj0 = 0 ;
3114
3115 if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setBevelWidth",&obj0,&arg2)) goto fail;
3116 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3117 (arg1)->setBevelWidth(arg2);
3118
3119 Py_INCREF(Py_None); resultobj = Py_None;
3120 return resultobj;
3121 fail:
3122 return NULL;
3123 }
3124
3125
3126 static PyObject *_wrap_OtkWidget_direction(PyObject *self, PyObject *args) {
3127 PyObject *resultobj;
3128 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3129 int result;
3130 PyObject * obj0 = 0 ;
3131
3132 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_direction",&obj0)) goto fail;
3133 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3134 result = (int)((otk::OtkWidget const *)arg1)->direction();
3135
3136 resultobj = PyInt_FromLong((long)result);
3137 return resultobj;
3138 fail:
3139 return NULL;
3140 }
3141
3142
3143 static PyObject *_wrap_OtkWidget_setDirection(PyObject *self, PyObject *args) {
3144 PyObject *resultobj;
3145 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3146 int arg2 ;
3147 PyObject * obj0 = 0 ;
3148
3149 if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setDirection",&obj0,&arg2)) goto fail;
3150 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3151 (arg1)->setDirection((otk::OtkWidget::Direction )arg2);
3152
3153 Py_INCREF(Py_None); resultobj = Py_None;
3154 return resultobj;
3155 fail:
3156 return NULL;
3157 }
3158
3159
3160 static PyObject *_wrap_OtkWidget_style(PyObject *self, PyObject *args) {
3161 PyObject *resultobj;
3162 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3163 otk::Style *result;
3164 PyObject * obj0 = 0 ;
3165
3166 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_style",&obj0)) goto fail;
3167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3168 result = (otk::Style *)((otk::OtkWidget const *)arg1)->style();
3169
3170 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
3171 return resultobj;
3172 fail:
3173 return NULL;
3174 }
3175
3176
3177 static PyObject *_wrap_OtkWidget_setStyle(PyObject *self, PyObject *args) {
3178 PyObject *resultobj;
3179 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3180 otk::Style *arg2 = (otk::Style *) 0 ;
3181 PyObject * obj0 = 0 ;
3182 PyObject * obj1 = 0 ;
3183
3184 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setStyle",&obj0,&obj1)) goto fail;
3185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3186 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3187 (arg1)->setStyle(arg2);
3188
3189 Py_INCREF(Py_None); resultobj = Py_None;
3190 return resultobj;
3191 fail:
3192 return NULL;
3193 }
3194
3195
3196 static PyObject *_wrap_OtkWidget_eventDispatcher(PyObject *self, PyObject *args) {
3197 PyObject *resultobj;
3198 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3199 otk::OtkEventDispatcher *result;
3200 PyObject * obj0 = 0 ;
3201
3202 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_eventDispatcher",&obj0)) goto fail;
3203 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3204 result = (otk::OtkEventDispatcher *)(arg1)->eventDispatcher();
3205
3206 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventDispatcher, 0);
3207 return resultobj;
3208 fail:
3209 return NULL;
3210 }
3211
3212
3213 static PyObject *_wrap_OtkWidget_setEventDispatcher(PyObject *self, PyObject *args) {
3214 PyObject *resultobj;
3215 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3216 otk::OtkEventDispatcher *arg2 = (otk::OtkEventDispatcher *) 0 ;
3217 PyObject * obj0 = 0 ;
3218 PyObject * obj1 = 0 ;
3219
3220 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setEventDispatcher",&obj0,&obj1)) goto fail;
3221 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3222 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3223 (arg1)->setEventDispatcher(arg2);
3224
3225 Py_INCREF(Py_None); resultobj = Py_None;
3226 return resultobj;
3227 fail:
3228 return NULL;
3229 }
3230
3231
3232 static PyObject * OtkWidget_swigregister(PyObject *self, PyObject *args) {
3233 PyObject *obj;
3234 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3235 SWIG_TypeClientData(SWIGTYPE_p_otk__OtkWidget, obj);
3236 Py_INCREF(obj);
3237 return Py_BuildValue((char *)"");
3238 }
3239 static PyObject *_wrap_new_OtkFocusWidget(PyObject *self, PyObject *args) {
3240 PyObject *resultobj;
3241 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3242 int arg2 = (int) otk::OtkWidget::Horizontal ;
3243 otk::OtkFocusWidget *result;
3244 PyObject * obj0 = 0 ;
3245
3246 if(!PyArg_ParseTuple(args,(char *)"O|i:new_OtkFocusWidget",&obj0,&arg2)) goto fail;
3247 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3248 result = (otk::OtkFocusWidget *)new otk::OtkFocusWidget(arg1,(otk::OtkWidget::Direction )arg2);
3249
3250 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkFocusWidget, 1);
3251 return resultobj;
3252 fail:
3253 return NULL;
3254 }
3255
3256
3257 static PyObject *_wrap_delete_OtkFocusWidget(PyObject *self, PyObject *args) {
3258 PyObject *resultobj;
3259 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3260 PyObject * obj0 = 0 ;
3261
3262 if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkFocusWidget",&obj0)) goto fail;
3263 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3264 delete arg1;
3265
3266 Py_INCREF(Py_None); resultobj = Py_None;
3267 return resultobj;
3268 fail:
3269 return NULL;
3270 }
3271
3272
3273 static PyObject *_wrap_OtkFocusWidget_focus(PyObject *self, PyObject *args) {
3274 PyObject *resultobj;
3275 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3276 PyObject * obj0 = 0 ;
3277
3278 if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_focus",&obj0)) goto fail;
3279 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3280 (arg1)->focus();
3281
3282 Py_INCREF(Py_None); resultobj = Py_None;
3283 return resultobj;
3284 fail:
3285 return NULL;
3286 }
3287
3288
3289 static PyObject *_wrap_OtkFocusWidget_unfocus(PyObject *self, PyObject *args) {
3290 PyObject *resultobj;
3291 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3292 PyObject * obj0 = 0 ;
3293
3294 if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_unfocus",&obj0)) goto fail;
3295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3296 (arg1)->unfocus();
3297
3298 Py_INCREF(Py_None); resultobj = Py_None;
3299 return resultobj;
3300 fail:
3301 return NULL;
3302 }
3303
3304
3305 static PyObject *_wrap_OtkFocusWidget_setTexture(PyObject *self, PyObject *args) {
3306 PyObject *resultobj;
3307 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3308 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
3309 PyObject * obj0 = 0 ;
3310 PyObject * obj1 = 0 ;
3311
3312 if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusWidget_setTexture",&obj0,&obj1)) goto fail;
3313 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3314 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3315 (arg1)->setTexture(arg2);
3316
3317 Py_INCREF(Py_None); resultobj = Py_None;
3318 return resultobj;
3319 fail:
3320 return NULL;
3321 }
3322
3323
3324 static PyObject *_wrap_OtkFocusWidget_setBorderColor(PyObject *self, PyObject *args) {
3325 PyObject *resultobj;
3326 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3327 otk::BColor *arg2 = (otk::BColor *) 0 ;
3328 PyObject * obj0 = 0 ;
3329 PyObject * obj1 = 0 ;
3330
3331 if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusWidget_setBorderColor",&obj0,&obj1)) goto fail;
3332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3333 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3334 (arg1)->setBorderColor((otk::BColor const *)arg2);
3335
3336 Py_INCREF(Py_None); resultobj = Py_None;
3337 return resultobj;
3338 fail:
3339 return NULL;
3340 }
3341
3342
3343 static PyObject *_wrap_OtkFocusWidget_setUnfocusTexture(PyObject *self, PyObject *args) {
3344 PyObject *resultobj;
3345 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3346 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
3347 PyObject * obj0 = 0 ;
3348 PyObject * obj1 = 0 ;
3349
3350 if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusWidget_setUnfocusTexture",&obj0,&obj1)) goto fail;
3351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3352 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3353 (arg1)->setUnfocusTexture(arg2);
3354
3355 Py_INCREF(Py_None); resultobj = Py_None;
3356 return resultobj;
3357 fail:
3358 return NULL;
3359 }
3360
3361
3362 static PyObject *_wrap_OtkFocusWidget_getUnfocusTexture(PyObject *self, PyObject *args) {
3363 PyObject *resultobj;
3364 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3365 otk::BTexture *result;
3366 PyObject * obj0 = 0 ;
3367
3368 if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_getUnfocusTexture",&obj0)) goto fail;
3369 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3370 result = (otk::BTexture *)((otk::OtkFocusWidget const *)arg1)->getUnfocusTexture();
3371
3372 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
3373 return resultobj;
3374 fail:
3375 return NULL;
3376 }
3377
3378
3379 static PyObject *_wrap_OtkFocusWidget_setUnfocusBorderColor(PyObject *self, PyObject *args) {
3380 PyObject *resultobj;
3381 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3382 otk::BColor *arg2 = (otk::BColor *) 0 ;
3383 PyObject * obj0 = 0 ;
3384 PyObject * obj1 = 0 ;
3385
3386 if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusWidget_setUnfocusBorderColor",&obj0,&obj1)) goto fail;
3387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3388 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3389 (arg1)->setUnfocusBorderColor((otk::BColor const *)arg2);
3390
3391 Py_INCREF(Py_None); resultobj = Py_None;
3392 return resultobj;
3393 fail:
3394 return NULL;
3395 }
3396
3397
3398 static PyObject *_wrap_OtkFocusWidget_getUnfocusBorderColor(PyObject *self, PyObject *args) {
3399 PyObject *resultobj;
3400 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3401 otk::BColor *result;
3402 PyObject * obj0 = 0 ;
3403
3404 if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_getUnfocusBorderColor",&obj0)) goto fail;
3405 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3406 result = (otk::BColor *)((otk::OtkFocusWidget const *)arg1)->getUnfocusBorderColor();
3407
3408 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
3409 return resultobj;
3410 fail:
3411 return NULL;
3412 }
3413
3414
3415 static PyObject *_wrap_OtkFocusWidget_isFocused(PyObject *self, PyObject *args) {
3416 PyObject *resultobj;
3417 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3418 bool result;
3419 PyObject * obj0 = 0 ;
3420
3421 if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_isFocused",&obj0)) goto fail;
3422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3423 result = (bool)((otk::OtkFocusWidget const *)arg1)->isFocused();
3424
3425 resultobj = PyInt_FromLong((long)result);
3426 return resultobj;
3427 fail:
3428 return NULL;
3429 }
3430
3431
3432 static PyObject *_wrap_OtkFocusWidget_isUnfocused(PyObject *self, PyObject *args) {
3433 PyObject *resultobj;
3434 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3435 bool result;
3436 PyObject * obj0 = 0 ;
3437
3438 if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_isUnfocused",&obj0)) goto fail;
3439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3440 result = (bool)((otk::OtkFocusWidget const *)arg1)->isUnfocused();
3441
3442 resultobj = PyInt_FromLong((long)result);
3443 return resultobj;
3444 fail:
3445 return NULL;
3446 }
3447
3448
3449 static PyObject * OtkFocusWidget_swigregister(PyObject *self, PyObject *args) {
3450 PyObject *obj;
3451 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3452 SWIG_TypeClientData(SWIGTYPE_p_otk__OtkFocusWidget, obj);
3453 Py_INCREF(obj);
3454 return Py_BuildValue((char *)"");
3455 }
3456 static PyObject *_wrap_new_OtkFocusLabel(PyObject *self, PyObject *args) {
3457 PyObject *resultobj;
3458 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3459 otk::OtkFocusLabel *result;
3460 PyObject * obj0 = 0 ;
3461
3462 if(!PyArg_ParseTuple(args,(char *)"O:new_OtkFocusLabel",&obj0)) goto fail;
3463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3464 result = (otk::OtkFocusLabel *)new otk::OtkFocusLabel(arg1);
3465
3466 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkFocusLabel, 1);
3467 return resultobj;
3468 fail:
3469 return NULL;
3470 }
3471
3472
3473 static PyObject *_wrap_delete_OtkFocusLabel(PyObject *self, PyObject *args) {
3474 PyObject *resultobj;
3475 otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
3476 PyObject * obj0 = 0 ;
3477
3478 if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkFocusLabel",&obj0)) goto fail;
3479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3480 delete arg1;
3481
3482 Py_INCREF(Py_None); resultobj = Py_None;
3483 return resultobj;
3484 fail:
3485 return NULL;
3486 }
3487
3488
3489 static PyObject *_wrap_OtkFocusLabel_getText(PyObject *self, PyObject *args) {
3490 PyObject *resultobj;
3491 otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
3492 std::string *result;
3493 PyObject * obj0 = 0 ;
3494
3495 if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusLabel_getText",&obj0)) goto fail;
3496 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3497 {
3498 std::string const &_result_ref = ((otk::OtkFocusLabel const *)arg1)->getText();
3499 result = (std::string *) &_result_ref;
3500 }
3501
3502 {
3503 resultobj = PyString_FromString(result->c_str());
3504 }
3505 return resultobj;
3506 fail:
3507 return NULL;
3508 }
3509
3510
3511 static PyObject *_wrap_OtkFocusLabel_setText(PyObject *self, PyObject *args) {
3512 PyObject *resultobj;
3513 otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
3514 std::string *arg2 = 0 ;
3515 std::string temp2 ;
3516 PyObject * obj0 = 0 ;
3517 PyObject * obj1 = 0 ;
3518
3519 if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusLabel_setText",&obj0,&obj1)) goto fail;
3520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3521 {
3522 if (PyString_Check(obj1)) {
3523 temp2 = std::string(PyString_AsString(obj1));
3524 arg2 = &temp2;
3525 }else {
3526 SWIG_exception(SWIG_TypeError, "string expected");
3527 }
3528 }
3529 (arg1)->setText((std::string const &)*arg2);
3530
3531 Py_INCREF(Py_None); resultobj = Py_None;
3532 return resultobj;
3533 fail:
3534 return NULL;
3535 }
3536
3537
3538 static PyObject *_wrap_OtkFocusLabel_update(PyObject *self, PyObject *args) {
3539 PyObject *resultobj;
3540 otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
3541 PyObject * obj0 = 0 ;
3542
3543 if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusLabel_update",&obj0)) goto fail;
3544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3545 (arg1)->update();
3546
3547 Py_INCREF(Py_None); resultobj = Py_None;
3548 return resultobj;
3549 fail:
3550 return NULL;
3551 }
3552
3553
3554 static PyObject *_wrap_OtkFocusLabel_setStyle(PyObject *self, PyObject *args) {
3555 PyObject *resultobj;
3556 otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
3557 otk::Style *arg2 = (otk::Style *) 0 ;
3558 PyObject * obj0 = 0 ;
3559 PyObject * obj1 = 0 ;
3560
3561 if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusLabel_setStyle",&obj0,&obj1)) goto fail;
3562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3563 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3564 (arg1)->setStyle(arg2);
3565
3566 Py_INCREF(Py_None); resultobj = Py_None;
3567 return resultobj;
3568 fail:
3569 return NULL;
3570 }
3571
3572
3573 static PyObject * OtkFocusLabel_swigregister(PyObject *self, PyObject *args) {
3574 PyObject *obj;
3575 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3576 SWIG_TypeClientData(SWIGTYPE_p_otk__OtkFocusLabel, obj);
3577 Py_INCREF(obj);
3578 return Py_BuildValue((char *)"");
3579 }
3580 static PyObject *_wrap_new_OtkAppWidget(PyObject *self, PyObject *args) {
3581 PyObject *resultobj;
3582 otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
3583 int arg2 = (int) otk::OtkWidget::Horizontal ;
3584 Cursor arg3 = (Cursor) 0 ;
3585 int arg4 = (int) 1 ;
3586 otk::OtkAppWidget *result;
3587 PyObject * obj0 = 0 ;
3588 PyObject * obj2 = 0 ;
3589
3590 if(!PyArg_ParseTuple(args,(char *)"O|iOi:new_OtkAppWidget",&obj0,&arg2,&obj2,&arg4)) goto fail;
3591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3592 if (obj2) {
3593 arg3 = (Cursor) PyInt_AsLong(obj2);
3594 if (PyErr_Occurred()) SWIG_fail;
3595 }
3596 result = (otk::OtkAppWidget *)new otk::OtkAppWidget(arg1,(otk::OtkWidget::Direction )arg2,arg3,arg4);
3597
3598 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkAppWidget, 1);
3599 return resultobj;
3600 fail:
3601 return NULL;
3602 }
3603
3604
3605 static PyObject *_wrap_delete_OtkAppWidget(PyObject *self, PyObject *args) {
3606 PyObject *resultobj;
3607 otk::OtkAppWidget *arg1 = (otk::OtkAppWidget *) 0 ;
3608 PyObject * obj0 = 0 ;
3609
3610 if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkAppWidget",&obj0)) goto fail;
3611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkAppWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3612 delete arg1;
3613
3614 Py_INCREF(Py_None); resultobj = Py_None;
3615 return resultobj;
3616 fail:
3617 return NULL;
3618 }
3619
3620
3621 static PyObject *_wrap_OtkAppWidget_show(PyObject *self, PyObject *args) {
3622 PyObject *resultobj;
3623 otk::OtkAppWidget *arg1 = (otk::OtkAppWidget *) 0 ;
3624 PyObject * obj0 = 0 ;
3625
3626 if(!PyArg_ParseTuple(args,(char *)"O:OtkAppWidget_show",&obj0)) goto fail;
3627 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkAppWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3628 (arg1)->show();
3629
3630 Py_INCREF(Py_None); resultobj = Py_None;
3631 return resultobj;
3632 fail:
3633 return NULL;
3634 }
3635
3636
3637 static PyObject *_wrap_OtkAppWidget_hide(PyObject *self, PyObject *args) {
3638 PyObject *resultobj;
3639 otk::OtkAppWidget *arg1 = (otk::OtkAppWidget *) 0 ;
3640 PyObject * obj0 = 0 ;
3641
3642 if(!PyArg_ParseTuple(args,(char *)"O:OtkAppWidget_hide",&obj0)) goto fail;
3643 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkAppWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3644 (arg1)->hide();
3645
3646 Py_INCREF(Py_None); resultobj = Py_None;
3647 return resultobj;
3648 fail:
3649 return NULL;
3650 }
3651
3652
3653 static PyObject *_wrap_OtkAppWidget_clientMessageHandler(PyObject *self, PyObject *args) {
3654 PyObject *resultobj;
3655 otk::OtkAppWidget *arg1 = (otk::OtkAppWidget *) 0 ;
3656 XClientMessageEvent *arg2 = 0 ;
3657 PyObject * obj0 = 0 ;
3658 PyObject * obj1 = 0 ;
3659
3660 if(!PyArg_ParseTuple(args,(char *)"OO:OtkAppWidget_clientMessageHandler",&obj0,&obj1)) goto fail;
3661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkAppWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3662 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3663 if (arg2 == NULL) {
3664 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3665 }
3666 (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
3667
3668 Py_INCREF(Py_None); resultobj = Py_None;
3669 return resultobj;
3670 fail:
3671 return NULL;
3672 }
3673
3674
3675 static PyObject * OtkAppWidget_swigregister(PyObject *self, PyObject *args) {
3676 PyObject *obj;
3677 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3678 SWIG_TypeClientData(SWIGTYPE_p_otk__OtkAppWidget, obj);
3679 Py_INCREF(obj);
3680 return Py_BuildValue((char *)"");
3681 }
3682 static PyObject *_wrap_new_OtkApplication(PyObject *self, PyObject *args) {
3683 PyObject *resultobj;
3684 int arg1 ;
3685 char **arg2 = (char **) 0 ;
3686 otk::OtkApplication *result;
3687 PyObject * obj1 = 0 ;
3688
3689 if(!PyArg_ParseTuple(args,(char *)"iO:new_OtkApplication",&arg1,&obj1)) goto fail;
3690 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3691 result = (otk::OtkApplication *)new otk::OtkApplication(arg1,arg2);
3692
3693 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkApplication, 1);
3694 return resultobj;
3695 fail:
3696 return NULL;
3697 }
3698
3699
3700 static PyObject *_wrap_delete_OtkApplication(PyObject *self, PyObject *args) {
3701 PyObject *resultobj;
3702 otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
3703 PyObject * obj0 = 0 ;
3704
3705 if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkApplication",&obj0)) goto fail;
3706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3707 delete arg1;
3708
3709 Py_INCREF(Py_None); resultobj = Py_None;
3710 return resultobj;
3711 fail:
3712 return NULL;
3713 }
3714
3715
3716 static PyObject *_wrap_OtkApplication_run(PyObject *self, PyObject *args) {
3717 PyObject *resultobj;
3718 otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
3719 PyObject * obj0 = 0 ;
3720
3721 if(!PyArg_ParseTuple(args,(char *)"O:OtkApplication_run",&obj0)) goto fail;
3722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3723 (arg1)->run();
3724
3725 Py_INCREF(Py_None); resultobj = Py_None;
3726 return resultobj;
3727 fail:
3728 return NULL;
3729 }
3730
3731
3732 static PyObject *_wrap_OtkApplication_setDockable(PyObject *self, PyObject *args) {
3733 PyObject *resultobj;
3734 otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
3735 bool arg2 ;
3736 PyObject * obj0 = 0 ;
3737 PyObject * obj1 = 0 ;
3738
3739 if(!PyArg_ParseTuple(args,(char *)"OO:OtkApplication_setDockable",&obj0,&obj1)) goto fail;
3740 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3741 arg2 = (bool) PyInt_AsLong(obj1);
3742 if (PyErr_Occurred()) SWIG_fail;
3743 (arg1)->setDockable(arg2);
3744
3745 Py_INCREF(Py_None); resultobj = Py_None;
3746 return resultobj;
3747 fail:
3748 return NULL;
3749 }
3750
3751
3752 static PyObject *_wrap_OtkApplication_isDockable(PyObject *self, PyObject *args) {
3753 PyObject *resultobj;
3754 otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
3755 bool result;
3756 PyObject * obj0 = 0 ;
3757
3758 if(!PyArg_ParseTuple(args,(char *)"O:OtkApplication_isDockable",&obj0)) goto fail;
3759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3760 result = (bool)((otk::OtkApplication const *)arg1)->isDockable();
3761
3762 resultobj = PyInt_FromLong((long)result);
3763 return resultobj;
3764 fail:
3765 return NULL;
3766 }
3767
3768
3769 static PyObject *_wrap_OtkApplication_getStyle(PyObject *self, PyObject *args) {
3770 PyObject *resultobj;
3771 otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
3772 otk::Style *result;
3773 PyObject * obj0 = 0 ;
3774
3775 if(!PyArg_ParseTuple(args,(char *)"O:OtkApplication_getStyle",&obj0)) goto fail;
3776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3777 result = (otk::Style *)((otk::OtkApplication const *)arg1)->getStyle();
3778
3779 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
3780 return resultobj;
3781 fail:
3782 return NULL;
3783 }
3784
3785
3786 static PyObject * OtkApplication_swigregister(PyObject *self, PyObject *args) {
3787 PyObject *obj;
3788 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3789 SWIG_TypeClientData(SWIGTYPE_p_otk__OtkApplication, obj);
3790 Py_INCREF(obj);
3791 return Py_BuildValue((char *)"");
3792 }
3793 static PyObject *_wrap_new_PointerAssassin(PyObject *self, PyObject *args) {
3794 PyObject *resultobj;
3795 otk::PointerAssassin *result;
3796
3797 if(!PyArg_ParseTuple(args,(char *)":new_PointerAssassin")) goto fail;
3798 result = (otk::PointerAssassin *)new otk::PointerAssassin();
3799
3800 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PointerAssassin, 1);
3801 return resultobj;
3802 fail:
3803 return NULL;
3804 }
3805
3806
3807 static PyObject *_wrap_delete_PointerAssassin(PyObject *self, PyObject *args) {
3808 PyObject *resultobj;
3809 otk::PointerAssassin *arg1 = (otk::PointerAssassin *) 0 ;
3810 PyObject * obj0 = 0 ;
3811
3812 if(!PyArg_ParseTuple(args,(char *)"O:delete_PointerAssassin",&obj0)) goto fail;
3813 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PointerAssassin,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3814 delete arg1;
3815
3816 Py_INCREF(Py_None); resultobj = Py_None;
3817 return resultobj;
3818 fail:
3819 return NULL;
3820 }
3821
3822
3823 static PyObject * PointerAssassin_swigregister(PyObject *self, PyObject *args) {
3824 PyObject *obj;
3825 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3826 SWIG_TypeClientData(SWIGTYPE_p_otk__PointerAssassin, obj);
3827 Py_INCREF(obj);
3828 return Py_BuildValue((char *)"");
3829 }
3830 static PyObject *_wrap_new_OtkButton(PyObject *self, PyObject *args) {
3831 PyObject *resultobj;
3832 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3833 otk::OtkButton *result;
3834 PyObject * obj0 = 0 ;
3835
3836 if(!PyArg_ParseTuple(args,(char *)"O:new_OtkButton",&obj0)) goto fail;
3837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3838 result = (otk::OtkButton *)new otk::OtkButton(arg1);
3839
3840 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkButton, 1);
3841 return resultobj;
3842 fail:
3843 return NULL;
3844 }
3845
3846
3847 static PyObject *_wrap_delete_OtkButton(PyObject *self, PyObject *args) {
3848 PyObject *resultobj;
3849 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3850 PyObject * obj0 = 0 ;
3851
3852 if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkButton",&obj0)) goto fail;
3853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3854 delete arg1;
3855
3856 Py_INCREF(Py_None); resultobj = Py_None;
3857 return resultobj;
3858 fail:
3859 return NULL;
3860 }
3861
3862
3863 static PyObject *_wrap_OtkButton_getPressedFocusTexture(PyObject *self, PyObject *args) {
3864 PyObject *resultobj;
3865 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3866 otk::BTexture *result;
3867 PyObject * obj0 = 0 ;
3868
3869 if(!PyArg_ParseTuple(args,(char *)"O:OtkButton_getPressedFocusTexture",&obj0)) goto fail;
3870 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3871 result = (otk::BTexture *)((otk::OtkButton const *)arg1)->getPressedFocusTexture();
3872
3873 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
3874 return resultobj;
3875 fail:
3876 return NULL;
3877 }
3878
3879
3880 static PyObject *_wrap_OtkButton_setPressedFocusTexture(PyObject *self, PyObject *args) {
3881 PyObject *resultobj;
3882 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3883 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
3884 PyObject * obj0 = 0 ;
3885 PyObject * obj1 = 0 ;
3886
3887 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setPressedFocusTexture",&obj0,&obj1)) goto fail;
3888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3889 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3890 (arg1)->setPressedFocusTexture(arg2);
3891
3892 Py_INCREF(Py_None); resultobj = Py_None;
3893 return resultobj;
3894 fail:
3895 return NULL;
3896 }
3897
3898
3899 static PyObject *_wrap_OtkButton_getPressedUnfocusTexture(PyObject *self, PyObject *args) {
3900 PyObject *resultobj;
3901 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3902 otk::BTexture *result;
3903 PyObject * obj0 = 0 ;
3904
3905 if(!PyArg_ParseTuple(args,(char *)"O:OtkButton_getPressedUnfocusTexture",&obj0)) goto fail;
3906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3907 result = (otk::BTexture *)((otk::OtkButton const *)arg1)->getPressedUnfocusTexture();
3908
3909 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
3910 return resultobj;
3911 fail:
3912 return NULL;
3913 }
3914
3915
3916 static PyObject *_wrap_OtkButton_setPressedUnfocusTexture(PyObject *self, PyObject *args) {
3917 PyObject *resultobj;
3918 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3919 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
3920 PyObject * obj0 = 0 ;
3921 PyObject * obj1 = 0 ;
3922
3923 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setPressedUnfocusTexture",&obj0,&obj1)) goto fail;
3924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3925 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3926 (arg1)->setPressedUnfocusTexture(arg2);
3927
3928 Py_INCREF(Py_None); resultobj = Py_None;
3929 return resultobj;
3930 fail:
3931 return NULL;
3932 }
3933
3934
3935 static PyObject *_wrap_OtkButton_setTexture(PyObject *self, PyObject *args) {
3936 PyObject *resultobj;
3937 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3938 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
3939 PyObject * obj0 = 0 ;
3940 PyObject * obj1 = 0 ;
3941
3942 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setTexture",&obj0,&obj1)) goto fail;
3943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3944 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3945 (arg1)->setTexture(arg2);
3946
3947 Py_INCREF(Py_None); resultobj = Py_None;
3948 return resultobj;
3949 fail:
3950 return NULL;
3951 }
3952
3953
3954 static PyObject *_wrap_OtkButton_setUnfocusTexture(PyObject *self, PyObject *args) {
3955 PyObject *resultobj;
3956 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3957 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
3958 PyObject * obj0 = 0 ;
3959 PyObject * obj1 = 0 ;
3960
3961 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setUnfocusTexture",&obj0,&obj1)) goto fail;
3962 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3963 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3964 (arg1)->setUnfocusTexture(arg2);
3965
3966 Py_INCREF(Py_None); resultobj = Py_None;
3967 return resultobj;
3968 fail:
3969 return NULL;
3970 }
3971
3972
3973 static PyObject *_wrap_OtkButton_isPressed(PyObject *self, PyObject *args) {
3974 PyObject *resultobj;
3975 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3976 bool result;
3977 PyObject * obj0 = 0 ;
3978
3979 if(!PyArg_ParseTuple(args,(char *)"O:OtkButton_isPressed",&obj0)) goto fail;
3980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3981 result = (bool)((otk::OtkButton const *)arg1)->isPressed();
3982
3983 resultobj = PyInt_FromLong((long)result);
3984 return resultobj;
3985 fail:
3986 return NULL;
3987 }
3988
3989
3990 static PyObject *_wrap_OtkButton_press(PyObject *self, PyObject *args) {
3991 PyObject *resultobj;
3992 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3993 unsigned int arg2 ;
3994 PyObject * obj0 = 0 ;
3995 PyObject * obj1 = 0 ;
3996
3997 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_press",&obj0,&obj1)) goto fail;
3998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3999 arg2 = (unsigned int) PyInt_AsLong(obj1);
4000 if (PyErr_Occurred()) SWIG_fail;
4001 (arg1)->press(arg2);
4002
4003 Py_INCREF(Py_None); resultobj = Py_None;
4004 return resultobj;
4005 fail:
4006 return NULL;
4007 }
4008
4009
4010 static PyObject *_wrap_OtkButton_release(PyObject *self, PyObject *args) {
4011 PyObject *resultobj;
4012 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
4013 unsigned int arg2 ;
4014 PyObject * obj0 = 0 ;
4015 PyObject * obj1 = 0 ;
4016
4017 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_release",&obj0,&obj1)) goto fail;
4018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4019 arg2 = (unsigned int) PyInt_AsLong(obj1);
4020 if (PyErr_Occurred()) SWIG_fail;
4021 (arg1)->release(arg2);
4022
4023 Py_INCREF(Py_None); resultobj = Py_None;
4024 return resultobj;
4025 fail:
4026 return NULL;
4027 }
4028
4029
4030 static PyObject *_wrap_OtkButton_buttonPressHandler(PyObject *self, PyObject *args) {
4031 PyObject *resultobj;
4032 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
4033 XButtonEvent *arg2 = 0 ;
4034 PyObject * obj0 = 0 ;
4035 PyObject * obj1 = 0 ;
4036
4037 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_buttonPressHandler",&obj0,&obj1)) goto fail;
4038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4039 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4040 if (arg2 == NULL) {
4041 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4042 }
4043 (arg1)->buttonPressHandler((XButtonEvent const &)*arg2);
4044
4045 Py_INCREF(Py_None); resultobj = Py_None;
4046 return resultobj;
4047 fail:
4048 return NULL;
4049 }
4050
4051
4052 static PyObject *_wrap_OtkButton_buttonReleaseHandler(PyObject *self, PyObject *args) {
4053 PyObject *resultobj;
4054 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
4055 XButtonEvent *arg2 = 0 ;
4056 PyObject * obj0 = 0 ;
4057 PyObject * obj1 = 0 ;
4058
4059 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_buttonReleaseHandler",&obj0,&obj1)) goto fail;
4060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4061 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4062 if (arg2 == NULL) {
4063 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4064 }
4065 (arg1)->buttonReleaseHandler((XButtonEvent const &)*arg2);
4066
4067 Py_INCREF(Py_None); resultobj = Py_None;
4068 return resultobj;
4069 fail:
4070 return NULL;
4071 }
4072
4073
4074 static PyObject *_wrap_OtkButton_setStyle(PyObject *self, PyObject *args) {
4075 PyObject *resultobj;
4076 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
4077 otk::Style *arg2 = (otk::Style *) 0 ;
4078 PyObject * obj0 = 0 ;
4079 PyObject * obj1 = 0 ;
4080
4081 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setStyle",&obj0,&obj1)) goto fail;
4082 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4083 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4084 (arg1)->setStyle(arg2);
4085
4086 Py_INCREF(Py_None); resultobj = Py_None;
4087 return resultobj;
4088 fail:
4089 return NULL;
4090 }
4091
4092
4093 static PyObject * OtkButton_swigregister(PyObject *self, PyObject *args) {
4094 PyObject *obj;
4095 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4096 SWIG_TypeClientData(SWIGTYPE_p_otk__OtkButton, obj);
4097 Py_INCREF(obj);
4098 return Py_BuildValue((char *)"");
4099 }
4100 static PyObject *_wrap_new_BColor__SWIG_0(PyObject *self, PyObject *args) {
4101 PyObject *resultobj;
4102 unsigned int arg1 = (unsigned int) ~(0u) ;
4103 otk::BColor *result;
4104 PyObject * obj0 = 0 ;
4105
4106 if(!PyArg_ParseTuple(args,(char *)"|O:new_BColor",&obj0)) goto fail;
4107 if (obj0) {
4108 arg1 = (unsigned int) PyInt_AsLong(obj0);
4109 if (PyErr_Occurred()) SWIG_fail;
4110 }
4111 result = (otk::BColor *)new otk::BColor(arg1);
4112
4113 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 1);
4114 return resultobj;
4115 fail:
4116 return NULL;
4117 }
4118
4119
4120 static PyObject *_wrap_new_BColor__SWIG_1(PyObject *self, PyObject *args) {
4121 PyObject *resultobj;
4122 int arg1 ;
4123 int arg2 ;
4124 int arg3 ;
4125 unsigned int arg4 = (unsigned int) ~(0u) ;
4126 otk::BColor *result;
4127 PyObject * obj3 = 0 ;
4128
4129 if(!PyArg_ParseTuple(args,(char *)"iii|O:new_BColor",&arg1,&arg2,&arg3,&obj3)) goto fail;
4130 if (obj3) {
4131 arg4 = (unsigned int) PyInt_AsLong(obj3);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 result = (otk::BColor *)new otk::BColor(arg1,arg2,arg3,arg4);
4135
4136 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 1);
4137 return resultobj;
4138 fail:
4139 return NULL;
4140 }
4141
4142
4143 static PyObject *_wrap_new_BColor__SWIG_2(PyObject *self, PyObject *args) {
4144 PyObject *resultobj;
4145 std::string *arg1 = 0 ;
4146 unsigned int arg2 = (unsigned int) ~(0u) ;
4147 otk::BColor *result;
4148 std::string temp1 ;
4149 PyObject * obj0 = 0 ;
4150 PyObject * obj1 = 0 ;
4151
4152 if(!PyArg_ParseTuple(args,(char *)"O|O:new_BColor",&obj0,&obj1)) goto fail;
4153 {
4154 if (PyString_Check(obj0)) {
4155 temp1 = std::string(PyString_AsString(obj0));
4156 arg1 = &temp1;
4157 }else {
4158 SWIG_exception(SWIG_TypeError, "string expected");
4159 }
4160 }
4161 if (obj1) {
4162 arg2 = (unsigned int) PyInt_AsLong(obj1);
4163 if (PyErr_Occurred()) SWIG_fail;
4164 }
4165 result = (otk::BColor *)new otk::BColor((std::string const &)*arg1,arg2);
4166
4167 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 1);
4168 return resultobj;
4169 fail:
4170 return NULL;
4171 }
4172
4173
4174 static PyObject *_wrap_new_BColor(PyObject *self, PyObject *args) {
4175 int argc;
4176 PyObject *argv[5];
4177 int ii;
4178
4179 argc = PyObject_Length(args);
4180 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
4181 argv[ii] = PyTuple_GetItem(args,ii);
4182 }
4183 if ((argc >= 0) && (argc <= 1)) {
4184 int _v;
4185 if (argc <= 0) {
4186 return _wrap_new_BColor__SWIG_0(self,args);
4187 }
4188 {
4189 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
4190 }
4191 if (_v) {
4192 return _wrap_new_BColor__SWIG_0(self,args);
4193 }
4194 }
4195 if ((argc >= 1) && (argc <= 2)) {
4196 int _v;
4197 {
4198 _v = PyString_Check(argv[0]) ? 1 : 0;
4199 }
4200 if (_v) {
4201 if (argc <= 1) {
4202 return _wrap_new_BColor__SWIG_2(self,args);
4203 }
4204 {
4205 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
4206 }
4207 if (_v) {
4208 return _wrap_new_BColor__SWIG_2(self,args);
4209 }
4210 }
4211 }
4212 if ((argc >= 3) && (argc <= 4)) {
4213 int _v;
4214 {
4215 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
4216 }
4217 if (_v) {
4218 {
4219 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
4220 }
4221 if (_v) {
4222 {
4223 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
4224 }
4225 if (_v) {
4226 if (argc <= 3) {
4227 return _wrap_new_BColor__SWIG_1(self,args);
4228 }
4229 {
4230 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
4231 }
4232 if (_v) {
4233 return _wrap_new_BColor__SWIG_1(self,args);
4234 }
4235 }
4236 }
4237 }
4238 }
4239
4240 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BColor'");
4241 return NULL;
4242 }
4243
4244
4245 static PyObject *_wrap_delete_BColor(PyObject *self, PyObject *args) {
4246 PyObject *resultobj;
4247 otk::BColor *arg1 = (otk::BColor *) 0 ;
4248 PyObject * obj0 = 0 ;
4249
4250 if(!PyArg_ParseTuple(args,(char *)"O:delete_BColor",&obj0)) goto fail;
4251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4252 delete arg1;
4253
4254 Py_INCREF(Py_None); resultobj = Py_None;
4255 return resultobj;
4256 fail:
4257 return NULL;
4258 }
4259
4260
4261 static PyObject *_wrap_BColor_name(PyObject *self, PyObject *args) {
4262 PyObject *resultobj;
4263 otk::BColor *arg1 = (otk::BColor *) 0 ;
4264 std::string *result;
4265 PyObject * obj0 = 0 ;
4266
4267 if(!PyArg_ParseTuple(args,(char *)"O:BColor_name",&obj0)) goto fail;
4268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4269 {
4270 std::string const &_result_ref = ((otk::BColor const *)arg1)->name();
4271 result = (std::string *) &_result_ref;
4272 }
4273
4274 {
4275 resultobj = PyString_FromString(result->c_str());
4276 }
4277 return resultobj;
4278 fail:
4279 return NULL;
4280 }
4281
4282
4283 static PyObject *_wrap_BColor_red(PyObject *self, PyObject *args) {
4284 PyObject *resultobj;
4285 otk::BColor *arg1 = (otk::BColor *) 0 ;
4286 int result;
4287 PyObject * obj0 = 0 ;
4288
4289 if(!PyArg_ParseTuple(args,(char *)"O:BColor_red",&obj0)) goto fail;
4290 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4291 result = (int)((otk::BColor const *)arg1)->red();
4292
4293 resultobj = PyInt_FromLong((long)result);
4294 return resultobj;
4295 fail:
4296 return NULL;
4297 }
4298
4299
4300 static PyObject *_wrap_BColor_green(PyObject *self, PyObject *args) {
4301 PyObject *resultobj;
4302 otk::BColor *arg1 = (otk::BColor *) 0 ;
4303 int result;
4304 PyObject * obj0 = 0 ;
4305
4306 if(!PyArg_ParseTuple(args,(char *)"O:BColor_green",&obj0)) goto fail;
4307 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4308 result = (int)((otk::BColor const *)arg1)->green();
4309
4310 resultobj = PyInt_FromLong((long)result);
4311 return resultobj;
4312 fail:
4313 return NULL;
4314 }
4315
4316
4317 static PyObject *_wrap_BColor_blue(PyObject *self, PyObject *args) {
4318 PyObject *resultobj;
4319 otk::BColor *arg1 = (otk::BColor *) 0 ;
4320 int result;
4321 PyObject * obj0 = 0 ;
4322
4323 if(!PyArg_ParseTuple(args,(char *)"O:BColor_blue",&obj0)) goto fail;
4324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4325 result = (int)((otk::BColor const *)arg1)->blue();
4326
4327 resultobj = PyInt_FromLong((long)result);
4328 return resultobj;
4329 fail:
4330 return NULL;
4331 }
4332
4333
4334 static PyObject *_wrap_BColor_setRGB(PyObject *self, PyObject *args) {
4335 PyObject *resultobj;
4336 otk::BColor *arg1 = (otk::BColor *) 0 ;
4337 int arg2 ;
4338 int arg3 ;
4339 int arg4 ;
4340 PyObject * obj0 = 0 ;
4341
4342 if(!PyArg_ParseTuple(args,(char *)"Oiii:BColor_setRGB",&obj0,&arg2,&arg3,&arg4)) goto fail;
4343 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4344 (arg1)->setRGB(arg2,arg3,arg4);
4345
4346 Py_INCREF(Py_None); resultobj = Py_None;
4347 return resultobj;
4348 fail:
4349 return NULL;
4350 }
4351
4352
4353 static PyObject *_wrap_BColor_screen(PyObject *self, PyObject *args) {
4354 PyObject *resultobj;
4355 otk::BColor *arg1 = (otk::BColor *) 0 ;
4356 unsigned int result;
4357 PyObject * obj0 = 0 ;
4358
4359 if(!PyArg_ParseTuple(args,(char *)"O:BColor_screen",&obj0)) goto fail;
4360 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4361 result = (unsigned int)((otk::BColor const *)arg1)->screen();
4362
4363 resultobj = PyInt_FromLong((long)result);
4364 return resultobj;
4365 fail:
4366 return NULL;
4367 }
4368
4369
4370 static PyObject *_wrap_BColor_setScreen(PyObject *self, PyObject *args) {
4371 PyObject *resultobj;
4372 otk::BColor *arg1 = (otk::BColor *) 0 ;
4373 unsigned int arg2 = (unsigned int) ~(0u) ;
4374 PyObject * obj0 = 0 ;
4375 PyObject * obj1 = 0 ;
4376
4377 if(!PyArg_ParseTuple(args,(char *)"O|O:BColor_setScreen",&obj0,&obj1)) goto fail;
4378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4379 if (obj1) {
4380 arg2 = (unsigned int) PyInt_AsLong(obj1);
4381 if (PyErr_Occurred()) SWIG_fail;
4382 }
4383 (arg1)->setScreen(arg2);
4384
4385 Py_INCREF(Py_None); resultobj = Py_None;
4386 return resultobj;
4387 fail:
4388 return NULL;
4389 }
4390
4391
4392 static PyObject *_wrap_BColor_isAllocated(PyObject *self, PyObject *args) {
4393 PyObject *resultobj;
4394 otk::BColor *arg1 = (otk::BColor *) 0 ;
4395 bool result;
4396 PyObject * obj0 = 0 ;
4397
4398 if(!PyArg_ParseTuple(args,(char *)"O:BColor_isAllocated",&obj0)) goto fail;
4399 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4400 result = (bool)((otk::BColor const *)arg1)->isAllocated();
4401
4402 resultobj = PyInt_FromLong((long)result);
4403 return resultobj;
4404 fail:
4405 return NULL;
4406 }
4407
4408
4409 static PyObject *_wrap_BColor_isValid(PyObject *self, PyObject *args) {
4410 PyObject *resultobj;
4411 otk::BColor *arg1 = (otk::BColor *) 0 ;
4412 bool result;
4413 PyObject * obj0 = 0 ;
4414
4415 if(!PyArg_ParseTuple(args,(char *)"O:BColor_isValid",&obj0)) goto fail;
4416 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4417 result = (bool)((otk::BColor const *)arg1)->isValid();
4418
4419 resultobj = PyInt_FromLong((long)result);
4420 return resultobj;
4421 fail:
4422 return NULL;
4423 }
4424
4425
4426 static PyObject *_wrap_BColor_pixel(PyObject *self, PyObject *args) {
4427 PyObject *resultobj;
4428 otk::BColor *arg1 = (otk::BColor *) 0 ;
4429 unsigned long result;
4430 PyObject * obj0 = 0 ;
4431
4432 if(!PyArg_ParseTuple(args,(char *)"O:BColor_pixel",&obj0)) goto fail;
4433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4434 result = (unsigned long)((otk::BColor const *)arg1)->pixel();
4435
4436 resultobj = PyInt_FromLong((long)result);
4437 return resultobj;
4438 fail:
4439 return NULL;
4440 }
4441
4442
4443 static PyObject *_wrap_BColor_equals(PyObject *self, PyObject *args) {
4444 PyObject *resultobj;
4445 otk::BColor *arg1 = (otk::BColor *) 0 ;
4446 otk::BColor *arg2 = 0 ;
4447 bool result;
4448 PyObject * obj0 = 0 ;
4449 PyObject * obj1 = 0 ;
4450
4451 if(!PyArg_ParseTuple(args,(char *)"OO:BColor_equals",&obj0,&obj1)) goto fail;
4452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4453 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4454 if (arg2 == NULL) {
4455 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4456 }
4457 result = (bool)((otk::BColor const *)arg1)->operator ==((otk::BColor const &)*arg2);
4458
4459 resultobj = PyInt_FromLong((long)result);
4460 return resultobj;
4461 fail:
4462 return NULL;
4463 }
4464
4465
4466 static PyObject *_wrap_BColor_cleanupColorCache(PyObject *self, PyObject *args) {
4467 PyObject *resultobj;
4468
4469 if(!PyArg_ParseTuple(args,(char *)":BColor_cleanupColorCache")) goto fail;
4470 otk::BColor::cleanupColorCache();
4471
4472 Py_INCREF(Py_None); resultobj = Py_None;
4473 return resultobj;
4474 fail:
4475 return NULL;
4476 }
4477
4478
4479 static PyObject * BColor_swigregister(PyObject *self, PyObject *args) {
4480 PyObject *obj;
4481 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4482 SWIG_TypeClientData(SWIGTYPE_p_otk__BColor, obj);
4483 Py_INCREF(obj);
4484 return Py_BuildValue((char *)"");
4485 }
4486 static PyObject *_wrap_new_Configuration__SWIG_0(PyObject *self, PyObject *args) {
4487 PyObject *resultobj;
4488 std::string *arg1 = 0 ;
4489 bool arg2 = (bool) True ;
4490 otk::Configuration *result;
4491 std::string temp1 ;
4492 PyObject * obj0 = 0 ;
4493 PyObject * obj1 = 0 ;
4494
4495 if(!PyArg_ParseTuple(args,(char *)"O|O:new_Configuration",&obj0,&obj1)) goto fail;
4496 {
4497 if (PyString_Check(obj0)) {
4498 temp1 = std::string(PyString_AsString(obj0));
4499 arg1 = &temp1;
4500 }else {
4501 SWIG_exception(SWIG_TypeError, "string expected");
4502 }
4503 }
4504 if (obj1) {
4505 arg2 = (bool) PyInt_AsLong(obj1);
4506 if (PyErr_Occurred()) SWIG_fail;
4507 }
4508 result = (otk::Configuration *)new otk::Configuration((std::string const &)*arg1,arg2);
4509
4510 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Configuration, 1);
4511 return resultobj;
4512 fail:
4513 return NULL;
4514 }
4515
4516
4517 static PyObject *_wrap_new_Configuration__SWIG_1(PyObject *self, PyObject *args) {
4518 PyObject *resultobj;
4519 bool arg1 = (bool) True ;
4520 otk::Configuration *result;
4521 PyObject * obj0 = 0 ;
4522
4523 if(!PyArg_ParseTuple(args,(char *)"|O:new_Configuration",&obj0)) goto fail;
4524 if (obj0) {
4525 arg1 = (bool) PyInt_AsLong(obj0);
4526 if (PyErr_Occurred()) SWIG_fail;
4527 }
4528 result = (otk::Configuration *)new otk::Configuration(arg1);
4529
4530 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Configuration, 1);
4531 return resultobj;
4532 fail:
4533 return NULL;
4534 }
4535
4536
4537 static PyObject *_wrap_new_Configuration(PyObject *self, PyObject *args) {
4538 int argc;
4539 PyObject *argv[3];
4540 int ii;
4541
4542 argc = PyObject_Length(args);
4543 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
4544 argv[ii] = PyTuple_GetItem(args,ii);
4545 }
4546 if ((argc >= 0) && (argc <= 1)) {
4547 int _v;
4548 if (argc <= 0) {
4549 return _wrap_new_Configuration__SWIG_1(self,args);
4550 }
4551 {
4552 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
4553 }
4554 if (_v) {
4555 return _wrap_new_Configuration__SWIG_1(self,args);
4556 }
4557 }
4558 if ((argc >= 1) && (argc <= 2)) {
4559 int _v;
4560 {
4561 _v = PyString_Check(argv[0]) ? 1 : 0;
4562 }
4563 if (_v) {
4564 if (argc <= 1) {
4565 return _wrap_new_Configuration__SWIG_0(self,args);
4566 }
4567 {
4568 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
4569 }
4570 if (_v) {
4571 return _wrap_new_Configuration__SWIG_0(self,args);
4572 }
4573 }
4574 }
4575
4576 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Configuration'");
4577 return NULL;
4578 }
4579
4580
4581 static PyObject *_wrap_delete_Configuration(PyObject *self, PyObject *args) {
4582 PyObject *resultobj;
4583 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4584 PyObject * obj0 = 0 ;
4585
4586 if(!PyArg_ParseTuple(args,(char *)"O:delete_Configuration",&obj0)) goto fail;
4587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4588 delete arg1;
4589
4590 Py_INCREF(Py_None); resultobj = Py_None;
4591 return resultobj;
4592 fail:
4593 return NULL;
4594 }
4595
4596
4597 static PyObject *_wrap_Configuration_file(PyObject *self, PyObject *args) {
4598 PyObject *resultobj;
4599 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4600 std::string *result;
4601 PyObject * obj0 = 0 ;
4602
4603 if(!PyArg_ParseTuple(args,(char *)"O:Configuration_file",&obj0)) goto fail;
4604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4605 {
4606 std::string const &_result_ref = ((otk::Configuration const *)arg1)->file();
4607 result = (std::string *) &_result_ref;
4608 }
4609
4610 {
4611 resultobj = PyString_FromString(result->c_str());
4612 }
4613 return resultobj;
4614 fail:
4615 return NULL;
4616 }
4617
4618
4619 static PyObject *_wrap_Configuration_setFile(PyObject *self, PyObject *args) {
4620 PyObject *resultobj;
4621 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4622 std::string *arg2 = 0 ;
4623 std::string temp2 ;
4624 PyObject * obj0 = 0 ;
4625 PyObject * obj1 = 0 ;
4626
4627 if(!PyArg_ParseTuple(args,(char *)"OO:Configuration_setFile",&obj0,&obj1)) goto fail;
4628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4629 {
4630 if (PyString_Check(obj1)) {
4631 temp2 = std::string(PyString_AsString(obj1));
4632 arg2 = &temp2;
4633 }else {
4634 SWIG_exception(SWIG_TypeError, "string expected");
4635 }
4636 }
4637 (arg1)->setFile((std::string const &)*arg2);
4638
4639 Py_INCREF(Py_None); resultobj = Py_None;
4640 return resultobj;
4641 fail:
4642 return NULL;
4643 }
4644
4645
4646 static PyObject *_wrap_Configuration_autoSave(PyObject *self, PyObject *args) {
4647 PyObject *resultobj;
4648 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4649 bool result;
4650 PyObject * obj0 = 0 ;
4651
4652 if(!PyArg_ParseTuple(args,(char *)"O:Configuration_autoSave",&obj0)) goto fail;
4653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4654 result = (bool)((otk::Configuration const *)arg1)->autoSave();
4655
4656 resultobj = PyInt_FromLong((long)result);
4657 return resultobj;
4658 fail:
4659 return NULL;
4660 }
4661
4662
4663 static PyObject *_wrap_Configuration_setAutoSave(PyObject *self, PyObject *args) {
4664 PyObject *resultobj;
4665 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4666 bool arg2 ;
4667 PyObject * obj0 = 0 ;
4668 PyObject * obj1 = 0 ;
4669
4670 if(!PyArg_ParseTuple(args,(char *)"OO:Configuration_setAutoSave",&obj0,&obj1)) goto fail;
4671 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4672 arg2 = (bool) PyInt_AsLong(obj1);
4673 if (PyErr_Occurred()) SWIG_fail;
4674 (arg1)->setAutoSave(arg2);
4675
4676 Py_INCREF(Py_None); resultobj = Py_None;
4677 return resultobj;
4678 fail:
4679 return NULL;
4680 }
4681
4682
4683 static PyObject *_wrap_Configuration_isModified(PyObject *self, PyObject *args) {
4684 PyObject *resultobj;
4685 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4686 bool result;
4687 PyObject * obj0 = 0 ;
4688
4689 if(!PyArg_ParseTuple(args,(char *)"O:Configuration_isModified",&obj0)) goto fail;
4690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4691 result = (bool)((otk::Configuration const *)arg1)->isModified();
4692
4693 resultobj = PyInt_FromLong((long)result);
4694 return resultobj;
4695 fail:
4696 return NULL;
4697 }
4698
4699
4700 static PyObject *_wrap_Configuration_save(PyObject *self, PyObject *args) {
4701 PyObject *resultobj;
4702 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4703 PyObject * obj0 = 0 ;
4704
4705 if(!PyArg_ParseTuple(args,(char *)"O:Configuration_save",&obj0)) goto fail;
4706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4707 (arg1)->save();
4708
4709 Py_INCREF(Py_None); resultobj = Py_None;
4710 return resultobj;
4711 fail:
4712 return NULL;
4713 }
4714
4715
4716 static PyObject *_wrap_Configuration_load(PyObject *self, PyObject *args) {
4717 PyObject *resultobj;
4718 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4719 bool result;
4720 PyObject * obj0 = 0 ;
4721
4722 if(!PyArg_ParseTuple(args,(char *)"O:Configuration_load",&obj0)) goto fail;
4723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4724 result = (bool)(arg1)->load();
4725
4726 resultobj = PyInt_FromLong((long)result);
4727 return resultobj;
4728 fail:
4729 return NULL;
4730 }
4731
4732
4733 static PyObject *_wrap_Configuration_merge(PyObject *self, PyObject *args) {
4734 PyObject *resultobj;
4735 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4736 std::string *arg2 = 0 ;
4737 bool arg3 = (bool) False ;
4738 bool result;
4739 std::string temp2 ;
4740 PyObject * obj0 = 0 ;
4741 PyObject * obj1 = 0 ;
4742 PyObject * obj2 = 0 ;
4743
4744 if(!PyArg_ParseTuple(args,(char *)"OO|O:Configuration_merge",&obj0,&obj1,&obj2)) goto fail;
4745 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4746 {
4747 if (PyString_Check(obj1)) {
4748 temp2 = std::string(PyString_AsString(obj1));
4749 arg2 = &temp2;
4750 }else {
4751 SWIG_exception(SWIG_TypeError, "string expected");
4752 }
4753 }
4754 if (obj2) {
4755 arg3 = (bool) PyInt_AsLong(obj2);
4756 if (PyErr_Occurred()) SWIG_fail;
4757 }
4758 result = (bool)(arg1)->merge((std::string const &)*arg2,arg3);
4759
4760 resultobj = PyInt_FromLong((long)result);
4761 return resultobj;
4762 fail:
4763 return NULL;
4764 }
4765
4766
4767 static PyObject *_wrap_Configuration_create(PyObject *self, PyObject *args) {
4768 PyObject *resultobj;
4769 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4770 PyObject * obj0 = 0 ;
4771
4772 if(!PyArg_ParseTuple(args,(char *)"O:Configuration_create",&obj0)) goto fail;
4773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4774 (arg1)->create();
4775
4776 Py_INCREF(Py_None); resultobj = Py_None;
4777 return resultobj;
4778 fail:
4779 return NULL;
4780 }
4781
4782
4783 static PyObject *_wrap_Configuration_setValue_bool(PyObject *self, PyObject *args) {
4784 PyObject *resultobj;
4785 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4786 std::string *arg2 = 0 ;
4787 bool arg3 ;
4788 std::string temp2 ;
4789 PyObject * obj0 = 0 ;
4790 PyObject * obj1 = 0 ;
4791 PyObject * obj2 = 0 ;
4792
4793 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_setValue_bool",&obj0,&obj1,&obj2)) goto fail;
4794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4795 {
4796 if (PyString_Check(obj1)) {
4797 temp2 = std::string(PyString_AsString(obj1));
4798 arg2 = &temp2;
4799 }else {
4800 SWIG_exception(SWIG_TypeError, "string expected");
4801 }
4802 }
4803 arg3 = (bool) PyInt_AsLong(obj2);
4804 if (PyErr_Occurred()) SWIG_fail;
4805 (arg1)->setValue((std::string const &)*arg2,arg3);
4806
4807 Py_INCREF(Py_None); resultobj = Py_None;
4808 return resultobj;
4809 fail:
4810 return NULL;
4811 }
4812
4813
4814 static PyObject *_wrap_Configuration_setValue(PyObject *self, PyObject *args) {
4815 PyObject *resultobj;
4816 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4817 std::string *arg2 = 0 ;
4818 int arg3 ;
4819 std::string temp2 ;
4820 PyObject * obj0 = 0 ;
4821 PyObject * obj1 = 0 ;
4822
4823 if(!PyArg_ParseTuple(args,(char *)"OOi:Configuration_setValue",&obj0,&obj1,&arg3)) goto fail;
4824 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4825 {
4826 if (PyString_Check(obj1)) {
4827 temp2 = std::string(PyString_AsString(obj1));
4828 arg2 = &temp2;
4829 }else {
4830 SWIG_exception(SWIG_TypeError, "string expected");
4831 }
4832 }
4833 (arg1)->setValue((std::string const &)*arg2,arg3);
4834
4835 Py_INCREF(Py_None); resultobj = Py_None;
4836 return resultobj;
4837 fail:
4838 return NULL;
4839 }
4840
4841
4842 static PyObject *_wrap_Configuration_setValue_unsigned(PyObject *self, PyObject *args) {
4843 PyObject *resultobj;
4844 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4845 std::string *arg2 = 0 ;
4846 unsigned int arg3 ;
4847 std::string temp2 ;
4848 PyObject * obj0 = 0 ;
4849 PyObject * obj1 = 0 ;
4850 PyObject * obj2 = 0 ;
4851
4852 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_setValue_unsigned",&obj0,&obj1,&obj2)) goto fail;
4853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4854 {
4855 if (PyString_Check(obj1)) {
4856 temp2 = std::string(PyString_AsString(obj1));
4857 arg2 = &temp2;
4858 }else {
4859 SWIG_exception(SWIG_TypeError, "string expected");
4860 }
4861 }
4862 arg3 = (unsigned int) PyInt_AsLong(obj2);
4863 if (PyErr_Occurred()) SWIG_fail;
4864 (arg1)->setValue((std::string const &)*arg2,arg3);
4865
4866 Py_INCREF(Py_None); resultobj = Py_None;
4867 return resultobj;
4868 fail:
4869 return NULL;
4870 }
4871
4872
4873 static PyObject *_wrap_Configuration_setValue_long(PyObject *self, PyObject *args) {
4874 PyObject *resultobj;
4875 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4876 std::string *arg2 = 0 ;
4877 long arg3 ;
4878 std::string temp2 ;
4879 PyObject * obj0 = 0 ;
4880 PyObject * obj1 = 0 ;
4881
4882 if(!PyArg_ParseTuple(args,(char *)"OOl:Configuration_setValue_long",&obj0,&obj1,&arg3)) goto fail;
4883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4884 {
4885 if (PyString_Check(obj1)) {
4886 temp2 = std::string(PyString_AsString(obj1));
4887 arg2 = &temp2;
4888 }else {
4889 SWIG_exception(SWIG_TypeError, "string expected");
4890 }
4891 }
4892 (arg1)->setValue((std::string const &)*arg2,arg3);
4893
4894 Py_INCREF(Py_None); resultobj = Py_None;
4895 return resultobj;
4896 fail:
4897 return NULL;
4898 }
4899
4900
4901 static PyObject *_wrap_Configuration_setValue_unsignedlong(PyObject *self, PyObject *args) {
4902 PyObject *resultobj;
4903 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4904 std::string *arg2 = 0 ;
4905 unsigned long arg3 ;
4906 std::string temp2 ;
4907 PyObject * obj0 = 0 ;
4908 PyObject * obj1 = 0 ;
4909 PyObject * obj2 = 0 ;
4910
4911 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_setValue_unsignedlong",&obj0,&obj1,&obj2)) goto fail;
4912 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4913 {
4914 if (PyString_Check(obj1)) {
4915 temp2 = std::string(PyString_AsString(obj1));
4916 arg2 = &temp2;
4917 }else {
4918 SWIG_exception(SWIG_TypeError, "string expected");
4919 }
4920 }
4921 arg3 = (unsigned long) PyInt_AsLong(obj2);
4922 if (PyErr_Occurred()) SWIG_fail;
4923 (arg1)->setValue((std::string const &)*arg2,arg3);
4924
4925 Py_INCREF(Py_None); resultobj = Py_None;
4926 return resultobj;
4927 fail:
4928 return NULL;
4929 }
4930
4931
4932 static PyObject *_wrap_Configuration_setValue_string(PyObject *self, PyObject *args) {
4933 PyObject *resultobj;
4934 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4935 std::string *arg2 = 0 ;
4936 std::string *arg3 = 0 ;
4937 std::string temp2 ;
4938 std::string temp3 ;
4939 PyObject * obj0 = 0 ;
4940 PyObject * obj1 = 0 ;
4941 PyObject * obj2 = 0 ;
4942
4943 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_setValue_string",&obj0,&obj1,&obj2)) goto fail;
4944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4945 {
4946 if (PyString_Check(obj1)) {
4947 temp2 = std::string(PyString_AsString(obj1));
4948 arg2 = &temp2;
4949 }else {
4950 SWIG_exception(SWIG_TypeError, "string expected");
4951 }
4952 }
4953 {
4954 if (PyString_Check(obj2)) {
4955 temp3 = std::string(PyString_AsString(obj2));
4956 arg3 = &temp3;
4957 }else {
4958 SWIG_exception(SWIG_TypeError, "string expected");
4959 }
4960 }
4961 (arg1)->setValue((std::string const &)*arg2,(std::string const &)*arg3);
4962
4963 Py_INCREF(Py_None); resultobj = Py_None;
4964 return resultobj;
4965 fail:
4966 return NULL;
4967 }
4968
4969
4970 static PyObject *_wrap_Configuration_setValue_charptr(PyObject *self, PyObject *args) {
4971 PyObject *resultobj;
4972 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4973 std::string *arg2 = 0 ;
4974 char *arg3 ;
4975 std::string temp2 ;
4976 PyObject * obj0 = 0 ;
4977 PyObject * obj1 = 0 ;
4978
4979 if(!PyArg_ParseTuple(args,(char *)"OOs:Configuration_setValue_charptr",&obj0,&obj1,&arg3)) goto fail;
4980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4981 {
4982 if (PyString_Check(obj1)) {
4983 temp2 = std::string(PyString_AsString(obj1));
4984 arg2 = &temp2;
4985 }else {
4986 SWIG_exception(SWIG_TypeError, "string expected");
4987 }
4988 }
4989 (arg1)->setValue((std::string const &)*arg2,(char const *)arg3);
4990
4991 Py_INCREF(Py_None); resultobj = Py_None;
4992 return resultobj;
4993 fail:
4994 return NULL;
4995 }
4996
4997
4998 static PyObject *_wrap_Configuration_getValue__SWIG_0(PyObject *self, PyObject *args) {
4999 PyObject *resultobj;
5000 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
5001 std::string *arg2 = 0 ;
5002 bool *arg3 = 0 ;
5003 bool result;
5004 std::string temp2 ;
5005 PyObject * obj0 = 0 ;
5006 PyObject * obj1 = 0 ;
5007 PyObject * obj2 = 0 ;
5008
5009 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
5010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5011 {
5012 if (PyString_Check(obj1)) {
5013 temp2 = std::string(PyString_AsString(obj1));
5014 arg2 = &temp2;
5015 }else {
5016 SWIG_exception(SWIG_TypeError, "string expected");
5017 }
5018 }
5019 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_bool,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5020 if (arg3 == NULL) {
5021 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5022 }
5023 result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
5024
5025 resultobj = PyInt_FromLong((long)result);
5026 return resultobj;
5027 fail:
5028 return NULL;
5029 }
5030
5031
5032 static PyObject *_wrap_Configuration_getValue__SWIG_1(PyObject *self, PyObject *args) {
5033 PyObject *resultobj;
5034 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
5035 std::string *arg2 = 0 ;
5036 int *arg3 = 0 ;
5037 bool result;
5038 std::string temp2 ;
5039 PyObject * obj0 = 0 ;
5040 PyObject * obj1 = 0 ;
5041 PyObject * obj2 = 0 ;
5042
5043 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
5044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5045 {
5046 if (PyString_Check(obj1)) {
5047 temp2 = std::string(PyString_AsString(obj1));
5048 arg2 = &temp2;
5049 }else {
5050 SWIG_exception(SWIG_TypeError, "string expected");
5051 }
5052 }
5053 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5054 if (arg3 == NULL) {
5055 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5056 }
5057 result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
5058
5059 resultobj = PyInt_FromLong((long)result);
5060 return resultobj;
5061 fail:
5062 return NULL;
5063 }
5064
5065
5066 static PyObject *_wrap_Configuration_getValue__SWIG_2(PyObject *self, PyObject *args) {
5067 PyObject *resultobj;
5068 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
5069 std::string *arg2 = 0 ;
5070 unsigned int *arg3 = 0 ;
5071 bool result;
5072 std::string temp2 ;
5073 PyObject * obj0 = 0 ;
5074 PyObject * obj1 = 0 ;
5075 PyObject * obj2 = 0 ;
5076
5077 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
5078 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5079 {
5080 if (PyString_Check(obj1)) {
5081 temp2 = std::string(PyString_AsString(obj1));
5082 arg2 = &temp2;
5083 }else {
5084 SWIG_exception(SWIG_TypeError, "string expected");
5085 }
5086 }
5087 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5088 if (arg3 == NULL) {
5089 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5090 }
5091 result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
5092
5093 resultobj = PyInt_FromLong((long)result);
5094 return resultobj;
5095 fail:
5096 return NULL;
5097 }
5098
5099
5100 static PyObject *_wrap_Configuration_getValue__SWIG_3(PyObject *self, PyObject *args) {
5101 PyObject *resultobj;
5102 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
5103 std::string *arg2 = 0 ;
5104 long *arg3 = 0 ;
5105 bool result;
5106 std::string temp2 ;
5107 PyObject * obj0 = 0 ;
5108 PyObject * obj1 = 0 ;
5109 PyObject * obj2 = 0 ;
5110
5111 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
5112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5113 {
5114 if (PyString_Check(obj1)) {
5115 temp2 = std::string(PyString_AsString(obj1));
5116 arg2 = &temp2;
5117 }else {
5118 SWIG_exception(SWIG_TypeError, "string expected");
5119 }
5120 }
5121 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5122 if (arg3 == NULL) {
5123 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5124 }
5125 result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
5126
5127 resultobj = PyInt_FromLong((long)result);
5128 return resultobj;
5129 fail:
5130 return NULL;
5131 }
5132
5133
5134 static PyObject *_wrap_Configuration_getValue__SWIG_4(PyObject *self, PyObject *args) {
5135 PyObject *resultobj;
5136 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
5137 std::string *arg2 = 0 ;
5138 unsigned long *arg3 = 0 ;
5139 bool result;
5140 std::string temp2 ;
5141 PyObject * obj0 = 0 ;
5142 PyObject * obj1 = 0 ;
5143 PyObject * obj2 = 0 ;
5144
5145 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
5146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5147 {
5148 if (PyString_Check(obj1)) {
5149 temp2 = std::string(PyString_AsString(obj1));
5150 arg2 = &temp2;
5151 }else {
5152 SWIG_exception(SWIG_TypeError, "string expected");
5153 }
5154 }
5155 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5156 if (arg3 == NULL) {
5157 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5158 }
5159 result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
5160
5161 resultobj = PyInt_FromLong((long)result);
5162 return resultobj;
5163 fail:
5164 return NULL;
5165 }
5166
5167
5168 static PyObject *_wrap_Configuration_getValue__SWIG_5(PyObject *self, PyObject *args) {
5169 PyObject *resultobj;
5170 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
5171 std::string *arg2 = 0 ;
5172 std::string *arg3 = 0 ;
5173 bool result;
5174 std::string temp2 ;
5175 PyObject * obj0 = 0 ;
5176 PyObject * obj1 = 0 ;
5177 PyObject * obj2 = 0 ;
5178
5179 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
5180 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5181 {
5182 if (PyString_Check(obj1)) {
5183 temp2 = std::string(PyString_AsString(obj1));
5184 arg2 = &temp2;
5185 }else {
5186 SWIG_exception(SWIG_TypeError, "string expected");
5187 }
5188 }
5189 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_std__string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5190 if (arg3 == NULL) {
5191 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5192 }
5193 result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
5194
5195 resultobj = PyInt_FromLong((long)result);
5196 return resultobj;
5197 fail:
5198 return NULL;
5199 }
5200
5201
5202 static PyObject *_wrap_Configuration_getValue(PyObject *self, PyObject *args) {
5203 int argc;
5204 PyObject *argv[4];
5205 int ii;
5206
5207 argc = PyObject_Length(args);
5208 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
5209 argv[ii] = PyTuple_GetItem(args,ii);
5210 }
5211 if (argc == 3) {
5212 int _v;
5213 {
5214 void *ptr;
5215 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
5216 _v = 0;
5217 PyErr_Clear();
5218 }else {
5219 _v = 1;
5220 }
5221 }
5222 if (_v) {
5223 {
5224 _v = PyString_Check(argv[1]) ? 1 : 0;
5225 }
5226 if (_v) {
5227 {
5228 void *ptr;
5229 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_bool, 0) == -1) {
5230 _v = 0;
5231 PyErr_Clear();
5232 }else {
5233 _v = 1;
5234 }
5235 }
5236 if (_v) {
5237 return _wrap_Configuration_getValue__SWIG_0(self,args);
5238 }
5239 }
5240 }
5241 }
5242 if (argc == 3) {
5243 int _v;
5244 {
5245 void *ptr;
5246 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
5247 _v = 0;
5248 PyErr_Clear();
5249 }else {
5250 _v = 1;
5251 }
5252 }
5253 if (_v) {
5254 {
5255 _v = PyString_Check(argv[1]) ? 1 : 0;
5256 }
5257 if (_v) {
5258 {
5259 void *ptr;
5260 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_int, 0) == -1) {
5261 _v = 0;
5262 PyErr_Clear();
5263 }else {
5264 _v = 1;
5265 }
5266 }
5267 if (_v) {
5268 return _wrap_Configuration_getValue__SWIG_1(self,args);
5269 }
5270 }
5271 }
5272 }
5273 if (argc == 3) {
5274 int _v;
5275 {
5276 void *ptr;
5277 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
5278 _v = 0;
5279 PyErr_Clear();
5280 }else {
5281 _v = 1;
5282 }
5283 }
5284 if (_v) {
5285 {
5286 _v = PyString_Check(argv[1]) ? 1 : 0;
5287 }
5288 if (_v) {
5289 {
5290 void *ptr;
5291 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_unsigned_int, 0) == -1) {
5292 _v = 0;
5293 PyErr_Clear();
5294 }else {
5295 _v = 1;
5296 }
5297 }
5298 if (_v) {
5299 return _wrap_Configuration_getValue__SWIG_2(self,args);
5300 }
5301 }
5302 }
5303 }
5304 if (argc == 3) {
5305 int _v;
5306 {
5307 void *ptr;
5308 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
5309 _v = 0;
5310 PyErr_Clear();
5311 }else {
5312 _v = 1;
5313 }
5314 }
5315 if (_v) {
5316 {
5317 _v = PyString_Check(argv[1]) ? 1 : 0;
5318 }
5319 if (_v) {
5320 {
5321 void *ptr;
5322 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_long, 0) == -1) {
5323 _v = 0;
5324 PyErr_Clear();
5325 }else {
5326 _v = 1;
5327 }
5328 }
5329 if (_v) {
5330 return _wrap_Configuration_getValue__SWIG_3(self,args);
5331 }
5332 }
5333 }
5334 }
5335 if (argc == 3) {
5336 int _v;
5337 {
5338 void *ptr;
5339 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
5340 _v = 0;
5341 PyErr_Clear();
5342 }else {
5343 _v = 1;
5344 }
5345 }
5346 if (_v) {
5347 {
5348 _v = PyString_Check(argv[1]) ? 1 : 0;
5349 }
5350 if (_v) {
5351 {
5352 void *ptr;
5353 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
5354 _v = 0;
5355 PyErr_Clear();
5356 }else {
5357 _v = 1;
5358 }
5359 }
5360 if (_v) {
5361 return _wrap_Configuration_getValue__SWIG_4(self,args);
5362 }
5363 }
5364 }
5365 }
5366 if (argc == 3) {
5367 int _v;
5368 {
5369 void *ptr;
5370 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
5371 _v = 0;
5372 PyErr_Clear();
5373 }else {
5374 _v = 1;
5375 }
5376 }
5377 if (_v) {
5378 {
5379 _v = PyString_Check(argv[1]) ? 1 : 0;
5380 }
5381 if (_v) {
5382 {
5383 void *ptr;
5384 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_std__string, 0) == -1) {
5385 _v = 0;
5386 PyErr_Clear();
5387 }else {
5388 _v = 1;
5389 }
5390 }
5391 if (_v) {
5392 return _wrap_Configuration_getValue__SWIG_5(self,args);
5393 }
5394 }
5395 }
5396 }
5397
5398 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Configuration_getValue'");
5399 return NULL;
5400 }
5401
5402
5403 static PyObject * Configuration_swigregister(PyObject *self, PyObject *args) {
5404 PyObject *obj;
5405 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5406 SWIG_TypeClientData(SWIGTYPE_p_otk__Configuration, obj);
5407 Py_INCREF(obj);
5408 return Py_BuildValue((char *)"");
5409 }
5410 static PyObject *_wrap_OBDisplay_initialize(PyObject *self, PyObject *args) {
5411 PyObject *resultobj;
5412 char *arg1 ;
5413
5414 if(!PyArg_ParseTuple(args,(char *)"s:OBDisplay_initialize",&arg1)) goto fail;
5415 otk::OBDisplay::initialize(arg1);
5416
5417 Py_INCREF(Py_None); resultobj = Py_None;
5418 return resultobj;
5419 fail:
5420 return NULL;
5421 }
5422
5423
5424 static PyObject *_wrap_OBDisplay_destroy(PyObject *self, PyObject *args) {
5425 PyObject *resultobj;
5426
5427 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_destroy")) goto fail;
5428 otk::OBDisplay::destroy();
5429
5430 Py_INCREF(Py_None); resultobj = Py_None;
5431 return resultobj;
5432 fail:
5433 return NULL;
5434 }
5435
5436
5437 static PyObject *_wrap_OBDisplay_gcCache(PyObject *self, PyObject *args) {
5438 PyObject *resultobj;
5439 otk::BGCCache *result;
5440
5441 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_gcCache")) goto fail;
5442 result = (otk::BGCCache *)otk::OBDisplay::gcCache();
5443
5444 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BGCCache, 0);
5445 return resultobj;
5446 fail:
5447 return NULL;
5448 }
5449
5450
5451 static PyObject *_wrap_OBDisplay_screenInfo(PyObject *self, PyObject *args) {
5452 PyObject *resultobj;
5453 int arg1 ;
5454 otk::ScreenInfo *result;
5455
5456 if(!PyArg_ParseTuple(args,(char *)"i:OBDisplay_screenInfo",&arg1)) goto fail;
5457 result = (otk::ScreenInfo *)otk::OBDisplay::screenInfo(arg1);
5458
5459 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0);
5460 return resultobj;
5461 fail:
5462 return NULL;
5463 }
5464
5465
5466 static PyObject *_wrap_OBDisplay_findScreen(PyObject *self, PyObject *args) {
5467 PyObject *resultobj;
5468 Window arg1 ;
5469 otk::ScreenInfo *result;
5470 PyObject * obj0 = 0 ;
5471
5472 if(!PyArg_ParseTuple(args,(char *)"O:OBDisplay_findScreen",&obj0)) goto fail;
5473 arg1 = (Window) PyInt_AsLong(obj0);
5474 if (PyErr_Occurred()) SWIG_fail;
5475 result = (otk::ScreenInfo *)otk::OBDisplay::findScreen(arg1);
5476
5477 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0);
5478 return resultobj;
5479 fail:
5480 return NULL;
5481 }
5482
5483
5484 static PyObject *_wrap_OBDisplay_xkb(PyObject *self, PyObject *args) {
5485 PyObject *resultobj;
5486 bool result;
5487
5488 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_xkb")) goto fail;
5489 result = (bool)otk::OBDisplay::xkb();
5490
5491 resultobj = PyInt_FromLong((long)result);
5492 return resultobj;
5493 fail:
5494 return NULL;
5495 }
5496
5497
5498 static PyObject *_wrap_OBDisplay_xkbEventBase(PyObject *self, PyObject *args) {
5499 PyObject *resultobj;
5500 int result;
5501
5502 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_xkbEventBase")) goto fail;
5503 result = (int)otk::OBDisplay::xkbEventBase();
5504
5505 resultobj = PyInt_FromLong((long)result);
5506 return resultobj;
5507 fail:
5508 return NULL;
5509 }
5510
5511
5512 static PyObject *_wrap_OBDisplay_shape(PyObject *self, PyObject *args) {
5513 PyObject *resultobj;
5514 bool result;
5515
5516 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_shape")) goto fail;
5517 result = (bool)otk::OBDisplay::shape();
5518
5519 resultobj = PyInt_FromLong((long)result);
5520 return resultobj;
5521 fail:
5522 return NULL;
5523 }
5524
5525
5526 static PyObject *_wrap_OBDisplay_shapeEventBase(PyObject *self, PyObject *args) {
5527 PyObject *resultobj;
5528 int result;
5529
5530 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_shapeEventBase")) goto fail;
5531 result = (int)otk::OBDisplay::shapeEventBase();
5532
5533 resultobj = PyInt_FromLong((long)result);
5534 return resultobj;
5535 fail:
5536 return NULL;
5537 }
5538
5539
5540 static PyObject *_wrap_OBDisplay_xinerama(PyObject *self, PyObject *args) {
5541 PyObject *resultobj;
5542 bool result;
5543
5544 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_xinerama")) goto fail;
5545 result = (bool)otk::OBDisplay::xinerama();
5546
5547 resultobj = PyInt_FromLong((long)result);
5548 return resultobj;
5549 fail:
5550 return NULL;
5551 }
5552
5553
5554 static PyObject *_wrap_OBDisplay_numLockMask(PyObject *self, PyObject *args) {
5555 PyObject *resultobj;
5556 unsigned int result;
5557
5558 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_numLockMask")) goto fail;
5559 result = (unsigned int)otk::OBDisplay::numLockMask();
5560
5561 resultobj = PyInt_FromLong((long)result);
5562 return resultobj;
5563 fail:
5564 return NULL;
5565 }
5566
5567
5568 static PyObject *_wrap_OBDisplay_scrollLockMask(PyObject *self, PyObject *args) {
5569 PyObject *resultobj;
5570 unsigned int result;
5571
5572 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_scrollLockMask")) goto fail;
5573 result = (unsigned int)otk::OBDisplay::scrollLockMask();
5574
5575 resultobj = PyInt_FromLong((long)result);
5576 return resultobj;
5577 fail:
5578 return NULL;
5579 }
5580
5581
5582 static PyObject *_wrap_OBDisplay_grab(PyObject *self, PyObject *args) {
5583 PyObject *resultobj;
5584
5585 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_grab")) goto fail;
5586 otk::OBDisplay::grab();
5587
5588 Py_INCREF(Py_None); resultobj = Py_None;
5589 return resultobj;
5590 fail:
5591 return NULL;
5592 }
5593
5594
5595 static PyObject *_wrap_OBDisplay_ungrab(PyObject *self, PyObject *args) {
5596 PyObject *resultobj;
5597
5598 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_ungrab")) goto fail;
5599 otk::OBDisplay::ungrab();
5600
5601 Py_INCREF(Py_None); resultobj = Py_None;
5602 return resultobj;
5603 fail:
5604 return NULL;
5605 }
5606
5607
5608 static PyObject *_wrap_OBDisplay_grabButton(PyObject *self, PyObject *args) {
5609 PyObject *resultobj;
5610 unsigned int arg1 ;
5611 unsigned int arg2 ;
5612 Window arg3 ;
5613 bool arg4 ;
5614 unsigned int arg5 ;
5615 int arg6 ;
5616 int arg7 ;
5617 Window arg8 ;
5618 Cursor arg9 ;
5619 bool arg10 ;
5620 PyObject * obj0 = 0 ;
5621 PyObject * obj1 = 0 ;
5622 PyObject * obj2 = 0 ;
5623 PyObject * obj3 = 0 ;
5624 PyObject * obj4 = 0 ;
5625 PyObject * obj7 = 0 ;
5626 PyObject * obj8 = 0 ;
5627 PyObject * obj9 = 0 ;
5628
5629 if(!PyArg_ParseTuple(args,(char *)"OOOOOiiOOO:OBDisplay_grabButton",&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7,&obj7,&obj8,&obj9)) goto fail;
5630 arg1 = (unsigned int) PyInt_AsLong(obj0);
5631 if (PyErr_Occurred()) SWIG_fail;
5632 arg2 = (unsigned int) PyInt_AsLong(obj1);
5633 if (PyErr_Occurred()) SWIG_fail;
5634 arg3 = (Window) PyInt_AsLong(obj2);
5635 if (PyErr_Occurred()) SWIG_fail;
5636 arg4 = (bool) PyInt_AsLong(obj3);
5637 if (PyErr_Occurred()) SWIG_fail;
5638 arg5 = (unsigned int) PyInt_AsLong(obj4);
5639 if (PyErr_Occurred()) SWIG_fail;
5640 arg8 = (Window) PyInt_AsLong(obj7);
5641 if (PyErr_Occurred()) SWIG_fail;
5642 arg9 = (Cursor) PyInt_AsLong(obj8);
5643 if (PyErr_Occurred()) SWIG_fail;
5644 arg10 = (bool) PyInt_AsLong(obj9);
5645 if (PyErr_Occurred()) SWIG_fail;
5646 otk::OBDisplay::grabButton(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
5647
5648 Py_INCREF(Py_None); resultobj = Py_None;
5649 return resultobj;
5650 fail:
5651 return NULL;
5652 }
5653
5654
5655 static PyObject *_wrap_OBDisplay_ungrabButton(PyObject *self, PyObject *args) {
5656 PyObject *resultobj;
5657 unsigned int arg1 ;
5658 unsigned int arg2 ;
5659 Window arg3 ;
5660 PyObject * obj0 = 0 ;
5661 PyObject * obj1 = 0 ;
5662 PyObject * obj2 = 0 ;
5663
5664 if(!PyArg_ParseTuple(args,(char *)"OOO:OBDisplay_ungrabButton",&obj0,&obj1,&obj2)) goto fail;
5665 arg1 = (unsigned int) PyInt_AsLong(obj0);
5666 if (PyErr_Occurred()) SWIG_fail;
5667 arg2 = (unsigned int) PyInt_AsLong(obj1);
5668 if (PyErr_Occurred()) SWIG_fail;
5669 arg3 = (Window) PyInt_AsLong(obj2);
5670 if (PyErr_Occurred()) SWIG_fail;
5671 otk::OBDisplay::ungrabButton(arg1,arg2,arg3);
5672
5673 Py_INCREF(Py_None); resultobj = Py_None;
5674 return resultobj;
5675 fail:
5676 return NULL;
5677 }
5678
5679
5680 static PyObject *_wrap_OBDisplay_grabKey(PyObject *self, PyObject *args) {
5681 PyObject *resultobj;
5682 unsigned int arg1 ;
5683 unsigned int arg2 ;
5684 Window arg3 ;
5685 bool arg4 ;
5686 int arg5 ;
5687 int arg6 ;
5688 bool arg7 ;
5689 PyObject * obj0 = 0 ;
5690 PyObject * obj1 = 0 ;
5691 PyObject * obj2 = 0 ;
5692 PyObject * obj3 = 0 ;
5693 PyObject * obj6 = 0 ;
5694
5695 if(!PyArg_ParseTuple(args,(char *)"OOOOiiO:OBDisplay_grabKey",&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail;
5696 arg1 = (unsigned int) PyInt_AsLong(obj0);
5697 if (PyErr_Occurred()) SWIG_fail;
5698 arg2 = (unsigned int) PyInt_AsLong(obj1);
5699 if (PyErr_Occurred()) SWIG_fail;
5700 arg3 = (Window) PyInt_AsLong(obj2);
5701 if (PyErr_Occurred()) SWIG_fail;
5702 arg4 = (bool) PyInt_AsLong(obj3);
5703 if (PyErr_Occurred()) SWIG_fail;
5704 arg7 = (bool) PyInt_AsLong(obj6);
5705 if (PyErr_Occurred()) SWIG_fail;
5706 otk::OBDisplay::grabKey(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
5707
5708 Py_INCREF(Py_None); resultobj = Py_None;
5709 return resultobj;
5710 fail:
5711 return NULL;
5712 }
5713
5714
5715 static PyObject *_wrap_OBDisplay_ungrabKey(PyObject *self, PyObject *args) {
5716 PyObject *resultobj;
5717 unsigned int arg1 ;
5718 unsigned int arg2 ;
5719 Window arg3 ;
5720 PyObject * obj0 = 0 ;
5721 PyObject * obj1 = 0 ;
5722 PyObject * obj2 = 0 ;
5723
5724 if(!PyArg_ParseTuple(args,(char *)"OOO:OBDisplay_ungrabKey",&obj0,&obj1,&obj2)) goto fail;
5725 arg1 = (unsigned int) PyInt_AsLong(obj0);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 arg2 = (unsigned int) PyInt_AsLong(obj1);
5728 if (PyErr_Occurred()) SWIG_fail;
5729 arg3 = (Window) PyInt_AsLong(obj2);
5730 if (PyErr_Occurred()) SWIG_fail;
5731 otk::OBDisplay::ungrabKey(arg1,arg2,arg3);
5732
5733 Py_INCREF(Py_None); resultobj = Py_None;
5734 return resultobj;
5735 fail:
5736 return NULL;
5737 }
5738
5739
5740 static PyObject *_wrap_delete_OBDisplay(PyObject *self, PyObject *args) {
5741 PyObject *resultobj;
5742 otk::OBDisplay *arg1 = (otk::OBDisplay *) 0 ;
5743 PyObject * obj0 = 0 ;
5744
5745 if(!PyArg_ParseTuple(args,(char *)"O:delete_OBDisplay",&obj0)) goto fail;
5746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBDisplay,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5747 delete arg1;
5748
5749 Py_INCREF(Py_None); resultobj = Py_None;
5750 return resultobj;
5751 fail:
5752 return NULL;
5753 }
5754
5755
5756 static PyObject * OBDisplay_swigregister(PyObject *self, PyObject *args) {
5757 PyObject *obj;
5758 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5759 SWIG_TypeClientData(SWIGTYPE_p_otk__OBDisplay, obj);
5760 Py_INCREF(obj);
5761 return Py_BuildValue((char *)"");
5762 }
5763 static PyObject *_wrap_BFont_fallbackFont(PyObject *self, PyObject *args) {
5764 PyObject *resultobj;
5765 std::string result;
5766
5767 if(!PyArg_ParseTuple(args,(char *)":BFont_fallbackFont")) goto fail;
5768 result = otk::BFont::fallbackFont();
5769
5770 {
5771 resultobj = PyString_FromString((&result)->c_str());
5772 }
5773 return resultobj;
5774 fail:
5775 return NULL;
5776 }
5777
5778
5779 static PyObject *_wrap_BFont_setFallbackFont(PyObject *self, PyObject *args) {
5780 PyObject *resultobj;
5781 std::string *arg1 = 0 ;
5782 std::string temp1 ;
5783 PyObject * obj0 = 0 ;
5784
5785 if(!PyArg_ParseTuple(args,(char *)"O:BFont_setFallbackFont",&obj0)) goto fail;
5786 {
5787 if (PyString_Check(obj0)) {
5788 temp1 = std::string(PyString_AsString(obj0));
5789 arg1 = &temp1;
5790 }else {
5791 SWIG_exception(SWIG_TypeError, "string expected");
5792 }
5793 }
5794 otk::BFont::setFallbackFont((std::string const &)*arg1);
5795
5796 Py_INCREF(Py_None); resultobj = Py_None;
5797 return resultobj;
5798 fail:
5799 return NULL;
5800 }
5801
5802
5803 static PyObject *_wrap_new_BFont(PyObject *self, PyObject *args) {
5804 PyObject *resultobj;
5805 int arg1 ;
5806 std::string *arg2 = 0 ;
5807 bool arg3 ;
5808 unsigned char arg4 ;
5809 unsigned char arg5 ;
5810 otk::BFont *result;
5811 std::string temp2 ;
5812 PyObject * obj1 = 0 ;
5813 PyObject * obj2 = 0 ;
5814 PyObject * obj3 = 0 ;
5815 PyObject * obj4 = 0 ;
5816
5817 if(!PyArg_ParseTuple(args,(char *)"iOOOO:new_BFont",&arg1,&obj1,&obj2,&obj3,&obj4)) goto fail;
5818 {
5819 if (PyString_Check(obj1)) {
5820 temp2 = std::string(PyString_AsString(obj1));
5821 arg2 = &temp2;
5822 }else {
5823 SWIG_exception(SWIG_TypeError, "string expected");
5824 }
5825 }
5826 arg3 = (bool) PyInt_AsLong(obj2);
5827 if (PyErr_Occurred()) SWIG_fail;
5828 arg4 = (unsigned char) PyInt_AsLong(obj3);
5829 if (PyErr_Occurred()) SWIG_fail;
5830 arg5 = (unsigned char) PyInt_AsLong(obj4);
5831 if (PyErr_Occurred()) SWIG_fail;
5832 result = (otk::BFont *)new otk::BFont(arg1,(std::string const &)*arg2,arg3,arg4,arg5);
5833
5834 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BFont, 1);
5835 return resultobj;
5836 fail:
5837 return NULL;
5838 }
5839
5840
5841 static PyObject *_wrap_delete_BFont(PyObject *self, PyObject *args) {
5842 PyObject *resultobj;
5843 otk::BFont *arg1 = (otk::BFont *) 0 ;
5844 PyObject * obj0 = 0 ;
5845
5846 if(!PyArg_ParseTuple(args,(char *)"O:delete_BFont",&obj0)) goto fail;
5847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5848 delete arg1;
5849
5850 Py_INCREF(Py_None); resultobj = Py_None;
5851 return resultobj;
5852 fail:
5853 return NULL;
5854 }
5855
5856
5857 static PyObject *_wrap_BFont_fontstring(PyObject *self, PyObject *args) {
5858 PyObject *resultobj;
5859 otk::BFont *arg1 = (otk::BFont *) 0 ;
5860 std::string *result;
5861 PyObject * obj0 = 0 ;
5862
5863 if(!PyArg_ParseTuple(args,(char *)"O:BFont_fontstring",&obj0)) goto fail;
5864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5865 {
5866 std::string const &_result_ref = ((otk::BFont const *)arg1)->fontstring();
5867 result = (std::string *) &_result_ref;
5868 }
5869
5870 {
5871 resultobj = PyString_FromString(result->c_str());
5872 }
5873 return resultobj;
5874 fail:
5875 return NULL;
5876 }
5877
5878
5879 static PyObject *_wrap_BFont_height(PyObject *self, PyObject *args) {
5880 PyObject *resultobj;
5881 otk::BFont *arg1 = (otk::BFont *) 0 ;
5882 unsigned int result;
5883 PyObject * obj0 = 0 ;
5884
5885 if(!PyArg_ParseTuple(args,(char *)"O:BFont_height",&obj0)) goto fail;
5886 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5887 result = (unsigned int)((otk::BFont const *)arg1)->height();
5888
5889 resultobj = PyInt_FromLong((long)result);
5890 return resultobj;
5891 fail:
5892 return NULL;
5893 }
5894
5895
5896 static PyObject *_wrap_BFont_maxCharWidth(PyObject *self, PyObject *args) {
5897 PyObject *resultobj;
5898 otk::BFont *arg1 = (otk::BFont *) 0 ;
5899 unsigned int result;
5900 PyObject * obj0 = 0 ;
5901
5902 if(!PyArg_ParseTuple(args,(char *)"O:BFont_maxCharWidth",&obj0)) goto fail;
5903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5904 result = (unsigned int)((otk::BFont const *)arg1)->maxCharWidth();
5905
5906 resultobj = PyInt_FromLong((long)result);
5907 return resultobj;
5908 fail:
5909 return NULL;
5910 }
5911
5912
5913 static PyObject *_wrap_BFont_measureString(PyObject *self, PyObject *args) {
5914 PyObject *resultobj;
5915 otk::BFont *arg1 = (otk::BFont *) 0 ;
5916 std::string *arg2 = 0 ;
5917 bool arg3 = (bool) false ;
5918 unsigned int result;
5919 std::string temp2 ;
5920 PyObject * obj0 = 0 ;
5921 PyObject * obj1 = 0 ;
5922 PyObject * obj2 = 0 ;
5923
5924 if(!PyArg_ParseTuple(args,(char *)"OO|O:BFont_measureString",&obj0,&obj1,&obj2)) goto fail;
5925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5926 {
5927 if (PyString_Check(obj1)) {
5928 temp2 = std::string(PyString_AsString(obj1));
5929 arg2 = &temp2;
5930 }else {
5931 SWIG_exception(SWIG_TypeError, "string expected");
5932 }
5933 }
5934 if (obj2) {
5935 arg3 = (bool) PyInt_AsLong(obj2);
5936 if (PyErr_Occurred()) SWIG_fail;
5937 }
5938 result = (unsigned int)((otk::BFont const *)arg1)->measureString((std::string const &)*arg2,arg3);
5939
5940 resultobj = PyInt_FromLong((long)result);
5941 return resultobj;
5942 fail:
5943 return NULL;
5944 }
5945
5946
5947 static PyObject *_wrap_BFont_drawString(PyObject *self, PyObject *args) {
5948 PyObject *resultobj;
5949 otk::BFont *arg1 = (otk::BFont *) 0 ;
5950 XftDraw *arg2 = (XftDraw *) 0 ;
5951 int arg3 ;
5952 int arg4 ;
5953 otk::BColor *arg5 = 0 ;
5954 std::string *arg6 = 0 ;
5955 bool arg7 = (bool) false ;
5956 std::string temp6 ;
5957 PyObject * obj0 = 0 ;
5958 PyObject * obj1 = 0 ;
5959 PyObject * obj4 = 0 ;
5960 PyObject * obj5 = 0 ;
5961 PyObject * obj6 = 0 ;
5962
5963 if(!PyArg_ParseTuple(args,(char *)"OOiiOO|O:BFont_drawString",&obj0,&obj1,&arg3,&arg4,&obj4,&obj5,&obj6)) goto fail;
5964 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5965 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XftDraw,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5966 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5967 if (arg5 == NULL) {
5968 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5969 }
5970 {
5971 if (PyString_Check(obj5)) {
5972 temp6 = std::string(PyString_AsString(obj5));
5973 arg6 = &temp6;
5974 }else {
5975 SWIG_exception(SWIG_TypeError, "string expected");
5976 }
5977 }
5978 if (obj6) {
5979 arg7 = (bool) PyInt_AsLong(obj6);
5980 if (PyErr_Occurred()) SWIG_fail;
5981 }
5982 ((otk::BFont const *)arg1)->drawString(arg2,arg3,arg4,(otk::BColor const &)*arg5,(std::string const &)*arg6,arg7);
5983
5984 Py_INCREF(Py_None); resultobj = Py_None;
5985 return resultobj;
5986 fail:
5987 return NULL;
5988 }
5989
5990
5991 static PyObject * BFont_swigregister(PyObject *self, PyObject *args) {
5992 PyObject *obj;
5993 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5994 SWIG_TypeClientData(SWIGTYPE_p_otk__BFont, obj);
5995 Py_INCREF(obj);
5996 return Py_BuildValue((char *)"");
5997 }
5998 static PyObject *_wrap_BGCCacheContext_set__SWIG_0(PyObject *self, PyObject *args) {
5999 PyObject *resultobj;
6000 otk::BGCCacheContext *arg1 = (otk::BGCCacheContext *) 0 ;
6001 otk::BColor *arg2 = 0 ;
6002 XFontStruct *arg3 = (XFontStruct *) (XFontStruct *)0 ;
6003 int arg4 ;
6004 int arg5 ;
6005 int arg6 ;
6006 PyObject * obj0 = 0 ;
6007 PyObject * obj1 = 0 ;
6008 PyObject * obj2 = 0 ;
6009
6010 if(!PyArg_ParseTuple(args,(char *)"OOOiii:BGCCacheContext_set",&obj0,&obj1,&obj2,&arg4,&arg5,&arg6)) goto fail;
6011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6012 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6013 if (arg2 == NULL) {
6014 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6015 }
6016 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_XFontStruct,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6017 (arg1)->set((otk::BColor const &)*arg2,(XFontStruct const *)arg3,arg4,arg5,arg6);
6018
6019 Py_INCREF(Py_None); resultobj = Py_None;
6020 return resultobj;
6021 fail:
6022 return NULL;
6023 }
6024
6025
6026 static PyObject *_wrap_BGCCacheContext_set__SWIG_1(PyObject *self, PyObject *args) {
6027 PyObject *resultobj;
6028 otk::BGCCacheContext *arg1 = (otk::BGCCacheContext *) 0 ;
6029 XFontStruct *arg2 = (XFontStruct *) (XFontStruct *)0 ;
6030 PyObject * obj0 = 0 ;
6031 PyObject * obj1 = 0 ;
6032
6033 if(!PyArg_ParseTuple(args,(char *)"OO:BGCCacheContext_set",&obj0,&obj1)) goto fail;
6034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6035 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFontStruct,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6036 (arg1)->set((XFontStruct const *)arg2);
6037
6038 Py_INCREF(Py_None); resultobj = Py_None;
6039 return resultobj;
6040 fail:
6041 return NULL;
6042 }
6043
6044
6045 static PyObject *_wrap_BGCCacheContext_set(PyObject *self, PyObject *args) {
6046 int argc;
6047 PyObject *argv[7];
6048 int ii;
6049
6050 argc = PyObject_Length(args);
6051 for (ii = 0; (ii < argc) && (ii < 6); ii++) {
6052 argv[ii] = PyTuple_GetItem(args,ii);
6053 }
6054 if (argc == 2) {
6055 int _v;
6056 {
6057 void *ptr;
6058 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__BGCCacheContext, 0) == -1) {
6059 _v = 0;
6060 PyErr_Clear();
6061 }else {
6062 _v = 1;
6063 }
6064 }
6065 if (_v) {
6066 {
6067 void *ptr;
6068 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_XFontStruct, 0) == -1) {
6069 _v = 0;
6070 PyErr_Clear();
6071 }else {
6072 _v = 1;
6073 }
6074 }
6075 if (_v) {
6076 return _wrap_BGCCacheContext_set__SWIG_1(self,args);
6077 }
6078 }
6079 }
6080 if (argc == 6) {
6081 int _v;
6082 {
6083 void *ptr;
6084 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__BGCCacheContext, 0) == -1) {
6085 _v = 0;
6086 PyErr_Clear();
6087 }else {
6088 _v = 1;
6089 }
6090 }
6091 if (_v) {
6092 {
6093 void *ptr;
6094 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__BColor, 0) == -1) {
6095 _v = 0;
6096 PyErr_Clear();
6097 }else {
6098 _v = 1;
6099 }
6100 }
6101 if (_v) {
6102 {
6103 void *ptr;
6104 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_XFontStruct, 0) == -1) {
6105 _v = 0;
6106 PyErr_Clear();
6107 }else {
6108 _v = 1;
6109 }
6110 }
6111 if (_v) {
6112 {
6113 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
6114 }
6115 if (_v) {
6116 {
6117 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
6118 }
6119 if (_v) {
6120 {
6121 _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
6122 }
6123 if (_v) {
6124 return _wrap_BGCCacheContext_set__SWIG_0(self,args);
6125 }
6126 }
6127 }
6128 }
6129 }
6130 }
6131 }
6132
6133 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'BGCCacheContext_set'");
6134 return NULL;
6135 }
6136
6137
6138 static PyObject *_wrap_delete_BGCCacheContext(PyObject *self, PyObject *args) {
6139 PyObject *resultobj;
6140 otk::BGCCacheContext *arg1 = (otk::BGCCacheContext *) 0 ;
6141 PyObject * obj0 = 0 ;
6142
6143 if(!PyArg_ParseTuple(args,(char *)"O:delete_BGCCacheContext",&obj0)) goto fail;
6144 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6145 delete arg1;
6146
6147 Py_INCREF(Py_None); resultobj = Py_None;
6148 return resultobj;
6149 fail:
6150 return NULL;
6151 }
6152
6153
6154 static PyObject * BGCCacheContext_swigregister(PyObject *self, PyObject *args) {
6155 PyObject *obj;
6156 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6157 SWIG_TypeClientData(SWIGTYPE_p_otk__BGCCacheContext, obj);
6158 Py_INCREF(obj);
6159 return Py_BuildValue((char *)"");
6160 }
6161 static PyObject *_wrap_BGCCacheItem_gc(PyObject *self, PyObject *args) {
6162 PyObject *resultobj;
6163 otk::BGCCacheItem *arg1 = (otk::BGCCacheItem *) 0 ;
6164 GC *result;
6165 PyObject * obj0 = 0 ;
6166
6167 if(!PyArg_ParseTuple(args,(char *)"O:BGCCacheItem_gc",&obj0)) goto fail;
6168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6169 {
6170 GC const &_result_ref = ((otk::BGCCacheItem const *)arg1)->gc();
6171 result = (GC *) &_result_ref;
6172 }
6173
6174 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_GC, 0);
6175 return resultobj;
6176 fail:
6177 return NULL;
6178 }
6179
6180
6181 static PyObject *_wrap_delete_BGCCacheItem(PyObject *self, PyObject *args) {
6182 PyObject *resultobj;
6183 otk::BGCCacheItem *arg1 = (otk::BGCCacheItem *) 0 ;
6184 PyObject * obj0 = 0 ;
6185
6186 if(!PyArg_ParseTuple(args,(char *)"O:delete_BGCCacheItem",&obj0)) goto fail;
6187 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6188 delete arg1;
6189
6190 Py_INCREF(Py_None); resultobj = Py_None;
6191 return resultobj;
6192 fail:
6193 return NULL;
6194 }
6195
6196
6197 static PyObject * BGCCacheItem_swigregister(PyObject *self, PyObject *args) {
6198 PyObject *obj;
6199 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6200 SWIG_TypeClientData(SWIGTYPE_p_otk__BGCCacheItem, obj);
6201 Py_INCREF(obj);
6202 return Py_BuildValue((char *)"");
6203 }
6204 static PyObject *_wrap_new_BGCCache(PyObject *self, PyObject *args) {
6205 PyObject *resultobj;
6206 unsigned int arg1 ;
6207 otk::BGCCache *result;
6208 PyObject * obj0 = 0 ;
6209
6210 if(!PyArg_ParseTuple(args,(char *)"O:new_BGCCache",&obj0)) goto fail;
6211 arg1 = (unsigned int) PyInt_AsLong(obj0);
6212 if (PyErr_Occurred()) SWIG_fail;
6213 result = (otk::BGCCache *)new otk::BGCCache(arg1);
6214
6215 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BGCCache, 1);
6216 return resultobj;
6217 fail:
6218 return NULL;
6219 }
6220
6221
6222 static PyObject *_wrap_delete_BGCCache(PyObject *self, PyObject *args) {
6223 PyObject *resultobj;
6224 otk::BGCCache *arg1 = (otk::BGCCache *) 0 ;
6225 PyObject * obj0 = 0 ;
6226
6227 if(!PyArg_ParseTuple(args,(char *)"O:delete_BGCCache",&obj0)) goto fail;
6228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6229 delete arg1;
6230
6231 Py_INCREF(Py_None); resultobj = Py_None;
6232 return resultobj;
6233 fail:
6234 return NULL;
6235 }
6236
6237
6238 static PyObject *_wrap_BGCCache_purge(PyObject *self, PyObject *args) {
6239 PyObject *resultobj;
6240 otk::BGCCache *arg1 = (otk::BGCCache *) 0 ;
6241 PyObject * obj0 = 0 ;
6242
6243 if(!PyArg_ParseTuple(args,(char *)"O:BGCCache_purge",&obj0)) goto fail;
6244 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6245 (arg1)->purge();
6246
6247 Py_INCREF(Py_None); resultobj = Py_None;
6248 return resultobj;
6249 fail:
6250 return NULL;
6251 }
6252
6253
6254 static PyObject *_wrap_BGCCache_find(PyObject *self, PyObject *args) {
6255 PyObject *resultobj;
6256 otk::BGCCache *arg1 = (otk::BGCCache *) 0 ;
6257 otk::BColor *arg2 = 0 ;
6258 XFontStruct *arg3 = (XFontStruct *) (XFontStruct *)0 ;
6259 int arg4 = (int) GXcopy ;
6260 int arg5 = (int) ClipByChildren ;
6261 int arg6 = (int) 0 ;
6262 otk::BGCCacheItem *result;
6263 PyObject * obj0 = 0 ;
6264 PyObject * obj1 = 0 ;
6265 PyObject * obj2 = 0 ;
6266
6267 if(!PyArg_ParseTuple(args,(char *)"OO|Oiii:BGCCache_find",&obj0,&obj1,&obj2,&arg4,&arg5,&arg6)) goto fail;
6268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6269 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6270 if (arg2 == NULL) {
6271 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6272 }
6273 if (obj2) {
6274 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_XFontStruct,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6275 }
6276 result = (otk::BGCCacheItem *)(arg1)->find((otk::BColor const &)*arg2,(XFontStruct const *)arg3,arg4,arg5,arg6);
6277
6278 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BGCCacheItem, 0);
6279 return resultobj;
6280 fail:
6281 return NULL;
6282 }
6283
6284
6285 static PyObject *_wrap_BGCCache_release(PyObject *self, PyObject *args) {
6286 PyObject *resultobj;
6287 otk::BGCCache *arg1 = (otk::BGCCache *) 0 ;
6288 otk::BGCCacheItem *arg2 = (otk::BGCCacheItem *) 0 ;
6289 PyObject * obj0 = 0 ;
6290 PyObject * obj1 = 0 ;
6291
6292 if(!PyArg_ParseTuple(args,(char *)"OO:BGCCache_release",&obj0,&obj1)) goto fail;
6293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6294 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BGCCacheItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6295 (arg1)->release(arg2);
6296
6297 Py_INCREF(Py_None); resultobj = Py_None;
6298 return resultobj;
6299 fail:
6300 return NULL;
6301 }
6302
6303
6304 static PyObject * BGCCache_swigregister(PyObject *self, PyObject *args) {
6305 PyObject *obj;
6306 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6307 SWIG_TypeClientData(SWIGTYPE_p_otk__BGCCache, obj);
6308 Py_INCREF(obj);
6309 return Py_BuildValue((char *)"");
6310 }
6311 static PyObject *_wrap_new_BPen(PyObject *self, PyObject *args) {
6312 PyObject *resultobj;
6313 otk::BColor *arg1 = 0 ;
6314 XFontStruct *arg2 = (XFontStruct *) (XFontStruct *)0 ;
6315 int arg3 = (int) 0 ;
6316 int arg4 = (int) GXcopy ;
6317 int arg5 = (int) ClipByChildren ;
6318 otk::BPen *result;
6319 PyObject * obj0 = 0 ;
6320 PyObject * obj1 = 0 ;
6321
6322 if(!PyArg_ParseTuple(args,(char *)"O|Oiii:new_BPen",&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
6323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6324 if (arg1 == NULL) {
6325 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6326 }
6327 if (obj1) {
6328 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFontStruct,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6329 }
6330 result = (otk::BPen *)new otk::BPen((otk::BColor const &)*arg1,(XFontStruct const *)arg2,arg3,arg4,arg5);
6331
6332 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BPen, 1);
6333 return resultobj;
6334 fail:
6335 return NULL;
6336 }
6337
6338
6339 static PyObject *_wrap_delete_BPen(PyObject *self, PyObject *args) {
6340 PyObject *resultobj;
6341 otk::BPen *arg1 = (otk::BPen *) 0 ;
6342 PyObject * obj0 = 0 ;
6343
6344 if(!PyArg_ParseTuple(args,(char *)"O:delete_BPen",&obj0)) goto fail;
6345 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6346 delete arg1;
6347
6348 Py_INCREF(Py_None); resultobj = Py_None;
6349 return resultobj;
6350 fail:
6351 return NULL;
6352 }
6353
6354
6355 static PyObject *_wrap_BPen_gc(PyObject *self, PyObject *args) {
6356 PyObject *resultobj;
6357 otk::BPen *arg1 = (otk::BPen *) 0 ;
6358 GC *result;
6359 PyObject * obj0 = 0 ;
6360
6361 if(!PyArg_ParseTuple(args,(char *)"O:BPen_gc",&obj0)) goto fail;
6362 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6363 {
6364 GC const &_result_ref = ((otk::BPen const *)arg1)->gc();
6365 result = (GC *) &_result_ref;
6366 }
6367
6368 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_GC, 0);
6369 return resultobj;
6370 fail:
6371 return NULL;
6372 }
6373
6374
6375 static PyObject * BPen_swigregister(PyObject *self, PyObject *args) {
6376 PyObject *obj;
6377 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6378 SWIG_TypeClientData(SWIGTYPE_p_otk__BPen, obj);
6379 Py_INCREF(obj);
6380 return Py_BuildValue((char *)"");
6381 }
6382 static PyObject *_wrap_new_BImage(PyObject *self, PyObject *args) {
6383 PyObject *resultobj;
6384 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6385 int arg2 ;
6386 int arg3 ;
6387 otk::BImage *result;
6388 PyObject * obj0 = 0 ;
6389
6390 if(!PyArg_ParseTuple(args,(char *)"Oii:new_BImage",&obj0,&arg2,&arg3)) goto fail;
6391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6392 result = (otk::BImage *)new otk::BImage(arg1,arg2,arg3);
6393
6394 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImage, 1);
6395 return resultobj;
6396 fail:
6397 return NULL;
6398 }
6399
6400
6401 static PyObject *_wrap_delete_BImage(PyObject *self, PyObject *args) {
6402 PyObject *resultobj;
6403 otk::BImage *arg1 = (otk::BImage *) 0 ;
6404 PyObject * obj0 = 0 ;
6405
6406 if(!PyArg_ParseTuple(args,(char *)"O:delete_BImage",&obj0)) goto fail;
6407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6408 delete arg1;
6409
6410 Py_INCREF(Py_None); resultobj = Py_None;
6411 return resultobj;
6412 fail:
6413 return NULL;
6414 }
6415
6416
6417 static PyObject *_wrap_BImage_render(PyObject *self, PyObject *args) {
6418 PyObject *resultobj;
6419 otk::BImage *arg1 = (otk::BImage *) 0 ;
6420 otk::BTexture *arg2 = 0 ;
6421 Pixmap result;
6422 PyObject * obj0 = 0 ;
6423 PyObject * obj1 = 0 ;
6424
6425 if(!PyArg_ParseTuple(args,(char *)"OO:BImage_render",&obj0,&obj1)) goto fail;
6426 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6427 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6428 if (arg2 == NULL) {
6429 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6430 }
6431 result = (Pixmap)(arg1)->render((otk::BTexture const &)*arg2);
6432
6433 resultobj = PyInt_FromLong((long)result);
6434 return resultobj;
6435 fail:
6436 return NULL;
6437 }
6438
6439
6440 static PyObject * BImage_swigregister(PyObject *self, PyObject *args) {
6441 PyObject *obj;
6442 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6443 SWIG_TypeClientData(SWIGTYPE_p_otk__BImage, obj);
6444 Py_INCREF(obj);
6445 return Py_BuildValue((char *)"");
6446 }
6447 static PyObject *_wrap_new_BImageControl(PyObject *self, PyObject *args) {
6448 PyObject *resultobj;
6449 otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
6450 otk::ScreenInfo *arg2 = (otk::ScreenInfo *) 0 ;
6451 bool arg3 = (bool) False ;
6452 int arg4 = (int) 4 ;
6453 unsigned long arg5 = (unsigned long) 300000l ;
6454 unsigned long arg6 = (unsigned long) 200l ;
6455 otk::BImageControl *result;
6456 PyObject * obj0 = 0 ;
6457 PyObject * obj1 = 0 ;
6458 PyObject * obj2 = 0 ;
6459 PyObject * obj4 = 0 ;
6460 PyObject * obj5 = 0 ;
6461
6462 if(!PyArg_ParseTuple(args,(char *)"OO|OiOO:new_BImageControl",&obj0,&obj1,&obj2,&arg4,&obj4,&obj5)) goto fail;
6463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6464 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6465 if (obj2) {
6466 arg3 = (bool) PyInt_AsLong(obj2);
6467 if (PyErr_Occurred()) SWIG_fail;
6468 }
6469 if (obj4) {
6470 arg5 = (unsigned long) PyInt_AsLong(obj4);
6471 if (PyErr_Occurred()) SWIG_fail;
6472 }
6473 if (obj5) {
6474 arg6 = (unsigned long) PyInt_AsLong(obj5);
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 result = (otk::BImageControl *)new otk::BImageControl(arg1,(otk::ScreenInfo const *)arg2,arg3,arg4,arg5,arg6);
6478
6479 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 1);
6480 return resultobj;
6481 fail:
6482 return NULL;
6483 }
6484
6485
6486 static PyObject *_wrap_delete_BImageControl(PyObject *self, PyObject *args) {
6487 PyObject *resultobj;
6488 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6489 PyObject * obj0 = 0 ;
6490
6491 if(!PyArg_ParseTuple(args,(char *)"O:delete_BImageControl",&obj0)) goto fail;
6492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6493 delete arg1;
6494
6495 Py_INCREF(Py_None); resultobj = Py_None;
6496 return resultobj;
6497 fail:
6498 return NULL;
6499 }
6500
6501
6502 static PyObject *_wrap_BImageControl_doDither(PyObject *self, PyObject *args) {
6503 PyObject *resultobj;
6504 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6505 bool result;
6506 PyObject * obj0 = 0 ;
6507
6508 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_doDither",&obj0)) goto fail;
6509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6510 result = (bool)(arg1)->doDither();
6511
6512 resultobj = PyInt_FromLong((long)result);
6513 return resultobj;
6514 fail:
6515 return NULL;
6516 }
6517
6518
6519 static PyObject *_wrap_BImageControl_getScreenInfo(PyObject *self, PyObject *args) {
6520 PyObject *resultobj;
6521 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6522 otk::ScreenInfo *result;
6523 PyObject * obj0 = 0 ;
6524
6525 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getScreenInfo",&obj0)) goto fail;
6526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6527 result = (otk::ScreenInfo *)((otk::BImageControl const *)arg1)->getScreenInfo();
6528
6529 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0);
6530 return resultobj;
6531 fail:
6532 return NULL;
6533 }
6534
6535
6536 static PyObject *_wrap_BImageControl_getDrawable(PyObject *self, PyObject *args) {
6537 PyObject *resultobj;
6538 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6539 Window result;
6540 PyObject * obj0 = 0 ;
6541
6542 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getDrawable",&obj0)) goto fail;
6543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6544 result = (Window)((otk::BImageControl const *)arg1)->getDrawable();
6545
6546 resultobj = PyInt_FromLong((long)result);
6547 return resultobj;
6548 fail:
6549 return NULL;
6550 }
6551
6552
6553 static PyObject *_wrap_BImageControl_getVisual(PyObject *self, PyObject *args) {
6554 PyObject *resultobj;
6555 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6556 Visual *result;
6557 PyObject * obj0 = 0 ;
6558
6559 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getVisual",&obj0)) goto fail;
6560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6561 result = (Visual *)(arg1)->getVisual();
6562
6563 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Visual, 0);
6564 return resultobj;
6565 fail:
6566 return NULL;
6567 }
6568
6569
6570 static PyObject *_wrap_BImageControl_getBitsPerPixel(PyObject *self, PyObject *args) {
6571 PyObject *resultobj;
6572 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6573 int result;
6574 PyObject * obj0 = 0 ;
6575
6576 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getBitsPerPixel",&obj0)) goto fail;
6577 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6578 result = (int)((otk::BImageControl const *)arg1)->getBitsPerPixel();
6579
6580 resultobj = PyInt_FromLong((long)result);
6581 return resultobj;
6582 fail:
6583 return NULL;
6584 }
6585
6586
6587 static PyObject *_wrap_BImageControl_getDepth(PyObject *self, PyObject *args) {
6588 PyObject *resultobj;
6589 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6590 int result;
6591 PyObject * obj0 = 0 ;
6592
6593 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getDepth",&obj0)) goto fail;
6594 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6595 result = (int)((otk::BImageControl const *)arg1)->getDepth();
6596
6597 resultobj = PyInt_FromLong((long)result);
6598 return resultobj;
6599 fail:
6600 return NULL;
6601 }
6602
6603
6604 static PyObject *_wrap_BImageControl_getColorsPerChannel(PyObject *self, PyObject *args) {
6605 PyObject *resultobj;
6606 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6607 int result;
6608 PyObject * obj0 = 0 ;
6609
6610 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getColorsPerChannel",&obj0)) goto fail;
6611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6612 result = (int)((otk::BImageControl const *)arg1)->getColorsPerChannel();
6613
6614 resultobj = PyInt_FromLong((long)result);
6615 return resultobj;
6616 fail:
6617 return NULL;
6618 }
6619
6620
6621 static PyObject *_wrap_BImageControl_getSqrt(PyObject *self, PyObject *args) {
6622 PyObject *resultobj;
6623 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6624 unsigned int arg2 ;
6625 unsigned long result;
6626 PyObject * obj0 = 0 ;
6627 PyObject * obj1 = 0 ;
6628
6629 if(!PyArg_ParseTuple(args,(char *)"OO:BImageControl_getSqrt",&obj0,&obj1)) goto fail;
6630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6631 arg2 = (unsigned int) PyInt_AsLong(obj1);
6632 if (PyErr_Occurred()) SWIG_fail;
6633 result = (unsigned long)(arg1)->getSqrt(arg2);
6634
6635 resultobj = PyInt_FromLong((long)result);
6636 return resultobj;
6637 fail:
6638 return NULL;
6639 }
6640
6641
6642 static PyObject *_wrap_BImageControl_renderImage(PyObject *self, PyObject *args) {
6643 PyObject *resultobj;
6644 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6645 unsigned int arg2 ;
6646 unsigned int arg3 ;
6647 otk::BTexture *arg4 = 0 ;
6648 Pixmap result;
6649 PyObject * obj0 = 0 ;
6650 PyObject * obj1 = 0 ;
6651 PyObject * obj2 = 0 ;
6652 PyObject * obj3 = 0 ;
6653
6654 if(!PyArg_ParseTuple(args,(char *)"OOOO:BImageControl_renderImage",&obj0,&obj1,&obj2,&obj3)) goto fail;
6655 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6656 arg2 = (unsigned int) PyInt_AsLong(obj1);
6657 if (PyErr_Occurred()) SWIG_fail;
6658 arg3 = (unsigned int) PyInt_AsLong(obj2);
6659 if (PyErr_Occurred()) SWIG_fail;
6660 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6661 if (arg4 == NULL) {
6662 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6663 }
6664 result = (Pixmap)(arg1)->renderImage(arg2,arg3,(otk::BTexture const &)*arg4);
6665
6666 resultobj = PyInt_FromLong((long)result);
6667 return resultobj;
6668 fail:
6669 return NULL;
6670 }
6671
6672
6673 static PyObject *_wrap_BImageControl_installRootColormap(PyObject *self, PyObject *args) {
6674 PyObject *resultobj;
6675 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6676 PyObject * obj0 = 0 ;
6677
6678 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_installRootColormap",&obj0)) goto fail;
6679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6680 (arg1)->installRootColormap();
6681
6682 Py_INCREF(Py_None); resultobj = Py_None;
6683 return resultobj;
6684 fail:
6685 return NULL;
6686 }
6687
6688
6689 static PyObject *_wrap_BImageControl_removeImage(PyObject *self, PyObject *args) {
6690 PyObject *resultobj;
6691 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6692 Pixmap arg2 ;
6693 PyObject * obj0 = 0 ;
6694 PyObject * obj1 = 0 ;
6695
6696 if(!PyArg_ParseTuple(args,(char *)"OO:BImageControl_removeImage",&obj0,&obj1)) goto fail;
6697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6698 arg2 = (Pixmap) PyInt_AsLong(obj1);
6699 if (PyErr_Occurred()) SWIG_fail;
6700 (arg1)->removeImage(arg2);
6701
6702 Py_INCREF(Py_None); resultobj = Py_None;
6703 return resultobj;
6704 fail:
6705 return NULL;
6706 }
6707
6708
6709 static PyObject *_wrap_BImageControl_getColorTables(PyObject *self, PyObject *args) {
6710 PyObject *resultobj;
6711 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6712 unsigned char **arg2 = (unsigned char **) 0 ;
6713 unsigned char **arg3 = (unsigned char **) 0 ;
6714 unsigned char **arg4 = (unsigned char **) 0 ;
6715 int *arg5 = (int *) 0 ;
6716 int *arg6 = (int *) 0 ;
6717 int *arg7 = (int *) 0 ;
6718 int *arg8 = (int *) 0 ;
6719 int *arg9 = (int *) 0 ;
6720 int *arg10 = (int *) 0 ;
6721 PyObject * obj0 = 0 ;
6722 PyObject * obj1 = 0 ;
6723 PyObject * obj2 = 0 ;
6724 PyObject * obj3 = 0 ;
6725 PyObject * obj4 = 0 ;
6726 PyObject * obj5 = 0 ;
6727 PyObject * obj6 = 0 ;
6728 PyObject * obj7 = 0 ;
6729 PyObject * obj8 = 0 ;
6730 PyObject * obj9 = 0 ;
6731
6732 if(!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:BImageControl_getColorTables",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
6733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6734 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6735 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6736 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6737 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6738 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6739 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6740 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6741 if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6742 if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6743 (arg1)->getColorTables(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
6744
6745 Py_INCREF(Py_None); resultobj = Py_None;
6746 return resultobj;
6747 fail:
6748 return NULL;
6749 }
6750
6751
6752 static PyObject *_wrap_BImageControl_getXColorTable(PyObject *self, PyObject *args) {
6753 PyObject *resultobj;
6754 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6755 XColor **arg2 = (XColor **) 0 ;
6756 int *arg3 = (int *) 0 ;
6757 PyObject * obj0 = 0 ;
6758 PyObject * obj1 = 0 ;
6759 PyObject * obj2 = 0 ;
6760
6761 if(!PyArg_ParseTuple(args,(char *)"OOO:BImageControl_getXColorTable",&obj0,&obj1,&obj2)) goto fail;
6762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6763 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_XColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6764 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6765 (arg1)->getXColorTable(arg2,arg3);
6766
6767 Py_INCREF(Py_None); resultobj = Py_None;
6768 return resultobj;
6769 fail:
6770 return NULL;
6771 }
6772
6773
6774 static PyObject *_wrap_BImageControl_getGradientBuffers(PyObject *self, PyObject *args) {
6775 PyObject *resultobj;
6776 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6777 unsigned int arg2 ;
6778 unsigned int arg3 ;
6779 unsigned int **arg4 = (unsigned int **) 0 ;
6780 unsigned int **arg5 = (unsigned int **) 0 ;
6781 PyObject * obj0 = 0 ;
6782 PyObject * obj1 = 0 ;
6783 PyObject * obj2 = 0 ;
6784 PyObject * obj3 = 0 ;
6785 PyObject * obj4 = 0 ;
6786
6787 if(!PyArg_ParseTuple(args,(char *)"OOOOO:BImageControl_getGradientBuffers",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6789 arg2 = (unsigned int) PyInt_AsLong(obj1);
6790 if (PyErr_Occurred()) SWIG_fail;
6791 arg3 = (unsigned int) PyInt_AsLong(obj2);
6792 if (PyErr_Occurred()) SWIG_fail;
6793 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_p_unsigned_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6794 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_p_unsigned_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6795 (arg1)->getGradientBuffers(arg2,arg3,arg4,arg5);
6796
6797 Py_INCREF(Py_None); resultobj = Py_None;
6798 return resultobj;
6799 fail:
6800 return NULL;
6801 }
6802
6803
6804 static PyObject *_wrap_BImageControl_setDither(PyObject *self, PyObject *args) {
6805 PyObject *resultobj;
6806 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6807 bool arg2 ;
6808 PyObject * obj0 = 0 ;
6809 PyObject * obj1 = 0 ;
6810
6811 if(!PyArg_ParseTuple(args,(char *)"OO:BImageControl_setDither",&obj0,&obj1)) goto fail;
6812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6813 arg2 = (bool) PyInt_AsLong(obj1);
6814 if (PyErr_Occurred()) SWIG_fail;
6815 (arg1)->setDither(arg2);
6816
6817 Py_INCREF(Py_None); resultobj = Py_None;
6818 return resultobj;
6819 fail:
6820 return NULL;
6821 }
6822
6823
6824 static PyObject *_wrap_BImageControl_setColorsPerChannel(PyObject *self, PyObject *args) {
6825 PyObject *resultobj;
6826 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6827 int arg2 ;
6828 PyObject * obj0 = 0 ;
6829
6830 if(!PyArg_ParseTuple(args,(char *)"Oi:BImageControl_setColorsPerChannel",&obj0,&arg2)) goto fail;
6831 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6832 (arg1)->setColorsPerChannel(arg2);
6833
6834 Py_INCREF(Py_None); resultobj = Py_None;
6835 return resultobj;
6836 fail:
6837 return NULL;
6838 }
6839
6840
6841 static PyObject *_wrap_BImageControl_timeout(PyObject *self, PyObject *args) {
6842 PyObject *resultobj;
6843 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6844 PyObject * obj0 = 0 ;
6845
6846 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_timeout",&obj0)) goto fail;
6847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6848 otk::BImageControl::timeout(arg1);
6849
6850 Py_INCREF(Py_None); resultobj = Py_None;
6851 return resultobj;
6852 fail:
6853 return NULL;
6854 }
6855
6856
6857 static PyObject * BImageControl_swigregister(PyObject *self, PyObject *args) {
6858 PyObject *obj;
6859 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6860 SWIG_TypeClientData(SWIGTYPE_p_otk__BImageControl, obj);
6861 Py_INCREF(obj);
6862 return Py_BuildValue((char *)"");
6863 }
6864 static PyObject *_wrap_new_Point__SWIG_0(PyObject *self, PyObject *args) {
6865 PyObject *resultobj;
6866 otk::Point *result;
6867
6868 if(!PyArg_ParseTuple(args,(char *)":new_Point")) goto fail;
6869 result = (otk::Point *)new otk::Point();
6870
6871 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Point, 1);
6872 return resultobj;
6873 fail:
6874 return NULL;
6875 }
6876
6877
6878 static PyObject *_wrap_new_Point__SWIG_1(PyObject *self, PyObject *args) {
6879 PyObject *resultobj;
6880 int arg1 ;
6881 int arg2 ;
6882 otk::Point *result;
6883
6884 if(!PyArg_ParseTuple(args,(char *)"ii:new_Point",&arg1,&arg2)) goto fail;
6885 result = (otk::Point *)new otk::Point(arg1,arg2);
6886
6887 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Point, 1);
6888 return resultobj;
6889 fail:
6890 return NULL;
6891 }
6892
6893
6894 static PyObject *_wrap_new_Point(PyObject *self, PyObject *args) {
6895 int argc;
6896 PyObject *argv[3];
6897 int ii;
6898
6899 argc = PyObject_Length(args);
6900 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
6901 argv[ii] = PyTuple_GetItem(args,ii);
6902 }
6903 if (argc == 0) {
6904 return _wrap_new_Point__SWIG_0(self,args);
6905 }
6906 if (argc == 2) {
6907 int _v;
6908 {
6909 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
6910 }
6911 if (_v) {
6912 {
6913 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
6914 }
6915 if (_v) {
6916 return _wrap_new_Point__SWIG_1(self,args);
6917 }
6918 }
6919 }
6920
6921 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Point'");
6922 return NULL;
6923 }
6924
6925
6926 static PyObject *_wrap_Point_setX(PyObject *self, PyObject *args) {
6927 PyObject *resultobj;
6928 otk::Point *arg1 = (otk::Point *) 0 ;
6929 int arg2 ;
6930 PyObject * obj0 = 0 ;
6931
6932 if(!PyArg_ParseTuple(args,(char *)"Oi:Point_setX",&obj0,&arg2)) goto fail;
6933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6934 (arg1)->setX(arg2);
6935
6936 Py_INCREF(Py_None); resultobj = Py_None;
6937 return resultobj;
6938 fail:
6939 return NULL;
6940 }
6941
6942
6943 static PyObject *_wrap_Point_x(PyObject *self, PyObject *args) {
6944 PyObject *resultobj;
6945 otk::Point *arg1 = (otk::Point *) 0 ;
6946 int result;
6947 PyObject * obj0 = 0 ;
6948
6949 if(!PyArg_ParseTuple(args,(char *)"O:Point_x",&obj0)) goto fail;
6950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6951 result = (int)((otk::Point const *)arg1)->x();
6952
6953 resultobj = PyInt_FromLong((long)result);
6954 return resultobj;
6955 fail:
6956 return NULL;
6957 }
6958
6959
6960 static PyObject *_wrap_Point_setY(PyObject *self, PyObject *args) {
6961 PyObject *resultobj;
6962 otk::Point *arg1 = (otk::Point *) 0 ;
6963 int arg2 ;
6964 PyObject * obj0 = 0 ;
6965
6966 if(!PyArg_ParseTuple(args,(char *)"Oi:Point_setY",&obj0,&arg2)) goto fail;
6967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6968 (arg1)->setY(arg2);
6969
6970 Py_INCREF(Py_None); resultobj = Py_None;
6971 return resultobj;
6972 fail:
6973 return NULL;
6974 }
6975
6976
6977 static PyObject *_wrap_Point_y(PyObject *self, PyObject *args) {
6978 PyObject *resultobj;
6979 otk::Point *arg1 = (otk::Point *) 0 ;
6980 int result;
6981 PyObject * obj0 = 0 ;
6982
6983 if(!PyArg_ParseTuple(args,(char *)"O:Point_y",&obj0)) goto fail;
6984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6985 result = (int)((otk::Point const *)arg1)->y();
6986
6987 resultobj = PyInt_FromLong((long)result);
6988 return resultobj;
6989 fail:
6990 return NULL;
6991 }
6992
6993
6994 static PyObject *_wrap_Point_setPoint(PyObject *self, PyObject *args) {
6995 PyObject *resultobj;
6996 otk::Point *arg1 = (otk::Point *) 0 ;
6997 int arg2 ;
6998 int arg3 ;
6999 PyObject * obj0 = 0 ;
7000
7001 if(!PyArg_ParseTuple(args,(char *)"Oii:Point_setPoint",&obj0,&arg2,&arg3)) goto fail;
7002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7003 (arg1)->setPoint(arg2,arg3);
7004
7005 Py_INCREF(Py_None); resultobj = Py_None;
7006 return resultobj;
7007 fail:
7008 return NULL;
7009 }
7010
7011
7012 static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args) {
7013 PyObject *resultobj;
7014 otk::Point *arg1 = (otk::Point *) 0 ;
7015 PyObject * obj0 = 0 ;
7016
7017 if(!PyArg_ParseTuple(args,(char *)"O:delete_Point",&obj0)) goto fail;
7018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7019 delete arg1;
7020
7021 Py_INCREF(Py_None); resultobj = Py_None;
7022 return resultobj;
7023 fail:
7024 return NULL;
7025 }
7026
7027
7028 static PyObject * Point_swigregister(PyObject *self, PyObject *args) {
7029 PyObject *obj;
7030 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7031 SWIG_TypeClientData(SWIGTYPE_p_otk__Point, obj);
7032 Py_INCREF(obj);
7033 return Py_BuildValue((char *)"");
7034 }
7035 static PyObject *_wrap_new_OBProperty(PyObject *self, PyObject *args) {
7036 PyObject *resultobj;
7037 otk::OBProperty *result;
7038
7039 if(!PyArg_ParseTuple(args,(char *)":new_OBProperty")) goto fail;
7040 result = (otk::OBProperty *)new otk::OBProperty();
7041
7042 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBProperty, 1);
7043 return resultobj;
7044 fail:
7045 return NULL;
7046 }
7047
7048
7049 static PyObject *_wrap_delete_OBProperty(PyObject *self, PyObject *args) {
7050 PyObject *resultobj;
7051 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7052 PyObject * obj0 = 0 ;
7053
7054 if(!PyArg_ParseTuple(args,(char *)"O:delete_OBProperty",&obj0)) goto fail;
7055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7056 delete arg1;
7057
7058 Py_INCREF(Py_None); resultobj = Py_None;
7059 return resultobj;
7060 fail:
7061 return NULL;
7062 }
7063
7064
7065 static PyObject *_wrap_OBProperty_set__SWIG_0(PyObject *self, PyObject *args) {
7066 PyObject *resultobj;
7067 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7068 Window arg2 ;
7069 int arg3 ;
7070 int arg4 ;
7071 unsigned long arg5 ;
7072 PyObject * obj0 = 0 ;
7073 PyObject * obj1 = 0 ;
7074 PyObject * obj4 = 0 ;
7075
7076 if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
7077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7078 arg2 = (Window) PyInt_AsLong(obj1);
7079 if (PyErr_Occurred()) SWIG_fail;
7080 arg5 = (unsigned long) PyInt_AsLong(obj4);
7081 if (PyErr_Occurred()) SWIG_fail;
7082 ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5);
7083
7084 Py_INCREF(Py_None); resultobj = Py_None;
7085 return resultobj;
7086 fail:
7087 return NULL;
7088 }
7089
7090
7091 static PyObject *_wrap_OBProperty_set__SWIG_1(PyObject *self, PyObject *args) {
7092 PyObject *resultobj;
7093 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7094 Window arg2 ;
7095 int arg3 ;
7096 int arg4 ;
7097 unsigned long *arg5 ;
7098 int arg6 ;
7099 PyObject * obj0 = 0 ;
7100 PyObject * obj1 = 0 ;
7101 PyObject * obj4 = 0 ;
7102
7103 if(!PyArg_ParseTuple(args,(char *)"OOiiOi:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4,&arg6)) goto fail;
7104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7105 arg2 = (Window) PyInt_AsLong(obj1);
7106 if (PyErr_Occurred()) SWIG_fail;
7107 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7108 ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5,arg6);
7109
7110 Py_INCREF(Py_None); resultobj = Py_None;
7111 return resultobj;
7112 fail:
7113 return NULL;
7114 }
7115
7116
7117 static PyObject *_wrap_OBProperty_set__SWIG_2(PyObject *self, PyObject *args) {
7118 PyObject *resultobj;
7119 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7120 Window arg2 ;
7121 int arg3 ;
7122 int arg4 ;
7123 std::string *arg5 = 0 ;
7124 std::string temp5 ;
7125 PyObject * obj0 = 0 ;
7126 PyObject * obj1 = 0 ;
7127 PyObject * obj4 = 0 ;
7128
7129 if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
7130 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7131 arg2 = (Window) PyInt_AsLong(obj1);
7132 if (PyErr_Occurred()) SWIG_fail;
7133 {
7134 if (PyString_Check(obj4)) {
7135 temp5 = std::string(PyString_AsString(obj4));
7136 arg5 = &temp5;
7137 }else {
7138 SWIG_exception(SWIG_TypeError, "string expected");
7139 }
7140 }
7141 ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,(std::string const &)*arg5);
7142
7143 Py_INCREF(Py_None); resultobj = Py_None;
7144 return resultobj;
7145 fail:
7146 return NULL;
7147 }
7148
7149
7150 static PyObject *_wrap_OBProperty_set__SWIG_3(PyObject *self, PyObject *args) {
7151 PyObject *resultobj;
7152 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7153 Window arg2 ;
7154 int arg3 ;
7155 int arg4 ;
7156 otk::OBProperty::StringVect *arg5 = 0 ;
7157 PyObject * obj0 = 0 ;
7158 PyObject * obj1 = 0 ;
7159 PyObject * obj4 = 0 ;
7160
7161 if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
7162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7163 arg2 = (Window) PyInt_AsLong(obj1);
7164 if (PyErr_Occurred()) SWIG_fail;
7165 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_otk__OBProperty__StringVect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7166 if (arg5 == NULL) {
7167 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7168 }
7169 ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,(otk::OBProperty::StringVect const &)*arg5);
7170
7171 Py_INCREF(Py_None); resultobj = Py_None;
7172 return resultobj;
7173 fail:
7174 return NULL;
7175 }
7176
7177
7178 static PyObject *_wrap_OBProperty_set(PyObject *self, PyObject *args) {
7179 int argc;
7180 PyObject *argv[7];
7181 int ii;
7182
7183 argc = PyObject_Length(args);
7184 for (ii = 0; (ii < argc) && (ii < 6); ii++) {
7185 argv[ii] = PyTuple_GetItem(args,ii);
7186 }
7187 if (argc == 5) {
7188 int _v;
7189 {
7190 void *ptr;
7191 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
7192 _v = 0;
7193 PyErr_Clear();
7194 }else {
7195 _v = 1;
7196 }
7197 }
7198 if (_v) {
7199 {
7200 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
7201 }
7202 if (_v) {
7203 {
7204 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7205 }
7206 if (_v) {
7207 {
7208 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7209 }
7210 if (_v) {
7211 {
7212 void *ptr;
7213 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_otk__OBProperty__StringVect, 0) == -1) {
7214 _v = 0;
7215 PyErr_Clear();
7216 }else {
7217 _v = 1;
7218 }
7219 }
7220 if (_v) {
7221 return _wrap_OBProperty_set__SWIG_3(self,args);
7222 }
7223 }
7224 }
7225 }
7226 }
7227 }
7228 if (argc == 5) {
7229 int _v;
7230 {
7231 void *ptr;
7232 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
7233 _v = 0;
7234 PyErr_Clear();
7235 }else {
7236 _v = 1;
7237 }
7238 }
7239 if (_v) {
7240 {
7241 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
7242 }
7243 if (_v) {
7244 {
7245 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7246 }
7247 if (_v) {
7248 {
7249 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7250 }
7251 if (_v) {
7252 {
7253 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
7254 }
7255 if (_v) {
7256 return _wrap_OBProperty_set__SWIG_0(self,args);
7257 }
7258 }
7259 }
7260 }
7261 }
7262 }
7263 if (argc == 5) {
7264 int _v;
7265 {
7266 void *ptr;
7267 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
7268 _v = 0;
7269 PyErr_Clear();
7270 }else {
7271 _v = 1;
7272 }
7273 }
7274 if (_v) {
7275 {
7276 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
7277 }
7278 if (_v) {
7279 {
7280 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7281 }
7282 if (_v) {
7283 {
7284 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7285 }
7286 if (_v) {
7287 {
7288 _v = PyString_Check(argv[4]) ? 1 : 0;
7289 }
7290 if (_v) {
7291 return _wrap_OBProperty_set__SWIG_2(self,args);
7292 }
7293 }
7294 }
7295 }
7296 }
7297 }
7298 if (argc == 6) {
7299 int _v;
7300 {
7301 void *ptr;
7302 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
7303 _v = 0;
7304 PyErr_Clear();
7305 }else {
7306 _v = 1;
7307 }
7308 }
7309 if (_v) {
7310 {
7311 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
7312 }
7313 if (_v) {
7314 {
7315 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7316 }
7317 if (_v) {
7318 {
7319 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7320 }
7321 if (_v) {
7322 {
7323 void *ptr;
7324 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
7325 _v = 0;
7326 PyErr_Clear();
7327 }else {
7328 _v = 1;
7329 }
7330 }
7331 if (_v) {
7332 {
7333 _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
7334 }
7335 if (_v) {
7336 return _wrap_OBProperty_set__SWIG_1(self,args);
7337 }
7338 }
7339 }
7340 }
7341 }
7342 }
7343 }
7344
7345 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OBProperty_set'");
7346 return NULL;
7347 }
7348
7349
7350 static PyObject *_wrap_OBProperty_get__SWIG_0(PyObject *self, PyObject *args) {
7351 PyObject *resultobj;
7352 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7353 Window arg2 ;
7354 int arg3 ;
7355 int arg4 ;
7356 unsigned long *arg5 = (unsigned long *) 0 ;
7357 unsigned long **arg6 = (unsigned long **) 0 ;
7358 bool result;
7359 PyObject * obj0 = 0 ;
7360 PyObject * obj1 = 0 ;
7361 PyObject * obj4 = 0 ;
7362 PyObject * obj5 = 0 ;
7363
7364 if(!PyArg_ParseTuple(args,(char *)"OOiiOO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4,&obj5)) goto fail;
7365 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7366 arg2 = (Window) PyInt_AsLong(obj1);
7367 if (PyErr_Occurred()) SWIG_fail;
7368 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7369 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7370 result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5,arg6);
7371
7372 resultobj = PyInt_FromLong((long)result);
7373 return resultobj;
7374 fail:
7375 return NULL;
7376 }
7377
7378
7379 static PyObject *_wrap_OBProperty_get__SWIG_1(PyObject *self, PyObject *args) {
7380 PyObject *resultobj;
7381 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7382 Window arg2 ;
7383 int arg3 ;
7384 int arg4 ;
7385 unsigned long *arg5 = (unsigned long *) 0 ;
7386 bool result;
7387 PyObject * obj0 = 0 ;
7388 PyObject * obj1 = 0 ;
7389 PyObject * obj4 = 0 ;
7390
7391 if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
7392 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7393 arg2 = (Window) PyInt_AsLong(obj1);
7394 if (PyErr_Occurred()) SWIG_fail;
7395 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7396 result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5);
7397
7398 resultobj = PyInt_FromLong((long)result);
7399 return resultobj;
7400 fail:
7401 return NULL;
7402 }
7403
7404
7405 static PyObject *_wrap_OBProperty_get__SWIG_2(PyObject *self, PyObject *args) {
7406 PyObject *resultobj;
7407 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7408 Window arg2 ;
7409 int arg3 ;
7410 int arg4 ;
7411 std::string *arg5 = (std::string *) 0 ;
7412 bool result;
7413 PyObject * obj0 = 0 ;
7414 PyObject * obj1 = 0 ;
7415 PyObject * obj4 = 0 ;
7416
7417 if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
7418 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7419 arg2 = (Window) PyInt_AsLong(obj1);
7420 if (PyErr_Occurred()) SWIG_fail;
7421 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_std__string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7422 result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,arg5);
7423
7424 resultobj = PyInt_FromLong((long)result);
7425 return resultobj;
7426 fail:
7427 return NULL;
7428 }
7429
7430
7431 static PyObject *_wrap_OBProperty_get__SWIG_3(PyObject *self, PyObject *args) {
7432 PyObject *resultobj;
7433 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7434 Window arg2 ;
7435 int arg3 ;
7436 int arg4 ;
7437 unsigned long *arg5 = (unsigned long *) 0 ;
7438 otk::OBProperty::StringVect *arg6 = (otk::OBProperty::StringVect *) 0 ;
7439 bool result;
7440 PyObject * obj0 = 0 ;
7441 PyObject * obj1 = 0 ;
7442 PyObject * obj4 = 0 ;
7443 PyObject * obj5 = 0 ;
7444
7445 if(!PyArg_ParseTuple(args,(char *)"OOiiOO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4,&obj5)) goto fail;
7446 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7447 arg2 = (Window) PyInt_AsLong(obj1);
7448 if (PyErr_Occurred()) SWIG_fail;
7449 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7450 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_otk__OBProperty__StringVect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7451 result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,arg5,arg6);
7452
7453 resultobj = PyInt_FromLong((long)result);
7454 return resultobj;
7455 fail:
7456 return NULL;
7457 }
7458
7459
7460 static PyObject *_wrap_OBProperty_get(PyObject *self, PyObject *args) {
7461 int argc;
7462 PyObject *argv[7];
7463 int ii;
7464
7465 argc = PyObject_Length(args);
7466 for (ii = 0; (ii < argc) && (ii < 6); ii++) {
7467 argv[ii] = PyTuple_GetItem(args,ii);
7468 }
7469 if (argc == 5) {
7470 int _v;
7471 {
7472 void *ptr;
7473 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
7474 _v = 0;
7475 PyErr_Clear();
7476 }else {
7477 _v = 1;
7478 }
7479 }
7480 if (_v) {
7481 {
7482 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
7483 }
7484 if (_v) {
7485 {
7486 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7487 }
7488 if (_v) {
7489 {
7490 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7491 }
7492 if (_v) {
7493 {
7494 void *ptr;
7495 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
7496 _v = 0;
7497 PyErr_Clear();
7498 }else {
7499 _v = 1;
7500 }
7501 }
7502 if (_v) {
7503 return _wrap_OBProperty_get__SWIG_1(self,args);
7504 }
7505 }
7506 }
7507 }
7508 }
7509 }
7510 if (argc == 5) {
7511 int _v;
7512 {
7513 void *ptr;
7514 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
7515 _v = 0;
7516 PyErr_Clear();
7517 }else {
7518 _v = 1;
7519 }
7520 }
7521 if (_v) {
7522 {
7523 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
7524 }
7525 if (_v) {
7526 {
7527 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7528 }
7529 if (_v) {
7530 {
7531 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7532 }
7533 if (_v) {
7534 {
7535 void *ptr;
7536 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_std__string, 0) == -1) {
7537 _v = 0;
7538 PyErr_Clear();
7539 }else {
7540 _v = 1;
7541 }
7542 }
7543 if (_v) {
7544 return _wrap_OBProperty_get__SWIG_2(self,args);
7545 }
7546 }
7547 }
7548 }
7549 }
7550 }
7551 if (argc == 6) {
7552 int _v;
7553 {
7554 void *ptr;
7555 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
7556 _v = 0;
7557 PyErr_Clear();
7558 }else {
7559 _v = 1;
7560 }
7561 }
7562 if (_v) {
7563 {
7564 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
7565 }
7566 if (_v) {
7567 {
7568 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7569 }
7570 if (_v) {
7571 {
7572 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7573 }
7574 if (_v) {
7575 {
7576 void *ptr;
7577 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
7578 _v = 0;
7579 PyErr_Clear();
7580 }else {
7581 _v = 1;
7582 }
7583 }
7584 if (_v) {
7585 {
7586 void *ptr;
7587 if (SWIG_ConvertPtr(argv[5], (void **) &ptr, SWIGTYPE_p_p_unsigned_long, 0) == -1) {
7588 _v = 0;
7589 PyErr_Clear();
7590 }else {
7591 _v = 1;
7592 }
7593 }
7594 if (_v) {
7595 return _wrap_OBProperty_get__SWIG_0(self,args);
7596 }
7597 }
7598 }
7599 }
7600 }
7601 }
7602 }
7603 if (argc == 6) {
7604 int _v;
7605 {
7606 void *ptr;
7607 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
7608 _v = 0;
7609 PyErr_Clear();
7610 }else {
7611 _v = 1;
7612 }
7613 }
7614 if (_v) {
7615 {
7616 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
7617 }
7618 if (_v) {
7619 {
7620 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7621 }
7622 if (_v) {
7623 {
7624 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7625 }
7626 if (_v) {
7627 {
7628 void *ptr;
7629 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
7630 _v = 0;
7631 PyErr_Clear();
7632 }else {
7633 _v = 1;
7634 }
7635 }
7636 if (_v) {
7637 {
7638 void *ptr;
7639 if (SWIG_ConvertPtr(argv[5], (void **) &ptr, SWIGTYPE_p_otk__OBProperty__StringVect, 0) == -1) {
7640 _v = 0;
7641 PyErr_Clear();
7642 }else {
7643 _v = 1;
7644 }
7645 }
7646 if (_v) {
7647 return _wrap_OBProperty_get__SWIG_3(self,args);
7648 }
7649 }
7650 }
7651 }
7652 }
7653 }
7654 }
7655
7656 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OBProperty_get'");
7657 return NULL;
7658 }
7659
7660
7661 static PyObject *_wrap_OBProperty_erase(PyObject *self, PyObject *args) {
7662 PyObject *resultobj;
7663 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7664 Window arg2 ;
7665 int arg3 ;
7666 PyObject * obj0 = 0 ;
7667 PyObject * obj1 = 0 ;
7668
7669 if(!PyArg_ParseTuple(args,(char *)"OOi:OBProperty_erase",&obj0,&obj1,&arg3)) goto fail;
7670 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7671 arg2 = (Window) PyInt_AsLong(obj1);
7672 if (PyErr_Occurred()) SWIG_fail;
7673 ((otk::OBProperty const *)arg1)->erase(arg2,(otk::OBProperty::Atoms )arg3);
7674
7675 Py_INCREF(Py_None); resultobj = Py_None;
7676 return resultobj;
7677 fail:
7678 return NULL;
7679 }
7680
7681
7682 static PyObject *_wrap_OBProperty_atom(PyObject *self, PyObject *args) {
7683 PyObject *resultobj;
7684 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7685 int arg2 ;
7686 Atom result;
7687 PyObject * obj0 = 0 ;
7688
7689 if(!PyArg_ParseTuple(args,(char *)"Oi:OBProperty_atom",&obj0,&arg2)) goto fail;
7690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7691 result = (Atom)((otk::OBProperty const *)arg1)->atom((otk::OBProperty::Atoms )arg2);
7692
7693 resultobj = PyInt_FromLong((long)result);
7694 return resultobj;
7695 fail:
7696 return NULL;
7697 }
7698
7699
7700 static PyObject * OBProperty_swigregister(PyObject *self, PyObject *args) {
7701 PyObject *obj;
7702 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7703 SWIG_TypeClientData(SWIGTYPE_p_otk__OBProperty, obj);
7704 Py_INCREF(obj);
7705 return Py_BuildValue((char *)"");
7706 }
7707 static PyObject *_wrap_new_Rect__SWIG_0(PyObject *self, PyObject *args) {
7708 PyObject *resultobj;
7709 otk::Rect *result;
7710
7711 if(!PyArg_ParseTuple(args,(char *)":new_Rect")) goto fail;
7712 result = (otk::Rect *)new otk::Rect();
7713
7714 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
7715 return resultobj;
7716 fail:
7717 return NULL;
7718 }
7719
7720
7721 static PyObject *_wrap_new_Rect__SWIG_1(PyObject *self, PyObject *args) {
7722 PyObject *resultobj;
7723 int arg1 ;
7724 int arg2 ;
7725 int arg3 ;
7726 int arg4 ;
7727 otk::Rect *result;
7728
7729 if(!PyArg_ParseTuple(args,(char *)"iiii:new_Rect",&arg1,&arg2,&arg3,&arg4)) goto fail;
7730 result = (otk::Rect *)new otk::Rect(arg1,arg2,arg3,arg4);
7731
7732 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
7733 return resultobj;
7734 fail:
7735 return NULL;
7736 }
7737
7738
7739 static PyObject *_wrap_new_Rect__SWIG_2(PyObject *self, PyObject *args) {
7740 PyObject *resultobj;
7741 otk::Point *arg1 = 0 ;
7742 otk::Point *arg2 = 0 ;
7743 otk::Rect *result;
7744 PyObject * obj0 = 0 ;
7745 PyObject * obj1 = 0 ;
7746
7747 if(!PyArg_ParseTuple(args,(char *)"OO:new_Rect",&obj0,&obj1)) goto fail;
7748 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7749 if (arg1 == NULL) {
7750 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7751 }
7752 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7753 if (arg2 == NULL) {
7754 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7755 }
7756 result = (otk::Rect *)new otk::Rect((otk::Point const &)*arg1,(otk::Point const &)*arg2);
7757
7758 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
7759 return resultobj;
7760 fail:
7761 return NULL;
7762 }
7763
7764
7765 static PyObject *_wrap_new_Rect__SWIG_3(PyObject *self, PyObject *args) {
7766 PyObject *resultobj;
7767 otk::Rect *arg1 = 0 ;
7768 otk::Rect *result;
7769 PyObject * obj0 = 0 ;
7770
7771 if(!PyArg_ParseTuple(args,(char *)"O:new_Rect",&obj0)) goto fail;
7772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7773 if (arg1 == NULL) {
7774 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7775 }
7776 result = (otk::Rect *)new otk::Rect((otk::Rect const &)*arg1);
7777
7778 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
7779 return resultobj;
7780 fail:
7781 return NULL;
7782 }
7783
7784
7785 static PyObject *_wrap_new_Rect__SWIG_4(PyObject *self, PyObject *args) {
7786 PyObject *resultobj;
7787 XRectangle *arg1 = 0 ;
7788 otk::Rect *result;
7789 PyObject * obj0 = 0 ;
7790
7791 if(!PyArg_ParseTuple(args,(char *)"O:new_Rect",&obj0)) goto fail;
7792 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_XRectangle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7793 if (arg1 == NULL) {
7794 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7795 }
7796 result = (otk::Rect *)new otk::Rect((XRectangle const &)*arg1);
7797
7798 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
7799 return resultobj;
7800 fail:
7801 return NULL;
7802 }
7803
7804
7805 static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args) {
7806 int argc;
7807 PyObject *argv[5];
7808 int ii;
7809
7810 argc = PyObject_Length(args);
7811 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
7812 argv[ii] = PyTuple_GetItem(args,ii);
7813 }
7814 if (argc == 0) {
7815 return _wrap_new_Rect__SWIG_0(self,args);
7816 }
7817 if (argc == 1) {
7818 int _v;
7819 {
7820 void *ptr;
7821 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
7822 _v = 0;
7823 PyErr_Clear();
7824 }else {
7825 _v = 1;
7826 }
7827 }
7828 if (_v) {
7829 return _wrap_new_Rect__SWIG_3(self,args);
7830 }
7831 }
7832 if (argc == 1) {
7833 int _v;
7834 {
7835 void *ptr;
7836 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_XRectangle, 0) == -1) {
7837 _v = 0;
7838 PyErr_Clear();
7839 }else {
7840 _v = 1;
7841 }
7842 }
7843 if (_v) {
7844 return _wrap_new_Rect__SWIG_4(self,args);
7845 }
7846 }
7847 if (argc == 2) {
7848 int _v;
7849 {
7850 void *ptr;
7851 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
7852 _v = 0;
7853 PyErr_Clear();
7854 }else {
7855 _v = 1;
7856 }
7857 }
7858 if (_v) {
7859 {
7860 void *ptr;
7861 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
7862 _v = 0;
7863 PyErr_Clear();
7864 }else {
7865 _v = 1;
7866 }
7867 }
7868 if (_v) {
7869 return _wrap_new_Rect__SWIG_2(self,args);
7870 }
7871 }
7872 }
7873 if (argc == 4) {
7874 int _v;
7875 {
7876 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
7877 }
7878 if (_v) {
7879 {
7880 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
7881 }
7882 if (_v) {
7883 {
7884 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7885 }
7886 if (_v) {
7887 {
7888 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7889 }
7890 if (_v) {
7891 return _wrap_new_Rect__SWIG_1(self,args);
7892 }
7893 }
7894 }
7895 }
7896 }
7897
7898 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Rect'");
7899 return NULL;
7900 }
7901
7902
7903 static PyObject *_wrap_Rect_left(PyObject *self, PyObject *args) {
7904 PyObject *resultobj;
7905 otk::Rect *arg1 = (otk::Rect *) 0 ;
7906 int result;
7907 PyObject * obj0 = 0 ;
7908
7909 if(!PyArg_ParseTuple(args,(char *)"O:Rect_left",&obj0)) goto fail;
7910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7911 result = (int)((otk::Rect const *)arg1)->left();
7912
7913 resultobj = PyInt_FromLong((long)result);
7914 return resultobj;
7915 fail:
7916 return NULL;
7917 }
7918
7919
7920 static PyObject *_wrap_Rect_top(PyObject *self, PyObject *args) {
7921 PyObject *resultobj;
7922 otk::Rect *arg1 = (otk::Rect *) 0 ;
7923 int result;
7924 PyObject * obj0 = 0 ;
7925
7926 if(!PyArg_ParseTuple(args,(char *)"O:Rect_top",&obj0)) goto fail;
7927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7928 result = (int)((otk::Rect const *)arg1)->top();
7929
7930 resultobj = PyInt_FromLong((long)result);
7931 return resultobj;
7932 fail:
7933 return NULL;
7934 }
7935
7936
7937 static PyObject *_wrap_Rect_right(PyObject *self, PyObject *args) {
7938 PyObject *resultobj;
7939 otk::Rect *arg1 = (otk::Rect *) 0 ;
7940 int result;
7941 PyObject * obj0 = 0 ;
7942
7943 if(!PyArg_ParseTuple(args,(char *)"O:Rect_right",&obj0)) goto fail;
7944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7945 result = (int)((otk::Rect const *)arg1)->right();
7946
7947 resultobj = PyInt_FromLong((long)result);
7948 return resultobj;
7949 fail:
7950 return NULL;
7951 }
7952
7953
7954 static PyObject *_wrap_Rect_bottom(PyObject *self, PyObject *args) {
7955 PyObject *resultobj;
7956 otk::Rect *arg1 = (otk::Rect *) 0 ;
7957 int result;
7958 PyObject * obj0 = 0 ;
7959
7960 if(!PyArg_ParseTuple(args,(char *)"O:Rect_bottom",&obj0)) goto fail;
7961 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7962 result = (int)((otk::Rect const *)arg1)->bottom();
7963
7964 resultobj = PyInt_FromLong((long)result);
7965 return resultobj;
7966 fail:
7967 return NULL;
7968 }
7969
7970
7971 static PyObject *_wrap_Rect_x(PyObject *self, PyObject *args) {
7972 PyObject *resultobj;
7973 otk::Rect *arg1 = (otk::Rect *) 0 ;
7974 int result;
7975 PyObject * obj0 = 0 ;
7976
7977 if(!PyArg_ParseTuple(args,(char *)"O:Rect_x",&obj0)) goto fail;
7978 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7979 result = (int)((otk::Rect const *)arg1)->x();
7980
7981 resultobj = PyInt_FromLong((long)result);
7982 return resultobj;
7983 fail:
7984 return NULL;
7985 }
7986
7987
7988 static PyObject *_wrap_Rect_y(PyObject *self, PyObject *args) {
7989 PyObject *resultobj;
7990 otk::Rect *arg1 = (otk::Rect *) 0 ;
7991 int result;
7992 PyObject * obj0 = 0 ;
7993
7994 if(!PyArg_ParseTuple(args,(char *)"O:Rect_y",&obj0)) goto fail;
7995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7996 result = (int)((otk::Rect const *)arg1)->y();
7997
7998 resultobj = PyInt_FromLong((long)result);
7999 return resultobj;
8000 fail:
8001 return NULL;
8002 }
8003
8004
8005 static PyObject *_wrap_Rect_location(PyObject *self, PyObject *args) {
8006 PyObject *resultobj;
8007 otk::Rect *arg1 = (otk::Rect *) 0 ;
8008 otk::Point result;
8009 PyObject * obj0 = 0 ;
8010
8011 if(!PyArg_ParseTuple(args,(char *)"O:Rect_location",&obj0)) goto fail;
8012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8013 result = ((otk::Rect const *)arg1)->location();
8014
8015 {
8016 otk::Point * resultptr;
8017 resultptr = new otk::Point((otk::Point &) result);
8018 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Point, 1);
8019 }
8020 return resultobj;
8021 fail:
8022 return NULL;
8023 }
8024
8025
8026 static PyObject *_wrap_Rect_setX(PyObject *self, PyObject *args) {
8027 PyObject *resultobj;
8028 otk::Rect *arg1 = (otk::Rect *) 0 ;
8029 int arg2 ;
8030 PyObject * obj0 = 0 ;
8031
8032 if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setX",&obj0,&arg2)) goto fail;
8033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8034 (arg1)->setX(arg2);
8035
8036 Py_INCREF(Py_None); resultobj = Py_None;
8037 return resultobj;
8038 fail:
8039 return NULL;
8040 }
8041
8042
8043 static PyObject *_wrap_Rect_setY(PyObject *self, PyObject *args) {
8044 PyObject *resultobj;
8045 otk::Rect *arg1 = (otk::Rect *) 0 ;
8046 int arg2 ;
8047 PyObject * obj0 = 0 ;
8048
8049 if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setY",&obj0,&arg2)) goto fail;
8050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8051 (arg1)->setY(arg2);
8052
8053 Py_INCREF(Py_None); resultobj = Py_None;
8054 return resultobj;
8055 fail:
8056 return NULL;
8057 }
8058
8059
8060 static PyObject *_wrap_Rect_setPos__SWIG_0(PyObject *self, PyObject *args) {
8061 PyObject *resultobj;
8062 otk::Rect *arg1 = (otk::Rect *) 0 ;
8063 int arg2 ;
8064 int arg3 ;
8065 PyObject * obj0 = 0 ;
8066
8067 if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_setPos",&obj0,&arg2,&arg3)) goto fail;
8068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8069 (arg1)->setPos(arg2,arg3);
8070
8071 Py_INCREF(Py_None); resultobj = Py_None;
8072 return resultobj;
8073 fail:
8074 return NULL;
8075 }
8076
8077
8078 static PyObject *_wrap_Rect_setPos__SWIG_1(PyObject *self, PyObject *args) {
8079 PyObject *resultobj;
8080 otk::Rect *arg1 = (otk::Rect *) 0 ;
8081 otk::Point *arg2 = 0 ;
8082 PyObject * obj0 = 0 ;
8083 PyObject * obj1 = 0 ;
8084
8085 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_setPos",&obj0,&obj1)) goto fail;
8086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8087 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8088 if (arg2 == NULL) {
8089 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8090 }
8091 (arg1)->setPos((otk::Point const &)*arg2);
8092
8093 Py_INCREF(Py_None); resultobj = Py_None;
8094 return resultobj;
8095 fail:
8096 return NULL;
8097 }
8098
8099
8100 static PyObject *_wrap_Rect_setPos(PyObject *self, PyObject *args) {
8101 int argc;
8102 PyObject *argv[4];
8103 int ii;
8104
8105 argc = PyObject_Length(args);
8106 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8107 argv[ii] = PyTuple_GetItem(args,ii);
8108 }
8109 if (argc == 2) {
8110 int _v;
8111 {
8112 void *ptr;
8113 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8114 _v = 0;
8115 PyErr_Clear();
8116 }else {
8117 _v = 1;
8118 }
8119 }
8120 if (_v) {
8121 {
8122 void *ptr;
8123 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
8124 _v = 0;
8125 PyErr_Clear();
8126 }else {
8127 _v = 1;
8128 }
8129 }
8130 if (_v) {
8131 return _wrap_Rect_setPos__SWIG_1(self,args);
8132 }
8133 }
8134 }
8135 if (argc == 3) {
8136 int _v;
8137 {
8138 void *ptr;
8139 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8140 _v = 0;
8141 PyErr_Clear();
8142 }else {
8143 _v = 1;
8144 }
8145 }
8146 if (_v) {
8147 {
8148 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
8149 }
8150 if (_v) {
8151 {
8152 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8153 }
8154 if (_v) {
8155 return _wrap_Rect_setPos__SWIG_0(self,args);
8156 }
8157 }
8158 }
8159 }
8160
8161 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setPos'");
8162 return NULL;
8163 }
8164
8165
8166 static PyObject *_wrap_Rect_width(PyObject *self, PyObject *args) {
8167 PyObject *resultobj;
8168 otk::Rect *arg1 = (otk::Rect *) 0 ;
8169 int result;
8170 PyObject * obj0 = 0 ;
8171
8172 if(!PyArg_ParseTuple(args,(char *)"O:Rect_width",&obj0)) goto fail;
8173 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8174 result = (int)((otk::Rect const *)arg1)->width();
8175
8176 resultobj = PyInt_FromLong((long)result);
8177 return resultobj;
8178 fail:
8179 return NULL;
8180 }
8181
8182
8183 static PyObject *_wrap_Rect_height(PyObject *self, PyObject *args) {
8184 PyObject *resultobj;
8185 otk::Rect *arg1 = (otk::Rect *) 0 ;
8186 int result;
8187 PyObject * obj0 = 0 ;
8188
8189 if(!PyArg_ParseTuple(args,(char *)"O:Rect_height",&obj0)) goto fail;
8190 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8191 result = (int)((otk::Rect const *)arg1)->height();
8192
8193 resultobj = PyInt_FromLong((long)result);
8194 return resultobj;
8195 fail:
8196 return NULL;
8197 }
8198
8199
8200 static PyObject *_wrap_Rect_size(PyObject *self, PyObject *args) {
8201 PyObject *resultobj;
8202 otk::Rect *arg1 = (otk::Rect *) 0 ;
8203 otk::Point result;
8204 PyObject * obj0 = 0 ;
8205
8206 if(!PyArg_ParseTuple(args,(char *)"O:Rect_size",&obj0)) goto fail;
8207 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8208 result = ((otk::Rect const *)arg1)->size();
8209
8210 {
8211 otk::Point * resultptr;
8212 resultptr = new otk::Point((otk::Point &) result);
8213 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Point, 1);
8214 }
8215 return resultobj;
8216 fail:
8217 return NULL;
8218 }
8219
8220
8221 static PyObject *_wrap_Rect_setWidth(PyObject *self, PyObject *args) {
8222 PyObject *resultobj;
8223 otk::Rect *arg1 = (otk::Rect *) 0 ;
8224 int arg2 ;
8225 PyObject * obj0 = 0 ;
8226
8227 if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setWidth",&obj0,&arg2)) goto fail;
8228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8229 (arg1)->setWidth(arg2);
8230
8231 Py_INCREF(Py_None); resultobj = Py_None;
8232 return resultobj;
8233 fail:
8234 return NULL;
8235 }
8236
8237
8238 static PyObject *_wrap_Rect_setHeight(PyObject *self, PyObject *args) {
8239 PyObject *resultobj;
8240 otk::Rect *arg1 = (otk::Rect *) 0 ;
8241 int arg2 ;
8242 PyObject * obj0 = 0 ;
8243
8244 if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setHeight",&obj0,&arg2)) goto fail;
8245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8246 (arg1)->setHeight(arg2);
8247
8248 Py_INCREF(Py_None); resultobj = Py_None;
8249 return resultobj;
8250 fail:
8251 return NULL;
8252 }
8253
8254
8255 static PyObject *_wrap_Rect_setSize__SWIG_0(PyObject *self, PyObject *args) {
8256 PyObject *resultobj;
8257 otk::Rect *arg1 = (otk::Rect *) 0 ;
8258 int arg2 ;
8259 int arg3 ;
8260 PyObject * obj0 = 0 ;
8261
8262 if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_setSize",&obj0,&arg2,&arg3)) goto fail;
8263 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8264 (arg1)->setSize(arg2,arg3);
8265
8266 Py_INCREF(Py_None); resultobj = Py_None;
8267 return resultobj;
8268 fail:
8269 return NULL;
8270 }
8271
8272
8273 static PyObject *_wrap_Rect_setSize__SWIG_1(PyObject *self, PyObject *args) {
8274 PyObject *resultobj;
8275 otk::Rect *arg1 = (otk::Rect *) 0 ;
8276 otk::Point *arg2 = 0 ;
8277 PyObject * obj0 = 0 ;
8278 PyObject * obj1 = 0 ;
8279
8280 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_setSize",&obj0,&obj1)) goto fail;
8281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8282 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8283 if (arg2 == NULL) {
8284 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8285 }
8286 (arg1)->setSize((otk::Point const &)*arg2);
8287
8288 Py_INCREF(Py_None); resultobj = Py_None;
8289 return resultobj;
8290 fail:
8291 return NULL;
8292 }
8293
8294
8295 static PyObject *_wrap_Rect_setSize(PyObject *self, PyObject *args) {
8296 int argc;
8297 PyObject *argv[4];
8298 int ii;
8299
8300 argc = PyObject_Length(args);
8301 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8302 argv[ii] = PyTuple_GetItem(args,ii);
8303 }
8304 if (argc == 2) {
8305 int _v;
8306 {
8307 void *ptr;
8308 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8309 _v = 0;
8310 PyErr_Clear();
8311 }else {
8312 _v = 1;
8313 }
8314 }
8315 if (_v) {
8316 {
8317 void *ptr;
8318 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
8319 _v = 0;
8320 PyErr_Clear();
8321 }else {
8322 _v = 1;
8323 }
8324 }
8325 if (_v) {
8326 return _wrap_Rect_setSize__SWIG_1(self,args);
8327 }
8328 }
8329 }
8330 if (argc == 3) {
8331 int _v;
8332 {
8333 void *ptr;
8334 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8335 _v = 0;
8336 PyErr_Clear();
8337 }else {
8338 _v = 1;
8339 }
8340 }
8341 if (_v) {
8342 {
8343 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
8344 }
8345 if (_v) {
8346 {
8347 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8348 }
8349 if (_v) {
8350 return _wrap_Rect_setSize__SWIG_0(self,args);
8351 }
8352 }
8353 }
8354 }
8355
8356 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setSize'");
8357 return NULL;
8358 }
8359
8360
8361 static PyObject *_wrap_Rect_setRect__SWIG_0(PyObject *self, PyObject *args) {
8362 PyObject *resultobj;
8363 otk::Rect *arg1 = (otk::Rect *) 0 ;
8364 int arg2 ;
8365 int arg3 ;
8366 int arg4 ;
8367 int arg5 ;
8368 PyObject * obj0 = 0 ;
8369
8370 if(!PyArg_ParseTuple(args,(char *)"Oiiii:Rect_setRect",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
8371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8372 (arg1)->setRect(arg2,arg3,arg4,arg5);
8373
8374 Py_INCREF(Py_None); resultobj = Py_None;
8375 return resultobj;
8376 fail:
8377 return NULL;
8378 }
8379
8380
8381 static PyObject *_wrap_Rect_setRect__SWIG_1(PyObject *self, PyObject *args) {
8382 PyObject *resultobj;
8383 otk::Rect *arg1 = (otk::Rect *) 0 ;
8384 otk::Point *arg2 = 0 ;
8385 otk::Point *arg3 = 0 ;
8386 PyObject * obj0 = 0 ;
8387 PyObject * obj1 = 0 ;
8388 PyObject * obj2 = 0 ;
8389
8390 if(!PyArg_ParseTuple(args,(char *)"OOO:Rect_setRect",&obj0,&obj1,&obj2)) goto fail;
8391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8392 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8393 if (arg2 == NULL) {
8394 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8395 }
8396 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8397 if (arg3 == NULL) {
8398 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8399 }
8400 (arg1)->setRect((otk::Point const &)*arg2,(otk::Point const &)*arg3);
8401
8402 Py_INCREF(Py_None); resultobj = Py_None;
8403 return resultobj;
8404 fail:
8405 return NULL;
8406 }
8407
8408
8409 static PyObject *_wrap_Rect_setRect(PyObject *self, PyObject *args) {
8410 int argc;
8411 PyObject *argv[6];
8412 int ii;
8413
8414 argc = PyObject_Length(args);
8415 for (ii = 0; (ii < argc) && (ii < 5); ii++) {
8416 argv[ii] = PyTuple_GetItem(args,ii);
8417 }
8418 if (argc == 3) {
8419 int _v;
8420 {
8421 void *ptr;
8422 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8423 _v = 0;
8424 PyErr_Clear();
8425 }else {
8426 _v = 1;
8427 }
8428 }
8429 if (_v) {
8430 {
8431 void *ptr;
8432 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
8433 _v = 0;
8434 PyErr_Clear();
8435 }else {
8436 _v = 1;
8437 }
8438 }
8439 if (_v) {
8440 {
8441 void *ptr;
8442 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
8443 _v = 0;
8444 PyErr_Clear();
8445 }else {
8446 _v = 1;
8447 }
8448 }
8449 if (_v) {
8450 return _wrap_Rect_setRect__SWIG_1(self,args);
8451 }
8452 }
8453 }
8454 }
8455 if (argc == 5) {
8456 int _v;
8457 {
8458 void *ptr;
8459 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8460 _v = 0;
8461 PyErr_Clear();
8462 }else {
8463 _v = 1;
8464 }
8465 }
8466 if (_v) {
8467 {
8468 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
8469 }
8470 if (_v) {
8471 {
8472 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8473 }
8474 if (_v) {
8475 {
8476 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
8477 }
8478 if (_v) {
8479 {
8480 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
8481 }
8482 if (_v) {
8483 return _wrap_Rect_setRect__SWIG_0(self,args);
8484 }
8485 }
8486 }
8487 }
8488 }
8489 }
8490
8491 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setRect'");
8492 return NULL;
8493 }
8494
8495
8496 static PyObject *_wrap_Rect_setCoords__SWIG_0(PyObject *self, PyObject *args) {
8497 PyObject *resultobj;
8498 otk::Rect *arg1 = (otk::Rect *) 0 ;
8499 int arg2 ;
8500 int arg3 ;
8501 int arg4 ;
8502 int arg5 ;
8503 PyObject * obj0 = 0 ;
8504
8505 if(!PyArg_ParseTuple(args,(char *)"Oiiii:Rect_setCoords",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
8506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8507 (arg1)->setCoords(arg2,arg3,arg4,arg5);
8508
8509 Py_INCREF(Py_None); resultobj = Py_None;
8510 return resultobj;
8511 fail:
8512 return NULL;
8513 }
8514
8515
8516 static PyObject *_wrap_Rect_setCoords__SWIG_1(PyObject *self, PyObject *args) {
8517 PyObject *resultobj;
8518 otk::Rect *arg1 = (otk::Rect *) 0 ;
8519 otk::Point *arg2 = 0 ;
8520 otk::Point *arg3 = 0 ;
8521 PyObject * obj0 = 0 ;
8522 PyObject * obj1 = 0 ;
8523 PyObject * obj2 = 0 ;
8524
8525 if(!PyArg_ParseTuple(args,(char *)"OOO:Rect_setCoords",&obj0,&obj1,&obj2)) goto fail;
8526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8527 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8528 if (arg2 == NULL) {
8529 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8530 }
8531 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8532 if (arg3 == NULL) {
8533 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8534 }
8535 (arg1)->setCoords((otk::Point const &)*arg2,(otk::Point const &)*arg3);
8536
8537 Py_INCREF(Py_None); resultobj = Py_None;
8538 return resultobj;
8539 fail:
8540 return NULL;
8541 }
8542
8543
8544 static PyObject *_wrap_Rect_setCoords(PyObject *self, PyObject *args) {
8545 int argc;
8546 PyObject *argv[6];
8547 int ii;
8548
8549 argc = PyObject_Length(args);
8550 for (ii = 0; (ii < argc) && (ii < 5); ii++) {
8551 argv[ii] = PyTuple_GetItem(args,ii);
8552 }
8553 if (argc == 3) {
8554 int _v;
8555 {
8556 void *ptr;
8557 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8558 _v = 0;
8559 PyErr_Clear();
8560 }else {
8561 _v = 1;
8562 }
8563 }
8564 if (_v) {
8565 {
8566 void *ptr;
8567 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
8568 _v = 0;
8569 PyErr_Clear();
8570 }else {
8571 _v = 1;
8572 }
8573 }
8574 if (_v) {
8575 {
8576 void *ptr;
8577 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
8578 _v = 0;
8579 PyErr_Clear();
8580 }else {
8581 _v = 1;
8582 }
8583 }
8584 if (_v) {
8585 return _wrap_Rect_setCoords__SWIG_1(self,args);
8586 }
8587 }
8588 }
8589 }
8590 if (argc == 5) {
8591 int _v;
8592 {
8593 void *ptr;
8594 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8595 _v = 0;
8596 PyErr_Clear();
8597 }else {
8598 _v = 1;
8599 }
8600 }
8601 if (_v) {
8602 {
8603 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
8604 }
8605 if (_v) {
8606 {
8607 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8608 }
8609 if (_v) {
8610 {
8611 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
8612 }
8613 if (_v) {
8614 {
8615 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
8616 }
8617 if (_v) {
8618 return _wrap_Rect_setCoords__SWIG_0(self,args);
8619 }
8620 }
8621 }
8622 }
8623 }
8624 }
8625
8626 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setCoords'");
8627 return NULL;
8628 }
8629
8630
8631 static PyObject *_wrap_Rect_equals(PyObject *self, PyObject *args) {
8632 PyObject *resultobj;
8633 otk::Rect *arg1 = (otk::Rect *) 0 ;
8634 otk::Rect *arg2 = 0 ;
8635 bool result;
8636 PyObject * obj0 = 0 ;
8637 PyObject * obj1 = 0 ;
8638
8639 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_equals",&obj0,&obj1)) goto fail;
8640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8641 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8642 if (arg2 == NULL) {
8643 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8644 }
8645 result = (bool)(arg1)->operator ==((otk::Rect const &)*arg2);
8646
8647 resultobj = PyInt_FromLong((long)result);
8648 return resultobj;
8649 fail:
8650 return NULL;
8651 }
8652
8653
8654 static PyObject *_wrap_Rect_valid(PyObject *self, PyObject *args) {
8655 PyObject *resultobj;
8656 otk::Rect *arg1 = (otk::Rect *) 0 ;
8657 bool result;
8658 PyObject * obj0 = 0 ;
8659
8660 if(!PyArg_ParseTuple(args,(char *)"O:Rect_valid",&obj0)) goto fail;
8661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8662 result = (bool)((otk::Rect const *)arg1)->valid();
8663
8664 resultobj = PyInt_FromLong((long)result);
8665 return resultobj;
8666 fail:
8667 return NULL;
8668 }
8669
8670
8671 static PyObject *_wrap_Rect_intersects(PyObject *self, PyObject *args) {
8672 PyObject *resultobj;
8673 otk::Rect *arg1 = (otk::Rect *) 0 ;
8674 otk::Rect *arg2 = 0 ;
8675 bool result;
8676 PyObject * obj0 = 0 ;
8677 PyObject * obj1 = 0 ;
8678
8679 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_intersects",&obj0,&obj1)) goto fail;
8680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8681 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8682 if (arg2 == NULL) {
8683 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8684 }
8685 result = (bool)((otk::Rect const *)arg1)->intersects((otk::Rect const &)*arg2);
8686
8687 resultobj = PyInt_FromLong((long)result);
8688 return resultobj;
8689 fail:
8690 return NULL;
8691 }
8692
8693
8694 static PyObject *_wrap_Rect_contains__SWIG_0(PyObject *self, PyObject *args) {
8695 PyObject *resultobj;
8696 otk::Rect *arg1 = (otk::Rect *) 0 ;
8697 int arg2 ;
8698 int arg3 ;
8699 bool result;
8700 PyObject * obj0 = 0 ;
8701
8702 if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_contains",&obj0,&arg2,&arg3)) goto fail;
8703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8704 result = (bool)((otk::Rect const *)arg1)->contains(arg2,arg3);
8705
8706 resultobj = PyInt_FromLong((long)result);
8707 return resultobj;
8708 fail:
8709 return NULL;
8710 }
8711
8712
8713 static PyObject *_wrap_Rect_contains__SWIG_1(PyObject *self, PyObject *args) {
8714 PyObject *resultobj;
8715 otk::Rect *arg1 = (otk::Rect *) 0 ;
8716 otk::Point *arg2 = 0 ;
8717 bool result;
8718 PyObject * obj0 = 0 ;
8719 PyObject * obj1 = 0 ;
8720
8721 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_contains",&obj0,&obj1)) goto fail;
8722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8723 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8724 if (arg2 == NULL) {
8725 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8726 }
8727 result = (bool)((otk::Rect const *)arg1)->contains((otk::Point const &)*arg2);
8728
8729 resultobj = PyInt_FromLong((long)result);
8730 return resultobj;
8731 fail:
8732 return NULL;
8733 }
8734
8735
8736 static PyObject *_wrap_Rect_contains__SWIG_2(PyObject *self, PyObject *args) {
8737 PyObject *resultobj;
8738 otk::Rect *arg1 = (otk::Rect *) 0 ;
8739 otk::Rect *arg2 = 0 ;
8740 bool result;
8741 PyObject * obj0 = 0 ;
8742 PyObject * obj1 = 0 ;
8743
8744 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_contains",&obj0,&obj1)) goto fail;
8745 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8746 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8747 if (arg2 == NULL) {
8748 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8749 }
8750 result = (bool)((otk::Rect const *)arg1)->contains((otk::Rect const &)*arg2);
8751
8752 resultobj = PyInt_FromLong((long)result);
8753 return resultobj;
8754 fail:
8755 return NULL;
8756 }
8757
8758
8759 static PyObject *_wrap_Rect_contains(PyObject *self, PyObject *args) {
8760 int argc;
8761 PyObject *argv[4];
8762 int ii;
8763
8764 argc = PyObject_Length(args);
8765 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8766 argv[ii] = PyTuple_GetItem(args,ii);
8767 }
8768 if (argc == 2) {
8769 int _v;
8770 {
8771 void *ptr;
8772 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8773 _v = 0;
8774 PyErr_Clear();
8775 }else {
8776 _v = 1;
8777 }
8778 }
8779 if (_v) {
8780 {
8781 void *ptr;
8782 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
8783 _v = 0;
8784 PyErr_Clear();
8785 }else {
8786 _v = 1;
8787 }
8788 }
8789 if (_v) {
8790 return _wrap_Rect_contains__SWIG_1(self,args);
8791 }
8792 }
8793 }
8794 if (argc == 2) {
8795 int _v;
8796 {
8797 void *ptr;
8798 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8799 _v = 0;
8800 PyErr_Clear();
8801 }else {
8802 _v = 1;
8803 }
8804 }
8805 if (_v) {
8806 {
8807 void *ptr;
8808 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8809 _v = 0;
8810 PyErr_Clear();
8811 }else {
8812 _v = 1;
8813 }
8814 }
8815 if (_v) {
8816 return _wrap_Rect_contains__SWIG_2(self,args);
8817 }
8818 }
8819 }
8820 if (argc == 3) {
8821 int _v;
8822 {
8823 void *ptr;
8824 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8825 _v = 0;
8826 PyErr_Clear();
8827 }else {
8828 _v = 1;
8829 }
8830 }
8831 if (_v) {
8832 {
8833 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
8834 }
8835 if (_v) {
8836 {
8837 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8838 }
8839 if (_v) {
8840 return _wrap_Rect_contains__SWIG_0(self,args);
8841 }
8842 }
8843 }
8844 }
8845
8846 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_contains'");
8847 return NULL;
8848 }
8849
8850
8851 static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args) {
8852 PyObject *resultobj;
8853 otk::Rect *arg1 = (otk::Rect *) 0 ;
8854 PyObject * obj0 = 0 ;
8855
8856 if(!PyArg_ParseTuple(args,(char *)"O:delete_Rect",&obj0)) goto fail;
8857 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8858 delete arg1;
8859
8860 Py_INCREF(Py_None); resultobj = Py_None;
8861 return resultobj;
8862 fail:
8863 return NULL;
8864 }
8865
8866
8867 static PyObject * Rect_swigregister(PyObject *self, PyObject *args) {
8868 PyObject *obj;
8869 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8870 SWIG_TypeClientData(SWIGTYPE_p_otk__Rect, obj);
8871 Py_INCREF(obj);
8872 return Py_BuildValue((char *)"");
8873 }
8874 static PyObject *_wrap_new_ScreenInfo(PyObject *self, PyObject *args) {
8875 PyObject *resultobj;
8876 unsigned int arg1 ;
8877 otk::ScreenInfo *result;
8878 PyObject * obj0 = 0 ;
8879
8880 if(!PyArg_ParseTuple(args,(char *)"O:new_ScreenInfo",&obj0)) goto fail;
8881 arg1 = (unsigned int) PyInt_AsLong(obj0);
8882 if (PyErr_Occurred()) SWIG_fail;
8883 result = (otk::ScreenInfo *)new otk::ScreenInfo(arg1);
8884
8885 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 1);
8886 return resultobj;
8887 fail:
8888 return NULL;
8889 }
8890
8891
8892 static PyObject *_wrap_ScreenInfo_visual(PyObject *self, PyObject *args) {
8893 PyObject *resultobj;
8894 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
8895 Visual *result;
8896 PyObject * obj0 = 0 ;
8897
8898 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_visual",&obj0)) goto fail;
8899 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8900 result = (Visual *)((otk::ScreenInfo const *)arg1)->visual();
8901
8902 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Visual, 0);
8903 return resultobj;
8904 fail:
8905 return NULL;
8906 }
8907
8908
8909 static PyObject *_wrap_ScreenInfo_rootWindow(PyObject *self, PyObject *args) {
8910 PyObject *resultobj;
8911 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
8912 Window result;
8913 PyObject * obj0 = 0 ;
8914
8915 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_rootWindow",&obj0)) goto fail;
8916 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8917 result = (Window)((otk::ScreenInfo const *)arg1)->rootWindow();
8918
8919 resultobj = PyInt_FromLong((long)result);
8920 return resultobj;
8921 fail:
8922 return NULL;
8923 }
8924
8925
8926 static PyObject *_wrap_ScreenInfo_colormap(PyObject *self, PyObject *args) {
8927 PyObject *resultobj;
8928 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
8929 Colormap result;
8930 PyObject * obj0 = 0 ;
8931
8932 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_colormap",&obj0)) goto fail;
8933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8934 result = (Colormap)((otk::ScreenInfo const *)arg1)->colormap();
8935
8936 resultobj = PyInt_FromLong((long)result);
8937 return resultobj;
8938 fail:
8939 return NULL;
8940 }
8941
8942
8943 static PyObject *_wrap_ScreenInfo_depth(PyObject *self, PyObject *args) {
8944 PyObject *resultobj;
8945 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
8946 int result;
8947 PyObject * obj0 = 0 ;
8948
8949 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_depth",&obj0)) goto fail;
8950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8951 result = (int)((otk::ScreenInfo const *)arg1)->depth();
8952
8953 resultobj = PyInt_FromLong((long)result);
8954 return resultobj;
8955 fail:
8956 return NULL;
8957 }
8958
8959
8960 static PyObject *_wrap_ScreenInfo_screen(PyObject *self, PyObject *args) {
8961 PyObject *resultobj;
8962 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
8963 unsigned int result;
8964 PyObject * obj0 = 0 ;
8965
8966 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_screen",&obj0)) goto fail;
8967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8968 result = (unsigned int)((otk::ScreenInfo const *)arg1)->screen();
8969
8970 resultobj = PyInt_FromLong((long)result);
8971 return resultobj;
8972 fail:
8973 return NULL;
8974 }
8975
8976
8977 static PyObject *_wrap_ScreenInfo_rect(PyObject *self, PyObject *args) {
8978 PyObject *resultobj;
8979 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
8980 otk::Rect *result;
8981 PyObject * obj0 = 0 ;
8982
8983 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_rect",&obj0)) goto fail;
8984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8985 {
8986 otk::Rect const &_result_ref = ((otk::ScreenInfo const *)arg1)->rect();
8987 result = (otk::Rect *) &_result_ref;
8988 }
8989
8990 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
8991 return resultobj;
8992 fail:
8993 return NULL;
8994 }
8995
8996
8997 static PyObject *_wrap_ScreenInfo_width(PyObject *self, PyObject *args) {
8998 PyObject *resultobj;
8999 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
9000 unsigned int result;
9001 PyObject * obj0 = 0 ;
9002
9003 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_width",&obj0)) goto fail;
9004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9005 result = (unsigned int)((otk::ScreenInfo const *)arg1)->width();
9006
9007 resultobj = PyInt_FromLong((long)result);
9008 return resultobj;
9009 fail:
9010 return NULL;
9011 }
9012
9013
9014 static PyObject *_wrap_ScreenInfo_height(PyObject *self, PyObject *args) {
9015 PyObject *resultobj;
9016 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
9017 unsigned int result;
9018 PyObject * obj0 = 0 ;
9019
9020 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_height",&obj0)) goto fail;
9021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9022 result = (unsigned int)((otk::ScreenInfo const *)arg1)->height();
9023
9024 resultobj = PyInt_FromLong((long)result);
9025 return resultobj;
9026 fail:
9027 return NULL;
9028 }
9029
9030
9031 static PyObject *_wrap_ScreenInfo_displayString(PyObject *self, PyObject *args) {
9032 PyObject *resultobj;
9033 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
9034 std::string *result;
9035 PyObject * obj0 = 0 ;
9036
9037 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_displayString",&obj0)) goto fail;
9038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9039 {
9040 std::string const &_result_ref = ((otk::ScreenInfo const *)arg1)->displayString();
9041 result = (std::string *) &_result_ref;
9042 }
9043
9044 {
9045 resultobj = PyString_FromString(result->c_str());
9046 }
9047 return resultobj;
9048 fail:
9049 return NULL;
9050 }
9051
9052
9053 static PyObject *_wrap_delete_ScreenInfo(PyObject *self, PyObject *args) {
9054 PyObject *resultobj;
9055 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
9056 PyObject * obj0 = 0 ;
9057
9058 if(!PyArg_ParseTuple(args,(char *)"O:delete_ScreenInfo",&obj0)) goto fail;
9059 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9060 delete arg1;
9061
9062 Py_INCREF(Py_None); resultobj = Py_None;
9063 return resultobj;
9064 fail:
9065 return NULL;
9066 }
9067
9068
9069 static PyObject * ScreenInfo_swigregister(PyObject *self, PyObject *args) {
9070 PyObject *obj;
9071 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9072 SWIG_TypeClientData(SWIGTYPE_p_otk__ScreenInfo, obj);
9073 Py_INCREF(obj);
9074 return Py_BuildValue((char *)"");
9075 }
9076 static PyObject *_wrap_Strut_top_set(PyObject *self, PyObject *args) {
9077 PyObject *resultobj;
9078 otk::Strut *arg1 = (otk::Strut *) 0 ;
9079 unsigned int arg2 ;
9080 PyObject * obj0 = 0 ;
9081 PyObject * obj1 = 0 ;
9082
9083 if(!PyArg_ParseTuple(args,(char *)"OO:Strut_top_set",&obj0,&obj1)) goto fail;
9084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9085 arg2 = (unsigned int) PyInt_AsLong(obj1);
9086 if (PyErr_Occurred()) SWIG_fail;
9087 if (arg1) (arg1)->top = arg2;
9088
9089 Py_INCREF(Py_None); resultobj = Py_None;
9090 return resultobj;
9091 fail:
9092 return NULL;
9093 }
9094
9095
9096 static PyObject *_wrap_Strut_top_get(PyObject *self, PyObject *args) {
9097 PyObject *resultobj;
9098 otk::Strut *arg1 = (otk::Strut *) 0 ;
9099 unsigned int result;
9100 PyObject * obj0 = 0 ;
9101
9102 if(!PyArg_ParseTuple(args,(char *)"O:Strut_top_get",&obj0)) goto fail;
9103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9104 result = (unsigned int) ((arg1)->top);
9105
9106 resultobj = PyInt_FromLong((long)result);
9107 return resultobj;
9108 fail:
9109 return NULL;
9110 }
9111
9112
9113 static PyObject *_wrap_Strut_bottom_set(PyObject *self, PyObject *args) {
9114 PyObject *resultobj;
9115 otk::Strut *arg1 = (otk::Strut *) 0 ;
9116 unsigned int arg2 ;
9117 PyObject * obj0 = 0 ;
9118 PyObject * obj1 = 0 ;
9119
9120 if(!PyArg_ParseTuple(args,(char *)"OO:Strut_bottom_set",&obj0,&obj1)) goto fail;
9121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9122 arg2 = (unsigned int) PyInt_AsLong(obj1);
9123 if (PyErr_Occurred()) SWIG_fail;
9124 if (arg1) (arg1)->bottom = arg2;
9125
9126 Py_INCREF(Py_None); resultobj = Py_None;
9127 return resultobj;
9128 fail:
9129 return NULL;
9130 }
9131
9132
9133 static PyObject *_wrap_Strut_bottom_get(PyObject *self, PyObject *args) {
9134 PyObject *resultobj;
9135 otk::Strut *arg1 = (otk::Strut *) 0 ;
9136 unsigned int result;
9137 PyObject * obj0 = 0 ;
9138
9139 if(!PyArg_ParseTuple(args,(char *)"O:Strut_bottom_get",&obj0)) goto fail;
9140 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9141 result = (unsigned int) ((arg1)->bottom);
9142
9143 resultobj = PyInt_FromLong((long)result);
9144 return resultobj;
9145 fail:
9146 return NULL;
9147 }
9148
9149
9150 static PyObject *_wrap_Strut_left_set(PyObject *self, PyObject *args) {
9151 PyObject *resultobj;
9152 otk::Strut *arg1 = (otk::Strut *) 0 ;
9153 unsigned int arg2 ;
9154 PyObject * obj0 = 0 ;
9155 PyObject * obj1 = 0 ;
9156
9157 if(!PyArg_ParseTuple(args,(char *)"OO:Strut_left_set",&obj0,&obj1)) goto fail;
9158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9159 arg2 = (unsigned int) PyInt_AsLong(obj1);
9160 if (PyErr_Occurred()) SWIG_fail;
9161 if (arg1) (arg1)->left = arg2;
9162
9163 Py_INCREF(Py_None); resultobj = Py_None;
9164 return resultobj;
9165 fail:
9166 return NULL;
9167 }
9168
9169
9170 static PyObject *_wrap_Strut_left_get(PyObject *self, PyObject *args) {
9171 PyObject *resultobj;
9172 otk::Strut *arg1 = (otk::Strut *) 0 ;
9173 unsigned int result;
9174 PyObject * obj0 = 0 ;
9175
9176 if(!PyArg_ParseTuple(args,(char *)"O:Strut_left_get",&obj0)) goto fail;
9177 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9178 result = (unsigned int) ((arg1)->left);
9179
9180 resultobj = PyInt_FromLong((long)result);
9181 return resultobj;
9182 fail:
9183 return NULL;
9184 }
9185
9186
9187 static PyObject *_wrap_Strut_right_set(PyObject *self, PyObject *args) {
9188 PyObject *resultobj;
9189 otk::Strut *arg1 = (otk::Strut *) 0 ;
9190 unsigned int arg2 ;
9191 PyObject * obj0 = 0 ;
9192 PyObject * obj1 = 0 ;
9193
9194 if(!PyArg_ParseTuple(args,(char *)"OO:Strut_right_set",&obj0,&obj1)) goto fail;
9195 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9196 arg2 = (unsigned int) PyInt_AsLong(obj1);
9197 if (PyErr_Occurred()) SWIG_fail;
9198 if (arg1) (arg1)->right = arg2;
9199
9200 Py_INCREF(Py_None); resultobj = Py_None;
9201 return resultobj;
9202 fail:
9203 return NULL;
9204 }
9205
9206
9207 static PyObject *_wrap_Strut_right_get(PyObject *self, PyObject *args) {
9208 PyObject *resultobj;
9209 otk::Strut *arg1 = (otk::Strut *) 0 ;
9210 unsigned int result;
9211 PyObject * obj0 = 0 ;
9212
9213 if(!PyArg_ParseTuple(args,(char *)"O:Strut_right_get",&obj0)) goto fail;
9214 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9215 result = (unsigned int) ((arg1)->right);
9216
9217 resultobj = PyInt_FromLong((long)result);
9218 return resultobj;
9219 fail:
9220 return NULL;
9221 }
9222
9223
9224 static PyObject *_wrap_new_Strut__SWIG_0(PyObject *self, PyObject *args) {
9225 PyObject *resultobj;
9226 otk::Strut *result;
9227
9228 if(!PyArg_ParseTuple(args,(char *)":new_Strut")) goto fail;
9229 result = (otk::Strut *)new otk::Strut();
9230
9231 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 1);
9232 return resultobj;
9233 fail:
9234 return NULL;
9235 }
9236
9237
9238 static PyObject *_wrap_new_Strut__SWIG_1(PyObject *self, PyObject *args) {
9239 PyObject *resultobj;
9240 int arg1 ;
9241 int arg2 ;
9242 int arg3 ;
9243 int arg4 ;
9244 otk::Strut *result;
9245
9246 if(!PyArg_ParseTuple(args,(char *)"iiii:new_Strut",&arg1,&arg2,&arg3,&arg4)) goto fail;
9247 result = (otk::Strut *)new otk::Strut(arg1,arg2,arg3,arg4);
9248
9249 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 1);
9250 return resultobj;
9251 fail:
9252 return NULL;
9253 }
9254
9255
9256 static PyObject *_wrap_new_Strut(PyObject *self, PyObject *args) {
9257 int argc;
9258 PyObject *argv[5];
9259 int ii;
9260
9261 argc = PyObject_Length(args);
9262 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
9263 argv[ii] = PyTuple_GetItem(args,ii);
9264 }
9265 if (argc == 0) {
9266 return _wrap_new_Strut__SWIG_0(self,args);
9267 }
9268 if (argc == 4) {
9269 int _v;
9270 {
9271 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
9272 }
9273 if (_v) {
9274 {
9275 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
9276 }
9277 if (_v) {
9278 {
9279 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
9280 }
9281 if (_v) {
9282 {
9283 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
9284 }
9285 if (_v) {
9286 return _wrap_new_Strut__SWIG_1(self,args);
9287 }
9288 }
9289 }
9290 }
9291 }
9292
9293 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Strut'");
9294 return NULL;
9295 }
9296
9297
9298 static PyObject *_wrap_delete_Strut(PyObject *self, PyObject *args) {
9299 PyObject *resultobj;
9300 otk::Strut *arg1 = (otk::Strut *) 0 ;
9301 PyObject * obj0 = 0 ;
9302
9303 if(!PyArg_ParseTuple(args,(char *)"O:delete_Strut",&obj0)) goto fail;
9304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9305 delete arg1;
9306
9307 Py_INCREF(Py_None); resultobj = Py_None;
9308 return resultobj;
9309 fail:
9310 return NULL;
9311 }
9312
9313
9314 static PyObject * Strut_swigregister(PyObject *self, PyObject *args) {
9315 PyObject *obj;
9316 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9317 SWIG_TypeClientData(SWIGTYPE_p_otk__Strut, obj);
9318 Py_INCREF(obj);
9319 return Py_BuildValue((char *)"");
9320 }
9321 static PyObject *_wrap_PixmapMask_mask_set(PyObject *self, PyObject *args) {
9322 PyObject *resultobj;
9323 otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
9324 Pixmap arg2 ;
9325 PyObject * obj0 = 0 ;
9326 PyObject * obj1 = 0 ;
9327
9328 if(!PyArg_ParseTuple(args,(char *)"OO:PixmapMask_mask_set",&obj0,&obj1)) goto fail;
9329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9330 arg2 = (Pixmap) PyInt_AsLong(obj1);
9331 if (PyErr_Occurred()) SWIG_fail;
9332 if (arg1) (arg1)->mask = arg2;
9333
9334 Py_INCREF(Py_None); resultobj = Py_None;
9335 return resultobj;
9336 fail:
9337 return NULL;
9338 }
9339
9340
9341 static PyObject *_wrap_PixmapMask_mask_get(PyObject *self, PyObject *args) {
9342 PyObject *resultobj;
9343 otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
9344 Pixmap result;
9345 PyObject * obj0 = 0 ;
9346
9347 if(!PyArg_ParseTuple(args,(char *)"O:PixmapMask_mask_get",&obj0)) goto fail;
9348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9349 result = (Pixmap) ((arg1)->mask);
9350
9351 resultobj = PyInt_FromLong((long)result);
9352 return resultobj;
9353 fail:
9354 return NULL;
9355 }
9356
9357
9358 static PyObject *_wrap_PixmapMask_w_set(PyObject *self, PyObject *args) {
9359 PyObject *resultobj;
9360 otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
9361 unsigned int arg2 ;
9362 PyObject * obj0 = 0 ;
9363 PyObject * obj1 = 0 ;
9364
9365 if(!PyArg_ParseTuple(args,(char *)"OO:PixmapMask_w_set",&obj0,&obj1)) goto fail;
9366 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9367 arg2 = (unsigned int) PyInt_AsLong(obj1);
9368 if (PyErr_Occurred()) SWIG_fail;
9369 if (arg1) (arg1)->w = arg2;
9370
9371 Py_INCREF(Py_None); resultobj = Py_None;
9372 return resultobj;
9373 fail:
9374 return NULL;
9375 }
9376
9377
9378 static PyObject *_wrap_PixmapMask_w_get(PyObject *self, PyObject *args) {
9379 PyObject *resultobj;
9380 otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
9381 unsigned int result;
9382 PyObject * obj0 = 0 ;
9383
9384 if(!PyArg_ParseTuple(args,(char *)"O:PixmapMask_w_get",&obj0)) goto fail;
9385 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9386 result = (unsigned int) ((arg1)->w);
9387
9388 resultobj = PyInt_FromLong((long)result);
9389 return resultobj;
9390 fail:
9391 return NULL;
9392 }
9393
9394
9395 static PyObject *_wrap_PixmapMask_h_set(PyObject *self, PyObject *args) {
9396 PyObject *resultobj;
9397 otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
9398 unsigned int arg2 ;
9399 PyObject * obj0 = 0 ;
9400 PyObject * obj1 = 0 ;
9401
9402 if(!PyArg_ParseTuple(args,(char *)"OO:PixmapMask_h_set",&obj0,&obj1)) goto fail;
9403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9404 arg2 = (unsigned int) PyInt_AsLong(obj1);
9405 if (PyErr_Occurred()) SWIG_fail;
9406 if (arg1) (arg1)->h = arg2;
9407
9408 Py_INCREF(Py_None); resultobj = Py_None;
9409 return resultobj;
9410 fail:
9411 return NULL;
9412 }
9413
9414
9415 static PyObject *_wrap_PixmapMask_h_get(PyObject *self, PyObject *args) {
9416 PyObject *resultobj;
9417 otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
9418 unsigned int result;
9419 PyObject * obj0 = 0 ;
9420
9421 if(!PyArg_ParseTuple(args,(char *)"O:PixmapMask_h_get",&obj0)) goto fail;
9422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9423 result = (unsigned int) ((arg1)->h);
9424
9425 resultobj = PyInt_FromLong((long)result);
9426 return resultobj;
9427 fail:
9428 return NULL;
9429 }
9430
9431
9432 static PyObject *_wrap_new_PixmapMask(PyObject *self, PyObject *args) {
9433 PyObject *resultobj;
9434 otk::PixmapMask *result;
9435
9436 if(!PyArg_ParseTuple(args,(char *)":new_PixmapMask")) goto fail;
9437 result = (otk::PixmapMask *)new otk::PixmapMask();
9438
9439 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 1);
9440 return resultobj;
9441 fail:
9442 return NULL;
9443 }
9444
9445
9446 static PyObject *_wrap_delete_PixmapMask(PyObject *self, PyObject *args) {
9447 PyObject *resultobj;
9448 otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
9449 PyObject * obj0 = 0 ;
9450
9451 if(!PyArg_ParseTuple(args,(char *)"O:delete_PixmapMask",&obj0)) goto fail;
9452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9453 delete arg1;
9454
9455 Py_INCREF(Py_None); resultobj = Py_None;
9456 return resultobj;
9457 fail:
9458 return NULL;
9459 }
9460
9461
9462 static PyObject * PixmapMask_swigregister(PyObject *self, PyObject *args) {
9463 PyObject *obj;
9464 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9465 SWIG_TypeClientData(SWIGTYPE_p_otk__PixmapMask, obj);
9466 Py_INCREF(obj);
9467 return Py_BuildValue((char *)"");
9468 }
9469 static PyObject *_wrap_Style_image_control_set(PyObject *self, PyObject *args) {
9470 PyObject *resultobj;
9471 otk::Style *arg1 = (otk::Style *) 0 ;
9472 otk::BImageControl *arg2 = (otk::BImageControl *) 0 ;
9473 PyObject * obj0 = 0 ;
9474 PyObject * obj1 = 0 ;
9475
9476 if(!PyArg_ParseTuple(args,(char *)"OO:Style_image_control_set",&obj0,&obj1)) goto fail;
9477 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9478 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
9479 if (arg1) (arg1)->image_control = arg2;
9480
9481 Py_INCREF(Py_None); resultobj = Py_None;
9482 return resultobj;
9483 fail:
9484 return NULL;
9485 }
9486
9487
9488 static PyObject *_wrap_Style_image_control_get(PyObject *self, PyObject *args) {
9489 PyObject *resultobj;
9490 otk::Style *arg1 = (otk::Style *) 0 ;
9491 otk::BImageControl *result;
9492 PyObject * obj0 = 0 ;
9493
9494 if(!PyArg_ParseTuple(args,(char *)"O:Style_image_control_get",&obj0)) goto fail;
9495 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9496 result = (otk::BImageControl *) ((arg1)->image_control);
9497
9498 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 0);
9499 return resultobj;
9500 fail:
9501 return NULL;
9502 }
9503
9504
9505 static PyObject *_wrap_Style_l_text_focus_set(PyObject *self, PyObject *args) {
9506 PyObject *resultobj;
9507 otk::Style *arg1 = (otk::Style *) 0 ;
9508 otk::BColor *arg2 = (otk::BColor *) 0 ;
9509 PyObject * obj0 = 0 ;
9510 PyObject * obj1 = 0 ;
9511
9512 if(!PyArg_ParseTuple(args,(char *)"OO:Style_l_text_focus_set",&obj0,&obj1)) goto fail;
9513 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9514 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9515 if (arg1) (arg1)->l_text_focus = *arg2;
9516
9517 Py_INCREF(Py_None); resultobj = Py_None;
9518 return resultobj;
9519 fail:
9520 return NULL;
9521 }
9522
9523
9524 static PyObject *_wrap_Style_l_text_focus_get(PyObject *self, PyObject *args) {
9525 PyObject *resultobj;
9526 otk::Style *arg1 = (otk::Style *) 0 ;
9527 otk::BColor *result;
9528 PyObject * obj0 = 0 ;
9529
9530 if(!PyArg_ParseTuple(args,(char *)"O:Style_l_text_focus_get",&obj0)) goto fail;
9531 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9532 result = (otk::BColor *)& ((arg1)->l_text_focus);
9533
9534 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
9535 return resultobj;
9536 fail:
9537 return NULL;
9538 }
9539
9540
9541 static PyObject *_wrap_Style_l_text_unfocus_set(PyObject *self, PyObject *args) {
9542 PyObject *resultobj;
9543 otk::Style *arg1 = (otk::Style *) 0 ;
9544 otk::BColor *arg2 = (otk::BColor *) 0 ;
9545 PyObject * obj0 = 0 ;
9546 PyObject * obj1 = 0 ;
9547
9548 if(!PyArg_ParseTuple(args,(char *)"OO:Style_l_text_unfocus_set",&obj0,&obj1)) goto fail;
9549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9550 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9551 if (arg1) (arg1)->l_text_unfocus = *arg2;
9552
9553 Py_INCREF(Py_None); resultobj = Py_None;
9554 return resultobj;
9555 fail:
9556 return NULL;
9557 }
9558
9559
9560 static PyObject *_wrap_Style_l_text_unfocus_get(PyObject *self, PyObject *args) {
9561 PyObject *resultobj;
9562 otk::Style *arg1 = (otk::Style *) 0 ;
9563 otk::BColor *result;
9564 PyObject * obj0 = 0 ;
9565
9566 if(!PyArg_ParseTuple(args,(char *)"O:Style_l_text_unfocus_get",&obj0)) goto fail;
9567 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9568 result = (otk::BColor *)& ((arg1)->l_text_unfocus);
9569
9570 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
9571 return resultobj;
9572 fail:
9573 return NULL;
9574 }
9575
9576
9577 static PyObject *_wrap_Style_b_pic_focus_set(PyObject *self, PyObject *args) {
9578 PyObject *resultobj;
9579 otk::Style *arg1 = (otk::Style *) 0 ;
9580 otk::BColor *arg2 = (otk::BColor *) 0 ;
9581 PyObject * obj0 = 0 ;
9582 PyObject * obj1 = 0 ;
9583
9584 if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pic_focus_set",&obj0,&obj1)) goto fail;
9585 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9586 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9587 if (arg1) (arg1)->b_pic_focus = *arg2;
9588
9589 Py_INCREF(Py_None); resultobj = Py_None;
9590 return resultobj;
9591 fail:
9592 return NULL;
9593 }
9594
9595
9596 static PyObject *_wrap_Style_b_pic_focus_get(PyObject *self, PyObject *args) {
9597 PyObject *resultobj;
9598 otk::Style *arg1 = (otk::Style *) 0 ;
9599 otk::BColor *result;
9600 PyObject * obj0 = 0 ;
9601
9602 if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pic_focus_get",&obj0)) goto fail;
9603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9604 result = (otk::BColor *)& ((arg1)->b_pic_focus);
9605
9606 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
9607 return resultobj;
9608 fail:
9609 return NULL;
9610 }
9611
9612
9613 static PyObject *_wrap_Style_b_pic_unfocus_set(PyObject *self, PyObject *args) {
9614 PyObject *resultobj;
9615 otk::Style *arg1 = (otk::Style *) 0 ;
9616 otk::BColor *arg2 = (otk::BColor *) 0 ;
9617 PyObject * obj0 = 0 ;
9618 PyObject * obj1 = 0 ;
9619
9620 if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pic_unfocus_set",&obj0,&obj1)) goto fail;
9621 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9622 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9623 if (arg1) (arg1)->b_pic_unfocus = *arg2;
9624
9625 Py_INCREF(Py_None); resultobj = Py_None;
9626 return resultobj;
9627 fail:
9628 return NULL;
9629 }
9630
9631
9632 static PyObject *_wrap_Style_b_pic_unfocus_get(PyObject *self, PyObject *args) {
9633 PyObject *resultobj;
9634 otk::Style *arg1 = (otk::Style *) 0 ;
9635 otk::BColor *result;
9636 PyObject * obj0 = 0 ;
9637
9638 if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pic_unfocus_get",&obj0)) goto fail;
9639 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9640 result = (otk::BColor *)& ((arg1)->b_pic_unfocus);
9641
9642 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
9643 return resultobj;
9644 fail:
9645 return NULL;
9646 }
9647
9648
9649 static PyObject *_wrap_Style_border_color_set(PyObject *self, PyObject *args) {
9650 PyObject *resultobj;
9651 otk::Style *arg1 = (otk::Style *) 0 ;
9652 otk::BColor *arg2 = (otk::BColor *) 0 ;
9653 PyObject * obj0 = 0 ;
9654 PyObject * obj1 = 0 ;
9655
9656 if(!PyArg_ParseTuple(args,(char *)"OO:Style_border_color_set",&obj0,&obj1)) goto fail;
9657 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9658 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9659 if (arg1) (arg1)->border_color = *arg2;
9660
9661 Py_INCREF(Py_None); resultobj = Py_None;
9662 return resultobj;
9663 fail:
9664 return NULL;
9665 }
9666
9667
9668 static PyObject *_wrap_Style_border_color_get(PyObject *self, PyObject *args) {
9669 PyObject *resultobj;
9670 otk::Style *arg1 = (otk::Style *) 0 ;
9671 otk::BColor *result;
9672 PyObject * obj0 = 0 ;
9673
9674 if(!PyArg_ParseTuple(args,(char *)"O:Style_border_color_get",&obj0)) goto fail;
9675 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9676 result = (otk::BColor *)& ((arg1)->border_color);
9677
9678 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
9679 return resultobj;
9680 fail:
9681 return NULL;
9682 }
9683
9684
9685 static PyObject *_wrap_Style_font_set(PyObject *self, PyObject *args) {
9686 PyObject *resultobj;
9687 otk::Style *arg1 = (otk::Style *) 0 ;
9688 otk::BFont *arg2 = (otk::BFont *) 0 ;
9689 PyObject * obj0 = 0 ;
9690 PyObject * obj1 = 0 ;
9691
9692 if(!PyArg_ParseTuple(args,(char *)"OO:Style_font_set",&obj0,&obj1)) goto fail;
9693 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9694 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
9695 if (arg1) (arg1)->font = arg2;
9696
9697 Py_INCREF(Py_None); resultobj = Py_None;
9698 return resultobj;
9699 fail:
9700 return NULL;
9701 }
9702
9703
9704 static PyObject *_wrap_Style_font_get(PyObject *self, PyObject *args) {
9705 PyObject *resultobj;
9706 otk::Style *arg1 = (otk::Style *) 0 ;
9707 otk::BFont *result;
9708 PyObject * obj0 = 0 ;
9709
9710 if(!PyArg_ParseTuple(args,(char *)"O:Style_font_get",&obj0)) goto fail;
9711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9712 result = (otk::BFont *) ((arg1)->font);
9713
9714 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BFont, 0);
9715 return resultobj;
9716 fail:
9717 return NULL;
9718 }
9719
9720
9721 static PyObject *_wrap_Style_f_focus_set(PyObject *self, PyObject *args) {
9722 PyObject *resultobj;
9723 otk::Style *arg1 = (otk::Style *) 0 ;
9724 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9725 PyObject * obj0 = 0 ;
9726 PyObject * obj1 = 0 ;
9727
9728 if(!PyArg_ParseTuple(args,(char *)"OO:Style_f_focus_set",&obj0,&obj1)) goto fail;
9729 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9730 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9731 if (arg1) (arg1)->f_focus = *arg2;
9732
9733 Py_INCREF(Py_None); resultobj = Py_None;
9734 return resultobj;
9735 fail:
9736 return NULL;
9737 }
9738
9739
9740 static PyObject *_wrap_Style_f_focus_get(PyObject *self, PyObject *args) {
9741 PyObject *resultobj;
9742 otk::Style *arg1 = (otk::Style *) 0 ;
9743 otk::BTexture *result;
9744 PyObject * obj0 = 0 ;
9745
9746 if(!PyArg_ParseTuple(args,(char *)"O:Style_f_focus_get",&obj0)) goto fail;
9747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9748 result = (otk::BTexture *)& ((arg1)->f_focus);
9749
9750 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9751 return resultobj;
9752 fail:
9753 return NULL;
9754 }
9755
9756
9757 static PyObject *_wrap_Style_f_unfocus_set(PyObject *self, PyObject *args) {
9758 PyObject *resultobj;
9759 otk::Style *arg1 = (otk::Style *) 0 ;
9760 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9761 PyObject * obj0 = 0 ;
9762 PyObject * obj1 = 0 ;
9763
9764 if(!PyArg_ParseTuple(args,(char *)"OO:Style_f_unfocus_set",&obj0,&obj1)) goto fail;
9765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9766 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9767 if (arg1) (arg1)->f_unfocus = *arg2;
9768
9769 Py_INCREF(Py_None); resultobj = Py_None;
9770 return resultobj;
9771 fail:
9772 return NULL;
9773 }
9774
9775
9776 static PyObject *_wrap_Style_f_unfocus_get(PyObject *self, PyObject *args) {
9777 PyObject *resultobj;
9778 otk::Style *arg1 = (otk::Style *) 0 ;
9779 otk::BTexture *result;
9780 PyObject * obj0 = 0 ;
9781
9782 if(!PyArg_ParseTuple(args,(char *)"O:Style_f_unfocus_get",&obj0)) goto fail;
9783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9784 result = (otk::BTexture *)& ((arg1)->f_unfocus);
9785
9786 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9787 return resultobj;
9788 fail:
9789 return NULL;
9790 }
9791
9792
9793 static PyObject *_wrap_Style_t_focus_set(PyObject *self, PyObject *args) {
9794 PyObject *resultobj;
9795 otk::Style *arg1 = (otk::Style *) 0 ;
9796 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9797 PyObject * obj0 = 0 ;
9798 PyObject * obj1 = 0 ;
9799
9800 if(!PyArg_ParseTuple(args,(char *)"OO:Style_t_focus_set",&obj0,&obj1)) goto fail;
9801 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9802 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9803 if (arg1) (arg1)->t_focus = *arg2;
9804
9805 Py_INCREF(Py_None); resultobj = Py_None;
9806 return resultobj;
9807 fail:
9808 return NULL;
9809 }
9810
9811
9812 static PyObject *_wrap_Style_t_focus_get(PyObject *self, PyObject *args) {
9813 PyObject *resultobj;
9814 otk::Style *arg1 = (otk::Style *) 0 ;
9815 otk::BTexture *result;
9816 PyObject * obj0 = 0 ;
9817
9818 if(!PyArg_ParseTuple(args,(char *)"O:Style_t_focus_get",&obj0)) goto fail;
9819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9820 result = (otk::BTexture *)& ((arg1)->t_focus);
9821
9822 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9823 return resultobj;
9824 fail:
9825 return NULL;
9826 }
9827
9828
9829 static PyObject *_wrap_Style_t_unfocus_set(PyObject *self, PyObject *args) {
9830 PyObject *resultobj;
9831 otk::Style *arg1 = (otk::Style *) 0 ;
9832 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9833 PyObject * obj0 = 0 ;
9834 PyObject * obj1 = 0 ;
9835
9836 if(!PyArg_ParseTuple(args,(char *)"OO:Style_t_unfocus_set",&obj0,&obj1)) goto fail;
9837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9838 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9839 if (arg1) (arg1)->t_unfocus = *arg2;
9840
9841 Py_INCREF(Py_None); resultobj = Py_None;
9842 return resultobj;
9843 fail:
9844 return NULL;
9845 }
9846
9847
9848 static PyObject *_wrap_Style_t_unfocus_get(PyObject *self, PyObject *args) {
9849 PyObject *resultobj;
9850 otk::Style *arg1 = (otk::Style *) 0 ;
9851 otk::BTexture *result;
9852 PyObject * obj0 = 0 ;
9853
9854 if(!PyArg_ParseTuple(args,(char *)"O:Style_t_unfocus_get",&obj0)) goto fail;
9855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9856 result = (otk::BTexture *)& ((arg1)->t_unfocus);
9857
9858 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9859 return resultobj;
9860 fail:
9861 return NULL;
9862 }
9863
9864
9865 static PyObject *_wrap_Style_l_focus_set(PyObject *self, PyObject *args) {
9866 PyObject *resultobj;
9867 otk::Style *arg1 = (otk::Style *) 0 ;
9868 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9869 PyObject * obj0 = 0 ;
9870 PyObject * obj1 = 0 ;
9871
9872 if(!PyArg_ParseTuple(args,(char *)"OO:Style_l_focus_set",&obj0,&obj1)) goto fail;
9873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9874 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9875 if (arg1) (arg1)->l_focus = *arg2;
9876
9877 Py_INCREF(Py_None); resultobj = Py_None;
9878 return resultobj;
9879 fail:
9880 return NULL;
9881 }
9882
9883
9884 static PyObject *_wrap_Style_l_focus_get(PyObject *self, PyObject *args) {
9885 PyObject *resultobj;
9886 otk::Style *arg1 = (otk::Style *) 0 ;
9887 otk::BTexture *result;
9888 PyObject * obj0 = 0 ;
9889
9890 if(!PyArg_ParseTuple(args,(char *)"O:Style_l_focus_get",&obj0)) goto fail;
9891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9892 result = (otk::BTexture *)& ((arg1)->l_focus);
9893
9894 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9895 return resultobj;
9896 fail:
9897 return NULL;
9898 }
9899
9900
9901 static PyObject *_wrap_Style_l_unfocus_set(PyObject *self, PyObject *args) {
9902 PyObject *resultobj;
9903 otk::Style *arg1 = (otk::Style *) 0 ;
9904 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9905 PyObject * obj0 = 0 ;
9906 PyObject * obj1 = 0 ;
9907
9908 if(!PyArg_ParseTuple(args,(char *)"OO:Style_l_unfocus_set",&obj0,&obj1)) goto fail;
9909 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9910 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9911 if (arg1) (arg1)->l_unfocus = *arg2;
9912
9913 Py_INCREF(Py_None); resultobj = Py_None;
9914 return resultobj;
9915 fail:
9916 return NULL;
9917 }
9918
9919
9920 static PyObject *_wrap_Style_l_unfocus_get(PyObject *self, PyObject *args) {
9921 PyObject *resultobj;
9922 otk::Style *arg1 = (otk::Style *) 0 ;
9923 otk::BTexture *result;
9924 PyObject * obj0 = 0 ;
9925
9926 if(!PyArg_ParseTuple(args,(char *)"O:Style_l_unfocus_get",&obj0)) goto fail;
9927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9928 result = (otk::BTexture *)& ((arg1)->l_unfocus);
9929
9930 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9931 return resultobj;
9932 fail:
9933 return NULL;
9934 }
9935
9936
9937 static PyObject *_wrap_Style_h_focus_set(PyObject *self, PyObject *args) {
9938 PyObject *resultobj;
9939 otk::Style *arg1 = (otk::Style *) 0 ;
9940 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9941 PyObject * obj0 = 0 ;
9942 PyObject * obj1 = 0 ;
9943
9944 if(!PyArg_ParseTuple(args,(char *)"OO:Style_h_focus_set",&obj0,&obj1)) goto fail;
9945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9946 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9947 if (arg1) (arg1)->h_focus = *arg2;
9948
9949 Py_INCREF(Py_None); resultobj = Py_None;
9950 return resultobj;
9951 fail:
9952 return NULL;
9953 }
9954
9955
9956 static PyObject *_wrap_Style_h_focus_get(PyObject *self, PyObject *args) {
9957 PyObject *resultobj;
9958 otk::Style *arg1 = (otk::Style *) 0 ;
9959 otk::BTexture *result;
9960 PyObject * obj0 = 0 ;
9961
9962 if(!PyArg_ParseTuple(args,(char *)"O:Style_h_focus_get",&obj0)) goto fail;
9963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9964 result = (otk::BTexture *)& ((arg1)->h_focus);
9965
9966 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9967 return resultobj;
9968 fail:
9969 return NULL;
9970 }
9971
9972
9973 static PyObject *_wrap_Style_h_unfocus_set(PyObject *self, PyObject *args) {
9974 PyObject *resultobj;
9975 otk::Style *arg1 = (otk::Style *) 0 ;
9976 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9977 PyObject * obj0 = 0 ;
9978 PyObject * obj1 = 0 ;
9979
9980 if(!PyArg_ParseTuple(args,(char *)"OO:Style_h_unfocus_set",&obj0,&obj1)) goto fail;
9981 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9982 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9983 if (arg1) (arg1)->h_unfocus = *arg2;
9984
9985 Py_INCREF(Py_None); resultobj = Py_None;
9986 return resultobj;
9987 fail:
9988 return NULL;
9989 }
9990
9991
9992 static PyObject *_wrap_Style_h_unfocus_get(PyObject *self, PyObject *args) {
9993 PyObject *resultobj;
9994 otk::Style *arg1 = (otk::Style *) 0 ;
9995 otk::BTexture *result;
9996 PyObject * obj0 = 0 ;
9997
9998 if(!PyArg_ParseTuple(args,(char *)"O:Style_h_unfocus_get",&obj0)) goto fail;
9999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10000 result = (otk::BTexture *)& ((arg1)->h_unfocus);
10001
10002 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
10003 return resultobj;
10004 fail:
10005 return NULL;
10006 }
10007
10008
10009 static PyObject *_wrap_Style_b_focus_set(PyObject *self, PyObject *args) {
10010 PyObject *resultobj;
10011 otk::Style *arg1 = (otk::Style *) 0 ;
10012 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
10013 PyObject * obj0 = 0 ;
10014 PyObject * obj1 = 0 ;
10015
10016 if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_focus_set",&obj0,&obj1)) goto fail;
10017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10018 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10019 if (arg1) (arg1)->b_focus = *arg2;
10020
10021 Py_INCREF(Py_None); resultobj = Py_None;
10022 return resultobj;
10023 fail:
10024 return NULL;
10025 }
10026
10027
10028 static PyObject *_wrap_Style_b_focus_get(PyObject *self, PyObject *args) {
10029 PyObject *resultobj;
10030 otk::Style *arg1 = (otk::Style *) 0 ;
10031 otk::BTexture *result;
10032 PyObject * obj0 = 0 ;
10033
10034 if(!PyArg_ParseTuple(args,(char *)"O:Style_b_focus_get",&obj0)) goto fail;
10035 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10036 result = (otk::BTexture *)& ((arg1)->b_focus);
10037
10038 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
10039 return resultobj;
10040 fail:
10041 return NULL;
10042 }
10043
10044
10045 static PyObject *_wrap_Style_b_unfocus_set(PyObject *self, PyObject *args) {
10046 PyObject *resultobj;
10047 otk::Style *arg1 = (otk::Style *) 0 ;
10048 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
10049 PyObject * obj0 = 0 ;
10050 PyObject * obj1 = 0 ;
10051
10052 if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_unfocus_set",&obj0,&obj1)) goto fail;
10053 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10054 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10055 if (arg1) (arg1)->b_unfocus = *arg2;
10056
10057 Py_INCREF(Py_None); resultobj = Py_None;
10058 return resultobj;
10059 fail:
10060 return NULL;
10061 }
10062
10063
10064 static PyObject *_wrap_Style_b_unfocus_get(PyObject *self, PyObject *args) {
10065 PyObject *resultobj;
10066 otk::Style *arg1 = (otk::Style *) 0 ;
10067 otk::BTexture *result;
10068 PyObject * obj0 = 0 ;
10069
10070 if(!PyArg_ParseTuple(args,(char *)"O:Style_b_unfocus_get",&obj0)) goto fail;
10071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10072 result = (otk::BTexture *)& ((arg1)->b_unfocus);
10073
10074 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
10075 return resultobj;
10076 fail:
10077 return NULL;
10078 }
10079
10080
10081 static PyObject *_wrap_Style_b_pressed_focus_set(PyObject *self, PyObject *args) {
10082 PyObject *resultobj;
10083 otk::Style *arg1 = (otk::Style *) 0 ;
10084 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
10085 PyObject * obj0 = 0 ;
10086 PyObject * obj1 = 0 ;
10087
10088 if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pressed_focus_set",&obj0,&obj1)) goto fail;
10089 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10090 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10091 if (arg1) (arg1)->b_pressed_focus = *arg2;
10092
10093 Py_INCREF(Py_None); resultobj = Py_None;
10094 return resultobj;
10095 fail:
10096 return NULL;
10097 }
10098
10099
10100 static PyObject *_wrap_Style_b_pressed_focus_get(PyObject *self, PyObject *args) {
10101 PyObject *resultobj;
10102 otk::Style *arg1 = (otk::Style *) 0 ;
10103 otk::BTexture *result;
10104 PyObject * obj0 = 0 ;
10105
10106 if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pressed_focus_get",&obj0)) goto fail;
10107 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10108 result = (otk::BTexture *)& ((arg1)->b_pressed_focus);
10109
10110 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
10111 return resultobj;
10112 fail:
10113 return NULL;
10114 }
10115
10116
10117 static PyObject *_wrap_Style_b_pressed_unfocus_set(PyObject *self, PyObject *args) {
10118 PyObject *resultobj;
10119 otk::Style *arg1 = (otk::Style *) 0 ;
10120 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
10121 PyObject * obj0 = 0 ;
10122 PyObject * obj1 = 0 ;
10123
10124 if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pressed_unfocus_set",&obj0,&obj1)) goto fail;
10125 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10126 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10127 if (arg1) (arg1)->b_pressed_unfocus = *arg2;
10128
10129 Py_INCREF(Py_None); resultobj = Py_None;
10130 return resultobj;
10131 fail:
10132 return NULL;
10133 }
10134
10135
10136 static PyObject *_wrap_Style_b_pressed_unfocus_get(PyObject *self, PyObject *args) {
10137 PyObject *resultobj;
10138 otk::Style *arg1 = (otk::Style *) 0 ;
10139 otk::BTexture *result;
10140 PyObject * obj0 = 0 ;
10141
10142 if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pressed_unfocus_get",&obj0)) goto fail;
10143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10144 result = (otk::BTexture *)& ((arg1)->b_pressed_unfocus);
10145
10146 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
10147 return resultobj;
10148 fail:
10149 return NULL;
10150 }
10151
10152
10153 static PyObject *_wrap_Style_g_focus_set(PyObject *self, PyObject *args) {
10154 PyObject *resultobj;
10155 otk::Style *arg1 = (otk::Style *) 0 ;
10156 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
10157 PyObject * obj0 = 0 ;
10158 PyObject * obj1 = 0 ;
10159
10160 if(!PyArg_ParseTuple(args,(char *)"OO:Style_g_focus_set",&obj0,&obj1)) goto fail;
10161 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10162 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10163 if (arg1) (arg1)->g_focus = *arg2;
10164
10165 Py_INCREF(Py_None); resultobj = Py_None;
10166 return resultobj;
10167 fail:
10168 return NULL;
10169 }
10170
10171
10172 static PyObject *_wrap_Style_g_focus_get(PyObject *self, PyObject *args) {
10173 PyObject *resultobj;
10174 otk::Style *arg1 = (otk::Style *) 0 ;
10175 otk::BTexture *result;
10176 PyObject * obj0 = 0 ;
10177
10178 if(!PyArg_ParseTuple(args,(char *)"O:Style_g_focus_get",&obj0)) goto fail;
10179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10180 result = (otk::BTexture *)& ((arg1)->g_focus);
10181
10182 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
10183 return resultobj;
10184 fail:
10185 return NULL;
10186 }
10187
10188
10189 static PyObject *_wrap_Style_g_unfocus_set(PyObject *self, PyObject *args) {
10190 PyObject *resultobj;
10191 otk::Style *arg1 = (otk::Style *) 0 ;
10192 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
10193 PyObject * obj0 = 0 ;
10194 PyObject * obj1 = 0 ;
10195
10196 if(!PyArg_ParseTuple(args,(char *)"OO:Style_g_unfocus_set",&obj0,&obj1)) goto fail;
10197 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10198 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10199 if (arg1) (arg1)->g_unfocus = *arg2;
10200
10201 Py_INCREF(Py_None); resultobj = Py_None;
10202 return resultobj;
10203 fail:
10204 return NULL;
10205 }
10206
10207
10208 static PyObject *_wrap_Style_g_unfocus_get(PyObject *self, PyObject *args) {
10209 PyObject *resultobj;
10210 otk::Style *arg1 = (otk::Style *) 0 ;
10211 otk::BTexture *result;
10212 PyObject * obj0 = 0 ;
10213
10214 if(!PyArg_ParseTuple(args,(char *)"O:Style_g_unfocus_get",&obj0)) goto fail;
10215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10216 result = (otk::BTexture *)& ((arg1)->g_unfocus);
10217
10218 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
10219 return resultobj;
10220 fail:
10221 return NULL;
10222 }
10223
10224
10225 static PyObject *_wrap_Style_close_button_set(PyObject *self, PyObject *args) {
10226 PyObject *resultobj;
10227 otk::Style *arg1 = (otk::Style *) 0 ;
10228 otk::PixmapMask *arg2 = (otk::PixmapMask *) 0 ;
10229 PyObject * obj0 = 0 ;
10230 PyObject * obj1 = 0 ;
10231
10232 if(!PyArg_ParseTuple(args,(char *)"OO:Style_close_button_set",&obj0,&obj1)) goto fail;
10233 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10234 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10235 if (arg1) (arg1)->close_button = *arg2;
10236
10237 Py_INCREF(Py_None); resultobj = Py_None;
10238 return resultobj;
10239 fail:
10240 return NULL;
10241 }
10242
10243
10244 static PyObject *_wrap_Style_close_button_get(PyObject *self, PyObject *args) {
10245 PyObject *resultobj;
10246 otk::Style *arg1 = (otk::Style *) 0 ;
10247 otk::PixmapMask *result;
10248 PyObject * obj0 = 0 ;
10249
10250 if(!PyArg_ParseTuple(args,(char *)"O:Style_close_button_get",&obj0)) goto fail;
10251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10252 result = (otk::PixmapMask *)& ((arg1)->close_button);
10253
10254 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
10255 return resultobj;
10256 fail:
10257 return NULL;
10258 }
10259
10260
10261 static PyObject *_wrap_Style_max_button_set(PyObject *self, PyObject *args) {
10262 PyObject *resultobj;
10263 otk::Style *arg1 = (otk::Style *) 0 ;
10264 otk::PixmapMask *arg2 = (otk::PixmapMask *) 0 ;
10265 PyObject * obj0 = 0 ;
10266 PyObject * obj1 = 0 ;
10267
10268 if(!PyArg_ParseTuple(args,(char *)"OO:Style_max_button_set",&obj0,&obj1)) goto fail;
10269 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10270 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10271 if (arg1) (arg1)->max_button = *arg2;
10272
10273 Py_INCREF(Py_None); resultobj = Py_None;
10274 return resultobj;
10275 fail:
10276 return NULL;
10277 }
10278
10279
10280 static PyObject *_wrap_Style_max_button_get(PyObject *self, PyObject *args) {
10281 PyObject *resultobj;
10282 otk::Style *arg1 = (otk::Style *) 0 ;
10283 otk::PixmapMask *result;
10284 PyObject * obj0 = 0 ;
10285
10286 if(!PyArg_ParseTuple(args,(char *)"O:Style_max_button_get",&obj0)) goto fail;
10287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10288 result = (otk::PixmapMask *)& ((arg1)->max_button);
10289
10290 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
10291 return resultobj;
10292 fail:
10293 return NULL;
10294 }
10295
10296
10297 static PyObject *_wrap_Style_icon_button_set(PyObject *self, PyObject *args) {
10298 PyObject *resultobj;
10299 otk::Style *arg1 = (otk::Style *) 0 ;
10300 otk::PixmapMask *arg2 = (otk::PixmapMask *) 0 ;
10301 PyObject * obj0 = 0 ;
10302 PyObject * obj1 = 0 ;
10303
10304 if(!PyArg_ParseTuple(args,(char *)"OO:Style_icon_button_set",&obj0,&obj1)) goto fail;
10305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10306 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10307 if (arg1) (arg1)->icon_button = *arg2;
10308
10309 Py_INCREF(Py_None); resultobj = Py_None;
10310 return resultobj;
10311 fail:
10312 return NULL;
10313 }
10314
10315
10316 static PyObject *_wrap_Style_icon_button_get(PyObject *self, PyObject *args) {
10317 PyObject *resultobj;
10318 otk::Style *arg1 = (otk::Style *) 0 ;
10319 otk::PixmapMask *result;
10320 PyObject * obj0 = 0 ;
10321
10322 if(!PyArg_ParseTuple(args,(char *)"O:Style_icon_button_get",&obj0)) goto fail;
10323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10324 result = (otk::PixmapMask *)& ((arg1)->icon_button);
10325
10326 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
10327 return resultobj;
10328 fail:
10329 return NULL;
10330 }
10331
10332
10333 static PyObject *_wrap_Style_stick_button_set(PyObject *self, PyObject *args) {
10334 PyObject *resultobj;
10335 otk::Style *arg1 = (otk::Style *) 0 ;
10336 otk::PixmapMask *arg2 = (otk::PixmapMask *) 0 ;
10337 PyObject * obj0 = 0 ;
10338 PyObject * obj1 = 0 ;
10339
10340 if(!PyArg_ParseTuple(args,(char *)"OO:Style_stick_button_set",&obj0,&obj1)) goto fail;
10341 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10342 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10343 if (arg1) (arg1)->stick_button = *arg2;
10344
10345 Py_INCREF(Py_None); resultobj = Py_None;
10346 return resultobj;
10347 fail:
10348 return NULL;
10349 }
10350
10351
10352 static PyObject *_wrap_Style_stick_button_get(PyObject *self, PyObject *args) {
10353 PyObject *resultobj;
10354 otk::Style *arg1 = (otk::Style *) 0 ;
10355 otk::PixmapMask *result;
10356 PyObject * obj0 = 0 ;
10357
10358 if(!PyArg_ParseTuple(args,(char *)"O:Style_stick_button_get",&obj0)) goto fail;
10359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10360 result = (otk::PixmapMask *)& ((arg1)->stick_button);
10361
10362 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
10363 return resultobj;
10364 fail:
10365 return NULL;
10366 }
10367
10368
10369 static PyObject *_wrap_Style_justify_set(PyObject *self, PyObject *args) {
10370 PyObject *resultobj;
10371 otk::Style *arg1 = (otk::Style *) 0 ;
10372 int arg2 ;
10373 PyObject * obj0 = 0 ;
10374
10375 if(!PyArg_ParseTuple(args,(char *)"Oi:Style_justify_set",&obj0,&arg2)) goto fail;
10376 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10377 if (arg1) (arg1)->justify = (otk::Style::TextJustify )arg2;
10378
10379 Py_INCREF(Py_None); resultobj = Py_None;
10380 return resultobj;
10381 fail:
10382 return NULL;
10383 }
10384
10385
10386 static PyObject *_wrap_Style_justify_get(PyObject *self, PyObject *args) {
10387 PyObject *resultobj;
10388 otk::Style *arg1 = (otk::Style *) 0 ;
10389 int result;
10390 PyObject * obj0 = 0 ;
10391
10392 if(!PyArg_ParseTuple(args,(char *)"O:Style_justify_get",&obj0)) goto fail;
10393 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10394 result = (int) ((arg1)->justify);
10395
10396 resultobj = PyInt_FromLong((long)result);
10397 return resultobj;
10398 fail:
10399 return NULL;
10400 }
10401
10402
10403 static PyObject *_wrap_Style_bullet_type_set(PyObject *self, PyObject *args) {
10404 PyObject *resultobj;
10405 otk::Style *arg1 = (otk::Style *) 0 ;
10406 int arg2 ;
10407 PyObject * obj0 = 0 ;
10408
10409 if(!PyArg_ParseTuple(args,(char *)"Oi:Style_bullet_type_set",&obj0,&arg2)) goto fail;
10410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10411 if (arg1) (arg1)->bullet_type = (otk::Style::BulletType )arg2;
10412
10413 Py_INCREF(Py_None); resultobj = Py_None;
10414 return resultobj;
10415 fail:
10416 return NULL;
10417 }
10418
10419
10420 static PyObject *_wrap_Style_bullet_type_get(PyObject *self, PyObject *args) {
10421 PyObject *resultobj;
10422 otk::Style *arg1 = (otk::Style *) 0 ;
10423 int result;
10424 PyObject * obj0 = 0 ;
10425
10426 if(!PyArg_ParseTuple(args,(char *)"O:Style_bullet_type_get",&obj0)) goto fail;
10427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10428 result = (int) ((arg1)->bullet_type);
10429
10430 resultobj = PyInt_FromLong((long)result);
10431 return resultobj;
10432 fail:
10433 return NULL;
10434 }
10435
10436
10437 static PyObject *_wrap_Style_handle_width_set(PyObject *self, PyObject *args) {
10438 PyObject *resultobj;
10439 otk::Style *arg1 = (otk::Style *) 0 ;
10440 unsigned int arg2 ;
10441 PyObject * obj0 = 0 ;
10442 PyObject * obj1 = 0 ;
10443
10444 if(!PyArg_ParseTuple(args,(char *)"OO:Style_handle_width_set",&obj0,&obj1)) goto fail;
10445 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10446 arg2 = (unsigned int) PyInt_AsLong(obj1);
10447 if (PyErr_Occurred()) SWIG_fail;
10448 if (arg1) (arg1)->handle_width = arg2;
10449
10450 Py_INCREF(Py_None); resultobj = Py_None;
10451 return resultobj;
10452 fail:
10453 return NULL;
10454 }
10455
10456
10457 static PyObject *_wrap_Style_handle_width_get(PyObject *self, PyObject *args) {
10458 PyObject *resultobj;
10459 otk::Style *arg1 = (otk::Style *) 0 ;
10460 unsigned int result;
10461 PyObject * obj0 = 0 ;
10462
10463 if(!PyArg_ParseTuple(args,(char *)"O:Style_handle_width_get",&obj0)) goto fail;
10464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10465 result = (unsigned int) ((arg1)->handle_width);
10466
10467 resultobj = PyInt_FromLong((long)result);
10468 return resultobj;
10469 fail:
10470 return NULL;
10471 }
10472
10473
10474 static PyObject *_wrap_Style_bevel_width_set(PyObject *self, PyObject *args) {
10475 PyObject *resultobj;
10476 otk::Style *arg1 = (otk::Style *) 0 ;
10477 unsigned int arg2 ;
10478 PyObject * obj0 = 0 ;
10479 PyObject * obj1 = 0 ;
10480
10481 if(!PyArg_ParseTuple(args,(char *)"OO:Style_bevel_width_set",&obj0,&obj1)) goto fail;
10482 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10483 arg2 = (unsigned int) PyInt_AsLong(obj1);
10484 if (PyErr_Occurred()) SWIG_fail;
10485 if (arg1) (arg1)->bevel_width = arg2;
10486
10487 Py_INCREF(Py_None); resultobj = Py_None;
10488 return resultobj;
10489 fail:
10490 return NULL;
10491 }
10492
10493
10494 static PyObject *_wrap_Style_bevel_width_get(PyObject *self, PyObject *args) {
10495 PyObject *resultobj;
10496 otk::Style *arg1 = (otk::Style *) 0 ;
10497 unsigned int result;
10498 PyObject * obj0 = 0 ;
10499
10500 if(!PyArg_ParseTuple(args,(char *)"O:Style_bevel_width_get",&obj0)) goto fail;
10501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10502 result = (unsigned int) ((arg1)->bevel_width);
10503
10504 resultobj = PyInt_FromLong((long)result);
10505 return resultobj;
10506 fail:
10507 return NULL;
10508 }
10509
10510
10511 static PyObject *_wrap_Style_frame_width_set(PyObject *self, PyObject *args) {
10512 PyObject *resultobj;
10513 otk::Style *arg1 = (otk::Style *) 0 ;
10514 unsigned int arg2 ;
10515 PyObject * obj0 = 0 ;
10516 PyObject * obj1 = 0 ;
10517
10518 if(!PyArg_ParseTuple(args,(char *)"OO:Style_frame_width_set",&obj0,&obj1)) goto fail;
10519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10520 arg2 = (unsigned int) PyInt_AsLong(obj1);
10521 if (PyErr_Occurred()) SWIG_fail;
10522 if (arg1) (arg1)->frame_width = arg2;
10523
10524 Py_INCREF(Py_None); resultobj = Py_None;
10525 return resultobj;
10526 fail:
10527 return NULL;
10528 }
10529
10530
10531 static PyObject *_wrap_Style_frame_width_get(PyObject *self, PyObject *args) {
10532 PyObject *resultobj;
10533 otk::Style *arg1 = (otk::Style *) 0 ;
10534 unsigned int result;
10535 PyObject * obj0 = 0 ;
10536
10537 if(!PyArg_ParseTuple(args,(char *)"O:Style_frame_width_get",&obj0)) goto fail;
10538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10539 result = (unsigned int) ((arg1)->frame_width);
10540
10541 resultobj = PyInt_FromLong((long)result);
10542 return resultobj;
10543 fail:
10544 return NULL;
10545 }
10546
10547
10548 static PyObject *_wrap_Style_border_width_set(PyObject *self, PyObject *args) {
10549 PyObject *resultobj;
10550 otk::Style *arg1 = (otk::Style *) 0 ;
10551 unsigned int arg2 ;
10552 PyObject * obj0 = 0 ;
10553 PyObject * obj1 = 0 ;
10554
10555 if(!PyArg_ParseTuple(args,(char *)"OO:Style_border_width_set",&obj0,&obj1)) goto fail;
10556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10557 arg2 = (unsigned int) PyInt_AsLong(obj1);
10558 if (PyErr_Occurred()) SWIG_fail;
10559 if (arg1) (arg1)->border_width = arg2;
10560
10561 Py_INCREF(Py_None); resultobj = Py_None;
10562 return resultobj;
10563 fail:
10564 return NULL;
10565 }
10566
10567
10568 static PyObject *_wrap_Style_border_width_get(PyObject *self, PyObject *args) {
10569 PyObject *resultobj;
10570 otk::Style *arg1 = (otk::Style *) 0 ;
10571 unsigned int result;
10572 PyObject * obj0 = 0 ;
10573
10574 if(!PyArg_ParseTuple(args,(char *)"O:Style_border_width_get",&obj0)) goto fail;
10575 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10576 result = (unsigned int) ((arg1)->border_width);
10577
10578 resultobj = PyInt_FromLong((long)result);
10579 return resultobj;
10580 fail:
10581 return NULL;
10582 }
10583
10584
10585 static PyObject *_wrap_Style_screen_number_set(PyObject *self, PyObject *args) {
10586 PyObject *resultobj;
10587 otk::Style *arg1 = (otk::Style *) 0 ;
10588 unsigned int arg2 ;
10589 PyObject * obj0 = 0 ;
10590 PyObject * obj1 = 0 ;
10591
10592 if(!PyArg_ParseTuple(args,(char *)"OO:Style_screen_number_set",&obj0,&obj1)) goto fail;
10593 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10594 arg2 = (unsigned int) PyInt_AsLong(obj1);
10595 if (PyErr_Occurred()) SWIG_fail;
10596 if (arg1) (arg1)->screen_number = arg2;
10597
10598 Py_INCREF(Py_None); resultobj = Py_None;
10599 return resultobj;
10600 fail:
10601 return NULL;
10602 }
10603
10604
10605 static PyObject *_wrap_Style_screen_number_get(PyObject *self, PyObject *args) {
10606 PyObject *resultobj;
10607 otk::Style *arg1 = (otk::Style *) 0 ;
10608 unsigned int result;
10609 PyObject * obj0 = 0 ;
10610
10611 if(!PyArg_ParseTuple(args,(char *)"O:Style_screen_number_get",&obj0)) goto fail;
10612 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10613 result = (unsigned int) ((arg1)->screen_number);
10614
10615 resultobj = PyInt_FromLong((long)result);
10616 return resultobj;
10617 fail:
10618 return NULL;
10619 }
10620
10621
10622 static PyObject *_wrap_Style_shadow_fonts_set(PyObject *self, PyObject *args) {
10623 PyObject *resultobj;
10624 otk::Style *arg1 = (otk::Style *) 0 ;
10625 bool arg2 ;
10626 PyObject * obj0 = 0 ;
10627 PyObject * obj1 = 0 ;
10628
10629 if(!PyArg_ParseTuple(args,(char *)"OO:Style_shadow_fonts_set",&obj0,&obj1)) goto fail;
10630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10631 arg2 = (bool) PyInt_AsLong(obj1);
10632 if (PyErr_Occurred()) SWIG_fail;
10633 if (arg1) (arg1)->shadow_fonts = arg2;
10634
10635 Py_INCREF(Py_None); resultobj = Py_None;
10636 return resultobj;
10637 fail:
10638 return NULL;
10639 }
10640
10641
10642 static PyObject *_wrap_Style_shadow_fonts_get(PyObject *self, PyObject *args) {
10643 PyObject *resultobj;
10644 otk::Style *arg1 = (otk::Style *) 0 ;
10645 bool result;
10646 PyObject * obj0 = 0 ;
10647
10648 if(!PyArg_ParseTuple(args,(char *)"O:Style_shadow_fonts_get",&obj0)) goto fail;
10649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10650 result = (bool) ((arg1)->shadow_fonts);
10651
10652 resultobj = PyInt_FromLong((long)result);
10653 return resultobj;
10654 fail:
10655 return NULL;
10656 }
10657
10658
10659 static PyObject *_wrap_Style_aa_fonts_set(PyObject *self, PyObject *args) {
10660 PyObject *resultobj;
10661 otk::Style *arg1 = (otk::Style *) 0 ;
10662 bool arg2 ;
10663 PyObject * obj0 = 0 ;
10664 PyObject * obj1 = 0 ;
10665
10666 if(!PyArg_ParseTuple(args,(char *)"OO:Style_aa_fonts_set",&obj0,&obj1)) goto fail;
10667 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10668 arg2 = (bool) PyInt_AsLong(obj1);
10669 if (PyErr_Occurred()) SWIG_fail;
10670 if (arg1) (arg1)->aa_fonts = arg2;
10671
10672 Py_INCREF(Py_None); resultobj = Py_None;
10673 return resultobj;
10674 fail:
10675 return NULL;
10676 }
10677
10678
10679 static PyObject *_wrap_Style_aa_fonts_get(PyObject *self, PyObject *args) {
10680 PyObject *resultobj;
10681 otk::Style *arg1 = (otk::Style *) 0 ;
10682 bool result;
10683 PyObject * obj0 = 0 ;
10684
10685 if(!PyArg_ParseTuple(args,(char *)"O:Style_aa_fonts_get",&obj0)) goto fail;
10686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10687 result = (bool) ((arg1)->aa_fonts);
10688
10689 resultobj = PyInt_FromLong((long)result);
10690 return resultobj;
10691 fail:
10692 return NULL;
10693 }
10694
10695
10696 static PyObject *_wrap_new_Style__SWIG_0(PyObject *self, PyObject *args) {
10697 PyObject *resultobj;
10698 otk::Style *result;
10699
10700 if(!PyArg_ParseTuple(args,(char *)":new_Style")) goto fail;
10701 result = (otk::Style *)new otk::Style();
10702
10703 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 1);
10704 return resultobj;
10705 fail:
10706 return NULL;
10707 }
10708
10709
10710 static PyObject *_wrap_new_Style__SWIG_1(PyObject *self, PyObject *args) {
10711 PyObject *resultobj;
10712 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
10713 otk::Style *result;
10714 PyObject * obj0 = 0 ;
10715
10716 if(!PyArg_ParseTuple(args,(char *)"O:new_Style",&obj0)) goto fail;
10717 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10718 result = (otk::Style *)new otk::Style(arg1);
10719
10720 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 1);
10721 return resultobj;
10722 fail:
10723 return NULL;
10724 }
10725
10726
10727 static PyObject *_wrap_new_Style(PyObject *self, PyObject *args) {
10728 int argc;
10729 PyObject *argv[2];
10730 int ii;
10731
10732 argc = PyObject_Length(args);
10733 for (ii = 0; (ii < argc) && (ii < 1); ii++) {
10734 argv[ii] = PyTuple_GetItem(args,ii);
10735 }
10736 if (argc == 0) {
10737 return _wrap_new_Style__SWIG_0(self,args);
10738 }
10739 if (argc == 1) {
10740 int _v;
10741 {
10742 void *ptr;
10743 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__BImageControl, 0) == -1) {
10744 _v = 0;
10745 PyErr_Clear();
10746 }else {
10747 _v = 1;
10748 }
10749 }
10750 if (_v) {
10751 return _wrap_new_Style__SWIG_1(self,args);
10752 }
10753 }
10754
10755 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Style'");
10756 return NULL;
10757 }
10758
10759
10760 static PyObject *_wrap_delete_Style(PyObject *self, PyObject *args) {
10761 PyObject *resultobj;
10762 otk::Style *arg1 = (otk::Style *) 0 ;
10763 PyObject * obj0 = 0 ;
10764
10765 if(!PyArg_ParseTuple(args,(char *)"O:delete_Style",&obj0)) goto fail;
10766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10767 delete arg1;
10768
10769 Py_INCREF(Py_None); resultobj = Py_None;
10770 return resultobj;
10771 fail:
10772 return NULL;
10773 }
10774
10775
10776 static PyObject *_wrap_Style_readDatabaseMask(PyObject *self, PyObject *args) {
10777 PyObject *resultobj;
10778 otk::Style *arg1 = (otk::Style *) 0 ;
10779 std::string *arg2 = 0 ;
10780 otk::PixmapMask *arg3 = 0 ;
10781 otk::Configuration *arg4 = 0 ;
10782 std::string temp2 ;
10783 PyObject * obj0 = 0 ;
10784 PyObject * obj1 = 0 ;
10785 PyObject * obj2 = 0 ;
10786 PyObject * obj3 = 0 ;
10787
10788 if(!PyArg_ParseTuple(args,(char *)"OOOO:Style_readDatabaseMask",&obj0,&obj1,&obj2,&obj3)) goto fail;
10789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10790 {
10791 if (PyString_Check(obj1)) {
10792 temp2 = std::string(PyString_AsString(obj1));
10793 arg2 = &temp2;
10794 }else {
10795 SWIG_exception(SWIG_TypeError, "string expected");
10796 }
10797 }
10798 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10799 if (arg3 == NULL) {
10800 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10801 }
10802 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10803 if (arg4 == NULL) {
10804 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10805 }
10806 (arg1)->readDatabaseMask((std::string const &)*arg2,*arg3,(otk::Configuration const &)*arg4);
10807
10808 Py_INCREF(Py_None); resultobj = Py_None;
10809 return resultobj;
10810 fail:
10811 return NULL;
10812 }
10813
10814
10815 static PyObject *_wrap_Style_readDatabaseTexture(PyObject *self, PyObject *args) {
10816 PyObject *resultobj;
10817 otk::Style *arg1 = (otk::Style *) 0 ;
10818 std::string *arg2 = 0 ;
10819 std::string *arg3 = 0 ;
10820 otk::Configuration *arg4 = 0 ;
10821 bool arg5 = (bool) false ;
10822 otk::BTexture result;
10823 std::string temp2 ;
10824 std::string temp3 ;
10825 PyObject * obj0 = 0 ;
10826 PyObject * obj1 = 0 ;
10827 PyObject * obj2 = 0 ;
10828 PyObject * obj3 = 0 ;
10829 PyObject * obj4 = 0 ;
10830
10831 if(!PyArg_ParseTuple(args,(char *)"OOOO|O:Style_readDatabaseTexture",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10833 {
10834 if (PyString_Check(obj1)) {
10835 temp2 = std::string(PyString_AsString(obj1));
10836 arg2 = &temp2;
10837 }else {
10838 SWIG_exception(SWIG_TypeError, "string expected");
10839 }
10840 }
10841 {
10842 if (PyString_Check(obj2)) {
10843 temp3 = std::string(PyString_AsString(obj2));
10844 arg3 = &temp3;
10845 }else {
10846 SWIG_exception(SWIG_TypeError, "string expected");
10847 }
10848 }
10849 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10850 if (arg4 == NULL) {
10851 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10852 }
10853 if (obj4) {
10854 arg5 = (bool) PyInt_AsLong(obj4);
10855 if (PyErr_Occurred()) SWIG_fail;
10856 }
10857 result = (arg1)->readDatabaseTexture((std::string const &)*arg2,(std::string const &)*arg3,(otk::Configuration const &)*arg4,arg5);
10858
10859 {
10860 otk::BTexture * resultptr;
10861 resultptr = new otk::BTexture((otk::BTexture &) result);
10862 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__BTexture, 1);
10863 }
10864 return resultobj;
10865 fail:
10866 return NULL;
10867 }
10868
10869
10870 static PyObject *_wrap_Style_readDatabaseColor(PyObject *self, PyObject *args) {
10871 PyObject *resultobj;
10872 otk::Style *arg1 = (otk::Style *) 0 ;
10873 std::string *arg2 = 0 ;
10874 std::string *arg3 = 0 ;
10875 otk::Configuration *arg4 = 0 ;
10876 otk::BColor result;
10877 std::string temp2 ;
10878 std::string temp3 ;
10879 PyObject * obj0 = 0 ;
10880 PyObject * obj1 = 0 ;
10881 PyObject * obj2 = 0 ;
10882 PyObject * obj3 = 0 ;
10883
10884 if(!PyArg_ParseTuple(args,(char *)"OOOO:Style_readDatabaseColor",&obj0,&obj1,&obj2,&obj3)) goto fail;
10885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10886 {
10887 if (PyString_Check(obj1)) {
10888 temp2 = std::string(PyString_AsString(obj1));
10889 arg2 = &temp2;
10890 }else {
10891 SWIG_exception(SWIG_TypeError, "string expected");
10892 }
10893 }
10894 {
10895 if (PyString_Check(obj2)) {
10896 temp3 = std::string(PyString_AsString(obj2));
10897 arg3 = &temp3;
10898 }else {
10899 SWIG_exception(SWIG_TypeError, "string expected");
10900 }
10901 }
10902 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10903 if (arg4 == NULL) {
10904 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10905 }
10906 result = (arg1)->readDatabaseColor((std::string const &)*arg2,(std::string const &)*arg3,(otk::Configuration const &)*arg4);
10907
10908 {
10909 otk::BColor * resultptr;
10910 resultptr = new otk::BColor((otk::BColor &) result);
10911 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__BColor, 1);
10912 }
10913 return resultobj;
10914 fail:
10915 return NULL;
10916 }
10917
10918
10919 static PyObject *_wrap_Style_readDatabaseFont(PyObject *self, PyObject *args) {
10920 PyObject *resultobj;
10921 otk::Style *arg1 = (otk::Style *) 0 ;
10922 std::string *arg2 = 0 ;
10923 otk::Configuration *arg3 = 0 ;
10924 otk::BFont *result;
10925 std::string temp2 ;
10926 PyObject * obj0 = 0 ;
10927 PyObject * obj1 = 0 ;
10928 PyObject * obj2 = 0 ;
10929
10930 if(!PyArg_ParseTuple(args,(char *)"OOO:Style_readDatabaseFont",&obj0,&obj1,&obj2)) goto fail;
10931 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10932 {
10933 if (PyString_Check(obj1)) {
10934 temp2 = std::string(PyString_AsString(obj1));
10935 arg2 = &temp2;
10936 }else {
10937 SWIG_exception(SWIG_TypeError, "string expected");
10938 }
10939 }
10940 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10941 if (arg3 == NULL) {
10942 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10943 }
10944 result = (otk::BFont *)(arg1)->readDatabaseFont((std::string const &)*arg2,(otk::Configuration const &)*arg3);
10945
10946 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BFont, 0);
10947 return resultobj;
10948 fail:
10949 return NULL;
10950 }
10951
10952
10953 static PyObject *_wrap_Style_load(PyObject *self, PyObject *args) {
10954 PyObject *resultobj;
10955 otk::Style *arg1 = (otk::Style *) 0 ;
10956 otk::Configuration *arg2 = 0 ;
10957 PyObject * obj0 = 0 ;
10958 PyObject * obj1 = 0 ;
10959
10960 if(!PyArg_ParseTuple(args,(char *)"OO:Style_load",&obj0,&obj1)) goto fail;
10961 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10962 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10963 if (arg2 == NULL) {
10964 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10965 }
10966 (arg1)->load((otk::Configuration const &)*arg2);
10967
10968 Py_INCREF(Py_None); resultobj = Py_None;
10969 return resultobj;
10970 fail:
10971 return NULL;
10972 }
10973
10974
10975 static PyObject *_wrap_Style_getCloseButtonMask(PyObject *self, PyObject *args) {
10976 PyObject *resultobj;
10977 otk::Style *arg1 = (otk::Style *) 0 ;
10978 otk::PixmapMask *result;
10979 PyObject * obj0 = 0 ;
10980
10981 if(!PyArg_ParseTuple(args,(char *)"O:Style_getCloseButtonMask",&obj0)) goto fail;
10982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10983 result = (otk::PixmapMask *)(arg1)->getCloseButtonMask();
10984
10985 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
10986 return resultobj;
10987 fail:
10988 return NULL;
10989 }
10990
10991
10992 static PyObject *_wrap_Style_getMaximizeButtonMask(PyObject *self, PyObject *args) {
10993 PyObject *resultobj;
10994 otk::Style *arg1 = (otk::Style *) 0 ;
10995 otk::PixmapMask *result;
10996 PyObject * obj0 = 0 ;
10997
10998 if(!PyArg_ParseTuple(args,(char *)"O:Style_getMaximizeButtonMask",&obj0)) goto fail;
10999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11000 result = (otk::PixmapMask *)(arg1)->getMaximizeButtonMask();
11001
11002 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
11003 return resultobj;
11004 fail:
11005 return NULL;
11006 }
11007
11008
11009 static PyObject *_wrap_Style_getIconifyButtonMask(PyObject *self, PyObject *args) {
11010 PyObject *resultobj;
11011 otk::Style *arg1 = (otk::Style *) 0 ;
11012 otk::PixmapMask *result;
11013 PyObject * obj0 = 0 ;
11014
11015 if(!PyArg_ParseTuple(args,(char *)"O:Style_getIconifyButtonMask",&obj0)) goto fail;
11016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11017 result = (otk::PixmapMask *)(arg1)->getIconifyButtonMask();
11018
11019 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
11020 return resultobj;
11021 fail:
11022 return NULL;
11023 }
11024
11025
11026 static PyObject *_wrap_Style_getStickyButtonMask(PyObject *self, PyObject *args) {
11027 PyObject *resultobj;
11028 otk::Style *arg1 = (otk::Style *) 0 ;
11029 otk::PixmapMask *result;
11030 PyObject * obj0 = 0 ;
11031
11032 if(!PyArg_ParseTuple(args,(char *)"O:Style_getStickyButtonMask",&obj0)) goto fail;
11033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11034 result = (otk::PixmapMask *)(arg1)->getStickyButtonMask();
11035
11036 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
11037 return resultobj;
11038 fail:
11039 return NULL;
11040 }
11041
11042
11043 static PyObject *_wrap_Style_getTextFocus(PyObject *self, PyObject *args) {
11044 PyObject *resultobj;
11045 otk::Style *arg1 = (otk::Style *) 0 ;
11046 otk::BColor *result;
11047 PyObject * obj0 = 0 ;
11048
11049 if(!PyArg_ParseTuple(args,(char *)"O:Style_getTextFocus",&obj0)) goto fail;
11050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11051 result = (otk::BColor *)(arg1)->getTextFocus();
11052
11053 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
11054 return resultobj;
11055 fail:
11056 return NULL;
11057 }
11058
11059
11060 static PyObject *_wrap_Style_getTextUnfocus(PyObject *self, PyObject *args) {
11061 PyObject *resultobj;
11062 otk::Style *arg1 = (otk::Style *) 0 ;
11063 otk::BColor *result;
11064 PyObject * obj0 = 0 ;
11065
11066 if(!PyArg_ParseTuple(args,(char *)"O:Style_getTextUnfocus",&obj0)) goto fail;
11067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11068 result = (otk::BColor *)(arg1)->getTextUnfocus();
11069
11070 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
11071 return resultobj;
11072 fail:
11073 return NULL;
11074 }
11075
11076
11077 static PyObject *_wrap_Style_getButtonPicFocus(PyObject *self, PyObject *args) {
11078 PyObject *resultobj;
11079 otk::Style *arg1 = (otk::Style *) 0 ;
11080 otk::BColor *result;
11081 PyObject * obj0 = 0 ;
11082
11083 if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonPicFocus",&obj0)) goto fail;
11084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11085 result = (otk::BColor *)(arg1)->getButtonPicFocus();
11086
11087 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
11088 return resultobj;
11089 fail:
11090 return NULL;
11091 }
11092
11093
11094 static PyObject *_wrap_Style_getButtonPicUnfocus(PyObject *self, PyObject *args) {
11095 PyObject *resultobj;
11096 otk::Style *arg1 = (otk::Style *) 0 ;
11097 otk::BColor *result;
11098 PyObject * obj0 = 0 ;
11099
11100 if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonPicUnfocus",&obj0)) goto fail;
11101 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11102 result = (otk::BColor *)(arg1)->getButtonPicUnfocus();
11103
11104 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
11105 return resultobj;
11106 fail:
11107 return NULL;
11108 }
11109
11110
11111 static PyObject *_wrap_Style_getTitleFocus(PyObject *self, PyObject *args) {
11112 PyObject *resultobj;
11113 otk::Style *arg1 = (otk::Style *) 0 ;
11114 otk::BTexture *result;
11115 PyObject * obj0 = 0 ;
11116
11117 if(!PyArg_ParseTuple(args,(char *)"O:Style_getTitleFocus",&obj0)) goto fail;
11118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11119 result = (otk::BTexture *)(arg1)->getTitleFocus();
11120
11121 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11122 return resultobj;
11123 fail:
11124 return NULL;
11125 }
11126
11127
11128 static PyObject *_wrap_Style_getTitleUnfocus(PyObject *self, PyObject *args) {
11129 PyObject *resultobj;
11130 otk::Style *arg1 = (otk::Style *) 0 ;
11131 otk::BTexture *result;
11132 PyObject * obj0 = 0 ;
11133
11134 if(!PyArg_ParseTuple(args,(char *)"O:Style_getTitleUnfocus",&obj0)) goto fail;
11135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11136 result = (otk::BTexture *)(arg1)->getTitleUnfocus();
11137
11138 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11139 return resultobj;
11140 fail:
11141 return NULL;
11142 }
11143
11144
11145 static PyObject *_wrap_Style_getLabelFocus(PyObject *self, PyObject *args) {
11146 PyObject *resultobj;
11147 otk::Style *arg1 = (otk::Style *) 0 ;
11148 otk::BTexture *result;
11149 PyObject * obj0 = 0 ;
11150
11151 if(!PyArg_ParseTuple(args,(char *)"O:Style_getLabelFocus",&obj0)) goto fail;
11152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11153 result = (otk::BTexture *)(arg1)->getLabelFocus();
11154
11155 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11156 return resultobj;
11157 fail:
11158 return NULL;
11159 }
11160
11161
11162 static PyObject *_wrap_Style_getLabelUnfocus(PyObject *self, PyObject *args) {
11163 PyObject *resultobj;
11164 otk::Style *arg1 = (otk::Style *) 0 ;
11165 otk::BTexture *result;
11166 PyObject * obj0 = 0 ;
11167
11168 if(!PyArg_ParseTuple(args,(char *)"O:Style_getLabelUnfocus",&obj0)) goto fail;
11169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11170 result = (otk::BTexture *)(arg1)->getLabelUnfocus();
11171
11172 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11173 return resultobj;
11174 fail:
11175 return NULL;
11176 }
11177
11178
11179 static PyObject *_wrap_Style_getHandleFocus(PyObject *self, PyObject *args) {
11180 PyObject *resultobj;
11181 otk::Style *arg1 = (otk::Style *) 0 ;
11182 otk::BTexture *result;
11183 PyObject * obj0 = 0 ;
11184
11185 if(!PyArg_ParseTuple(args,(char *)"O:Style_getHandleFocus",&obj0)) goto fail;
11186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11187 result = (otk::BTexture *)(arg1)->getHandleFocus();
11188
11189 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11190 return resultobj;
11191 fail:
11192 return NULL;
11193 }
11194
11195
11196 static PyObject *_wrap_Style_getHandleUnfocus(PyObject *self, PyObject *args) {
11197 PyObject *resultobj;
11198 otk::Style *arg1 = (otk::Style *) 0 ;
11199 otk::BTexture *result;
11200 PyObject * obj0 = 0 ;
11201
11202 if(!PyArg_ParseTuple(args,(char *)"O:Style_getHandleUnfocus",&obj0)) goto fail;
11203 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11204 result = (otk::BTexture *)(arg1)->getHandleUnfocus();
11205
11206 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11207 return resultobj;
11208 fail:
11209 return NULL;
11210 }
11211
11212
11213 static PyObject *_wrap_Style_getButtonFocus(PyObject *self, PyObject *args) {
11214 PyObject *resultobj;
11215 otk::Style *arg1 = (otk::Style *) 0 ;
11216 otk::BTexture *result;
11217 PyObject * obj0 = 0 ;
11218
11219 if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonFocus",&obj0)) goto fail;
11220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11221 result = (otk::BTexture *)(arg1)->getButtonFocus();
11222
11223 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11224 return resultobj;
11225 fail:
11226 return NULL;
11227 }
11228
11229
11230 static PyObject *_wrap_Style_getButtonUnfocus(PyObject *self, PyObject *args) {
11231 PyObject *resultobj;
11232 otk::Style *arg1 = (otk::Style *) 0 ;
11233 otk::BTexture *result;
11234 PyObject * obj0 = 0 ;
11235
11236 if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonUnfocus",&obj0)) goto fail;
11237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11238 result = (otk::BTexture *)(arg1)->getButtonUnfocus();
11239
11240 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11241 return resultobj;
11242 fail:
11243 return NULL;
11244 }
11245
11246
11247 static PyObject *_wrap_Style_getButtonPressedFocus(PyObject *self, PyObject *args) {
11248 PyObject *resultobj;
11249 otk::Style *arg1 = (otk::Style *) 0 ;
11250 otk::BTexture *result;
11251 PyObject * obj0 = 0 ;
11252
11253 if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonPressedFocus",&obj0)) goto fail;
11254 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11255 result = (otk::BTexture *)(arg1)->getButtonPressedFocus();
11256
11257 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11258 return resultobj;
11259 fail:
11260 return NULL;
11261 }
11262
11263
11264 static PyObject *_wrap_Style_getButtonPressedUnfocus(PyObject *self, PyObject *args) {
11265 PyObject *resultobj;
11266 otk::Style *arg1 = (otk::Style *) 0 ;
11267 otk::BTexture *result;
11268 PyObject * obj0 = 0 ;
11269
11270 if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonPressedUnfocus",&obj0)) goto fail;
11271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11272 result = (otk::BTexture *)(arg1)->getButtonPressedUnfocus();
11273
11274 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11275 return resultobj;
11276 fail:
11277 return NULL;
11278 }
11279
11280
11281 static PyObject *_wrap_Style_getGripFocus(PyObject *self, PyObject *args) {
11282 PyObject *resultobj;
11283 otk::Style *arg1 = (otk::Style *) 0 ;
11284 otk::BTexture *result;
11285 PyObject * obj0 = 0 ;
11286
11287 if(!PyArg_ParseTuple(args,(char *)"O:Style_getGripFocus",&obj0)) goto fail;
11288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11289 result = (otk::BTexture *)(arg1)->getGripFocus();
11290
11291 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11292 return resultobj;
11293 fail:
11294 return NULL;
11295 }
11296
11297
11298 static PyObject *_wrap_Style_getGripUnfocus(PyObject *self, PyObject *args) {
11299 PyObject *resultobj;
11300 otk::Style *arg1 = (otk::Style *) 0 ;
11301 otk::BTexture *result;
11302 PyObject * obj0 = 0 ;
11303
11304 if(!PyArg_ParseTuple(args,(char *)"O:Style_getGripUnfocus",&obj0)) goto fail;
11305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11306 result = (otk::BTexture *)(arg1)->getGripUnfocus();
11307
11308 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11309 return resultobj;
11310 fail:
11311 return NULL;
11312 }
11313
11314
11315 static PyObject *_wrap_Style_getHandleWidth(PyObject *self, PyObject *args) {
11316 PyObject *resultobj;
11317 otk::Style *arg1 = (otk::Style *) 0 ;
11318 unsigned int result;
11319 PyObject * obj0 = 0 ;
11320
11321 if(!PyArg_ParseTuple(args,(char *)"O:Style_getHandleWidth",&obj0)) goto fail;
11322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11323 result = (unsigned int)((otk::Style const *)arg1)->getHandleWidth();
11324
11325 resultobj = PyInt_FromLong((long)result);
11326 return resultobj;
11327 fail:
11328 return NULL;
11329 }
11330
11331
11332 static PyObject *_wrap_Style_getBevelWidth(PyObject *self, PyObject *args) {
11333 PyObject *resultobj;
11334 otk::Style *arg1 = (otk::Style *) 0 ;
11335 unsigned int result;
11336 PyObject * obj0 = 0 ;
11337
11338 if(!PyArg_ParseTuple(args,(char *)"O:Style_getBevelWidth",&obj0)) goto fail;
11339 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11340 result = (unsigned int)((otk::Style const *)arg1)->getBevelWidth();
11341
11342 resultobj = PyInt_FromLong((long)result);
11343 return resultobj;
11344 fail:
11345 return NULL;
11346 }
11347
11348
11349 static PyObject *_wrap_Style_getFrameWidth(PyObject *self, PyObject *args) {
11350 PyObject *resultobj;
11351 otk::Style *arg1 = (otk::Style *) 0 ;
11352 unsigned int result;
11353 PyObject * obj0 = 0 ;
11354
11355 if(!PyArg_ParseTuple(args,(char *)"O:Style_getFrameWidth",&obj0)) goto fail;
11356 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11357 result = (unsigned int)((otk::Style const *)arg1)->getFrameWidth();
11358
11359 resultobj = PyInt_FromLong((long)result);
11360 return resultobj;
11361 fail:
11362 return NULL;
11363 }
11364
11365
11366 static PyObject *_wrap_Style_getBorderWidth(PyObject *self, PyObject *args) {
11367 PyObject *resultobj;
11368 otk::Style *arg1 = (otk::Style *) 0 ;
11369 unsigned int result;
11370 PyObject * obj0 = 0 ;
11371
11372 if(!PyArg_ParseTuple(args,(char *)"O:Style_getBorderWidth",&obj0)) goto fail;
11373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11374 result = (unsigned int)((otk::Style const *)arg1)->getBorderWidth();
11375
11376 resultobj = PyInt_FromLong((long)result);
11377 return resultobj;
11378 fail:
11379 return NULL;
11380 }
11381
11382
11383 static PyObject *_wrap_Style_getFont(PyObject *self, PyObject *args) {
11384 PyObject *resultobj;
11385 otk::Style *arg1 = (otk::Style *) 0 ;
11386 otk::BFont *result;
11387 PyObject * obj0 = 0 ;
11388
11389 if(!PyArg_ParseTuple(args,(char *)"O:Style_getFont",&obj0)) goto fail;
11390 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11391 result = (otk::BFont *)((otk::Style const *)arg1)->getFont();
11392
11393 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BFont, 0);
11394 return resultobj;
11395 fail:
11396 return NULL;
11397 }
11398
11399
11400 static PyObject *_wrap_Style_setShadowFonts(PyObject *self, PyObject *args) {
11401 PyObject *resultobj;
11402 otk::Style *arg1 = (otk::Style *) 0 ;
11403 bool arg2 ;
11404 PyObject * obj0 = 0 ;
11405 PyObject * obj1 = 0 ;
11406
11407 if(!PyArg_ParseTuple(args,(char *)"OO:Style_setShadowFonts",&obj0,&obj1)) goto fail;
11408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11409 arg2 = (bool) PyInt_AsLong(obj1);
11410 if (PyErr_Occurred()) SWIG_fail;
11411 (arg1)->setShadowFonts(arg2);
11412
11413 Py_INCREF(Py_None); resultobj = Py_None;
11414 return resultobj;
11415 fail:
11416 return NULL;
11417 }
11418
11419
11420 static PyObject *_wrap_Style_hasShadowFonts(PyObject *self, PyObject *args) {
11421 PyObject *resultobj;
11422 otk::Style *arg1 = (otk::Style *) 0 ;
11423 bool result;
11424 PyObject * obj0 = 0 ;
11425
11426 if(!PyArg_ParseTuple(args,(char *)"O:Style_hasShadowFonts",&obj0)) goto fail;
11427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11428 result = (bool)((otk::Style const *)arg1)->hasShadowFonts();
11429
11430 resultobj = PyInt_FromLong((long)result);
11431 return resultobj;
11432 fail:
11433 return NULL;
11434 }
11435
11436
11437 static PyObject *_wrap_Style_setAAFonts(PyObject *self, PyObject *args) {
11438 PyObject *resultobj;
11439 otk::Style *arg1 = (otk::Style *) 0 ;
11440 bool arg2 ;
11441 PyObject * obj0 = 0 ;
11442 PyObject * obj1 = 0 ;
11443
11444 if(!PyArg_ParseTuple(args,(char *)"OO:Style_setAAFonts",&obj0,&obj1)) goto fail;
11445 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11446 arg2 = (bool) PyInt_AsLong(obj1);
11447 if (PyErr_Occurred()) SWIG_fail;
11448 (arg1)->setAAFonts(arg2);
11449
11450 Py_INCREF(Py_None); resultobj = Py_None;
11451 return resultobj;
11452 fail:
11453 return NULL;
11454 }
11455
11456
11457 static PyObject *_wrap_Style_hasAAFonts(PyObject *self, PyObject *args) {
11458 PyObject *resultobj;
11459 otk::Style *arg1 = (otk::Style *) 0 ;
11460 bool result;
11461 PyObject * obj0 = 0 ;
11462
11463 if(!PyArg_ParseTuple(args,(char *)"O:Style_hasAAFonts",&obj0)) goto fail;
11464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11465 result = (bool)((otk::Style const *)arg1)->hasAAFonts();
11466
11467 resultobj = PyInt_FromLong((long)result);
11468 return resultobj;
11469 fail:
11470 return NULL;
11471 }
11472
11473
11474 static PyObject *_wrap_Style_textJustify(PyObject *self, PyObject *args) {
11475 PyObject *resultobj;
11476 otk::Style *arg1 = (otk::Style *) 0 ;
11477 int result;
11478 PyObject * obj0 = 0 ;
11479
11480 if(!PyArg_ParseTuple(args,(char *)"O:Style_textJustify",&obj0)) goto fail;
11481 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11482 result = (int)(arg1)->textJustify();
11483
11484 resultobj = PyInt_FromLong((long)result);
11485 return resultobj;
11486 fail:
11487 return NULL;
11488 }
11489
11490
11491 static PyObject *_wrap_Style_bulletType(PyObject *self, PyObject *args) {
11492 PyObject *resultobj;
11493 otk::Style *arg1 = (otk::Style *) 0 ;
11494 int result;
11495 PyObject * obj0 = 0 ;
11496
11497 if(!PyArg_ParseTuple(args,(char *)"O:Style_bulletType",&obj0)) goto fail;
11498 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11499 result = (int)(arg1)->bulletType();
11500
11501 resultobj = PyInt_FromLong((long)result);
11502 return resultobj;
11503 fail:
11504 return NULL;
11505 }
11506
11507
11508 static PyObject *_wrap_Style_getBorderColor(PyObject *self, PyObject *args) {
11509 PyObject *resultobj;
11510 otk::Style *arg1 = (otk::Style *) 0 ;
11511 otk::BColor *result;
11512 PyObject * obj0 = 0 ;
11513
11514 if(!PyArg_ParseTuple(args,(char *)"O:Style_getBorderColor",&obj0)) goto fail;
11515 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11516 result = (otk::BColor *)((otk::Style const *)arg1)->getBorderColor();
11517
11518 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
11519 return resultobj;
11520 fail:
11521 return NULL;
11522 }
11523
11524
11525 static PyObject *_wrap_Style_getFrameFocus(PyObject *self, PyObject *args) {
11526 PyObject *resultobj;
11527 otk::Style *arg1 = (otk::Style *) 0 ;
11528 otk::BTexture *result;
11529 PyObject * obj0 = 0 ;
11530
11531 if(!PyArg_ParseTuple(args,(char *)"O:Style_getFrameFocus",&obj0)) goto fail;
11532 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11533 result = (otk::BTexture *)((otk::Style const *)arg1)->getFrameFocus();
11534
11535 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11536 return resultobj;
11537 fail:
11538 return NULL;
11539 }
11540
11541
11542 static PyObject *_wrap_Style_getFrameUnfocus(PyObject *self, PyObject *args) {
11543 PyObject *resultobj;
11544 otk::Style *arg1 = (otk::Style *) 0 ;
11545 otk::BTexture *result;
11546 PyObject * obj0 = 0 ;
11547
11548 if(!PyArg_ParseTuple(args,(char *)"O:Style_getFrameUnfocus",&obj0)) goto fail;
11549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11550 result = (otk::BTexture *)((otk::Style const *)arg1)->getFrameUnfocus();
11551
11552 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11553 return resultobj;
11554 fail:
11555 return NULL;
11556 }
11557
11558
11559 static PyObject *_wrap_Style_setImageControl(PyObject *self, PyObject *args) {
11560 PyObject *resultobj;
11561 otk::Style *arg1 = (otk::Style *) 0 ;
11562 otk::BImageControl *arg2 = (otk::BImageControl *) 0 ;
11563 PyObject * obj0 = 0 ;
11564 PyObject * obj1 = 0 ;
11565
11566 if(!PyArg_ParseTuple(args,(char *)"OO:Style_setImageControl",&obj0,&obj1)) goto fail;
11567 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11568 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11569 (arg1)->setImageControl(arg2);
11570
11571 Py_INCREF(Py_None); resultobj = Py_None;
11572 return resultobj;
11573 fail:
11574 return NULL;
11575 }
11576
11577
11578 static PyObject *_wrap_Style_getScreen(PyObject *self, PyObject *args) {
11579 PyObject *resultobj;
11580 otk::Style *arg1 = (otk::Style *) 0 ;
11581 unsigned int result;
11582 PyObject * obj0 = 0 ;
11583
11584 if(!PyArg_ParseTuple(args,(char *)"O:Style_getScreen",&obj0)) goto fail;
11585 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11586 result = (unsigned int)(arg1)->getScreen();
11587
11588 resultobj = PyInt_FromLong((long)result);
11589 return resultobj;
11590 fail:
11591 return NULL;
11592 }
11593
11594
11595 static PyObject * Style_swigregister(PyObject *self, PyObject *args) {
11596 PyObject *obj;
11597 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11598 SWIG_TypeClientData(SWIGTYPE_p_otk__Style, obj);
11599 Py_INCREF(obj);
11600 return Py_BuildValue((char *)"");
11601 }
11602 static PyObject *_wrap_new_BTexture__SWIG_0(PyObject *self, PyObject *args) {
11603 PyObject *resultobj;
11604 unsigned int arg1 = (unsigned int) ~(0u) ;
11605 otk::BImageControl *arg2 = (otk::BImageControl *) 0 ;
11606 otk::BTexture *result;
11607 PyObject * obj0 = 0 ;
11608 PyObject * obj1 = 0 ;
11609
11610 if(!PyArg_ParseTuple(args,(char *)"|OO:new_BTexture",&obj0,&obj1)) goto fail;
11611 if (obj0) {
11612 arg1 = (unsigned int) PyInt_AsLong(obj0);
11613 if (PyErr_Occurred()) SWIG_fail;
11614 }
11615 if (obj1) {
11616 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11617 }
11618 result = (otk::BTexture *)new otk::BTexture(arg1,arg2);
11619
11620 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 1);
11621 return resultobj;
11622 fail:
11623 return NULL;
11624 }
11625
11626
11627 static PyObject *_wrap_new_BTexture__SWIG_1(PyObject *self, PyObject *args) {
11628 PyObject *resultobj;
11629 std::string *arg1 = 0 ;
11630 unsigned int arg2 = (unsigned int) ~(0u) ;
11631 otk::BImageControl *arg3 = (otk::BImageControl *) 0 ;
11632 otk::BTexture *result;
11633 std::string temp1 ;
11634 PyObject * obj0 = 0 ;
11635 PyObject * obj1 = 0 ;
11636 PyObject * obj2 = 0 ;
11637
11638 if(!PyArg_ParseTuple(args,(char *)"O|OO:new_BTexture",&obj0,&obj1,&obj2)) goto fail;
11639 {
11640 if (PyString_Check(obj0)) {
11641 temp1 = std::string(PyString_AsString(obj0));
11642 arg1 = &temp1;
11643 }else {
11644 SWIG_exception(SWIG_TypeError, "string expected");
11645 }
11646 }
11647 if (obj1) {
11648 arg2 = (unsigned int) PyInt_AsLong(obj1);
11649 if (PyErr_Occurred()) SWIG_fail;
11650 }
11651 if (obj2) {
11652 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11653 }
11654 result = (otk::BTexture *)new otk::BTexture((std::string const &)*arg1,arg2,arg3);
11655
11656 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 1);
11657 return resultobj;
11658 fail:
11659 return NULL;
11660 }
11661
11662
11663 static PyObject *_wrap_new_BTexture(PyObject *self, PyObject *args) {
11664 int argc;
11665 PyObject *argv[4];
11666 int ii;
11667
11668 argc = PyObject_Length(args);
11669 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
11670 argv[ii] = PyTuple_GetItem(args,ii);
11671 }
11672 if ((argc >= 0) && (argc <= 2)) {
11673 int _v;
11674 if (argc <= 0) {
11675 return _wrap_new_BTexture__SWIG_0(self,args);
11676 }
11677 {
11678 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
11679 }
11680 if (_v) {
11681 if (argc <= 1) {
11682 return _wrap_new_BTexture__SWIG_0(self,args);
11683 }
11684 {
11685 void *ptr;
11686 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__BImageControl, 0) == -1) {
11687 _v = 0;
11688 PyErr_Clear();
11689 }else {
11690 _v = 1;
11691 }
11692 }
11693 if (_v) {
11694 return _wrap_new_BTexture__SWIG_0(self,args);
11695 }
11696 }
11697 }
11698 if ((argc >= 1) && (argc <= 3)) {
11699 int _v;
11700 {
11701 _v = PyString_Check(argv[0]) ? 1 : 0;
11702 }
11703 if (_v) {
11704 if (argc <= 1) {
11705 return _wrap_new_BTexture__SWIG_1(self,args);
11706 }
11707 {
11708 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
11709 }
11710 if (_v) {
11711 if (argc <= 2) {
11712 return _wrap_new_BTexture__SWIG_1(self,args);
11713 }
11714 {
11715 void *ptr;
11716 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__BImageControl, 0) == -1) {
11717 _v = 0;
11718 PyErr_Clear();
11719 }else {
11720 _v = 1;
11721 }
11722 }
11723 if (_v) {
11724 return _wrap_new_BTexture__SWIG_1(self,args);
11725 }
11726 }
11727 }
11728 }
11729
11730 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BTexture'");
11731 return NULL;
11732 }
11733
11734
11735 static PyObject *_wrap_BTexture_setColor(PyObject *self, PyObject *args) {
11736 PyObject *resultobj;
11737 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11738 otk::BColor *arg2 = 0 ;
11739 PyObject * obj0 = 0 ;
11740 PyObject * obj1 = 0 ;
11741
11742 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setColor",&obj0,&obj1)) goto fail;
11743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11744 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11745 if (arg2 == NULL) {
11746 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11747 }
11748 (arg1)->setColor((otk::BColor const &)*arg2);
11749
11750 Py_INCREF(Py_None); resultobj = Py_None;
11751 return resultobj;
11752 fail:
11753 return NULL;
11754 }
11755
11756
11757 static PyObject *_wrap_BTexture_setColorTo(PyObject *self, PyObject *args) {
11758 PyObject *resultobj;
11759 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11760 otk::BColor *arg2 = 0 ;
11761 PyObject * obj0 = 0 ;
11762 PyObject * obj1 = 0 ;
11763
11764 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setColorTo",&obj0,&obj1)) goto fail;
11765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11766 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11767 if (arg2 == NULL) {
11768 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11769 }
11770 (arg1)->setColorTo((otk::BColor const &)*arg2);
11771
11772 Py_INCREF(Py_None); resultobj = Py_None;
11773 return resultobj;
11774 fail:
11775 return NULL;
11776 }
11777
11778
11779 static PyObject *_wrap_BTexture_setBorderColor(PyObject *self, PyObject *args) {
11780 PyObject *resultobj;
11781 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11782 otk::BColor *arg2 = 0 ;
11783 PyObject * obj0 = 0 ;
11784 PyObject * obj1 = 0 ;
11785
11786 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setBorderColor",&obj0,&obj1)) goto fail;
11787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11788 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11789 if (arg2 == NULL) {
11790 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11791 }
11792 (arg1)->setBorderColor((otk::BColor const &)*arg2);
11793
11794 Py_INCREF(Py_None); resultobj = Py_None;
11795 return resultobj;
11796 fail:
11797 return NULL;
11798 }
11799
11800
11801 static PyObject *_wrap_BTexture_color(PyObject *self, PyObject *args) {
11802 PyObject *resultobj;
11803 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11804 otk::BColor *result;
11805 PyObject * obj0 = 0 ;
11806
11807 if(!PyArg_ParseTuple(args,(char *)"O:BTexture_color",&obj0)) goto fail;
11808 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11809 {
11810 otk::BColor const &_result_ref = ((otk::BTexture const *)arg1)->color();
11811 result = (otk::BColor *) &_result_ref;
11812 }
11813
11814 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
11815 return resultobj;
11816 fail:
11817 return NULL;
11818 }
11819
11820
11821 static PyObject *_wrap_BTexture_colorTo(PyObject *self, PyObject *args) {
11822 PyObject *resultobj;
11823 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11824 otk::BColor *result;
11825 PyObject * obj0 = 0 ;
11826
11827 if(!PyArg_ParseTuple(args,(char *)"O:BTexture_colorTo",&obj0)) goto fail;
11828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11829 {
11830 otk::BColor const &_result_ref = ((otk::BTexture const *)arg1)->colorTo();
11831 result = (otk::BColor *) &_result_ref;
11832 }
11833
11834 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
11835 return resultobj;
11836 fail:
11837 return NULL;
11838 }
11839
11840
11841 static PyObject *_wrap_BTexture_lightColor(PyObject *self, PyObject *args) {
11842 PyObject *resultobj;
11843 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11844 otk::BColor *result;
11845 PyObject * obj0 = 0 ;
11846
11847 if(!PyArg_ParseTuple(args,(char *)"O:BTexture_lightColor",&obj0)) goto fail;
11848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11849 {
11850 otk::BColor const &_result_ref = ((otk::BTexture const *)arg1)->lightColor();
11851 result = (otk::BColor *) &_result_ref;
11852 }
11853
11854 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
11855 return resultobj;
11856 fail:
11857 return NULL;
11858 }
11859
11860
11861 static PyObject *_wrap_BTexture_shadowColor(PyObject *self, PyObject *args) {
11862 PyObject *resultobj;
11863 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11864 otk::BColor *result;
11865 PyObject * obj0 = 0 ;
11866
11867 if(!PyArg_ParseTuple(args,(char *)"O:BTexture_shadowColor",&obj0)) goto fail;
11868 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11869 {
11870 otk::BColor const &_result_ref = ((otk::BTexture const *)arg1)->shadowColor();
11871 result = (otk::BColor *) &_result_ref;
11872 }
11873
11874 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
11875 return resultobj;
11876 fail:
11877 return NULL;
11878 }
11879
11880
11881 static PyObject *_wrap_BTexture_borderColor(PyObject *self, PyObject *args) {
11882 PyObject *resultobj;
11883 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11884 otk::BColor *result;
11885 PyObject * obj0 = 0 ;
11886
11887 if(!PyArg_ParseTuple(args,(char *)"O:BTexture_borderColor",&obj0)) goto fail;
11888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11889 {
11890 otk::BColor const &_result_ref = ((otk::BTexture const *)arg1)->borderColor();
11891 result = (otk::BColor *) &_result_ref;
11892 }
11893
11894 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
11895 return resultobj;
11896 fail:
11897 return NULL;
11898 }
11899
11900
11901 static PyObject *_wrap_BTexture_texture(PyObject *self, PyObject *args) {
11902 PyObject *resultobj;
11903 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11904 unsigned long result;
11905 PyObject * obj0 = 0 ;
11906
11907 if(!PyArg_ParseTuple(args,(char *)"O:BTexture_texture",&obj0)) goto fail;
11908 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11909 result = (unsigned long)((otk::BTexture const *)arg1)->texture();
11910
11911 resultobj = PyInt_FromLong((long)result);
11912 return resultobj;
11913 fail:
11914 return NULL;
11915 }
11916
11917
11918 static PyObject *_wrap_BTexture_setTexture(PyObject *self, PyObject *args) {
11919 PyObject *resultobj;
11920 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11921 unsigned long arg2 ;
11922 PyObject * obj0 = 0 ;
11923 PyObject * obj1 = 0 ;
11924
11925 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setTexture",&obj0,&obj1)) goto fail;
11926 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11927 arg2 = (unsigned long) PyInt_AsLong(obj1);
11928 if (PyErr_Occurred()) SWIG_fail;
11929 (arg1)->setTexture(arg2);
11930
11931 Py_INCREF(Py_None); resultobj = Py_None;
11932 return resultobj;
11933 fail:
11934 return NULL;
11935 }
11936
11937
11938 static PyObject *_wrap_BTexture_addTexture(PyObject *self, PyObject *args) {
11939 PyObject *resultobj;
11940 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11941 unsigned long arg2 ;
11942 PyObject * obj0 = 0 ;
11943 PyObject * obj1 = 0 ;
11944
11945 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_addTexture",&obj0,&obj1)) goto fail;
11946 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11947 arg2 = (unsigned long) PyInt_AsLong(obj1);
11948 if (PyErr_Occurred()) SWIG_fail;
11949 (arg1)->addTexture(arg2);
11950
11951 Py_INCREF(Py_None); resultobj = Py_None;
11952 return resultobj;
11953 fail:
11954 return NULL;
11955 }
11956
11957
11958 static PyObject *_wrap_BTexture_equals(PyObject *self, PyObject *args) {
11959 PyObject *resultobj;
11960 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11961 otk::BTexture *arg2 = 0 ;
11962 bool result;
11963 PyObject * obj0 = 0 ;
11964 PyObject * obj1 = 0 ;
11965
11966 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_equals",&obj0,&obj1)) goto fail;
11967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11968 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11969 if (arg2 == NULL) {
11970 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11971 }
11972 result = (bool)(arg1)->operator ==((otk::BTexture const &)*arg2);
11973
11974 resultobj = PyInt_FromLong((long)result);
11975 return resultobj;
11976 fail:
11977 return NULL;
11978 }
11979
11980
11981 static PyObject *_wrap_BTexture_screen(PyObject *self, PyObject *args) {
11982 PyObject *resultobj;
11983 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11984 unsigned int result;
11985 PyObject * obj0 = 0 ;
11986
11987 if(!PyArg_ParseTuple(args,(char *)"O:BTexture_screen",&obj0)) goto fail;
11988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11989 result = (unsigned int)((otk::BTexture const *)arg1)->screen();
11990
11991 resultobj = PyInt_FromLong((long)result);
11992 return resultobj;
11993 fail:
11994 return NULL;
11995 }
11996
11997
11998 static PyObject *_wrap_BTexture_setScreen(PyObject *self, PyObject *args) {
11999 PyObject *resultobj;
12000 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
12001 unsigned int arg2 ;
12002 PyObject * obj0 = 0 ;
12003 PyObject * obj1 = 0 ;
12004
12005 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setScreen",&obj0,&obj1)) goto fail;
12006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12007 arg2 = (unsigned int) PyInt_AsLong(obj1);
12008 if (PyErr_Occurred()) SWIG_fail;
12009 (arg1)->setScreen(arg2);
12010
12011 Py_INCREF(Py_None); resultobj = Py_None;
12012 return resultobj;
12013 fail:
12014 return NULL;
12015 }
12016
12017
12018 static PyObject *_wrap_BTexture_setImageControl(PyObject *self, PyObject *args) {
12019 PyObject *resultobj;
12020 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
12021 otk::BImageControl *arg2 = (otk::BImageControl *) 0 ;
12022 PyObject * obj0 = 0 ;
12023 PyObject * obj1 = 0 ;
12024
12025 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setImageControl",&obj0,&obj1)) goto fail;
12026 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12027 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12028 (arg1)->setImageControl(arg2);
12029
12030 Py_INCREF(Py_None); resultobj = Py_None;
12031 return resultobj;
12032 fail:
12033 return NULL;
12034 }
12035
12036
12037 static PyObject *_wrap_BTexture_description(PyObject *self, PyObject *args) {
12038 PyObject *resultobj;
12039 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
12040 std::string *result;
12041 PyObject * obj0 = 0 ;
12042
12043 if(!PyArg_ParseTuple(args,(char *)"O:BTexture_description",&obj0)) goto fail;
12044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12045 {
12046 std::string const &_result_ref = ((otk::BTexture const *)arg1)->description();
12047 result = (std::string *) &_result_ref;
12048 }
12049
12050 {
12051 resultobj = PyString_FromString(result->c_str());
12052 }
12053 return resultobj;
12054 fail:
12055 return NULL;
12056 }
12057
12058
12059 static PyObject *_wrap_BTexture_setDescription(PyObject *self, PyObject *args) {
12060 PyObject *resultobj;
12061 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
12062 std::string *arg2 = 0 ;
12063 std::string temp2 ;
12064 PyObject * obj0 = 0 ;
12065 PyObject * obj1 = 0 ;
12066
12067 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setDescription",&obj0,&obj1)) goto fail;
12068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12069 {
12070 if (PyString_Check(obj1)) {
12071 temp2 = std::string(PyString_AsString(obj1));
12072 arg2 = &temp2;
12073 }else {
12074 SWIG_exception(SWIG_TypeError, "string expected");
12075 }
12076 }
12077 (arg1)->setDescription((std::string const &)*arg2);
12078
12079 Py_INCREF(Py_None); resultobj = Py_None;
12080 return resultobj;
12081 fail:
12082 return NULL;
12083 }
12084
12085
12086 static PyObject *_wrap_BTexture_render(PyObject *self, PyObject *args) {
12087 PyObject *resultobj;
12088 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
12089 unsigned int arg2 ;
12090 unsigned int arg3 ;
12091 Pixmap arg4 = (Pixmap) (Pixmap)0 ;
12092 Pixmap result;
12093 PyObject * obj0 = 0 ;
12094 PyObject * obj1 = 0 ;
12095 PyObject * obj2 = 0 ;
12096 PyObject * obj3 = 0 ;
12097
12098 if(!PyArg_ParseTuple(args,(char *)"OOO|O:BTexture_render",&obj0,&obj1,&obj2,&obj3)) goto fail;
12099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12100 arg2 = (unsigned int) PyInt_AsLong(obj1);
12101 if (PyErr_Occurred()) SWIG_fail;
12102 arg3 = (unsigned int) PyInt_AsLong(obj2);
12103 if (PyErr_Occurred()) SWIG_fail;
12104 if (obj3) {
12105 arg4 = (Pixmap) PyInt_AsLong(obj3);
12106 if (PyErr_Occurred()) SWIG_fail;
12107 }
12108 result = (Pixmap)(arg1)->render(arg2,arg3,arg4);
12109
12110 resultobj = PyInt_FromLong((long)result);
12111 return resultobj;
12112 fail:
12113 return NULL;
12114 }
12115
12116
12117 static PyObject *_wrap_delete_BTexture(PyObject *self, PyObject *args) {
12118 PyObject *resultobj;
12119 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
12120 PyObject * obj0 = 0 ;
12121
12122 if(!PyArg_ParseTuple(args,(char *)"O:delete_BTexture",&obj0)) goto fail;
12123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12124 delete arg1;
12125
12126 Py_INCREF(Py_None); resultobj = Py_None;
12127 return resultobj;
12128 fail:
12129 return NULL;
12130 }
12131
12132
12133 static PyObject * BTexture_swigregister(PyObject *self, PyObject *args) {
12134 PyObject *obj;
12135 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12136 SWIG_TypeClientData(SWIGTYPE_p_otk__BTexture, obj);
12137 Py_INCREF(obj);
12138 return Py_BuildValue((char *)"");
12139 }
12140 static PyObject *_wrap_new_OBTimer(PyObject *self, PyObject *args) {
12141 PyObject *resultobj;
12142 otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
12143 otk::OBTimeoutHandler arg2 = (otk::OBTimeoutHandler) 0 ;
12144 otk::OBTimeoutData arg3 = (otk::OBTimeoutData) 0 ;
12145 otk::OBTimer *result;
12146 PyObject * obj0 = 0 ;
12147 PyObject * obj1 = 0 ;
12148 PyObject * obj2 = 0 ;
12149
12150 if(!PyArg_ParseTuple(args,(char *)"OOO:new_OBTimer",&obj0,&obj1,&obj2)) goto fail;
12151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12152 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_otk__OBTimeoutHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12153 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12154 result = (otk::OBTimer *)new otk::OBTimer(arg1,arg2,arg3);
12155
12156 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimer, 1);
12157 return resultobj;
12158 fail:
12159 return NULL;
12160 }
12161
12162
12163 static PyObject *_wrap_delete_OBTimer(PyObject *self, PyObject *args) {
12164 PyObject *resultobj;
12165 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12166 PyObject * obj0 = 0 ;
12167
12168 if(!PyArg_ParseTuple(args,(char *)"O:delete_OBTimer",&obj0)) goto fail;
12169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12170 delete arg1;
12171
12172 Py_INCREF(Py_None); resultobj = Py_None;
12173 return resultobj;
12174 fail:
12175 return NULL;
12176 }
12177
12178
12179 static PyObject *_wrap_OBTimer_fire(PyObject *self, PyObject *args) {
12180 PyObject *resultobj;
12181 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12182 PyObject * obj0 = 0 ;
12183
12184 if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_fire",&obj0)) goto fail;
12185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12186 (arg1)->fire();
12187
12188 Py_INCREF(Py_None); resultobj = Py_None;
12189 return resultobj;
12190 fail:
12191 return NULL;
12192 }
12193
12194
12195 static PyObject *_wrap_OBTimer_timing(PyObject *self, PyObject *args) {
12196 PyObject *resultobj;
12197 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12198 bool result;
12199 PyObject * obj0 = 0 ;
12200
12201 if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_timing",&obj0)) goto fail;
12202 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12203 result = (bool)((otk::OBTimer const *)arg1)->timing();
12204
12205 resultobj = PyInt_FromLong((long)result);
12206 return resultobj;
12207 fail:
12208 return NULL;
12209 }
12210
12211
12212 static PyObject *_wrap_OBTimer_recurring(PyObject *self, PyObject *args) {
12213 PyObject *resultobj;
12214 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12215 bool result;
12216 PyObject * obj0 = 0 ;
12217
12218 if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_recurring",&obj0)) goto fail;
12219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12220 result = (bool)((otk::OBTimer const *)arg1)->recurring();
12221
12222 resultobj = PyInt_FromLong((long)result);
12223 return resultobj;
12224 fail:
12225 return NULL;
12226 }
12227
12228
12229 static PyObject *_wrap_OBTimer_timeout(PyObject *self, PyObject *args) {
12230 PyObject *resultobj;
12231 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12232 timeval *result;
12233 PyObject * obj0 = 0 ;
12234
12235 if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_timeout",&obj0)) goto fail;
12236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12237 {
12238 timeval const &_result_ref = ((otk::OBTimer const *)arg1)->timeout();
12239 result = (timeval *) &_result_ref;
12240 }
12241
12242 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_timeval, 0);
12243 return resultobj;
12244 fail:
12245 return NULL;
12246 }
12247
12248
12249 static PyObject *_wrap_OBTimer_startTime(PyObject *self, PyObject *args) {
12250 PyObject *resultobj;
12251 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12252 timeval *result;
12253 PyObject * obj0 = 0 ;
12254
12255 if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_startTime",&obj0)) goto fail;
12256 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12257 {
12258 timeval const &_result_ref = ((otk::OBTimer const *)arg1)->startTime();
12259 result = (timeval *) &_result_ref;
12260 }
12261
12262 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_timeval, 0);
12263 return resultobj;
12264 fail:
12265 return NULL;
12266 }
12267
12268
12269 static PyObject *_wrap_OBTimer_remainingTime(PyObject *self, PyObject *args) {
12270 PyObject *resultobj;
12271 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12272 timeval *arg2 = 0 ;
12273 timeval result;
12274 PyObject * obj0 = 0 ;
12275 PyObject * obj1 = 0 ;
12276
12277 if(!PyArg_ParseTuple(args,(char *)"OO:OBTimer_remainingTime",&obj0,&obj1)) goto fail;
12278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12279 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_timeval,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12280 if (arg2 == NULL) {
12281 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12282 }
12283 result = ((otk::OBTimer const *)arg1)->remainingTime((timeval const &)*arg2);
12284
12285 {
12286 timeval * resultptr;
12287 resultptr = new timeval((timeval &) result);
12288 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_timeval, 1);
12289 }
12290 return resultobj;
12291 fail:
12292 return NULL;
12293 }
12294
12295
12296 static PyObject *_wrap_OBTimer_shouldFire(PyObject *self, PyObject *args) {
12297 PyObject *resultobj;
12298 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12299 timeval *arg2 = 0 ;
12300 bool result;
12301 PyObject * obj0 = 0 ;
12302 PyObject * obj1 = 0 ;
12303
12304 if(!PyArg_ParseTuple(args,(char *)"OO:OBTimer_shouldFire",&obj0,&obj1)) goto fail;
12305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12306 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_timeval,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12307 if (arg2 == NULL) {
12308 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12309 }
12310 result = (bool)((otk::OBTimer const *)arg1)->shouldFire((timeval const &)*arg2);
12311
12312 resultobj = PyInt_FromLong((long)result);
12313 return resultobj;
12314 fail:
12315 return NULL;
12316 }
12317
12318
12319 static PyObject *_wrap_OBTimer_endTime(PyObject *self, PyObject *args) {
12320 PyObject *resultobj;
12321 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12322 timeval result;
12323 PyObject * obj0 = 0 ;
12324
12325 if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_endTime",&obj0)) goto fail;
12326 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12327 result = ((otk::OBTimer const *)arg1)->endTime();
12328
12329 {
12330 timeval * resultptr;
12331 resultptr = new timeval((timeval &) result);
12332 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_timeval, 1);
12333 }
12334 return resultobj;
12335 fail:
12336 return NULL;
12337 }
12338
12339
12340 static PyObject *_wrap_OBTimer_setRecurring(PyObject *self, PyObject *args) {
12341 PyObject *resultobj;
12342 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12343 bool arg2 ;
12344 PyObject * obj0 = 0 ;
12345 PyObject * obj1 = 0 ;
12346
12347 if(!PyArg_ParseTuple(args,(char *)"OO:OBTimer_setRecurring",&obj0,&obj1)) goto fail;
12348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12349 arg2 = (bool) PyInt_AsLong(obj1);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 (arg1)->setRecurring(arg2);
12352
12353 Py_INCREF(Py_None); resultobj = Py_None;
12354 return resultobj;
12355 fail:
12356 return NULL;
12357 }
12358
12359
12360 static PyObject *_wrap_OBTimer_setTimeout__SWIG_0(PyObject *self, PyObject *args) {
12361 PyObject *resultobj;
12362 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12363 long arg2 ;
12364 PyObject * obj0 = 0 ;
12365
12366 if(!PyArg_ParseTuple(args,(char *)"Ol:OBTimer_setTimeout",&obj0,&arg2)) goto fail;
12367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12368 (arg1)->setTimeout(arg2);
12369
12370 Py_INCREF(Py_None); resultobj = Py_None;
12371 return resultobj;
12372 fail:
12373 return NULL;
12374 }
12375
12376
12377 static PyObject *_wrap_OBTimer_setTimeout__SWIG_1(PyObject *self, PyObject *args) {
12378 PyObject *resultobj;
12379 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12380 timeval *arg2 = 0 ;
12381 PyObject * obj0 = 0 ;
12382 PyObject * obj1 = 0 ;
12383
12384 if(!PyArg_ParseTuple(args,(char *)"OO:OBTimer_setTimeout",&obj0,&obj1)) goto fail;
12385 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12386 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_timeval,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12387 if (arg2 == NULL) {
12388 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12389 }
12390 (arg1)->setTimeout((timeval const &)*arg2);
12391
12392 Py_INCREF(Py_None); resultobj = Py_None;
12393 return resultobj;
12394 fail:
12395 return NULL;
12396 }
12397
12398
12399 static PyObject *_wrap_OBTimer_setTimeout(PyObject *self, PyObject *args) {
12400 int argc;
12401 PyObject *argv[3];
12402 int ii;
12403
12404 argc = PyObject_Length(args);
12405 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
12406 argv[ii] = PyTuple_GetItem(args,ii);
12407 }
12408 if (argc == 2) {
12409 int _v;
12410 {
12411 void *ptr;
12412 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBTimer, 0) == -1) {
12413 _v = 0;
12414 PyErr_Clear();
12415 }else {
12416 _v = 1;
12417 }
12418 }
12419 if (_v) {
12420 {
12421 void *ptr;
12422 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_timeval, 0) == -1) {
12423 _v = 0;
12424 PyErr_Clear();
12425 }else {
12426 _v = 1;
12427 }
12428 }
12429 if (_v) {
12430 return _wrap_OBTimer_setTimeout__SWIG_1(self,args);
12431 }
12432 }
12433 }
12434 if (argc == 2) {
12435 int _v;
12436 {
12437 void *ptr;
12438 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBTimer, 0) == -1) {
12439 _v = 0;
12440 PyErr_Clear();
12441 }else {
12442 _v = 1;
12443 }
12444 }
12445 if (_v) {
12446 {
12447 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
12448 }
12449 if (_v) {
12450 return _wrap_OBTimer_setTimeout__SWIG_0(self,args);
12451 }
12452 }
12453 }
12454
12455 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OBTimer_setTimeout'");
12456 return NULL;
12457 }
12458
12459
12460 static PyObject *_wrap_OBTimer_start(PyObject *self, PyObject *args) {
12461 PyObject *resultobj;
12462 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12463 PyObject * obj0 = 0 ;
12464
12465 if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_start",&obj0)) goto fail;
12466 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12467 (arg1)->start();
12468
12469 Py_INCREF(Py_None); resultobj = Py_None;
12470 return resultobj;
12471 fail:
12472 return NULL;
12473 }
12474
12475
12476 static PyObject *_wrap_OBTimer_stop(PyObject *self, PyObject *args) {
12477 PyObject *resultobj;
12478 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12479 PyObject * obj0 = 0 ;
12480
12481 if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_stop",&obj0)) goto fail;
12482 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12483 (arg1)->stop();
12484
12485 Py_INCREF(Py_None); resultobj = Py_None;
12486 return resultobj;
12487 fail:
12488 return NULL;
12489 }
12490
12491
12492 static PyObject * OBTimer_swigregister(PyObject *self, PyObject *args) {
12493 PyObject *obj;
12494 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12495 SWIG_TypeClientData(SWIGTYPE_p_otk__OBTimer, obj);
12496 Py_INCREF(obj);
12497 return Py_BuildValue((char *)"");
12498 }
12499 static PyObject *_wrap_new_OBTimerQueueManager(PyObject *self, PyObject *args) {
12500 PyObject *resultobj;
12501 otk::OBTimerQueueManager *result;
12502
12503 if(!PyArg_ParseTuple(args,(char *)":new_OBTimerQueueManager")) goto fail;
12504 result = (otk::OBTimerQueueManager *)new otk::OBTimerQueueManager();
12505
12506 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimerQueueManager, 1);
12507 return resultobj;
12508 fail:
12509 return NULL;
12510 }
12511
12512
12513 static PyObject *_wrap_delete_OBTimerQueueManager(PyObject *self, PyObject *args) {
12514 PyObject *resultobj;
12515 otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
12516 PyObject * obj0 = 0 ;
12517
12518 if(!PyArg_ParseTuple(args,(char *)"O:delete_OBTimerQueueManager",&obj0)) goto fail;
12519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12520 delete arg1;
12521
12522 Py_INCREF(Py_None); resultobj = Py_None;
12523 return resultobj;
12524 fail:
12525 return NULL;
12526 }
12527
12528
12529 static PyObject *_wrap_OBTimerQueueManager_fire(PyObject *self, PyObject *args) {
12530 PyObject *resultobj;
12531 otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
12532 bool arg2 = (bool) true ;
12533 PyObject * obj0 = 0 ;
12534 PyObject * obj1 = 0 ;
12535
12536 if(!PyArg_ParseTuple(args,(char *)"O|O:OBTimerQueueManager_fire",&obj0,&obj1)) goto fail;
12537 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12538 if (obj1) {
12539 arg2 = (bool) PyInt_AsLong(obj1);
12540 if (PyErr_Occurred()) SWIG_fail;
12541 }
12542 (arg1)->fire(arg2);
12543
12544 Py_INCREF(Py_None); resultobj = Py_None;
12545 return resultobj;
12546 fail:
12547 return NULL;
12548 }
12549
12550
12551 static PyObject *_wrap_OBTimerQueueManager_addTimer(PyObject *self, PyObject *args) {
12552 PyObject *resultobj;
12553 otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
12554 otk::OBTimer *arg2 = (otk::OBTimer *) 0 ;
12555 PyObject * obj0 = 0 ;
12556 PyObject * obj1 = 0 ;
12557
12558 if(!PyArg_ParseTuple(args,(char *)"OO:OBTimerQueueManager_addTimer",&obj0,&obj1)) goto fail;
12559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12560 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12561 (arg1)->addTimer(arg2);
12562
12563 Py_INCREF(Py_None); resultobj = Py_None;
12564 return resultobj;
12565 fail:
12566 return NULL;
12567 }
12568
12569
12570 static PyObject *_wrap_OBTimerQueueManager_removeTimer(PyObject *self, PyObject *args) {
12571 PyObject *resultobj;
12572 otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
12573 otk::OBTimer *arg2 = (otk::OBTimer *) 0 ;
12574 PyObject * obj0 = 0 ;
12575 PyObject * obj1 = 0 ;
12576
12577 if(!PyArg_ParseTuple(args,(char *)"OO:OBTimerQueueManager_removeTimer",&obj0,&obj1)) goto fail;
12578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12579 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12580 (arg1)->removeTimer(arg2);
12581
12582 Py_INCREF(Py_None); resultobj = Py_None;
12583 return resultobj;
12584 fail:
12585 return NULL;
12586 }
12587
12588
12589 static PyObject * OBTimerQueueManager_swigregister(PyObject *self, PyObject *args) {
12590 PyObject *obj;
12591 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12592 SWIG_TypeClientData(SWIGTYPE_p_otk__OBTimerQueueManager, obj);
12593 Py_INCREF(obj);
12594 return Py_BuildValue((char *)"");
12595 }
12596 static int _wrap_BSENTINEL_set(PyObject *_val) {
12597 PyErr_SetString(PyExc_TypeError,"Variable BSENTINEL is read-only.");
12598 return 1;
12599 }
12600
12601
12602 static PyObject *_wrap_BSENTINEL_get() {
12603 PyObject *pyobj;
12604
12605 pyobj = PyInt_FromLong((long)otk::BSENTINEL);
12606 return pyobj;
12607 }
12608
12609
12610 static PyObject *_wrap_expandTilde(PyObject *self, PyObject *args) {
12611 PyObject *resultobj;
12612 std::string *arg1 = 0 ;
12613 std::string result;
12614 std::string temp1 ;
12615 PyObject * obj0 = 0 ;
12616
12617 if(!PyArg_ParseTuple(args,(char *)"O:expandTilde",&obj0)) goto fail;
12618 {
12619 if (PyString_Check(obj0)) {
12620 temp1 = std::string(PyString_AsString(obj0));
12621 arg1 = &temp1;
12622 }else {
12623 SWIG_exception(SWIG_TypeError, "string expected");
12624 }
12625 }
12626 result = otk::expandTilde((std::string const &)*arg1);
12627
12628 {
12629 resultobj = PyString_FromString((&result)->c_str());
12630 }
12631 return resultobj;
12632 fail:
12633 return NULL;
12634 }
12635
12636
12637 static PyObject *_wrap_bexec(PyObject *self, PyObject *args) {
12638 PyObject *resultobj;
12639 std::string *arg1 = 0 ;
12640 std::string *arg2 = 0 ;
12641 std::string temp1 ;
12642 std::string temp2 ;
12643 PyObject * obj0 = 0 ;
12644 PyObject * obj1 = 0 ;
12645
12646 if(!PyArg_ParseTuple(args,(char *)"OO:bexec",&obj0,&obj1)) goto fail;
12647 {
12648 if (PyString_Check(obj0)) {
12649 temp1 = std::string(PyString_AsString(obj0));
12650 arg1 = &temp1;
12651 }else {
12652 SWIG_exception(SWIG_TypeError, "string expected");
12653 }
12654 }
12655 {
12656 if (PyString_Check(obj1)) {
12657 temp2 = std::string(PyString_AsString(obj1));
12658 arg2 = &temp2;
12659 }else {
12660 SWIG_exception(SWIG_TypeError, "string expected");
12661 }
12662 }
12663 otk::bexec((std::string const &)*arg1,(std::string const &)*arg2);
12664
12665 Py_INCREF(Py_None); resultobj = Py_None;
12666 return resultobj;
12667 fail:
12668 return NULL;
12669 }
12670
12671
12672 static PyObject *_wrap_textPropertyToString(PyObject *self, PyObject *args) {
12673 PyObject *resultobj;
12674 Display *arg1 = (Display *) 0 ;
12675 XTextProperty *arg2 = 0 ;
12676 std::string result;
12677 PyObject * obj0 = 0 ;
12678 PyObject * obj1 = 0 ;
12679
12680 if(!PyArg_ParseTuple(args,(char *)"OO:textPropertyToString",&obj0,&obj1)) goto fail;
12681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12682 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XTextProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12683 if (arg2 == NULL) {
12684 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12685 }
12686 result = otk::textPropertyToString(arg1,*arg2);
12687
12688 {
12689 resultobj = PyString_FromString((&result)->c_str());
12690 }
12691 return resultobj;
12692 fail:
12693 return NULL;
12694 }
12695
12696
12697 static PyObject *_wrap_itostring_unsigned_long(PyObject *self, PyObject *args) {
12698 PyObject *resultobj;
12699 unsigned long arg1 ;
12700 std::string result;
12701 PyObject * obj0 = 0 ;
12702
12703 if(!PyArg_ParseTuple(args,(char *)"O:itostring_unsigned_long",&obj0)) goto fail;
12704 arg1 = (unsigned long) PyInt_AsLong(obj0);
12705 if (PyErr_Occurred()) SWIG_fail;
12706 result = otk::itostring(arg1);
12707
12708 {
12709 resultobj = PyString_FromString((&result)->c_str());
12710 }
12711 return resultobj;
12712 fail:
12713 return NULL;
12714 }
12715
12716
12717 static PyObject *_wrap_itostring_long(PyObject *self, PyObject *args) {
12718 PyObject *resultobj;
12719 long arg1 ;
12720 std::string result;
12721
12722 if(!PyArg_ParseTuple(args,(char *)"l:itostring_long",&arg1)) goto fail;
12723 result = otk::itostring(arg1);
12724
12725 {
12726 resultobj = PyString_FromString((&result)->c_str());
12727 }
12728 return resultobj;
12729 fail:
12730 return NULL;
12731 }
12732
12733
12734 static PyObject *_wrap_itostring_unsigned(PyObject *self, PyObject *args) {
12735 PyObject *resultobj;
12736 unsigned int arg1 ;
12737 std::string result;
12738 PyObject * obj0 = 0 ;
12739
12740 if(!PyArg_ParseTuple(args,(char *)"O:itostring_unsigned",&obj0)) goto fail;
12741 arg1 = (unsigned int) PyInt_AsLong(obj0);
12742 if (PyErr_Occurred()) SWIG_fail;
12743 result = otk::itostring(arg1);
12744
12745 {
12746 resultobj = PyString_FromString((&result)->c_str());
12747 }
12748 return resultobj;
12749 fail:
12750 return NULL;
12751 }
12752
12753
12754 static PyObject *_wrap_itostring(PyObject *self, PyObject *args) {
12755 PyObject *resultobj;
12756 int arg1 ;
12757 std::string result;
12758
12759 if(!PyArg_ParseTuple(args,(char *)"i:itostring",&arg1)) goto fail;
12760 result = otk::itostring(arg1);
12761
12762 {
12763 resultobj = PyString_FromString((&result)->c_str());
12764 }
12765 return resultobj;
12766 fail:
12767 return NULL;
12768 }
12769
12770
12771 static PyObject *_wrap_basename(PyObject *self, PyObject *args) {
12772 PyObject *resultobj;
12773 std::string *arg1 = 0 ;
12774 std::string result;
12775 std::string temp1 ;
12776 PyObject * obj0 = 0 ;
12777
12778 if(!PyArg_ParseTuple(args,(char *)"O:basename",&obj0)) goto fail;
12779 {
12780 if (PyString_Check(obj0)) {
12781 temp1 = std::string(PyString_AsString(obj0));
12782 arg1 = &temp1;
12783 }else {
12784 SWIG_exception(SWIG_TypeError, "string expected");
12785 }
12786 }
12787 result = otk::basename((std::string const &)*arg1);
12788
12789 {
12790 resultobj = PyString_FromString((&result)->c_str());
12791 }
12792 return resultobj;
12793 fail:
12794 return NULL;
12795 }
12796
12797
12798 static PyMethodDef SwigMethods[] = {
12799 { (char *)"OBDisplay_display", _wrap_OBDisplay_display, METH_VARARGS },
12800 { (char *)"new_OtkEventDispatcher", _wrap_new_OtkEventDispatcher, METH_VARARGS },
12801 { (char *)"delete_OtkEventDispatcher", _wrap_delete_OtkEventDispatcher, METH_VARARGS },
12802 { (char *)"OtkEventDispatcher_clearAllHandlers", _wrap_OtkEventDispatcher_clearAllHandlers, METH_VARARGS },
12803 { (char *)"OtkEventDispatcher_registerHandler", _wrap_OtkEventDispatcher_registerHandler, METH_VARARGS },
12804 { (char *)"OtkEventDispatcher_clearHandler", _wrap_OtkEventDispatcher_clearHandler, METH_VARARGS },
12805 { (char *)"OtkEventDispatcher_dispatchEvents", _wrap_OtkEventDispatcher_dispatchEvents, METH_VARARGS },
12806 { (char *)"OtkEventDispatcher_setFallbackHandler", _wrap_OtkEventDispatcher_setFallbackHandler, METH_VARARGS },
12807 { (char *)"OtkEventDispatcher_getFallbackHandler", _wrap_OtkEventDispatcher_getFallbackHandler, METH_VARARGS },
12808 { (char *)"OtkEventDispatcher_setMasterHandler", _wrap_OtkEventDispatcher_setMasterHandler, METH_VARARGS },
12809 { (char *)"OtkEventDispatcher_getMasterHandler", _wrap_OtkEventDispatcher_getMasterHandler, METH_VARARGS },
12810 { (char *)"OtkEventDispatcher_findHandler", _wrap_OtkEventDispatcher_findHandler, METH_VARARGS },
12811 { (char *)"OtkEventDispatcher_lastTime", _wrap_OtkEventDispatcher_lastTime, METH_VARARGS },
12812 { (char *)"OtkEventDispatcher_swigregister", OtkEventDispatcher_swigregister, METH_VARARGS },
12813 { (char *)"OtkEventHandler_handle", _wrap_OtkEventHandler_handle, METH_VARARGS },
12814 { (char *)"OtkEventHandler_keyPressHandler", _wrap_OtkEventHandler_keyPressHandler, METH_VARARGS },
12815 { (char *)"OtkEventHandler_keyReleaseHandler", _wrap_OtkEventHandler_keyReleaseHandler, METH_VARARGS },
12816 { (char *)"OtkEventHandler_buttonPressHandler", _wrap_OtkEventHandler_buttonPressHandler, METH_VARARGS },
12817 { (char *)"OtkEventHandler_buttonReleaseHandler", _wrap_OtkEventHandler_buttonReleaseHandler, METH_VARARGS },
12818 { (char *)"OtkEventHandler_motionHandler", _wrap_OtkEventHandler_motionHandler, METH_VARARGS },
12819 { (char *)"OtkEventHandler_enterHandler", _wrap_OtkEventHandler_enterHandler, METH_VARARGS },
12820 { (char *)"OtkEventHandler_leaveHandler", _wrap_OtkEventHandler_leaveHandler, METH_VARARGS },
12821 { (char *)"OtkEventHandler_focusHandler", _wrap_OtkEventHandler_focusHandler, METH_VARARGS },
12822 { (char *)"OtkEventHandler_unfocusHandler", _wrap_OtkEventHandler_unfocusHandler, METH_VARARGS },
12823 { (char *)"OtkEventHandler_exposeHandler", _wrap_OtkEventHandler_exposeHandler, METH_VARARGS },
12824 { (char *)"OtkEventHandler_graphicsExposeHandler", _wrap_OtkEventHandler_graphicsExposeHandler, METH_VARARGS },
12825 { (char *)"OtkEventHandler_noExposeEventHandler", _wrap_OtkEventHandler_noExposeEventHandler, METH_VARARGS },
12826 { (char *)"OtkEventHandler_circulateRequestHandler", _wrap_OtkEventHandler_circulateRequestHandler, METH_VARARGS },
12827 { (char *)"OtkEventHandler_configureRequestHandler", _wrap_OtkEventHandler_configureRequestHandler, METH_VARARGS },
12828 { (char *)"OtkEventHandler_mapRequestHandler", _wrap_OtkEventHandler_mapRequestHandler, METH_VARARGS },
12829 { (char *)"OtkEventHandler_resizeRequestHandler", _wrap_OtkEventHandler_resizeRequestHandler, METH_VARARGS },
12830 { (char *)"OtkEventHandler_circulateHandler", _wrap_OtkEventHandler_circulateHandler, METH_VARARGS },
12831 { (char *)"OtkEventHandler_configureHandler", _wrap_OtkEventHandler_configureHandler, METH_VARARGS },
12832 { (char *)"OtkEventHandler_createHandler", _wrap_OtkEventHandler_createHandler, METH_VARARGS },
12833 { (char *)"OtkEventHandler_destroyHandler", _wrap_OtkEventHandler_destroyHandler, METH_VARARGS },
12834 { (char *)"OtkEventHandler_gravityHandler", _wrap_OtkEventHandler_gravityHandler, METH_VARARGS },
12835 { (char *)"OtkEventHandler_mapHandler", _wrap_OtkEventHandler_mapHandler, METH_VARARGS },
12836 { (char *)"OtkEventHandler_mappingHandler", _wrap_OtkEventHandler_mappingHandler, METH_VARARGS },
12837 { (char *)"OtkEventHandler_reparentHandler", _wrap_OtkEventHandler_reparentHandler, METH_VARARGS },
12838 { (char *)"OtkEventHandler_unmapHandler", _wrap_OtkEventHandler_unmapHandler, METH_VARARGS },
12839 { (char *)"OtkEventHandler_visibilityHandler", _wrap_OtkEventHandler_visibilityHandler, METH_VARARGS },
12840 { (char *)"OtkEventHandler_colorMapHandler", _wrap_OtkEventHandler_colorMapHandler, METH_VARARGS },
12841 { (char *)"OtkEventHandler_propertyHandler", _wrap_OtkEventHandler_propertyHandler, METH_VARARGS },
12842 { (char *)"OtkEventHandler_selectionClearHandler", _wrap_OtkEventHandler_selectionClearHandler, METH_VARARGS },
12843 { (char *)"OtkEventHandler_selectionHandler", _wrap_OtkEventHandler_selectionHandler, METH_VARARGS },
12844 { (char *)"OtkEventHandler_selectionRequestHandler", _wrap_OtkEventHandler_selectionRequestHandler, METH_VARARGS },
12845 { (char *)"OtkEventHandler_clientMessageHandler", _wrap_OtkEventHandler_clientMessageHandler, METH_VARARGS },
12846 { (char *)"delete_OtkEventHandler", _wrap_delete_OtkEventHandler, METH_VARARGS },
12847 { (char *)"OtkEventHandler_swigregister", OtkEventHandler_swigregister, METH_VARARGS },
12848 { (char *)"new_OtkWidget", _wrap_new_OtkWidget, METH_VARARGS },
12849 { (char *)"delete_OtkWidget", _wrap_delete_OtkWidget, METH_VARARGS },
12850 { (char *)"OtkWidget_update", _wrap_OtkWidget_update, METH_VARARGS },
12851 { (char *)"OtkWidget_exposeHandler", _wrap_OtkWidget_exposeHandler, METH_VARARGS },
12852 { (char *)"OtkWidget_configureHandler", _wrap_OtkWidget_configureHandler, METH_VARARGS },
12853 { (char *)"OtkWidget_window", _wrap_OtkWidget_window, METH_VARARGS },
12854 { (char *)"OtkWidget_parent", _wrap_OtkWidget_parent, METH_VARARGS },
12855 { (char *)"OtkWidget_children", _wrap_OtkWidget_children, METH_VARARGS },
12856 { (char *)"OtkWidget_screen", _wrap_OtkWidget_screen, METH_VARARGS },
12857 { (char *)"OtkWidget_rect", _wrap_OtkWidget_rect, METH_VARARGS },
12858 { (char *)"OtkWidget_move", _wrap_OtkWidget_move, METH_VARARGS },
12859 { (char *)"OtkWidget_setWidth", _wrap_OtkWidget_setWidth, METH_VARARGS },
12860 { (char *)"OtkWidget_setHeight", _wrap_OtkWidget_setHeight, METH_VARARGS },
12861 { (char *)"OtkWidget_width", _wrap_OtkWidget_width, METH_VARARGS },
12862 { (char *)"OtkWidget_height", _wrap_OtkWidget_height, METH_VARARGS },
12863 { (char *)"OtkWidget_resize", _wrap_OtkWidget_resize, METH_VARARGS },
12864 { (char *)"OtkWidget_setGeometry", _wrap_OtkWidget_setGeometry, METH_VARARGS },
12865 { (char *)"OtkWidget_isVisible", _wrap_OtkWidget_isVisible, METH_VARARGS },
12866 { (char *)"OtkWidget_show", _wrap_OtkWidget_show, METH_VARARGS },
12867 { (char *)"OtkWidget_hide", _wrap_OtkWidget_hide, METH_VARARGS },
12868 { (char *)"OtkWidget_isFocused", _wrap_OtkWidget_isFocused, METH_VARARGS },
12869 { (char *)"OtkWidget_focus", _wrap_OtkWidget_focus, METH_VARARGS },
12870 { (char *)"OtkWidget_unfocus", _wrap_OtkWidget_unfocus, METH_VARARGS },
12871 { (char *)"OtkWidget_hasGrabbedMouse", _wrap_OtkWidget_hasGrabbedMouse, METH_VARARGS },
12872 { (char *)"OtkWidget_grabMouse", _wrap_OtkWidget_grabMouse, METH_VARARGS },
12873 { (char *)"OtkWidget_ungrabMouse", _wrap_OtkWidget_ungrabMouse, METH_VARARGS },
12874 { (char *)"OtkWidget_hasGrabbedKeyboard", _wrap_OtkWidget_hasGrabbedKeyboard, METH_VARARGS },
12875 { (char *)"OtkWidget_grabKeyboard", _wrap_OtkWidget_grabKeyboard, METH_VARARGS },
12876 { (char *)"OtkWidget_ungrabKeyboard", _wrap_OtkWidget_ungrabKeyboard, METH_VARARGS },
12877 { (char *)"OtkWidget_texture", _wrap_OtkWidget_texture, METH_VARARGS },
12878 { (char *)"OtkWidget_setTexture", _wrap_OtkWidget_setTexture, METH_VARARGS },
12879 { (char *)"OtkWidget_borderColor", _wrap_OtkWidget_borderColor, METH_VARARGS },
12880 { (char *)"OtkWidget_setBorderColor", _wrap_OtkWidget_setBorderColor, METH_VARARGS },
12881 { (char *)"OtkWidget_borderWidth", _wrap_OtkWidget_borderWidth, METH_VARARGS },
12882 { (char *)"OtkWidget_setBorderWidth", _wrap_OtkWidget_setBorderWidth, METH_VARARGS },
12883 { (char *)"OtkWidget_addChild", _wrap_OtkWidget_addChild, METH_VARARGS },
12884 { (char *)"OtkWidget_removeChild", _wrap_OtkWidget_removeChild, METH_VARARGS },
12885 { (char *)"OtkWidget_isStretchableHorz", _wrap_OtkWidget_isStretchableHorz, METH_VARARGS },
12886 { (char *)"OtkWidget_setStretchableHorz", _wrap_OtkWidget_setStretchableHorz, METH_VARARGS },
12887 { (char *)"OtkWidget_isStretchableVert", _wrap_OtkWidget_isStretchableVert, METH_VARARGS },
12888 { (char *)"OtkWidget_setStretchableVert", _wrap_OtkWidget_setStretchableVert, METH_VARARGS },
12889 { (char *)"OtkWidget_cursor", _wrap_OtkWidget_cursor, METH_VARARGS },
12890 { (char *)"OtkWidget_setCursor", _wrap_OtkWidget_setCursor, METH_VARARGS },
12891 { (char *)"OtkWidget_bevelWidth", _wrap_OtkWidget_bevelWidth, METH_VARARGS },
12892 { (char *)"OtkWidget_setBevelWidth", _wrap_OtkWidget_setBevelWidth, METH_VARARGS },
12893 { (char *)"OtkWidget_direction", _wrap_OtkWidget_direction, METH_VARARGS },
12894 { (char *)"OtkWidget_setDirection", _wrap_OtkWidget_setDirection, METH_VARARGS },
12895 { (char *)"OtkWidget_style", _wrap_OtkWidget_style, METH_VARARGS },
12896 { (char *)"OtkWidget_setStyle", _wrap_OtkWidget_setStyle, METH_VARARGS },
12897 { (char *)"OtkWidget_eventDispatcher", _wrap_OtkWidget_eventDispatcher, METH_VARARGS },
12898 { (char *)"OtkWidget_setEventDispatcher", _wrap_OtkWidget_setEventDispatcher, METH_VARARGS },
12899 { (char *)"OtkWidget_swigregister", OtkWidget_swigregister, METH_VARARGS },
12900 { (char *)"new_OtkFocusWidget", _wrap_new_OtkFocusWidget, METH_VARARGS },
12901 { (char *)"delete_OtkFocusWidget", _wrap_delete_OtkFocusWidget, METH_VARARGS },
12902 { (char *)"OtkFocusWidget_focus", _wrap_OtkFocusWidget_focus, METH_VARARGS },
12903 { (char *)"OtkFocusWidget_unfocus", _wrap_OtkFocusWidget_unfocus, METH_VARARGS },
12904 { (char *)"OtkFocusWidget_setTexture", _wrap_OtkFocusWidget_setTexture, METH_VARARGS },
12905 { (char *)"OtkFocusWidget_setBorderColor", _wrap_OtkFocusWidget_setBorderColor, METH_VARARGS },
12906 { (char *)"OtkFocusWidget_setUnfocusTexture", _wrap_OtkFocusWidget_setUnfocusTexture, METH_VARARGS },
12907 { (char *)"OtkFocusWidget_getUnfocusTexture", _wrap_OtkFocusWidget_getUnfocusTexture, METH_VARARGS },
12908 { (char *)"OtkFocusWidget_setUnfocusBorderColor", _wrap_OtkFocusWidget_setUnfocusBorderColor, METH_VARARGS },
12909 { (char *)"OtkFocusWidget_getUnfocusBorderColor", _wrap_OtkFocusWidget_getUnfocusBorderColor, METH_VARARGS },
12910 { (char *)"OtkFocusWidget_isFocused", _wrap_OtkFocusWidget_isFocused, METH_VARARGS },
12911 { (char *)"OtkFocusWidget_isUnfocused", _wrap_OtkFocusWidget_isUnfocused, METH_VARARGS },
12912 { (char *)"OtkFocusWidget_swigregister", OtkFocusWidget_swigregister, METH_VARARGS },
12913 { (char *)"new_OtkFocusLabel", _wrap_new_OtkFocusLabel, METH_VARARGS },
12914 { (char *)"delete_OtkFocusLabel", _wrap_delete_OtkFocusLabel, METH_VARARGS },
12915 { (char *)"OtkFocusLabel_getText", _wrap_OtkFocusLabel_getText, METH_VARARGS },
12916 { (char *)"OtkFocusLabel_setText", _wrap_OtkFocusLabel_setText, METH_VARARGS },
12917 { (char *)"OtkFocusLabel_update", _wrap_OtkFocusLabel_update, METH_VARARGS },
12918 { (char *)"OtkFocusLabel_setStyle", _wrap_OtkFocusLabel_setStyle, METH_VARARGS },
12919 { (char *)"OtkFocusLabel_swigregister", OtkFocusLabel_swigregister, METH_VARARGS },
12920 { (char *)"new_OtkAppWidget", _wrap_new_OtkAppWidget, METH_VARARGS },
12921 { (char *)"delete_OtkAppWidget", _wrap_delete_OtkAppWidget, METH_VARARGS },
12922 { (char *)"OtkAppWidget_show", _wrap_OtkAppWidget_show, METH_VARARGS },
12923 { (char *)"OtkAppWidget_hide", _wrap_OtkAppWidget_hide, METH_VARARGS },
12924 { (char *)"OtkAppWidget_clientMessageHandler", _wrap_OtkAppWidget_clientMessageHandler, METH_VARARGS },
12925 { (char *)"OtkAppWidget_swigregister", OtkAppWidget_swigregister, METH_VARARGS },
12926 { (char *)"new_OtkApplication", _wrap_new_OtkApplication, METH_VARARGS },
12927 { (char *)"delete_OtkApplication", _wrap_delete_OtkApplication, METH_VARARGS },
12928 { (char *)"OtkApplication_run", _wrap_OtkApplication_run, METH_VARARGS },
12929 { (char *)"OtkApplication_setDockable", _wrap_OtkApplication_setDockable, METH_VARARGS },
12930 { (char *)"OtkApplication_isDockable", _wrap_OtkApplication_isDockable, METH_VARARGS },
12931 { (char *)"OtkApplication_getStyle", _wrap_OtkApplication_getStyle, METH_VARARGS },
12932 { (char *)"OtkApplication_swigregister", OtkApplication_swigregister, METH_VARARGS },
12933 { (char *)"new_PointerAssassin", _wrap_new_PointerAssassin, METH_VARARGS },
12934 { (char *)"delete_PointerAssassin", _wrap_delete_PointerAssassin, METH_VARARGS },
12935 { (char *)"PointerAssassin_swigregister", PointerAssassin_swigregister, METH_VARARGS },
12936 { (char *)"new_OtkButton", _wrap_new_OtkButton, METH_VARARGS },
12937 { (char *)"delete_OtkButton", _wrap_delete_OtkButton, METH_VARARGS },
12938 { (char *)"OtkButton_getPressedFocusTexture", _wrap_OtkButton_getPressedFocusTexture, METH_VARARGS },
12939 { (char *)"OtkButton_setPressedFocusTexture", _wrap_OtkButton_setPressedFocusTexture, METH_VARARGS },
12940 { (char *)"OtkButton_getPressedUnfocusTexture", _wrap_OtkButton_getPressedUnfocusTexture, METH_VARARGS },
12941 { (char *)"OtkButton_setPressedUnfocusTexture", _wrap_OtkButton_setPressedUnfocusTexture, METH_VARARGS },
12942 { (char *)"OtkButton_setTexture", _wrap_OtkButton_setTexture, METH_VARARGS },
12943 { (char *)"OtkButton_setUnfocusTexture", _wrap_OtkButton_setUnfocusTexture, METH_VARARGS },
12944 { (char *)"OtkButton_isPressed", _wrap_OtkButton_isPressed, METH_VARARGS },
12945 { (char *)"OtkButton_press", _wrap_OtkButton_press, METH_VARARGS },
12946 { (char *)"OtkButton_release", _wrap_OtkButton_release, METH_VARARGS },
12947 { (char *)"OtkButton_buttonPressHandler", _wrap_OtkButton_buttonPressHandler, METH_VARARGS },
12948 { (char *)"OtkButton_buttonReleaseHandler", _wrap_OtkButton_buttonReleaseHandler, METH_VARARGS },
12949 { (char *)"OtkButton_setStyle", _wrap_OtkButton_setStyle, METH_VARARGS },
12950 { (char *)"OtkButton_swigregister", OtkButton_swigregister, METH_VARARGS },
12951 { (char *)"new_BColor", _wrap_new_BColor, METH_VARARGS },
12952 { (char *)"delete_BColor", _wrap_delete_BColor, METH_VARARGS },
12953 { (char *)"BColor_name", _wrap_BColor_name, METH_VARARGS },
12954 { (char *)"BColor_red", _wrap_BColor_red, METH_VARARGS },
12955 { (char *)"BColor_green", _wrap_BColor_green, METH_VARARGS },
12956 { (char *)"BColor_blue", _wrap_BColor_blue, METH_VARARGS },
12957 { (char *)"BColor_setRGB", _wrap_BColor_setRGB, METH_VARARGS },
12958 { (char *)"BColor_screen", _wrap_BColor_screen, METH_VARARGS },
12959 { (char *)"BColor_setScreen", _wrap_BColor_setScreen, METH_VARARGS },
12960 { (char *)"BColor_isAllocated", _wrap_BColor_isAllocated, METH_VARARGS },
12961 { (char *)"BColor_isValid", _wrap_BColor_isValid, METH_VARARGS },
12962 { (char *)"BColor_pixel", _wrap_BColor_pixel, METH_VARARGS },
12963 { (char *)"BColor_equals", _wrap_BColor_equals, METH_VARARGS },
12964 { (char *)"BColor_cleanupColorCache", _wrap_BColor_cleanupColorCache, METH_VARARGS },
12965 { (char *)"BColor_swigregister", BColor_swigregister, METH_VARARGS },
12966 { (char *)"new_Configuration", _wrap_new_Configuration, METH_VARARGS },
12967 { (char *)"delete_Configuration", _wrap_delete_Configuration, METH_VARARGS },
12968 { (char *)"Configuration_file", _wrap_Configuration_file, METH_VARARGS },
12969 { (char *)"Configuration_setFile", _wrap_Configuration_setFile, METH_VARARGS },
12970 { (char *)"Configuration_autoSave", _wrap_Configuration_autoSave, METH_VARARGS },
12971 { (char *)"Configuration_setAutoSave", _wrap_Configuration_setAutoSave, METH_VARARGS },
12972 { (char *)"Configuration_isModified", _wrap_Configuration_isModified, METH_VARARGS },
12973 { (char *)"Configuration_save", _wrap_Configuration_save, METH_VARARGS },
12974 { (char *)"Configuration_load", _wrap_Configuration_load, METH_VARARGS },
12975 { (char *)"Configuration_merge", _wrap_Configuration_merge, METH_VARARGS },
12976 { (char *)"Configuration_create", _wrap_Configuration_create, METH_VARARGS },
12977 { (char *)"Configuration_setValue_bool", _wrap_Configuration_setValue_bool, METH_VARARGS },
12978 { (char *)"Configuration_setValue", _wrap_Configuration_setValue, METH_VARARGS },
12979 { (char *)"Configuration_setValue_unsigned", _wrap_Configuration_setValue_unsigned, METH_VARARGS },
12980 { (char *)"Configuration_setValue_long", _wrap_Configuration_setValue_long, METH_VARARGS },
12981 { (char *)"Configuration_setValue_unsignedlong", _wrap_Configuration_setValue_unsignedlong, METH_VARARGS },
12982 { (char *)"Configuration_setValue_string", _wrap_Configuration_setValue_string, METH_VARARGS },
12983 { (char *)"Configuration_setValue_charptr", _wrap_Configuration_setValue_charptr, METH_VARARGS },
12984 { (char *)"Configuration_getValue", _wrap_Configuration_getValue, METH_VARARGS },
12985 { (char *)"Configuration_swigregister", Configuration_swigregister, METH_VARARGS },
12986 { (char *)"OBDisplay_initialize", _wrap_OBDisplay_initialize, METH_VARARGS },
12987 { (char *)"OBDisplay_destroy", _wrap_OBDisplay_destroy, METH_VARARGS },
12988 { (char *)"OBDisplay_gcCache", _wrap_OBDisplay_gcCache, METH_VARARGS },
12989 { (char *)"OBDisplay_screenInfo", _wrap_OBDisplay_screenInfo, METH_VARARGS },
12990 { (char *)"OBDisplay_findScreen", _wrap_OBDisplay_findScreen, METH_VARARGS },
12991 { (char *)"OBDisplay_xkb", _wrap_OBDisplay_xkb, METH_VARARGS },
12992 { (char *)"OBDisplay_xkbEventBase", _wrap_OBDisplay_xkbEventBase, METH_VARARGS },
12993 { (char *)"OBDisplay_shape", _wrap_OBDisplay_shape, METH_VARARGS },
12994 { (char *)"OBDisplay_shapeEventBase", _wrap_OBDisplay_shapeEventBase, METH_VARARGS },
12995 { (char *)"OBDisplay_xinerama", _wrap_OBDisplay_xinerama, METH_VARARGS },
12996 { (char *)"OBDisplay_numLockMask", _wrap_OBDisplay_numLockMask, METH_VARARGS },
12997 { (char *)"OBDisplay_scrollLockMask", _wrap_OBDisplay_scrollLockMask, METH_VARARGS },
12998 { (char *)"OBDisplay_grab", _wrap_OBDisplay_grab, METH_VARARGS },
12999 { (char *)"OBDisplay_ungrab", _wrap_OBDisplay_ungrab, METH_VARARGS },
13000 { (char *)"OBDisplay_grabButton", _wrap_OBDisplay_grabButton, METH_VARARGS },
13001 { (char *)"OBDisplay_ungrabButton", _wrap_OBDisplay_ungrabButton, METH_VARARGS },
13002 { (char *)"OBDisplay_grabKey", _wrap_OBDisplay_grabKey, METH_VARARGS },
13003 { (char *)"OBDisplay_ungrabKey", _wrap_OBDisplay_ungrabKey, METH_VARARGS },
13004 { (char *)"delete_OBDisplay", _wrap_delete_OBDisplay, METH_VARARGS },
13005 { (char *)"OBDisplay_swigregister", OBDisplay_swigregister, METH_VARARGS },
13006 { (char *)"BFont_fallbackFont", _wrap_BFont_fallbackFont, METH_VARARGS },
13007 { (char *)"BFont_setFallbackFont", _wrap_BFont_setFallbackFont, METH_VARARGS },
13008 { (char *)"new_BFont", _wrap_new_BFont, METH_VARARGS },
13009 { (char *)"delete_BFont", _wrap_delete_BFont, METH_VARARGS },
13010 { (char *)"BFont_fontstring", _wrap_BFont_fontstring, METH_VARARGS },
13011 { (char *)"BFont_height", _wrap_BFont_height, METH_VARARGS },
13012 { (char *)"BFont_maxCharWidth", _wrap_BFont_maxCharWidth, METH_VARARGS },
13013 { (char *)"BFont_measureString", _wrap_BFont_measureString, METH_VARARGS },
13014 { (char *)"BFont_drawString", _wrap_BFont_drawString, METH_VARARGS },
13015 { (char *)"BFont_swigregister", BFont_swigregister, METH_VARARGS },
13016 { (char *)"BGCCacheContext_set", _wrap_BGCCacheContext_set, METH_VARARGS },
13017 { (char *)"delete_BGCCacheContext", _wrap_delete_BGCCacheContext, METH_VARARGS },
13018 { (char *)"BGCCacheContext_swigregister", BGCCacheContext_swigregister, METH_VARARGS },
13019 { (char *)"BGCCacheItem_gc", _wrap_BGCCacheItem_gc, METH_VARARGS },
13020 { (char *)"delete_BGCCacheItem", _wrap_delete_BGCCacheItem, METH_VARARGS },
13021 { (char *)"BGCCacheItem_swigregister", BGCCacheItem_swigregister, METH_VARARGS },
13022 { (char *)"new_BGCCache", _wrap_new_BGCCache, METH_VARARGS },
13023 { (char *)"delete_BGCCache", _wrap_delete_BGCCache, METH_VARARGS },
13024 { (char *)"BGCCache_purge", _wrap_BGCCache_purge, METH_VARARGS },
13025 { (char *)"BGCCache_find", _wrap_BGCCache_find, METH_VARARGS },
13026 { (char *)"BGCCache_release", _wrap_BGCCache_release, METH_VARARGS },
13027 { (char *)"BGCCache_swigregister", BGCCache_swigregister, METH_VARARGS },
13028 { (char *)"new_BPen", _wrap_new_BPen, METH_VARARGS },
13029 { (char *)"delete_BPen", _wrap_delete_BPen, METH_VARARGS },
13030 { (char *)"BPen_gc", _wrap_BPen_gc, METH_VARARGS },
13031 { (char *)"BPen_swigregister", BPen_swigregister, METH_VARARGS },
13032 { (char *)"new_BImage", _wrap_new_BImage, METH_VARARGS },
13033 { (char *)"delete_BImage", _wrap_delete_BImage, METH_VARARGS },
13034 { (char *)"BImage_render", _wrap_BImage_render, METH_VARARGS },
13035 { (char *)"BImage_swigregister", BImage_swigregister, METH_VARARGS },
13036 { (char *)"new_BImageControl", _wrap_new_BImageControl, METH_VARARGS },
13037 { (char *)"delete_BImageControl", _wrap_delete_BImageControl, METH_VARARGS },
13038 { (char *)"BImageControl_doDither", _wrap_BImageControl_doDither, METH_VARARGS },
13039 { (char *)"BImageControl_getScreenInfo", _wrap_BImageControl_getScreenInfo, METH_VARARGS },
13040 { (char *)"BImageControl_getDrawable", _wrap_BImageControl_getDrawable, METH_VARARGS },
13041 { (char *)"BImageControl_getVisual", _wrap_BImageControl_getVisual, METH_VARARGS },
13042 { (char *)"BImageControl_getBitsPerPixel", _wrap_BImageControl_getBitsPerPixel, METH_VARARGS },
13043 { (char *)"BImageControl_getDepth", _wrap_BImageControl_getDepth, METH_VARARGS },
13044 { (char *)"BImageControl_getColorsPerChannel", _wrap_BImageControl_getColorsPerChannel, METH_VARARGS },
13045 { (char *)"BImageControl_getSqrt", _wrap_BImageControl_getSqrt, METH_VARARGS },
13046 { (char *)"BImageControl_renderImage", _wrap_BImageControl_renderImage, METH_VARARGS },
13047 { (char *)"BImageControl_installRootColormap", _wrap_BImageControl_installRootColormap, METH_VARARGS },
13048 { (char *)"BImageControl_removeImage", _wrap_BImageControl_removeImage, METH_VARARGS },
13049 { (char *)"BImageControl_getColorTables", _wrap_BImageControl_getColorTables, METH_VARARGS },
13050 { (char *)"BImageControl_getXColorTable", _wrap_BImageControl_getXColorTable, METH_VARARGS },
13051 { (char *)"BImageControl_getGradientBuffers", _wrap_BImageControl_getGradientBuffers, METH_VARARGS },
13052 { (char *)"BImageControl_setDither", _wrap_BImageControl_setDither, METH_VARARGS },
13053 { (char *)"BImageControl_setColorsPerChannel", _wrap_BImageControl_setColorsPerChannel, METH_VARARGS },
13054 { (char *)"BImageControl_timeout", _wrap_BImageControl_timeout, METH_VARARGS },
13055 { (char *)"BImageControl_swigregister", BImageControl_swigregister, METH_VARARGS },
13056 { (char *)"new_Point", _wrap_new_Point, METH_VARARGS },
13057 { (char *)"Point_setX", _wrap_Point_setX, METH_VARARGS },
13058 { (char *)"Point_x", _wrap_Point_x, METH_VARARGS },
13059 { (char *)"Point_setY", _wrap_Point_setY, METH_VARARGS },
13060 { (char *)"Point_y", _wrap_Point_y, METH_VARARGS },
13061 { (char *)"Point_setPoint", _wrap_Point_setPoint, METH_VARARGS },
13062 { (char *)"delete_Point", _wrap_delete_Point, METH_VARARGS },
13063 { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS },
13064 { (char *)"new_OBProperty", _wrap_new_OBProperty, METH_VARARGS },
13065 { (char *)"delete_OBProperty", _wrap_delete_OBProperty, METH_VARARGS },
13066 { (char *)"OBProperty_set", _wrap_OBProperty_set, METH_VARARGS },
13067 { (char *)"OBProperty_get", _wrap_OBProperty_get, METH_VARARGS },
13068 { (char *)"OBProperty_erase", _wrap_OBProperty_erase, METH_VARARGS },
13069 { (char *)"OBProperty_atom", _wrap_OBProperty_atom, METH_VARARGS },
13070 { (char *)"OBProperty_swigregister", OBProperty_swigregister, METH_VARARGS },
13071 { (char *)"new_Rect", _wrap_new_Rect, METH_VARARGS },
13072 { (char *)"Rect_left", _wrap_Rect_left, METH_VARARGS },
13073 { (char *)"Rect_top", _wrap_Rect_top, METH_VARARGS },
13074 { (char *)"Rect_right", _wrap_Rect_right, METH_VARARGS },
13075 { (char *)"Rect_bottom", _wrap_Rect_bottom, METH_VARARGS },
13076 { (char *)"Rect_x", _wrap_Rect_x, METH_VARARGS },
13077 { (char *)"Rect_y", _wrap_Rect_y, METH_VARARGS },
13078 { (char *)"Rect_location", _wrap_Rect_location, METH_VARARGS },
13079 { (char *)"Rect_setX", _wrap_Rect_setX, METH_VARARGS },
13080 { (char *)"Rect_setY", _wrap_Rect_setY, METH_VARARGS },
13081 { (char *)"Rect_setPos", _wrap_Rect_setPos, METH_VARARGS },
13082 { (char *)"Rect_width", _wrap_Rect_width, METH_VARARGS },
13083 { (char *)"Rect_height", _wrap_Rect_height, METH_VARARGS },
13084 { (char *)"Rect_size", _wrap_Rect_size, METH_VARARGS },
13085 { (char *)"Rect_setWidth", _wrap_Rect_setWidth, METH_VARARGS },
13086 { (char *)"Rect_setHeight", _wrap_Rect_setHeight, METH_VARARGS },
13087 { (char *)"Rect_setSize", _wrap_Rect_setSize, METH_VARARGS },
13088 { (char *)"Rect_setRect", _wrap_Rect_setRect, METH_VARARGS },
13089 { (char *)"Rect_setCoords", _wrap_Rect_setCoords, METH_VARARGS },
13090 { (char *)"Rect_equals", _wrap_Rect_equals, METH_VARARGS },
13091 { (char *)"Rect_valid", _wrap_Rect_valid, METH_VARARGS },
13092 { (char *)"Rect_intersects", _wrap_Rect_intersects, METH_VARARGS },
13093 { (char *)"Rect_contains", _wrap_Rect_contains, METH_VARARGS },
13094 { (char *)"delete_Rect", _wrap_delete_Rect, METH_VARARGS },
13095 { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS },
13096 { (char *)"new_ScreenInfo", _wrap_new_ScreenInfo, METH_VARARGS },
13097 { (char *)"ScreenInfo_visual", _wrap_ScreenInfo_visual, METH_VARARGS },
13098 { (char *)"ScreenInfo_rootWindow", _wrap_ScreenInfo_rootWindow, METH_VARARGS },
13099 { (char *)"ScreenInfo_colormap", _wrap_ScreenInfo_colormap, METH_VARARGS },
13100 { (char *)"ScreenInfo_depth", _wrap_ScreenInfo_depth, METH_VARARGS },
13101 { (char *)"ScreenInfo_screen", _wrap_ScreenInfo_screen, METH_VARARGS },
13102 { (char *)"ScreenInfo_rect", _wrap_ScreenInfo_rect, METH_VARARGS },
13103 { (char *)"ScreenInfo_width", _wrap_ScreenInfo_width, METH_VARARGS },
13104 { (char *)"ScreenInfo_height", _wrap_ScreenInfo_height, METH_VARARGS },
13105 { (char *)"ScreenInfo_displayString", _wrap_ScreenInfo_displayString, METH_VARARGS },
13106 { (char *)"delete_ScreenInfo", _wrap_delete_ScreenInfo, METH_VARARGS },
13107 { (char *)"ScreenInfo_swigregister", ScreenInfo_swigregister, METH_VARARGS },
13108 { (char *)"Strut_top_set", _wrap_Strut_top_set, METH_VARARGS },
13109 { (char *)"Strut_top_get", _wrap_Strut_top_get, METH_VARARGS },
13110 { (char *)"Strut_bottom_set", _wrap_Strut_bottom_set, METH_VARARGS },
13111 { (char *)"Strut_bottom_get", _wrap_Strut_bottom_get, METH_VARARGS },
13112 { (char *)"Strut_left_set", _wrap_Strut_left_set, METH_VARARGS },
13113 { (char *)"Strut_left_get", _wrap_Strut_left_get, METH_VARARGS },
13114 { (char *)"Strut_right_set", _wrap_Strut_right_set, METH_VARARGS },
13115 { (char *)"Strut_right_get", _wrap_Strut_right_get, METH_VARARGS },
13116 { (char *)"new_Strut", _wrap_new_Strut, METH_VARARGS },
13117 { (char *)"delete_Strut", _wrap_delete_Strut, METH_VARARGS },
13118 { (char *)"Strut_swigregister", Strut_swigregister, METH_VARARGS },
13119 { (char *)"PixmapMask_mask_set", _wrap_PixmapMask_mask_set, METH_VARARGS },
13120 { (char *)"PixmapMask_mask_get", _wrap_PixmapMask_mask_get, METH_VARARGS },
13121 { (char *)"PixmapMask_w_set", _wrap_PixmapMask_w_set, METH_VARARGS },
13122 { (char *)"PixmapMask_w_get", _wrap_PixmapMask_w_get, METH_VARARGS },
13123 { (char *)"PixmapMask_h_set", _wrap_PixmapMask_h_set, METH_VARARGS },
13124 { (char *)"PixmapMask_h_get", _wrap_PixmapMask_h_get, METH_VARARGS },
13125 { (char *)"new_PixmapMask", _wrap_new_PixmapMask, METH_VARARGS },
13126 { (char *)"delete_PixmapMask", _wrap_delete_PixmapMask, METH_VARARGS },
13127 { (char *)"PixmapMask_swigregister", PixmapMask_swigregister, METH_VARARGS },
13128 { (char *)"Style_image_control_set", _wrap_Style_image_control_set, METH_VARARGS },
13129 { (char *)"Style_image_control_get", _wrap_Style_image_control_get, METH_VARARGS },
13130 { (char *)"Style_l_text_focus_set", _wrap_Style_l_text_focus_set, METH_VARARGS },
13131 { (char *)"Style_l_text_focus_get", _wrap_Style_l_text_focus_get, METH_VARARGS },
13132 { (char *)"Style_l_text_unfocus_set", _wrap_Style_l_text_unfocus_set, METH_VARARGS },
13133 { (char *)"Style_l_text_unfocus_get", _wrap_Style_l_text_unfocus_get, METH_VARARGS },
13134 { (char *)"Style_b_pic_focus_set", _wrap_Style_b_pic_focus_set, METH_VARARGS },
13135 { (char *)"Style_b_pic_focus_get", _wrap_Style_b_pic_focus_get, METH_VARARGS },
13136 { (char *)"Style_b_pic_unfocus_set", _wrap_Style_b_pic_unfocus_set, METH_VARARGS },
13137 { (char *)"Style_b_pic_unfocus_get", _wrap_Style_b_pic_unfocus_get, METH_VARARGS },
13138 { (char *)"Style_border_color_set", _wrap_Style_border_color_set, METH_VARARGS },
13139 { (char *)"Style_border_color_get", _wrap_Style_border_color_get, METH_VARARGS },
13140 { (char *)"Style_font_set", _wrap_Style_font_set, METH_VARARGS },
13141 { (char *)"Style_font_get", _wrap_Style_font_get, METH_VARARGS },
13142 { (char *)"Style_f_focus_set", _wrap_Style_f_focus_set, METH_VARARGS },
13143 { (char *)"Style_f_focus_get", _wrap_Style_f_focus_get, METH_VARARGS },
13144 { (char *)"Style_f_unfocus_set", _wrap_Style_f_unfocus_set, METH_VARARGS },
13145 { (char *)"Style_f_unfocus_get", _wrap_Style_f_unfocus_get, METH_VARARGS },
13146 { (char *)"Style_t_focus_set", _wrap_Style_t_focus_set, METH_VARARGS },
13147 { (char *)"Style_t_focus_get", _wrap_Style_t_focus_get, METH_VARARGS },
13148 { (char *)"Style_t_unfocus_set", _wrap_Style_t_unfocus_set, METH_VARARGS },
13149 { (char *)"Style_t_unfocus_get", _wrap_Style_t_unfocus_get, METH_VARARGS },
13150 { (char *)"Style_l_focus_set", _wrap_Style_l_focus_set, METH_VARARGS },
13151 { (char *)"Style_l_focus_get", _wrap_Style_l_focus_get, METH_VARARGS },
13152 { (char *)"Style_l_unfocus_set", _wrap_Style_l_unfocus_set, METH_VARARGS },
13153 { (char *)"Style_l_unfocus_get", _wrap_Style_l_unfocus_get, METH_VARARGS },
13154 { (char *)"Style_h_focus_set", _wrap_Style_h_focus_set, METH_VARARGS },
13155 { (char *)"Style_h_focus_get", _wrap_Style_h_focus_get, METH_VARARGS },
13156 { (char *)"Style_h_unfocus_set", _wrap_Style_h_unfocus_set, METH_VARARGS },
13157 { (char *)"Style_h_unfocus_get", _wrap_Style_h_unfocus_get, METH_VARARGS },
13158 { (char *)"Style_b_focus_set", _wrap_Style_b_focus_set, METH_VARARGS },
13159 { (char *)"Style_b_focus_get", _wrap_Style_b_focus_get, METH_VARARGS },
13160 { (char *)"Style_b_unfocus_set", _wrap_Style_b_unfocus_set, METH_VARARGS },
13161 { (char *)"Style_b_unfocus_get", _wrap_Style_b_unfocus_get, METH_VARARGS },
13162 { (char *)"Style_b_pressed_focus_set", _wrap_Style_b_pressed_focus_set, METH_VARARGS },
13163 { (char *)"Style_b_pressed_focus_get", _wrap_Style_b_pressed_focus_get, METH_VARARGS },
13164 { (char *)"Style_b_pressed_unfocus_set", _wrap_Style_b_pressed_unfocus_set, METH_VARARGS },
13165 { (char *)"Style_b_pressed_unfocus_get", _wrap_Style_b_pressed_unfocus_get, METH_VARARGS },
13166 { (char *)"Style_g_focus_set", _wrap_Style_g_focus_set, METH_VARARGS },
13167 { (char *)"Style_g_focus_get", _wrap_Style_g_focus_get, METH_VARARGS },
13168 { (char *)"Style_g_unfocus_set", _wrap_Style_g_unfocus_set, METH_VARARGS },
13169 { (char *)"Style_g_unfocus_get", _wrap_Style_g_unfocus_get, METH_VARARGS },
13170 { (char *)"Style_close_button_set", _wrap_Style_close_button_set, METH_VARARGS },
13171 { (char *)"Style_close_button_get", _wrap_Style_close_button_get, METH_VARARGS },
13172 { (char *)"Style_max_button_set", _wrap_Style_max_button_set, METH_VARARGS },
13173 { (char *)"Style_max_button_get", _wrap_Style_max_button_get, METH_VARARGS },
13174 { (char *)"Style_icon_button_set", _wrap_Style_icon_button_set, METH_VARARGS },
13175 { (char *)"Style_icon_button_get", _wrap_Style_icon_button_get, METH_VARARGS },
13176 { (char *)"Style_stick_button_set", _wrap_Style_stick_button_set, METH_VARARGS },
13177 { (char *)"Style_stick_button_get", _wrap_Style_stick_button_get, METH_VARARGS },
13178 { (char *)"Style_justify_set", _wrap_Style_justify_set, METH_VARARGS },
13179 { (char *)"Style_justify_get", _wrap_Style_justify_get, METH_VARARGS },
13180 { (char *)"Style_bullet_type_set", _wrap_Style_bullet_type_set, METH_VARARGS },
13181 { (char *)"Style_bullet_type_get", _wrap_Style_bullet_type_get, METH_VARARGS },
13182 { (char *)"Style_handle_width_set", _wrap_Style_handle_width_set, METH_VARARGS },
13183 { (char *)"Style_handle_width_get", _wrap_Style_handle_width_get, METH_VARARGS },
13184 { (char *)"Style_bevel_width_set", _wrap_Style_bevel_width_set, METH_VARARGS },
13185 { (char *)"Style_bevel_width_get", _wrap_Style_bevel_width_get, METH_VARARGS },
13186 { (char *)"Style_frame_width_set", _wrap_Style_frame_width_set, METH_VARARGS },
13187 { (char *)"Style_frame_width_get", _wrap_Style_frame_width_get, METH_VARARGS },
13188 { (char *)"Style_border_width_set", _wrap_Style_border_width_set, METH_VARARGS },
13189 { (char *)"Style_border_width_get", _wrap_Style_border_width_get, METH_VARARGS },
13190 { (char *)"Style_screen_number_set", _wrap_Style_screen_number_set, METH_VARARGS },
13191 { (char *)"Style_screen_number_get", _wrap_Style_screen_number_get, METH_VARARGS },
13192 { (char *)"Style_shadow_fonts_set", _wrap_Style_shadow_fonts_set, METH_VARARGS },
13193 { (char *)"Style_shadow_fonts_get", _wrap_Style_shadow_fonts_get, METH_VARARGS },
13194 { (char *)"Style_aa_fonts_set", _wrap_Style_aa_fonts_set, METH_VARARGS },
13195 { (char *)"Style_aa_fonts_get", _wrap_Style_aa_fonts_get, METH_VARARGS },
13196 { (char *)"new_Style", _wrap_new_Style, METH_VARARGS },
13197 { (char *)"delete_Style", _wrap_delete_Style, METH_VARARGS },
13198 { (char *)"Style_readDatabaseMask", _wrap_Style_readDatabaseMask, METH_VARARGS },
13199 { (char *)"Style_readDatabaseTexture", _wrap_Style_readDatabaseTexture, METH_VARARGS },
13200 { (char *)"Style_readDatabaseColor", _wrap_Style_readDatabaseColor, METH_VARARGS },
13201 { (char *)"Style_readDatabaseFont", _wrap_Style_readDatabaseFont, METH_VARARGS },
13202 { (char *)"Style_load", _wrap_Style_load, METH_VARARGS },
13203 { (char *)"Style_getCloseButtonMask", _wrap_Style_getCloseButtonMask, METH_VARARGS },
13204 { (char *)"Style_getMaximizeButtonMask", _wrap_Style_getMaximizeButtonMask, METH_VARARGS },
13205 { (char *)"Style_getIconifyButtonMask", _wrap_Style_getIconifyButtonMask, METH_VARARGS },
13206 { (char *)"Style_getStickyButtonMask", _wrap_Style_getStickyButtonMask, METH_VARARGS },
13207 { (char *)"Style_getTextFocus", _wrap_Style_getTextFocus, METH_VARARGS },
13208 { (char *)"Style_getTextUnfocus", _wrap_Style_getTextUnfocus, METH_VARARGS },
13209 { (char *)"Style_getButtonPicFocus", _wrap_Style_getButtonPicFocus, METH_VARARGS },
13210 { (char *)"Style_getButtonPicUnfocus", _wrap_Style_getButtonPicUnfocus, METH_VARARGS },
13211 { (char *)"Style_getTitleFocus", _wrap_Style_getTitleFocus, METH_VARARGS },
13212 { (char *)"Style_getTitleUnfocus", _wrap_Style_getTitleUnfocus, METH_VARARGS },
13213 { (char *)"Style_getLabelFocus", _wrap_Style_getLabelFocus, METH_VARARGS },
13214 { (char *)"Style_getLabelUnfocus", _wrap_Style_getLabelUnfocus, METH_VARARGS },
13215 { (char *)"Style_getHandleFocus", _wrap_Style_getHandleFocus, METH_VARARGS },
13216 { (char *)"Style_getHandleUnfocus", _wrap_Style_getHandleUnfocus, METH_VARARGS },
13217 { (char *)"Style_getButtonFocus", _wrap_Style_getButtonFocus, METH_VARARGS },
13218 { (char *)"Style_getButtonUnfocus", _wrap_Style_getButtonUnfocus, METH_VARARGS },
13219 { (char *)"Style_getButtonPressedFocus", _wrap_Style_getButtonPressedFocus, METH_VARARGS },
13220 { (char *)"Style_getButtonPressedUnfocus", _wrap_Style_getButtonPressedUnfocus, METH_VARARGS },
13221 { (char *)"Style_getGripFocus", _wrap_Style_getGripFocus, METH_VARARGS },
13222 { (char *)"Style_getGripUnfocus", _wrap_Style_getGripUnfocus, METH_VARARGS },
13223 { (char *)"Style_getHandleWidth", _wrap_Style_getHandleWidth, METH_VARARGS },
13224 { (char *)"Style_getBevelWidth", _wrap_Style_getBevelWidth, METH_VARARGS },
13225 { (char *)"Style_getFrameWidth", _wrap_Style_getFrameWidth, METH_VARARGS },
13226 { (char *)"Style_getBorderWidth", _wrap_Style_getBorderWidth, METH_VARARGS },
13227 { (char *)"Style_getFont", _wrap_Style_getFont, METH_VARARGS },
13228 { (char *)"Style_setShadowFonts", _wrap_Style_setShadowFonts, METH_VARARGS },
13229 { (char *)"Style_hasShadowFonts", _wrap_Style_hasShadowFonts, METH_VARARGS },
13230 { (char *)"Style_setAAFonts", _wrap_Style_setAAFonts, METH_VARARGS },
13231 { (char *)"Style_hasAAFonts", _wrap_Style_hasAAFonts, METH_VARARGS },
13232 { (char *)"Style_textJustify", _wrap_Style_textJustify, METH_VARARGS },
13233 { (char *)"Style_bulletType", _wrap_Style_bulletType, METH_VARARGS },
13234 { (char *)"Style_getBorderColor", _wrap_Style_getBorderColor, METH_VARARGS },
13235 { (char *)"Style_getFrameFocus", _wrap_Style_getFrameFocus, METH_VARARGS },
13236 { (char *)"Style_getFrameUnfocus", _wrap_Style_getFrameUnfocus, METH_VARARGS },
13237 { (char *)"Style_setImageControl", _wrap_Style_setImageControl, METH_VARARGS },
13238 { (char *)"Style_getScreen", _wrap_Style_getScreen, METH_VARARGS },
13239 { (char *)"Style_swigregister", Style_swigregister, METH_VARARGS },
13240 { (char *)"new_BTexture", _wrap_new_BTexture, METH_VARARGS },
13241 { (char *)"BTexture_setColor", _wrap_BTexture_setColor, METH_VARARGS },
13242 { (char *)"BTexture_setColorTo", _wrap_BTexture_setColorTo, METH_VARARGS },
13243 { (char *)"BTexture_setBorderColor", _wrap_BTexture_setBorderColor, METH_VARARGS },
13244 { (char *)"BTexture_color", _wrap_BTexture_color, METH_VARARGS },
13245 { (char *)"BTexture_colorTo", _wrap_BTexture_colorTo, METH_VARARGS },
13246 { (char *)"BTexture_lightColor", _wrap_BTexture_lightColor, METH_VARARGS },
13247 { (char *)"BTexture_shadowColor", _wrap_BTexture_shadowColor, METH_VARARGS },
13248 { (char *)"BTexture_borderColor", _wrap_BTexture_borderColor, METH_VARARGS },
13249 { (char *)"BTexture_texture", _wrap_BTexture_texture, METH_VARARGS },
13250 { (char *)"BTexture_setTexture", _wrap_BTexture_setTexture, METH_VARARGS },
13251 { (char *)"BTexture_addTexture", _wrap_BTexture_addTexture, METH_VARARGS },
13252 { (char *)"BTexture_equals", _wrap_BTexture_equals, METH_VARARGS },
13253 { (char *)"BTexture_screen", _wrap_BTexture_screen, METH_VARARGS },
13254 { (char *)"BTexture_setScreen", _wrap_BTexture_setScreen, METH_VARARGS },
13255 { (char *)"BTexture_setImageControl", _wrap_BTexture_setImageControl, METH_VARARGS },
13256 { (char *)"BTexture_description", _wrap_BTexture_description, METH_VARARGS },
13257 { (char *)"BTexture_setDescription", _wrap_BTexture_setDescription, METH_VARARGS },
13258 { (char *)"BTexture_render", _wrap_BTexture_render, METH_VARARGS },
13259 { (char *)"delete_BTexture", _wrap_delete_BTexture, METH_VARARGS },
13260 { (char *)"BTexture_swigregister", BTexture_swigregister, METH_VARARGS },
13261 { (char *)"new_OBTimer", _wrap_new_OBTimer, METH_VARARGS },
13262 { (char *)"delete_OBTimer", _wrap_delete_OBTimer, METH_VARARGS },
13263 { (char *)"OBTimer_fire", _wrap_OBTimer_fire, METH_VARARGS },
13264 { (char *)"OBTimer_timing", _wrap_OBTimer_timing, METH_VARARGS },
13265 { (char *)"OBTimer_recurring", _wrap_OBTimer_recurring, METH_VARARGS },
13266 { (char *)"OBTimer_timeout", _wrap_OBTimer_timeout, METH_VARARGS },
13267 { (char *)"OBTimer_startTime", _wrap_OBTimer_startTime, METH_VARARGS },
13268 { (char *)"OBTimer_remainingTime", _wrap_OBTimer_remainingTime, METH_VARARGS },
13269 { (char *)"OBTimer_shouldFire", _wrap_OBTimer_shouldFire, METH_VARARGS },
13270 { (char *)"OBTimer_endTime", _wrap_OBTimer_endTime, METH_VARARGS },
13271 { (char *)"OBTimer_setRecurring", _wrap_OBTimer_setRecurring, METH_VARARGS },
13272 { (char *)"OBTimer_setTimeout", _wrap_OBTimer_setTimeout, METH_VARARGS },
13273 { (char *)"OBTimer_start", _wrap_OBTimer_start, METH_VARARGS },
13274 { (char *)"OBTimer_stop", _wrap_OBTimer_stop, METH_VARARGS },
13275 { (char *)"OBTimer_swigregister", OBTimer_swigregister, METH_VARARGS },
13276 { (char *)"new_OBTimerQueueManager", _wrap_new_OBTimerQueueManager, METH_VARARGS },
13277 { (char *)"delete_OBTimerQueueManager", _wrap_delete_OBTimerQueueManager, METH_VARARGS },
13278 { (char *)"OBTimerQueueManager_fire", _wrap_OBTimerQueueManager_fire, METH_VARARGS },
13279 { (char *)"OBTimerQueueManager_addTimer", _wrap_OBTimerQueueManager_addTimer, METH_VARARGS },
13280 { (char *)"OBTimerQueueManager_removeTimer", _wrap_OBTimerQueueManager_removeTimer, METH_VARARGS },
13281 { (char *)"OBTimerQueueManager_swigregister", OBTimerQueueManager_swigregister, METH_VARARGS },
13282 { (char *)"expandTilde", _wrap_expandTilde, METH_VARARGS },
13283 { (char *)"bexec", _wrap_bexec, METH_VARARGS },
13284 { (char *)"textPropertyToString", _wrap_textPropertyToString, METH_VARARGS },
13285 { (char *)"itostring_unsigned_long", _wrap_itostring_unsigned_long, METH_VARARGS },
13286 { (char *)"itostring_long", _wrap_itostring_long, METH_VARARGS },
13287 { (char *)"itostring_unsigned", _wrap_itostring_unsigned, METH_VARARGS },
13288 { (char *)"itostring", _wrap_itostring, METH_VARARGS },
13289 { (char *)"basename", _wrap_basename, METH_VARARGS },
13290 { NULL, NULL }
13291 };
13292
13293
13294 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
13295
13296 static void *_p_otk__OtkButtonTo_p_otk__OtkFocusWidget(void *x) {
13297 return (void *)((otk::OtkFocusWidget *) (otk::OtkFocusLabel *) ((otk::OtkButton *) x));
13298 }
13299 static void *_p_otk__OtkFocusLabelTo_p_otk__OtkFocusWidget(void *x) {
13300 return (void *)((otk::OtkFocusWidget *) ((otk::OtkFocusLabel *) x));
13301 }
13302 static void *_p_otk__OtkButtonTo_p_otk__OtkWidget(void *x) {
13303 return (void *)((otk::OtkWidget *) (otk::OtkFocusWidget *)(otk::OtkFocusLabel *) ((otk::OtkButton *) x));
13304 }
13305 static void *_p_otk__OtkAppWidgetTo_p_otk__OtkWidget(void *x) {
13306 return (void *)((otk::OtkWidget *) ((otk::OtkAppWidget *) x));
13307 }
13308 static void *_p_otk__OtkFocusWidgetTo_p_otk__OtkWidget(void *x) {
13309 return (void *)((otk::OtkWidget *) ((otk::OtkFocusWidget *) x));
13310 }
13311 static void *_p_otk__OtkFocusLabelTo_p_otk__OtkWidget(void *x) {
13312 return (void *)((otk::OtkWidget *) (otk::OtkFocusWidget *) ((otk::OtkFocusLabel *) x));
13313 }
13314 static void *_p_otk__OtkButtonTo_p_otk__OtkEventHandler(void *x) {
13315 return (void *)((otk::OtkEventHandler *) (otk::OtkWidget *)(otk::OtkFocusWidget *)(otk::OtkFocusLabel *) ((otk::OtkButton *) x));
13316 }
13317 static void *_p_otk__OtkAppWidgetTo_p_otk__OtkEventHandler(void *x) {
13318 return (void *)((otk::OtkEventHandler *) (otk::OtkWidget *) ((otk::OtkAppWidget *) x));
13319 }
13320 static void *_p_otk__OtkWidgetTo_p_otk__OtkEventHandler(void *x) {
13321 return (void *)((otk::OtkEventHandler *) ((otk::OtkWidget *) x));
13322 }
13323 static void *_p_otk__OtkFocusWidgetTo_p_otk__OtkEventHandler(void *x) {
13324 return (void *)((otk::OtkEventHandler *) (otk::OtkWidget *) ((otk::OtkFocusWidget *) x));
13325 }
13326 static void *_p_otk__OtkFocusLabelTo_p_otk__OtkEventHandler(void *x) {
13327 return (void *)((otk::OtkEventHandler *) (otk::OtkWidget *)(otk::OtkFocusWidget *) ((otk::OtkFocusLabel *) x));
13328 }
13329 static void *_p_otk__OtkButtonTo_p_otk__OtkFocusLabel(void *x) {
13330 return (void *)((otk::OtkFocusLabel *) ((otk::OtkButton *) x));
13331 }
13332 static void *_p_otk__OtkApplicationTo_p_otk__OtkEventDispatcher(void *x) {
13333 return (void *)((otk::OtkEventDispatcher *) ((otk::OtkApplication *) x));
13334 }
13335 static swig_type_info _swigt__p_otk__OBProperty__StringVect[] = {{"_p_otk__OBProperty__StringVect", 0, "otk::OBProperty::StringVect *", 0},{"_p_otk__OBProperty__StringVect"},{0}};
13336 static swig_type_info _swigt__p_otk__BGCCache[] = {{"_p_otk__BGCCache", 0, "otk::BGCCache *", 0},{"_p_otk__BGCCache"},{0}};
13337 static swig_type_info _swigt__p_otk__BColor[] = {{"_p_otk__BColor", 0, "otk::BColor *", 0},{"_p_otk__BColor"},{0}};
13338 static swig_type_info _swigt__p_XFontStruct[] = {{"_p_XFontStruct", 0, "XFontStruct *", 0},{"_p_XFontStruct"},{0}};
13339 static swig_type_info _swigt__p_otk__Configuration[] = {{"_p_otk__Configuration", 0, "otk::Configuration *", 0},{"_p_otk__Configuration"},{0}};
13340 static swig_type_info _swigt__p_otk__PixmapMask[] = {{"_p_otk__PixmapMask", 0, "otk::PixmapMask *", 0},{"_p_otk__PixmapMask"},{0}};
13341 static swig_type_info _swigt__p_otk__PointerAssassin[] = {{"_p_otk__PointerAssassin", 0, "otk::PointerAssassin *", 0},{"_p_otk__PointerAssassin"},{0}};
13342 static swig_type_info _swigt__p_otk__BImage[] = {{"_p_otk__BImage", 0, "otk::BImage *", 0},{"_p_otk__BImage"},{0}};
13343 static swig_type_info _swigt__p_otk__OBTimer[] = {{"_p_otk__OBTimer", 0, "otk::OBTimer *", 0},{"_p_otk__OBTimer"},{0}};
13344 static swig_type_info _swigt__p_otk__OtkWidget__OtkWidgetList[] = {{"_p_otk__OtkWidget__OtkWidgetList", 0, "otk::OtkWidget::OtkWidgetList const &", 0},{"_p_otk__OtkWidget__OtkWidgetList"},{0}};
13345 static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}};
13346 static swig_type_info _swigt__p_otk__OBDisplay[] = {{"_p_otk__OBDisplay", 0, "otk::OBDisplay *", 0},{"_p_otk__OBDisplay"},{0}};
13347 static swig_type_info _swigt__p_Display[] = {{"_p_Display", 0, "Display *", 0},{"_p_Display"},{0}};
13348 static swig_type_info _swigt__p_p_XColor[] = {{"_p_p_XColor", 0, "XColor **", 0},{"_p_p_XColor"},{0}};
13349 static swig_type_info _swigt__p_XReparentEvent[] = {{"_p_XReparentEvent", 0, "XReparentEvent *", 0},{"_p_XReparentEvent"},{0}};
13350 static swig_type_info _swigt__p_otk__BPen[] = {{"_p_otk__BPen", 0, "otk::BPen *", 0},{"_p_otk__BPen"},{0}};
13351 static swig_type_info _swigt__p_otk__BImageControl[] = {{"_p_otk__BImageControl", 0, "otk::BImageControl *", 0},{"_p_otk__BImageControl"},{0}};
13352 static swig_type_info _swigt__p_otk__OtkButton[] = {{"_p_otk__OtkButton", 0, "otk::OtkButton *", 0},{"_p_otk__OtkButton"},{0}};
13353 static swig_type_info _swigt__p_otk__Rect[] = {{"_p_otk__Rect", 0, "otk::Rect *", 0},{"_p_otk__Rect"},{0}};
13354 static swig_type_info _swigt__p_otk__Style[] = {{"_p_otk__Style", 0, "otk::Style *", 0},{"_p_otk__Style"},{0}};
13355 static swig_type_info _swigt__p_XSelectionClearEvent[] = {{"_p_XSelectionClearEvent", 0, "XSelectionClearEvent *", 0},{"_p_XSelectionClearEvent"},{0}};
13356 static swig_type_info _swigt__p_Visual[] = {{"_p_Visual", 0, "Visual *", 0},{"_p_Visual"},{0}};
13357 static swig_type_info _swigt__p_timeval[] = {{"_p_timeval", 0, "timeval *", 0},{"_p_timeval"},{0}};
13358 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
13359 static swig_type_info _swigt__p_otk__Strut[] = {{"_p_otk__Strut", 0, "otk::Strut *", 0},{"_p_otk__Strut"},{0}};
13360 static swig_type_info _swigt__p_otk__OtkApplication[] = {{"_p_otk__OtkApplication", 0, "otk::OtkApplication *", 0},{"_p_otk__OtkApplication"},{0}};
13361 static swig_type_info _swigt__p_XRectangle[] = {{"_p_XRectangle", 0, "XRectangle *", 0},{"_p_XRectangle"},{0}};
13362 static swig_type_info _swigt__p_otk__OtkFocusWidget[] = {{"_p_otk__OtkFocusWidget", 0, "otk::OtkFocusWidget *", 0},{"_p_otk__OtkButton", _p_otk__OtkButtonTo_p_otk__OtkFocusWidget},{"_p_otk__OtkFocusWidget"},{"_p_otk__OtkFocusLabel", _p_otk__OtkFocusLabelTo_p_otk__OtkFocusWidget},{0}};
13363 static swig_type_info _swigt__p_otk__OtkWidget[] = {{"_p_otk__OtkWidget", 0, "otk::OtkWidget *", 0},{"_p_otk__OtkButton", _p_otk__OtkButtonTo_p_otk__OtkWidget},{"_p_otk__OtkAppWidget", _p_otk__OtkAppWidgetTo_p_otk__OtkWidget},{"_p_otk__OtkWidget"},{"_p_otk__OtkFocusWidget", _p_otk__OtkFocusWidgetTo_p_otk__OtkWidget},{"_p_otk__OtkFocusLabel", _p_otk__OtkFocusLabelTo_p_otk__OtkWidget},{0}};
13364 static swig_type_info _swigt__p_XGravityEvent[] = {{"_p_XGravityEvent", 0, "XGravityEvent *", 0},{"_p_XGravityEvent"},{0}};
13365 static swig_type_info _swigt__p_XVisibilityEvent[] = {{"_p_XVisibilityEvent", 0, "XVisibilityEvent *", 0},{"_p_XVisibilityEvent"},{0}};
13366 static swig_type_info _swigt__p_XPropertyEvent[] = {{"_p_XPropertyEvent", 0, "XPropertyEvent *", 0},{"_p_XPropertyEvent"},{0}};
13367 static swig_type_info _swigt__p_otk__BGCCacheContext[] = {{"_p_otk__BGCCacheContext", 0, "otk::BGCCacheContext *", 0},{"_p_otk__BGCCacheContext"},{0}};
13368 static swig_type_info _swigt__p_XCreateWindowEvent[] = {{"_p_XCreateWindowEvent", 0, "XCreateWindowEvent *", 0},{"_p_XCreateWindowEvent"},{0}};
13369 static swig_type_info _swigt__p_XDestroyWindowEvent[] = {{"_p_XDestroyWindowEvent", 0, "XDestroyWindowEvent *", 0},{"_p_XDestroyWindowEvent"},{0}};
13370 static swig_type_info _swigt__p_XCirculateEvent[] = {{"_p_XCirculateEvent", 0, "XCirculateEvent *", 0},{"_p_XCirculateEvent"},{0}};
13371 static swig_type_info _swigt__p_XConfigureEvent[] = {{"_p_XConfigureEvent", 0, "XConfigureEvent *", 0},{"_p_XConfigureEvent"},{0}};
13372 static swig_type_info _swigt__p_otk__OBProperty[] = {{"_p_otk__OBProperty", 0, "otk::OBProperty *", 0},{"_p_otk__OBProperty"},{0}};
13373 static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}};
13374 static swig_type_info _swigt__p_XTextProperty[] = {{"_p_XTextProperty", 0, "XTextProperty *", 0},{"_p_XTextProperty"},{0}};
13375 static swig_type_info _swigt__p_otk__OtkEventHandler[] = {{"_p_otk__OtkEventHandler", 0, "otk::OtkEventHandler *", 0},{"_p_otk__OtkEventHandler"},{"_p_otk__OtkButton", _p_otk__OtkButtonTo_p_otk__OtkEventHandler},{"_p_otk__OtkAppWidget", _p_otk__OtkAppWidgetTo_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},{0}};
13376 static swig_type_info _swigt__p_XCirculateRequestEvent[] = {{"_p_XCirculateRequestEvent", 0, "XCirculateRequestEvent *", 0},{"_p_XCirculateRequestEvent"},{0}};
13377 static swig_type_info _swigt__p_XConfigureRequestEvent[] = {{"_p_XConfigureRequestEvent", 0, "XConfigureRequestEvent *", 0},{"_p_XConfigureRequestEvent"},{0}};
13378 static swig_type_info _swigt__p_XMapRequestEvent[] = {{"_p_XMapRequestEvent", 0, "XMapRequestEvent *", 0},{"_p_XMapRequestEvent"},{0}};
13379 static swig_type_info _swigt__p_XResizeRequestEvent[] = {{"_p_XResizeRequestEvent", 0, "XResizeRequestEvent *", 0},{"_p_XResizeRequestEvent"},{0}};
13380 static swig_type_info _swigt__p_XSelectionRequestEvent[] = {{"_p_XSelectionRequestEvent", 0, "XSelectionRequestEvent *", 0},{"_p_XSelectionRequestEvent"},{0}};
13381 static swig_type_info _swigt__otk__OBTimeoutHandler[] = {{"_otk__OBTimeoutHandler", 0, "otk::OBTimeoutHandler", 0},{"_otk__OBTimeoutHandler"},{0}};
13382 static swig_type_info _swigt__p_XftDraw[] = {{"_p_XftDraw", 0, "XftDraw *", 0},{"_p_XftDraw"},{0}};
13383 static swig_type_info _swigt__p_otk__ScreenInfo[] = {{"_p_otk__ScreenInfo", 0, "otk::ScreenInfo *", 0},{"_p_otk__ScreenInfo"},{0}};
13384 static swig_type_info _swigt__p_otk__OtkFocusLabel[] = {{"_p_otk__OtkFocusLabel", 0, "otk::OtkFocusLabel *", 0},{"_p_otk__OtkButton", _p_otk__OtkButtonTo_p_otk__OtkFocusLabel},{"_p_otk__OtkFocusLabel"},{0}};
13385 static swig_type_info _swigt__p_otk__BTexture[] = {{"_p_otk__BTexture", 0, "otk::BTexture *", 0},{"_p_otk__BTexture"},{0}};
13386 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"},{0}};
13387 static swig_type_info _swigt__p_otk__BFont[] = {{"_p_otk__BFont", 0, "otk::BFont *", 0},{"_p_otk__BFont"},{0}};
13388 static swig_type_info _swigt__p_otk__Point[] = {{"_p_otk__Point", 0, "otk::Point *", 0},{"_p_otk__Point"},{0}};
13389 static swig_type_info _swigt__p_p_char[] = {{"_p_p_char", 0, "char **", 0},{"_p_p_char"},{0}};
13390 static swig_type_info _swigt__p_XMotionEvent[] = {{"_p_XMotionEvent", 0, "XMotionEvent *", 0},{"_p_XMotionEvent"},{0}};
13391 static swig_type_info _swigt__p_XButtonEvent[] = {{"_p_XButtonEvent", 0, "XButtonEvent *", 0},{"_p_XButtonEvent"},{0}};
13392 static swig_type_info _swigt__p_XSelectionEvent[] = {{"_p_XSelectionEvent", 0, "XSelectionEvent *", 0},{"_p_XSelectionEvent"},{0}};
13393 static swig_type_info _swigt__p_GC[] = {{"_p_GC", 0, "GC *", 0},{"_p_GC"},{0}};
13394 static swig_type_info _swigt__p_otk__OBTimerQueueManager[] = {{"_p_otk__OBTimerQueueManager", 0, "otk::OBTimerQueueManager *", 0},{"_p_otk__OBTimerQueueManager"},{0}};
13395 static swig_type_info _swigt__p_otk__OtkAppWidget[] = {{"_p_otk__OtkAppWidget", 0, "otk::OtkAppWidget *", 0},{"_p_otk__OtkAppWidget"},{0}};
13396 static swig_type_info _swigt__p_XKeyEvent[] = {{"_p_XKeyEvent", 0, "XKeyEvent *", 0},{"_p_XKeyEvent"},{0}};
13397 static swig_type_info _swigt__p_p_unsigned_long[] = {{"_p_p_unsigned_long", 0, "unsigned long **", 0},{"_p_p_unsigned_long"},{0}};
13398 static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *", 0},{"_p_unsigned_long"},{0}};
13399 static swig_type_info _swigt__p_XEvent[] = {{"_p_XEvent", 0, "XEvent *", 0},{"_p_XEvent"},{0}};
13400 static swig_type_info _swigt__p_std__string[] = {{"_p_std__string", 0, "std::string *", 0},{"_p_std__string"},{0}};
13401 static swig_type_info _swigt__p_XCrossingEvent[] = {{"_p_XCrossingEvent", 0, "XCrossingEvent *", 0},{"_p_XCrossingEvent"},{0}};
13402 static swig_type_info _swigt__p_XMappingEvent[] = {{"_p_XMappingEvent", 0, "XMappingEvent *", 0},{"_p_XMappingEvent"},{0}};
13403 static swig_type_info _swigt__p_otk__BGCCacheItem[] = {{"_p_otk__BGCCacheItem", 0, "otk::BGCCacheItem *", 0},{"_p_otk__BGCCacheItem"},{0}};
13404 static swig_type_info _swigt__p_p_unsigned_int[] = {{"_p_p_unsigned_int", 0, "unsigned int **", 0},{"_p_p_unsigned_int"},{0}};
13405 static swig_type_info _swigt__p_unsigned_int[] = {{"_p_unsigned_int", 0, "unsigned int *", 0},{"_p_unsigned_int"},{0}};
13406 static swig_type_info _swigt__p_p_unsigned_char[] = {{"_p_p_unsigned_char", 0, "unsigned char **", 0},{"_p_p_unsigned_char"},{0}};
13407 static swig_type_info _swigt__p_XClientMessageEvent[] = {{"_p_XClientMessageEvent", 0, "XClientMessageEvent *", 0},{"_p_XClientMessageEvent"},{0}};
13408 static swig_type_info _swigt__p_XGraphicsExposeEvent[] = {{"_p_XGraphicsExposeEvent", 0, "XGraphicsExposeEvent *", 0},{"_p_XGraphicsExposeEvent"},{0}};
13409 static swig_type_info _swigt__p_XExposeEvent[] = {{"_p_XExposeEvent", 0, "XExposeEvent *", 0},{"_p_XExposeEvent"},{0}};
13410 static swig_type_info _swigt__p_XFocusChangeEvent[] = {{"_p_XFocusChangeEvent", 0, "XFocusChangeEvent *", 0},{"_p_XFocusChangeEvent"},{0}};
13411 static swig_type_info _swigt__p_XNoExposeEvent[] = {{"_p_XNoExposeEvent", 0, "XNoExposeEvent *", 0},{"_p_XNoExposeEvent"},{0}};
13412 static swig_type_info _swigt__p_XMapEvent[] = {{"_p_XMapEvent", 0, "XMapEvent *", 0},{"_p_XMapEvent"},{0}};
13413 static swig_type_info _swigt__p_XUnmapEvent[] = {{"_p_XUnmapEvent", 0, "XUnmapEvent *", 0},{"_p_XUnmapEvent"},{0}};
13414 static swig_type_info _swigt__p_XColormapEvent[] = {{"_p_XColormapEvent", 0, "XColormapEvent *", 0},{"_p_XColormapEvent"},{0}};
13415
13416 static swig_type_info *swig_types_initial[] = {
13417 _swigt__p_otk__OBProperty__StringVect,
13418 _swigt__p_otk__BGCCache,
13419 _swigt__p_otk__BColor,
13420 _swigt__p_XFontStruct,
13421 _swigt__p_otk__Configuration,
13422 _swigt__p_otk__PixmapMask,
13423 _swigt__p_otk__PointerAssassin,
13424 _swigt__p_otk__BImage,
13425 _swigt__p_otk__OBTimer,
13426 _swigt__p_otk__OtkWidget__OtkWidgetList,
13427 _swigt__p_bool,
13428 _swigt__p_otk__OBDisplay,
13429 _swigt__p_Display,
13430 _swigt__p_p_XColor,
13431 _swigt__p_XReparentEvent,
13432 _swigt__p_otk__BPen,
13433 _swigt__p_otk__BImageControl,
13434 _swigt__p_otk__OtkButton,
13435 _swigt__p_otk__Rect,
13436 _swigt__p_otk__Style,
13437 _swigt__p_XSelectionClearEvent,
13438 _swigt__p_Visual,
13439 _swigt__p_timeval,
13440 _swigt__p_int,
13441 _swigt__p_otk__Strut,
13442 _swigt__p_otk__OtkApplication,
13443 _swigt__p_XRectangle,
13444 _swigt__p_otk__OtkFocusWidget,
13445 _swigt__p_otk__OtkWidget,
13446 _swigt__p_XGravityEvent,
13447 _swigt__p_XVisibilityEvent,
13448 _swigt__p_XPropertyEvent,
13449 _swigt__p_otk__BGCCacheContext,
13450 _swigt__p_XCreateWindowEvent,
13451 _swigt__p_XDestroyWindowEvent,
13452 _swigt__p_XCirculateEvent,
13453 _swigt__p_XConfigureEvent,
13454 _swigt__p_otk__OBProperty,
13455 _swigt__p_long,
13456 _swigt__p_XTextProperty,
13457 _swigt__p_otk__OtkEventHandler,
13458 _swigt__p_XCirculateRequestEvent,
13459 _swigt__p_XConfigureRequestEvent,
13460 _swigt__p_XMapRequestEvent,
13461 _swigt__p_XResizeRequestEvent,
13462 _swigt__p_XSelectionRequestEvent,
13463 _swigt__otk__OBTimeoutHandler,
13464 _swigt__p_XftDraw,
13465 _swigt__p_otk__ScreenInfo,
13466 _swigt__p_otk__OtkFocusLabel,
13467 _swigt__p_otk__BTexture,
13468 _swigt__p_otk__OtkEventDispatcher,
13469 _swigt__p_otk__BFont,
13470 _swigt__p_otk__Point,
13471 _swigt__p_p_char,
13472 _swigt__p_XMotionEvent,
13473 _swigt__p_XButtonEvent,
13474 _swigt__p_XSelectionEvent,
13475 _swigt__p_GC,
13476 _swigt__p_otk__OBTimerQueueManager,
13477 _swigt__p_otk__OtkAppWidget,
13478 _swigt__p_XKeyEvent,
13479 _swigt__p_p_unsigned_long,
13480 _swigt__p_unsigned_long,
13481 _swigt__p_XEvent,
13482 _swigt__p_std__string,
13483 _swigt__p_XCrossingEvent,
13484 _swigt__p_XMappingEvent,
13485 _swigt__p_otk__BGCCacheItem,
13486 _swigt__p_p_unsigned_int,
13487 _swigt__p_unsigned_int,
13488 _swigt__p_p_unsigned_char,
13489 _swigt__p_XClientMessageEvent,
13490 _swigt__p_XGraphicsExposeEvent,
13491 _swigt__p_XExposeEvent,
13492 _swigt__p_XFocusChangeEvent,
13493 _swigt__p_XNoExposeEvent,
13494 _swigt__p_XMapEvent,
13495 _swigt__p_XUnmapEvent,
13496 _swigt__p_XColormapEvent,
13497 0
13498 };
13499
13500
13501 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
13502
13503 static swig_const_info swig_const_table[] = {
13504 { SWIG_PY_INT, (char *)"OtkWidget_Horizontal", (long) otk::OtkWidget::Horizontal, 0, 0, 0},
13505 { SWIG_PY_INT, (char *)"OtkWidget_Vertical", (long) otk::OtkWidget::Vertical, 0, 0, 0},
13506 { SWIG_PY_INT, (char *)"OBProperty_Atom_Cardinal", (long) otk::OBProperty::Atom_Cardinal, 0, 0, 0},
13507 { SWIG_PY_INT, (char *)"OBProperty_Atom_Window", (long) otk::OBProperty::Atom_Window, 0, 0, 0},
13508 { SWIG_PY_INT, (char *)"OBProperty_Atom_Pixmap", (long) otk::OBProperty::Atom_Pixmap, 0, 0, 0},
13509 { SWIG_PY_INT, (char *)"OBProperty_Atom_Atom", (long) otk::OBProperty::Atom_Atom, 0, 0, 0},
13510 { SWIG_PY_INT, (char *)"OBProperty_Atom_String", (long) otk::OBProperty::Atom_String, 0, 0, 0},
13511 { SWIG_PY_INT, (char *)"OBProperty_Atom_Utf8", (long) otk::OBProperty::Atom_Utf8, 0, 0, 0},
13512 { SWIG_PY_INT, (char *)"OBProperty_openbox_pid", (long) otk::OBProperty::openbox_pid, 0, 0, 0},
13513 { SWIG_PY_INT, (char *)"OBProperty_wm_colormap_windows", (long) otk::OBProperty::wm_colormap_windows, 0, 0, 0},
13514 { SWIG_PY_INT, (char *)"OBProperty_wm_protocols", (long) otk::OBProperty::wm_protocols, 0, 0, 0},
13515 { SWIG_PY_INT, (char *)"OBProperty_wm_state", (long) otk::OBProperty::wm_state, 0, 0, 0},
13516 { SWIG_PY_INT, (char *)"OBProperty_wm_delete_window", (long) otk::OBProperty::wm_delete_window, 0, 0, 0},
13517 { SWIG_PY_INT, (char *)"OBProperty_wm_take_focus", (long) otk::OBProperty::wm_take_focus, 0, 0, 0},
13518 { SWIG_PY_INT, (char *)"OBProperty_wm_change_state", (long) otk::OBProperty::wm_change_state, 0, 0, 0},
13519 { SWIG_PY_INT, (char *)"OBProperty_wm_name", (long) otk::OBProperty::wm_name, 0, 0, 0},
13520 { SWIG_PY_INT, (char *)"OBProperty_wm_icon_name", (long) otk::OBProperty::wm_icon_name, 0, 0, 0},
13521 { SWIG_PY_INT, (char *)"OBProperty_wm_class", (long) otk::OBProperty::wm_class, 0, 0, 0},
13522 { SWIG_PY_INT, (char *)"OBProperty_wm_window_role", (long) otk::OBProperty::wm_window_role, 0, 0, 0},
13523 { SWIG_PY_INT, (char *)"OBProperty_motif_wm_hints", (long) otk::OBProperty::motif_wm_hints, 0, 0, 0},
13524 { SWIG_PY_INT, (char *)"OBProperty_blackbox_attributes", (long) otk::OBProperty::blackbox_attributes, 0, 0, 0},
13525 { SWIG_PY_INT, (char *)"OBProperty_blackbox_change_attributes", (long) otk::OBProperty::blackbox_change_attributes, 0, 0, 0},
13526 { SWIG_PY_INT, (char *)"OBProperty_blackbox_hints", (long) otk::OBProperty::blackbox_hints, 0, 0, 0},
13527 { SWIG_PY_INT, (char *)"OBProperty_blackbox_structure_messages", (long) otk::OBProperty::blackbox_structure_messages, 0, 0, 0},
13528 { SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_startup", (long) otk::OBProperty::blackbox_notify_startup, 0, 0, 0},
13529 { SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_window_add", (long) otk::OBProperty::blackbox_notify_window_add, 0, 0, 0},
13530 { SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_window_del", (long) otk::OBProperty::blackbox_notify_window_del, 0, 0, 0},
13531 { SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_window_focus", (long) otk::OBProperty::blackbox_notify_window_focus, 0, 0, 0},
13532 { SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_current_workspace", (long) otk::OBProperty::blackbox_notify_current_workspace, 0, 0, 0},
13533 { SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_workspace_count", (long) otk::OBProperty::blackbox_notify_workspace_count, 0, 0, 0},
13534 { SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_window_raise", (long) otk::OBProperty::blackbox_notify_window_raise, 0, 0, 0},
13535 { SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_window_lower", (long) otk::OBProperty::blackbox_notify_window_lower, 0, 0, 0},
13536 { SWIG_PY_INT, (char *)"OBProperty_blackbox_change_workspace", (long) otk::OBProperty::blackbox_change_workspace, 0, 0, 0},
13537 { SWIG_PY_INT, (char *)"OBProperty_blackbox_change_window_focus", (long) otk::OBProperty::blackbox_change_window_focus, 0, 0, 0},
13538 { SWIG_PY_INT, (char *)"OBProperty_blackbox_cycle_window_focus", (long) otk::OBProperty::blackbox_cycle_window_focus, 0, 0, 0},
13539 { SWIG_PY_INT, (char *)"OBProperty_openbox_show_root_menu", (long) otk::OBProperty::openbox_show_root_menu, 0, 0, 0},
13540 { SWIG_PY_INT, (char *)"OBProperty_openbox_show_workspace_menu", (long) otk::OBProperty::openbox_show_workspace_menu, 0, 0, 0},
13541 { SWIG_PY_INT, (char *)"OBProperty_net_supported", (long) otk::OBProperty::net_supported, 0, 0, 0},
13542 { SWIG_PY_INT, (char *)"OBProperty_net_client_list", (long) otk::OBProperty::net_client_list, 0, 0, 0},
13543 { SWIG_PY_INT, (char *)"OBProperty_net_client_list_stacking", (long) otk::OBProperty::net_client_list_stacking, 0, 0, 0},
13544 { SWIG_PY_INT, (char *)"OBProperty_net_number_of_desktops", (long) otk::OBProperty::net_number_of_desktops, 0, 0, 0},
13545 { SWIG_PY_INT, (char *)"OBProperty_net_desktop_geometry", (long) otk::OBProperty::net_desktop_geometry, 0, 0, 0},
13546 { SWIG_PY_INT, (char *)"OBProperty_net_desktop_viewport", (long) otk::OBProperty::net_desktop_viewport, 0, 0, 0},
13547 { SWIG_PY_INT, (char *)"OBProperty_net_current_desktop", (long) otk::OBProperty::net_current_desktop, 0, 0, 0},
13548 { SWIG_PY_INT, (char *)"OBProperty_net_desktop_names", (long) otk::OBProperty::net_desktop_names, 0, 0, 0},
13549 { SWIG_PY_INT, (char *)"OBProperty_net_active_window", (long) otk::OBProperty::net_active_window, 0, 0, 0},
13550 { SWIG_PY_INT, (char *)"OBProperty_net_workarea", (long) otk::OBProperty::net_workarea, 0, 0, 0},
13551 { SWIG_PY_INT, (char *)"OBProperty_net_supporting_wm_check", (long) otk::OBProperty::net_supporting_wm_check, 0, 0, 0},
13552 { SWIG_PY_INT, (char *)"OBProperty_net_close_window", (long) otk::OBProperty::net_close_window, 0, 0, 0},
13553 { SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize", (long) otk::OBProperty::net_wm_moveresize, 0, 0, 0},
13554 { SWIG_PY_INT, (char *)"OBProperty_net_wm_name", (long) otk::OBProperty::net_wm_name, 0, 0, 0},
13555 { SWIG_PY_INT, (char *)"OBProperty_net_wm_visible_name", (long) otk::OBProperty::net_wm_visible_name, 0, 0, 0},
13556 { SWIG_PY_INT, (char *)"OBProperty_net_wm_icon_name", (long) otk::OBProperty::net_wm_icon_name, 0, 0, 0},
13557 { SWIG_PY_INT, (char *)"OBProperty_net_wm_visible_icon_name", (long) otk::OBProperty::net_wm_visible_icon_name, 0, 0, 0},
13558 { SWIG_PY_INT, (char *)"OBProperty_net_wm_desktop", (long) otk::OBProperty::net_wm_desktop, 0, 0, 0},
13559 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type", (long) otk::OBProperty::net_wm_window_type, 0, 0, 0},
13560 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state", (long) otk::OBProperty::net_wm_state, 0, 0, 0},
13561 { SWIG_PY_INT, (char *)"OBProperty_net_wm_strut", (long) otk::OBProperty::net_wm_strut, 0, 0, 0},
13562 { SWIG_PY_INT, (char *)"OBProperty_net_wm_allowed_actions", (long) otk::OBProperty::net_wm_allowed_actions, 0, 0, 0},
13563 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_desktop", (long) otk::OBProperty::net_wm_window_type_desktop, 0, 0, 0},
13564 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_dock", (long) otk::OBProperty::net_wm_window_type_dock, 0, 0, 0},
13565 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_toolbar", (long) otk::OBProperty::net_wm_window_type_toolbar, 0, 0, 0},
13566 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_menu", (long) otk::OBProperty::net_wm_window_type_menu, 0, 0, 0},
13567 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_utility", (long) otk::OBProperty::net_wm_window_type_utility, 0, 0, 0},
13568 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_splash", (long) otk::OBProperty::net_wm_window_type_splash, 0, 0, 0},
13569 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_dialog", (long) otk::OBProperty::net_wm_window_type_dialog, 0, 0, 0},
13570 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_normal", (long) otk::OBProperty::net_wm_window_type_normal, 0, 0, 0},
13571 { SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize_size_topleft", (long) otk::OBProperty::net_wm_moveresize_size_topleft, 0, 0, 0},
13572 { SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize_size_topright", (long) otk::OBProperty::net_wm_moveresize_size_topright, 0, 0, 0},
13573 { SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize_size_bottomleft", (long) otk::OBProperty::net_wm_moveresize_size_bottomleft, 0, 0, 0},
13574 { SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize_size_bottomright", (long) otk::OBProperty::net_wm_moveresize_size_bottomright, 0, 0, 0},
13575 { SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize_move", (long) otk::OBProperty::net_wm_moveresize_move, 0, 0, 0},
13576 { SWIG_PY_INT, (char *)"OBProperty_net_wm_action_move", (long) otk::OBProperty::net_wm_action_move, 0, 0, 0},
13577 { SWIG_PY_INT, (char *)"OBProperty_net_wm_action_resize", (long) otk::OBProperty::net_wm_action_resize, 0, 0, 0},
13578 { SWIG_PY_INT, (char *)"OBProperty_net_wm_action_shade", (long) otk::OBProperty::net_wm_action_shade, 0, 0, 0},
13579 { SWIG_PY_INT, (char *)"OBProperty_net_wm_action_maximize_horz", (long) otk::OBProperty::net_wm_action_maximize_horz, 0, 0, 0},
13580 { SWIG_PY_INT, (char *)"OBProperty_net_wm_action_maximize_vert", (long) otk::OBProperty::net_wm_action_maximize_vert, 0, 0, 0},
13581 { SWIG_PY_INT, (char *)"OBProperty_net_wm_action_change_desktop", (long) otk::OBProperty::net_wm_action_change_desktop, 0, 0, 0},
13582 { SWIG_PY_INT, (char *)"OBProperty_net_wm_action_close", (long) otk::OBProperty::net_wm_action_close, 0, 0, 0},
13583 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_modal", (long) otk::OBProperty::net_wm_state_modal, 0, 0, 0},
13584 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_sticky", (long) otk::OBProperty::net_wm_state_sticky, 0, 0, 0},
13585 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_maximized_vert", (long) otk::OBProperty::net_wm_state_maximized_vert, 0, 0, 0},
13586 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_maximized_horz", (long) otk::OBProperty::net_wm_state_maximized_horz, 0, 0, 0},
13587 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_shaded", (long) otk::OBProperty::net_wm_state_shaded, 0, 0, 0},
13588 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_skip_taskbar", (long) otk::OBProperty::net_wm_state_skip_taskbar, 0, 0, 0},
13589 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_skip_pager", (long) otk::OBProperty::net_wm_state_skip_pager, 0, 0, 0},
13590 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_hidden", (long) otk::OBProperty::net_wm_state_hidden, 0, 0, 0},
13591 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_fullscreen", (long) otk::OBProperty::net_wm_state_fullscreen, 0, 0, 0},
13592 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_above", (long) otk::OBProperty::net_wm_state_above, 0, 0, 0},
13593 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_below", (long) otk::OBProperty::net_wm_state_below, 0, 0, 0},
13594 { SWIG_PY_INT, (char *)"OBProperty_kde_net_system_tray_windows", (long) otk::OBProperty::kde_net_system_tray_windows, 0, 0, 0},
13595 { SWIG_PY_INT, (char *)"OBProperty_kde_net_wm_system_tray_window_for", (long) otk::OBProperty::kde_net_wm_system_tray_window_for, 0, 0, 0},
13596 { SWIG_PY_INT, (char *)"OBProperty_kde_net_wm_window_type_override", (long) otk::OBProperty::kde_net_wm_window_type_override, 0, 0, 0},
13597 { SWIG_PY_INT, (char *)"OBProperty_NUM_ATOMS", (long) otk::OBProperty::NUM_ATOMS, 0, 0, 0},
13598 { SWIG_PY_INT, (char *)"OBProperty_ascii", (long) otk::OBProperty::ascii, 0, 0, 0},
13599 { SWIG_PY_INT, (char *)"OBProperty_utf8", (long) otk::OBProperty::utf8, 0, 0, 0},
13600 { SWIG_PY_INT, (char *)"OBProperty_NUM_STRING_TYPE", (long) otk::OBProperty::NUM_STRING_TYPE, 0, 0, 0},
13601 { SWIG_PY_INT, (char *)"Style_ButtonFocus", (long) otk::Style::ButtonFocus, 0, 0, 0},
13602 { SWIG_PY_INT, (char *)"Style_ButtonUnfocus", (long) otk::Style::ButtonUnfocus, 0, 0, 0},
13603 { SWIG_PY_INT, (char *)"Style_TitleFocus", (long) otk::Style::TitleFocus, 0, 0, 0},
13604 { SWIG_PY_INT, (char *)"Style_TitleUnfocus", (long) otk::Style::TitleUnfocus, 0, 0, 0},
13605 { SWIG_PY_INT, (char *)"Style_LabelFocus", (long) otk::Style::LabelFocus, 0, 0, 0},
13606 { SWIG_PY_INT, (char *)"Style_LabelUnfocus", (long) otk::Style::LabelUnfocus, 0, 0, 0},
13607 { SWIG_PY_INT, (char *)"Style_HandleFocus", (long) otk::Style::HandleFocus, 0, 0, 0},
13608 { SWIG_PY_INT, (char *)"Style_HandleUnfocus", (long) otk::Style::HandleUnfocus, 0, 0, 0},
13609 { SWIG_PY_INT, (char *)"Style_GripFocus", (long) otk::Style::GripFocus, 0, 0, 0},
13610 { SWIG_PY_INT, (char *)"Style_GripUnfocus", (long) otk::Style::GripUnfocus, 0, 0, 0},
13611 { SWIG_PY_INT, (char *)"Style_LeftJustify", (long) otk::Style::LeftJustify, 0, 0, 0},
13612 { SWIG_PY_INT, (char *)"Style_RightJustify", (long) otk::Style::RightJustify, 0, 0, 0},
13613 { SWIG_PY_INT, (char *)"Style_CenterJustify", (long) otk::Style::CenterJustify, 0, 0, 0},
13614 { SWIG_PY_INT, (char *)"Style_RoundBullet", (long) otk::Style::RoundBullet, 0, 0, 0},
13615 { SWIG_PY_INT, (char *)"Style_TriangleBullet", (long) otk::Style::TriangleBullet, 0, 0, 0},
13616 { SWIG_PY_INT, (char *)"Style_SquareBullet", (long) otk::Style::SquareBullet, 0, 0, 0},
13617 { SWIG_PY_INT, (char *)"Style_NoBullet", (long) otk::Style::NoBullet, 0, 0, 0},
13618 { SWIG_PY_INT, (char *)"BTexture_NoTexture", (long) otk::BTexture::NoTexture, 0, 0, 0},
13619 { SWIG_PY_INT, (char *)"BTexture_Flat", (long) otk::BTexture::Flat, 0, 0, 0},
13620 { SWIG_PY_INT, (char *)"BTexture_Sunken", (long) otk::BTexture::Sunken, 0, 0, 0},
13621 { SWIG_PY_INT, (char *)"BTexture_Raised", (long) otk::BTexture::Raised, 0, 0, 0},
13622 { SWIG_PY_INT, (char *)"BTexture_Solid", (long) otk::BTexture::Solid, 0, 0, 0},
13623 { SWIG_PY_INT, (char *)"BTexture_Gradient", (long) otk::BTexture::Gradient, 0, 0, 0},
13624 { SWIG_PY_INT, (char *)"BTexture_Horizontal", (long) otk::BTexture::Horizontal, 0, 0, 0},
13625 { SWIG_PY_INT, (char *)"BTexture_Vertical", (long) otk::BTexture::Vertical, 0, 0, 0},
13626 { SWIG_PY_INT, (char *)"BTexture_Diagonal", (long) otk::BTexture::Diagonal, 0, 0, 0},
13627 { SWIG_PY_INT, (char *)"BTexture_CrossDiagonal", (long) otk::BTexture::CrossDiagonal, 0, 0, 0},
13628 { SWIG_PY_INT, (char *)"BTexture_Rectangle", (long) otk::BTexture::Rectangle, 0, 0, 0},
13629 { SWIG_PY_INT, (char *)"BTexture_Pyramid", (long) otk::BTexture::Pyramid, 0, 0, 0},
13630 { SWIG_PY_INT, (char *)"BTexture_PipeCross", (long) otk::BTexture::PipeCross, 0, 0, 0},
13631 { SWIG_PY_INT, (char *)"BTexture_Elliptic", (long) otk::BTexture::Elliptic, 0, 0, 0},
13632 { SWIG_PY_INT, (char *)"BTexture_Bevel1", (long) otk::BTexture::Bevel1, 0, 0, 0},
13633 { SWIG_PY_INT, (char *)"BTexture_Bevel2", (long) otk::BTexture::Bevel2, 0, 0, 0},
13634 { SWIG_PY_INT, (char *)"BTexture_Border", (long) otk::BTexture::Border, 0, 0, 0},
13635 { SWIG_PY_INT, (char *)"BTexture_Invert", (long) otk::BTexture::Invert, 0, 0, 0},
13636 { SWIG_PY_INT, (char *)"BTexture_Parent_Relative", (long) otk::BTexture::Parent_Relative, 0, 0, 0},
13637 { SWIG_PY_INT, (char *)"BTexture_Interlaced", (long) otk::BTexture::Interlaced, 0, 0, 0},
13638 { SWIG_PY_INT, (char *)"X_PROTOCOL", (long) 11, 0, 0, 0},
13639 { SWIG_PY_INT, (char *)"X_PROTOCOL_REVISION", (long) 0, 0, 0, 0},
13640 { SWIG_PY_INT, (char *)"None", (long) 0L, 0, 0, 0},
13641 { SWIG_PY_INT, (char *)"ParentRelative", (long) 1L, 0, 0, 0},
13642 { SWIG_PY_INT, (char *)"CopyFromParent", (long) 0L, 0, 0, 0},
13643 { SWIG_PY_INT, (char *)"PointerWindow", (long) 0L, 0, 0, 0},
13644 { SWIG_PY_INT, (char *)"InputFocus", (long) 1L, 0, 0, 0},
13645 { SWIG_PY_INT, (char *)"PointerRoot", (long) 1L, 0, 0, 0},
13646 { SWIG_PY_INT, (char *)"AnyPropertyType", (long) 0L, 0, 0, 0},
13647 { SWIG_PY_INT, (char *)"AnyKey", (long) 0L, 0, 0, 0},
13648 { SWIG_PY_INT, (char *)"AnyButton", (long) 0L, 0, 0, 0},
13649 { SWIG_PY_INT, (char *)"AllTemporary", (long) 0L, 0, 0, 0},
13650 { SWIG_PY_INT, (char *)"CurrentTime", (long) 0L, 0, 0, 0},
13651 { SWIG_PY_INT, (char *)"NoSymbol", (long) 0L, 0, 0, 0},
13652 { SWIG_PY_INT, (char *)"NoEventMask", (long) 0L, 0, 0, 0},
13653 { SWIG_PY_INT, (char *)"KeyPressMask", (long) (1L<<0), 0, 0, 0},
13654 { SWIG_PY_INT, (char *)"KeyReleaseMask", (long) (1L<<1), 0, 0, 0},
13655 { SWIG_PY_INT, (char *)"ButtonPressMask", (long) (1L<<2), 0, 0, 0},
13656 { SWIG_PY_INT, (char *)"ButtonReleaseMask", (long) (1L<<3), 0, 0, 0},
13657 { SWIG_PY_INT, (char *)"EnterWindowMask", (long) (1L<<4), 0, 0, 0},
13658 { SWIG_PY_INT, (char *)"LeaveWindowMask", (long) (1L<<5), 0, 0, 0},
13659 { SWIG_PY_INT, (char *)"PointerMotionMask", (long) (1L<<6), 0, 0, 0},
13660 { SWIG_PY_INT, (char *)"PointerMotionHintMask", (long) (1L<<7), 0, 0, 0},
13661 { SWIG_PY_INT, (char *)"Button1MotionMask", (long) (1L<<8), 0, 0, 0},
13662 { SWIG_PY_INT, (char *)"Button2MotionMask", (long) (1L<<9), 0, 0, 0},
13663 { SWIG_PY_INT, (char *)"Button3MotionMask", (long) (1L<<10), 0, 0, 0},
13664 { SWIG_PY_INT, (char *)"Button4MotionMask", (long) (1L<<11), 0, 0, 0},
13665 { SWIG_PY_INT, (char *)"Button5MotionMask", (long) (1L<<12), 0, 0, 0},
13666 { SWIG_PY_INT, (char *)"ButtonMotionMask", (long) (1L<<13), 0, 0, 0},
13667 { SWIG_PY_INT, (char *)"KeymapStateMask", (long) (1L<<14), 0, 0, 0},
13668 { SWIG_PY_INT, (char *)"ExposureMask", (long) (1L<<15), 0, 0, 0},
13669 { SWIG_PY_INT, (char *)"VisibilityChangeMask", (long) (1L<<16), 0, 0, 0},
13670 { SWIG_PY_INT, (char *)"StructureNotifyMask", (long) (1L<<17), 0, 0, 0},
13671 { SWIG_PY_INT, (char *)"ResizeRedirectMask", (long) (1L<<18), 0, 0, 0},
13672 { SWIG_PY_INT, (char *)"SubstructureNotifyMask", (long) (1L<<19), 0, 0, 0},
13673 { SWIG_PY_INT, (char *)"SubstructureRedirectMask", (long) (1L<<20), 0, 0, 0},
13674 { SWIG_PY_INT, (char *)"FocusChangeMask", (long) (1L<<21), 0, 0, 0},
13675 { SWIG_PY_INT, (char *)"PropertyChangeMask", (long) (1L<<22), 0, 0, 0},
13676 { SWIG_PY_INT, (char *)"ColormapChangeMask", (long) (1L<<23), 0, 0, 0},
13677 { SWIG_PY_INT, (char *)"OwnerGrabButtonMask", (long) (1L<<24), 0, 0, 0},
13678 { SWIG_PY_INT, (char *)"KeyPress", (long) 2, 0, 0, 0},
13679 { SWIG_PY_INT, (char *)"KeyRelease", (long) 3, 0, 0, 0},
13680 { SWIG_PY_INT, (char *)"ButtonPress", (long) 4, 0, 0, 0},
13681 { SWIG_PY_INT, (char *)"ButtonRelease", (long) 5, 0, 0, 0},
13682 { SWIG_PY_INT, (char *)"MotionNotify", (long) 6, 0, 0, 0},
13683 { SWIG_PY_INT, (char *)"EnterNotify", (long) 7, 0, 0, 0},
13684 { SWIG_PY_INT, (char *)"LeaveNotify", (long) 8, 0, 0, 0},
13685 { SWIG_PY_INT, (char *)"FocusIn", (long) 9, 0, 0, 0},
13686 { SWIG_PY_INT, (char *)"FocusOut", (long) 10, 0, 0, 0},
13687 { SWIG_PY_INT, (char *)"KeymapNotify", (long) 11, 0, 0, 0},
13688 { SWIG_PY_INT, (char *)"Expose", (long) 12, 0, 0, 0},
13689 { SWIG_PY_INT, (char *)"GraphicsExpose", (long) 13, 0, 0, 0},
13690 { SWIG_PY_INT, (char *)"NoExpose", (long) 14, 0, 0, 0},
13691 { SWIG_PY_INT, (char *)"VisibilityNotify", (long) 15, 0, 0, 0},
13692 { SWIG_PY_INT, (char *)"CreateNotify", (long) 16, 0, 0, 0},
13693 { SWIG_PY_INT, (char *)"DestroyNotify", (long) 17, 0, 0, 0},
13694 { SWIG_PY_INT, (char *)"UnmapNotify", (long) 18, 0, 0, 0},
13695 { SWIG_PY_INT, (char *)"MapNotify", (long) 19, 0, 0, 0},
13696 { SWIG_PY_INT, (char *)"MapRequest", (long) 20, 0, 0, 0},
13697 { SWIG_PY_INT, (char *)"ReparentNotify", (long) 21, 0, 0, 0},
13698 { SWIG_PY_INT, (char *)"ConfigureNotify", (long) 22, 0, 0, 0},
13699 { SWIG_PY_INT, (char *)"ConfigureRequest", (long) 23, 0, 0, 0},
13700 { SWIG_PY_INT, (char *)"GravityNotify", (long) 24, 0, 0, 0},
13701 { SWIG_PY_INT, (char *)"ResizeRequest", (long) 25, 0, 0, 0},
13702 { SWIG_PY_INT, (char *)"CirculateNotify", (long) 26, 0, 0, 0},
13703 { SWIG_PY_INT, (char *)"CirculateRequest", (long) 27, 0, 0, 0},
13704 { SWIG_PY_INT, (char *)"PropertyNotify", (long) 28, 0, 0, 0},
13705 { SWIG_PY_INT, (char *)"SelectionClear", (long) 29, 0, 0, 0},
13706 { SWIG_PY_INT, (char *)"SelectionRequest", (long) 30, 0, 0, 0},
13707 { SWIG_PY_INT, (char *)"SelectionNotify", (long) 31, 0, 0, 0},
13708 { SWIG_PY_INT, (char *)"ColormapNotify", (long) 32, 0, 0, 0},
13709 { SWIG_PY_INT, (char *)"ClientMessage", (long) 33, 0, 0, 0},
13710 { SWIG_PY_INT, (char *)"MappingNotify", (long) 34, 0, 0, 0},
13711 { SWIG_PY_INT, (char *)"LASTEvent", (long) 35, 0, 0, 0},
13712 { SWIG_PY_INT, (char *)"ShiftMask", (long) (1<<0), 0, 0, 0},
13713 { SWIG_PY_INT, (char *)"LockMask", (long) (1<<1), 0, 0, 0},
13714 { SWIG_PY_INT, (char *)"ControlMask", (long) (1<<2), 0, 0, 0},
13715 { SWIG_PY_INT, (char *)"Mod1Mask", (long) (1<<3), 0, 0, 0},
13716 { SWIG_PY_INT, (char *)"Mod2Mask", (long) (1<<4), 0, 0, 0},
13717 { SWIG_PY_INT, (char *)"Mod3Mask", (long) (1<<5), 0, 0, 0},
13718 { SWIG_PY_INT, (char *)"Mod4Mask", (long) (1<<6), 0, 0, 0},
13719 { SWIG_PY_INT, (char *)"Mod5Mask", (long) (1<<7), 0, 0, 0},
13720 { SWIG_PY_INT, (char *)"ShiftMapIndex", (long) 0, 0, 0, 0},
13721 { SWIG_PY_INT, (char *)"LockMapIndex", (long) 1, 0, 0, 0},
13722 { SWIG_PY_INT, (char *)"ControlMapIndex", (long) 2, 0, 0, 0},
13723 { SWIG_PY_INT, (char *)"Mod1MapIndex", (long) 3, 0, 0, 0},
13724 { SWIG_PY_INT, (char *)"Mod2MapIndex", (long) 4, 0, 0, 0},
13725 { SWIG_PY_INT, (char *)"Mod3MapIndex", (long) 5, 0, 0, 0},
13726 { SWIG_PY_INT, (char *)"Mod4MapIndex", (long) 6, 0, 0, 0},
13727 { SWIG_PY_INT, (char *)"Mod5MapIndex", (long) 7, 0, 0, 0},
13728 { SWIG_PY_INT, (char *)"Button1Mask", (long) (1<<8), 0, 0, 0},
13729 { SWIG_PY_INT, (char *)"Button2Mask", (long) (1<<9), 0, 0, 0},
13730 { SWIG_PY_INT, (char *)"Button3Mask", (long) (1<<10), 0, 0, 0},
13731 { SWIG_PY_INT, (char *)"Button4Mask", (long) (1<<11), 0, 0, 0},
13732 { SWIG_PY_INT, (char *)"Button5Mask", (long) (1<<12), 0, 0, 0},
13733 { SWIG_PY_INT, (char *)"AnyModifier", (long) (1<<15), 0, 0, 0},
13734 { SWIG_PY_INT, (char *)"Button1", (long) 1, 0, 0, 0},
13735 { SWIG_PY_INT, (char *)"Button2", (long) 2, 0, 0, 0},
13736 { SWIG_PY_INT, (char *)"Button3", (long) 3, 0, 0, 0},
13737 { SWIG_PY_INT, (char *)"Button4", (long) 4, 0, 0, 0},
13738 { SWIG_PY_INT, (char *)"Button5", (long) 5, 0, 0, 0},
13739 { SWIG_PY_INT, (char *)"NotifyNormal", (long) 0, 0, 0, 0},
13740 { SWIG_PY_INT, (char *)"NotifyGrab", (long) 1, 0, 0, 0},
13741 { SWIG_PY_INT, (char *)"NotifyUngrab", (long) 2, 0, 0, 0},
13742 { SWIG_PY_INT, (char *)"NotifyWhileGrabbed", (long) 3, 0, 0, 0},
13743 { SWIG_PY_INT, (char *)"NotifyHint", (long) 1, 0, 0, 0},
13744 { SWIG_PY_INT, (char *)"NotifyAncestor", (long) 0, 0, 0, 0},
13745 { SWIG_PY_INT, (char *)"NotifyVirtual", (long) 1, 0, 0, 0},
13746 { SWIG_PY_INT, (char *)"NotifyInferior", (long) 2, 0, 0, 0},
13747 { SWIG_PY_INT, (char *)"NotifyNonlinear", (long) 3, 0, 0, 0},
13748 { SWIG_PY_INT, (char *)"NotifyNonlinearVirtual", (long) 4, 0, 0, 0},
13749 { SWIG_PY_INT, (char *)"NotifyPointer", (long) 5, 0, 0, 0},
13750 { SWIG_PY_INT, (char *)"NotifyPointerRoot", (long) 6, 0, 0, 0},
13751 { SWIG_PY_INT, (char *)"NotifyDetailNone", (long) 7, 0, 0, 0},
13752 { SWIG_PY_INT, (char *)"VisibilityUnobscured", (long) 0, 0, 0, 0},
13753 { SWIG_PY_INT, (char *)"VisibilityPartiallyObscured", (long) 1, 0, 0, 0},
13754 { SWIG_PY_INT, (char *)"VisibilityFullyObscured", (long) 2, 0, 0, 0},
13755 { SWIG_PY_INT, (char *)"PlaceOnTop", (long) 0, 0, 0, 0},
13756 { SWIG_PY_INT, (char *)"PlaceOnBottom", (long) 1, 0, 0, 0},
13757 { SWIG_PY_INT, (char *)"FamilyInternet", (long) 0, 0, 0, 0},
13758 { SWIG_PY_INT, (char *)"FamilyDECnet", (long) 1, 0, 0, 0},
13759 { SWIG_PY_INT, (char *)"FamilyChaos", (long) 2, 0, 0, 0},
13760 { SWIG_PY_INT, (char *)"PropertyNewValue", (long) 0, 0, 0, 0},
13761 { SWIG_PY_INT, (char *)"PropertyDelete", (long) 1, 0, 0, 0},
13762 { SWIG_PY_INT, (char *)"ColormapUninstalled", (long) 0, 0, 0, 0},
13763 { SWIG_PY_INT, (char *)"ColormapInstalled", (long) 1, 0, 0, 0},
13764 { SWIG_PY_INT, (char *)"GrabModeSync", (long) 0, 0, 0, 0},
13765 { SWIG_PY_INT, (char *)"GrabModeAsync", (long) 1, 0, 0, 0},
13766 { SWIG_PY_INT, (char *)"GrabSuccess", (long) 0, 0, 0, 0},
13767 { SWIG_PY_INT, (char *)"AlreadyGrabbed", (long) 1, 0, 0, 0},
13768 { SWIG_PY_INT, (char *)"GrabInvalidTime", (long) 2, 0, 0, 0},
13769 { SWIG_PY_INT, (char *)"GrabNotViewable", (long) 3, 0, 0, 0},
13770 { SWIG_PY_INT, (char *)"GrabFrozen", (long) 4, 0, 0, 0},
13771 { SWIG_PY_INT, (char *)"AsyncPointer", (long) 0, 0, 0, 0},
13772 { SWIG_PY_INT, (char *)"SyncPointer", (long) 1, 0, 0, 0},
13773 { SWIG_PY_INT, (char *)"ReplayPointer", (long) 2, 0, 0, 0},
13774 { SWIG_PY_INT, (char *)"AsyncKeyboard", (long) 3, 0, 0, 0},
13775 { SWIG_PY_INT, (char *)"SyncKeyboard", (long) 4, 0, 0, 0},
13776 { SWIG_PY_INT, (char *)"ReplayKeyboard", (long) 5, 0, 0, 0},
13777 { SWIG_PY_INT, (char *)"AsyncBoth", (long) 6, 0, 0, 0},
13778 { SWIG_PY_INT, (char *)"SyncBoth", (long) 7, 0, 0, 0},
13779 { SWIG_PY_INT, (char *)"RevertToParent", (long) 2, 0, 0, 0},
13780 { SWIG_PY_INT, (char *)"Success", (long) 0, 0, 0, 0},
13781 { SWIG_PY_INT, (char *)"BadRequest", (long) 1, 0, 0, 0},
13782 { SWIG_PY_INT, (char *)"BadValue", (long) 2, 0, 0, 0},
13783 { SWIG_PY_INT, (char *)"BadWindow", (long) 3, 0, 0, 0},
13784 { SWIG_PY_INT, (char *)"BadPixmap", (long) 4, 0, 0, 0},
13785 { SWIG_PY_INT, (char *)"BadAtom", (long) 5, 0, 0, 0},
13786 { SWIG_PY_INT, (char *)"BadCursor", (long) 6, 0, 0, 0},
13787 { SWIG_PY_INT, (char *)"BadFont", (long) 7, 0, 0, 0},
13788 { SWIG_PY_INT, (char *)"BadMatch", (long) 8, 0, 0, 0},
13789 { SWIG_PY_INT, (char *)"BadDrawable", (long) 9, 0, 0, 0},
13790 { SWIG_PY_INT, (char *)"BadAccess", (long) 10, 0, 0, 0},
13791 { SWIG_PY_INT, (char *)"BadAlloc", (long) 11, 0, 0, 0},
13792 { SWIG_PY_INT, (char *)"BadColor", (long) 12, 0, 0, 0},
13793 { SWIG_PY_INT, (char *)"BadGC", (long) 13, 0, 0, 0},
13794 { SWIG_PY_INT, (char *)"BadIDChoice", (long) 14, 0, 0, 0},
13795 { SWIG_PY_INT, (char *)"BadName", (long) 15, 0, 0, 0},
13796 { SWIG_PY_INT, (char *)"BadLength", (long) 16, 0, 0, 0},
13797 { SWIG_PY_INT, (char *)"BadImplementation", (long) 17, 0, 0, 0},
13798 { SWIG_PY_INT, (char *)"FirstExtensionError", (long) 128, 0, 0, 0},
13799 { SWIG_PY_INT, (char *)"LastExtensionError", (long) 255, 0, 0, 0},
13800 { SWIG_PY_INT, (char *)"InputOutput", (long) 1, 0, 0, 0},
13801 { SWIG_PY_INT, (char *)"InputOnly", (long) 2, 0, 0, 0},
13802 { SWIG_PY_INT, (char *)"CWBackPixmap", (long) (1L<<0), 0, 0, 0},
13803 { SWIG_PY_INT, (char *)"CWBackPixel", (long) (1L<<1), 0, 0, 0},
13804 { SWIG_PY_INT, (char *)"CWBorderPixmap", (long) (1L<<2), 0, 0, 0},
13805 { SWIG_PY_INT, (char *)"CWBorderPixel", (long) (1L<<3), 0, 0, 0},
13806 { SWIG_PY_INT, (char *)"CWBitGravity", (long) (1L<<4), 0, 0, 0},
13807 { SWIG_PY_INT, (char *)"CWWinGravity", (long) (1L<<5), 0, 0, 0},
13808 { SWIG_PY_INT, (char *)"CWBackingStore", (long) (1L<<6), 0, 0, 0},
13809 { SWIG_PY_INT, (char *)"CWBackingPlanes", (long) (1L<<7), 0, 0, 0},
13810 { SWIG_PY_INT, (char *)"CWBackingPixel", (long) (1L<<8), 0, 0, 0},
13811 { SWIG_PY_INT, (char *)"CWOverrideRedirect", (long) (1L<<9), 0, 0, 0},
13812 { SWIG_PY_INT, (char *)"CWSaveUnder", (long) (1L<<10), 0, 0, 0},
13813 { SWIG_PY_INT, (char *)"CWEventMask", (long) (1L<<11), 0, 0, 0},
13814 { SWIG_PY_INT, (char *)"CWDontPropagate", (long) (1L<<12), 0, 0, 0},
13815 { SWIG_PY_INT, (char *)"CWColormap", (long) (1L<<13), 0, 0, 0},
13816 { SWIG_PY_INT, (char *)"CWCursor", (long) (1L<<14), 0, 0, 0},
13817 { SWIG_PY_INT, (char *)"CWX", (long) (1<<0), 0, 0, 0},
13818 { SWIG_PY_INT, (char *)"CWY", (long) (1<<1), 0, 0, 0},
13819 { SWIG_PY_INT, (char *)"CWWidth", (long) (1<<2), 0, 0, 0},
13820 { SWIG_PY_INT, (char *)"CWHeight", (long) (1<<3), 0, 0, 0},
13821 { SWIG_PY_INT, (char *)"CWBorderWidth", (long) (1<<4), 0, 0, 0},
13822 { SWIG_PY_INT, (char *)"CWSibling", (long) (1<<5), 0, 0, 0},
13823 { SWIG_PY_INT, (char *)"CWStackMode", (long) (1<<6), 0, 0, 0},
13824 { SWIG_PY_INT, (char *)"ForgetGravity", (long) 0, 0, 0, 0},
13825 { SWIG_PY_INT, (char *)"NorthWestGravity", (long) 1, 0, 0, 0},
13826 { SWIG_PY_INT, (char *)"NorthGravity", (long) 2, 0, 0, 0},
13827 { SWIG_PY_INT, (char *)"NorthEastGravity", (long) 3, 0, 0, 0},
13828 { SWIG_PY_INT, (char *)"WestGravity", (long) 4, 0, 0, 0},
13829 { SWIG_PY_INT, (char *)"CenterGravity", (long) 5, 0, 0, 0},
13830 { SWIG_PY_INT, (char *)"EastGravity", (long) 6, 0, 0, 0},
13831 { SWIG_PY_INT, (char *)"SouthWestGravity", (long) 7, 0, 0, 0},
13832 { SWIG_PY_INT, (char *)"SouthGravity", (long) 8, 0, 0, 0},
13833 { SWIG_PY_INT, (char *)"SouthEastGravity", (long) 9, 0, 0, 0},
13834 { SWIG_PY_INT, (char *)"StaticGravity", (long) 10, 0, 0, 0},
13835 { SWIG_PY_INT, (char *)"UnmapGravity", (long) 0, 0, 0, 0},
13836 { SWIG_PY_INT, (char *)"NotUseful", (long) 0, 0, 0, 0},
13837 { SWIG_PY_INT, (char *)"WhenMapped", (long) 1, 0, 0, 0},
13838 { SWIG_PY_INT, (char *)"Always", (long) 2, 0, 0, 0},
13839 { SWIG_PY_INT, (char *)"IsUnmapped", (long) 0, 0, 0, 0},
13840 { SWIG_PY_INT, (char *)"IsUnviewable", (long) 1, 0, 0, 0},
13841 { SWIG_PY_INT, (char *)"IsViewable", (long) 2, 0, 0, 0},
13842 { SWIG_PY_INT, (char *)"SetModeInsert", (long) 0, 0, 0, 0},
13843 { SWIG_PY_INT, (char *)"SetModeDelete", (long) 1, 0, 0, 0},
13844 { SWIG_PY_INT, (char *)"DestroyAll", (long) 0, 0, 0, 0},
13845 { SWIG_PY_INT, (char *)"RetainPermanent", (long) 1, 0, 0, 0},
13846 { SWIG_PY_INT, (char *)"RetainTemporary", (long) 2, 0, 0, 0},
13847 { SWIG_PY_INT, (char *)"Above", (long) 0, 0, 0, 0},
13848 { SWIG_PY_INT, (char *)"Below", (long) 1, 0, 0, 0},
13849 { SWIG_PY_INT, (char *)"TopIf", (long) 2, 0, 0, 0},
13850 { SWIG_PY_INT, (char *)"BottomIf", (long) 3, 0, 0, 0},
13851 { SWIG_PY_INT, (char *)"Opposite", (long) 4, 0, 0, 0},
13852 { SWIG_PY_INT, (char *)"RaiseLowest", (long) 0, 0, 0, 0},
13853 { SWIG_PY_INT, (char *)"LowerHighest", (long) 1, 0, 0, 0},
13854 { SWIG_PY_INT, (char *)"PropModeReplace", (long) 0, 0, 0, 0},
13855 { SWIG_PY_INT, (char *)"PropModePrepend", (long) 1, 0, 0, 0},
13856 { SWIG_PY_INT, (char *)"PropModeAppend", (long) 2, 0, 0, 0},
13857 { SWIG_PY_INT, (char *)"GXclear", (long) 0x0, 0, 0, 0},
13858 { SWIG_PY_INT, (char *)"GXand", (long) 0x1, 0, 0, 0},
13859 { SWIG_PY_INT, (char *)"GXandReverse", (long) 0x2, 0, 0, 0},
13860 { SWIG_PY_INT, (char *)"GXcopy", (long) 0x3, 0, 0, 0},
13861 { SWIG_PY_INT, (char *)"GXandInverted", (long) 0x4, 0, 0, 0},
13862 { SWIG_PY_INT, (char *)"GXnoop", (long) 0x5, 0, 0, 0},
13863 { SWIG_PY_INT, (char *)"GXxor", (long) 0x6, 0, 0, 0},
13864 { SWIG_PY_INT, (char *)"GXor", (long) 0x7, 0, 0, 0},
13865 { SWIG_PY_INT, (char *)"GXnor", (long) 0x8, 0, 0, 0},
13866 { SWIG_PY_INT, (char *)"GXequiv", (long) 0x9, 0, 0, 0},
13867 { SWIG_PY_INT, (char *)"GXinvert", (long) 0xa, 0, 0, 0},
13868 { SWIG_PY_INT, (char *)"GXorReverse", (long) 0xb, 0, 0, 0},
13869 { SWIG_PY_INT, (char *)"GXcopyInverted", (long) 0xc, 0, 0, 0},
13870 { SWIG_PY_INT, (char *)"GXorInverted", (long) 0xd, 0, 0, 0},
13871 { SWIG_PY_INT, (char *)"GXnand", (long) 0xe, 0, 0, 0},
13872 { SWIG_PY_INT, (char *)"GXset", (long) 0xf, 0, 0, 0},
13873 { SWIG_PY_INT, (char *)"LineSolid", (long) 0, 0, 0, 0},
13874 { SWIG_PY_INT, (char *)"LineOnOffDash", (long) 1, 0, 0, 0},
13875 { SWIG_PY_INT, (char *)"LineDoubleDash", (long) 2, 0, 0, 0},
13876 { SWIG_PY_INT, (char *)"CapNotLast", (long) 0, 0, 0, 0},
13877 { SWIG_PY_INT, (char *)"CapButt", (long) 1, 0, 0, 0},
13878 { SWIG_PY_INT, (char *)"CapRound", (long) 2, 0, 0, 0},
13879 { SWIG_PY_INT, (char *)"CapProjecting", (long) 3, 0, 0, 0},
13880 { SWIG_PY_INT, (char *)"JoinMiter", (long) 0, 0, 0, 0},
13881 { SWIG_PY_INT, (char *)"JoinRound", (long) 1, 0, 0, 0},
13882 { SWIG_PY_INT, (char *)"JoinBevel", (long) 2, 0, 0, 0},
13883 { SWIG_PY_INT, (char *)"FillSolid", (long) 0, 0, 0, 0},
13884 { SWIG_PY_INT, (char *)"FillTiled", (long) 1, 0, 0, 0},
13885 { SWIG_PY_INT, (char *)"FillStippled", (long) 2, 0, 0, 0},
13886 { SWIG_PY_INT, (char *)"FillOpaqueStippled", (long) 3, 0, 0, 0},
13887 { SWIG_PY_INT, (char *)"EvenOddRule", (long) 0, 0, 0, 0},
13888 { SWIG_PY_INT, (char *)"WindingRule", (long) 1, 0, 0, 0},
13889 { SWIG_PY_INT, (char *)"ClipByChildren", (long) 0, 0, 0, 0},
13890 { SWIG_PY_INT, (char *)"IncludeInferiors", (long) 1, 0, 0, 0},
13891 { SWIG_PY_INT, (char *)"Unsorted", (long) 0, 0, 0, 0},
13892 { SWIG_PY_INT, (char *)"YSorted", (long) 1, 0, 0, 0},
13893 { SWIG_PY_INT, (char *)"YXSorted", (long) 2, 0, 0, 0},
13894 { SWIG_PY_INT, (char *)"YXBanded", (long) 3, 0, 0, 0},
13895 { SWIG_PY_INT, (char *)"CoordModeOrigin", (long) 0, 0, 0, 0},
13896 { SWIG_PY_INT, (char *)"CoordModePrevious", (long) 1, 0, 0, 0},
13897 { SWIG_PY_INT, (char *)"Complex", (long) 0, 0, 0, 0},
13898 { SWIG_PY_INT, (char *)"Nonconvex", (long) 1, 0, 0, 0},
13899 { SWIG_PY_INT, (char *)"Convex", (long) 2, 0, 0, 0},
13900 { SWIG_PY_INT, (char *)"ArcChord", (long) 0, 0, 0, 0},
13901 { SWIG_PY_INT, (char *)"ArcPieSlice", (long) 1, 0, 0, 0},
13902 { SWIG_PY_INT, (char *)"GCFunction", (long) (1L<<0), 0, 0, 0},
13903 { SWIG_PY_INT, (char *)"GCPlaneMask", (long) (1L<<1), 0, 0, 0},
13904 { SWIG_PY_INT, (char *)"GCForeground", (long) (1L<<2), 0, 0, 0},
13905 { SWIG_PY_INT, (char *)"GCBackground", (long) (1L<<3), 0, 0, 0},
13906 { SWIG_PY_INT, (char *)"GCLineWidth", (long) (1L<<4), 0, 0, 0},
13907 { SWIG_PY_INT, (char *)"GCLineStyle", (long) (1L<<5), 0, 0, 0},
13908 { SWIG_PY_INT, (char *)"GCCapStyle", (long) (1L<<6), 0, 0, 0},
13909 { SWIG_PY_INT, (char *)"GCJoinStyle", (long) (1L<<7), 0, 0, 0},
13910 { SWIG_PY_INT, (char *)"GCFillStyle", (long) (1L<<8), 0, 0, 0},
13911 { SWIG_PY_INT, (char *)"GCFillRule", (long) (1L<<9), 0, 0, 0},
13912 { SWIG_PY_INT, (char *)"GCTile", (long) (1L<<10), 0, 0, 0},
13913 { SWIG_PY_INT, (char *)"GCStipple", (long) (1L<<11), 0, 0, 0},
13914 { SWIG_PY_INT, (char *)"GCTileStipXOrigin", (long) (1L<<12), 0, 0, 0},
13915 { SWIG_PY_INT, (char *)"GCTileStipYOrigin", (long) (1L<<13), 0, 0, 0},
13916 { SWIG_PY_INT, (char *)"GCFont", (long) (1L<<14), 0, 0, 0},
13917 { SWIG_PY_INT, (char *)"GCSubwindowMode", (long) (1L<<15), 0, 0, 0},
13918 { SWIG_PY_INT, (char *)"GCGraphicsExposures", (long) (1L<<16), 0, 0, 0},
13919 { SWIG_PY_INT, (char *)"GCClipXOrigin", (long) (1L<<17), 0, 0, 0},
13920 { SWIG_PY_INT, (char *)"GCClipYOrigin", (long) (1L<<18), 0, 0, 0},
13921 { SWIG_PY_INT, (char *)"GCClipMask", (long) (1L<<19), 0, 0, 0},
13922 { SWIG_PY_INT, (char *)"GCDashOffset", (long) (1L<<20), 0, 0, 0},
13923 { SWIG_PY_INT, (char *)"GCDashList", (long) (1L<<21), 0, 0, 0},
13924 { SWIG_PY_INT, (char *)"GCArcMode", (long) (1L<<22), 0, 0, 0},
13925 { SWIG_PY_INT, (char *)"GCLastBit", (long) 22, 0, 0, 0},
13926 { SWIG_PY_INT, (char *)"FontLeftToRight", (long) 0, 0, 0, 0},
13927 { SWIG_PY_INT, (char *)"FontRightToLeft", (long) 1, 0, 0, 0},
13928 { SWIG_PY_INT, (char *)"FontChange", (long) 255, 0, 0, 0},
13929 { SWIG_PY_INT, (char *)"XYBitmap", (long) 0, 0, 0, 0},
13930 { SWIG_PY_INT, (char *)"XYPixmap", (long) 1, 0, 0, 0},
13931 { SWIG_PY_INT, (char *)"ZPixmap", (long) 2, 0, 0, 0},
13932 { SWIG_PY_INT, (char *)"AllocNone", (long) 0, 0, 0, 0},
13933 { SWIG_PY_INT, (char *)"AllocAll", (long) 1, 0, 0, 0},
13934 { SWIG_PY_INT, (char *)"DoRed", (long) (1<<0), 0, 0, 0},
13935 { SWIG_PY_INT, (char *)"DoGreen", (long) (1<<1), 0, 0, 0},
13936 { SWIG_PY_INT, (char *)"DoBlue", (long) (1<<2), 0, 0, 0},
13937 { SWIG_PY_INT, (char *)"CursorShape", (long) 0, 0, 0, 0},
13938 { SWIG_PY_INT, (char *)"TileShape", (long) 1, 0, 0, 0},
13939 { SWIG_PY_INT, (char *)"StippleShape", (long) 2, 0, 0, 0},
13940 { SWIG_PY_INT, (char *)"AutoRepeatModeOff", (long) 0, 0, 0, 0},
13941 { SWIG_PY_INT, (char *)"AutoRepeatModeOn", (long) 1, 0, 0, 0},
13942 { SWIG_PY_INT, (char *)"AutoRepeatModeDefault", (long) 2, 0, 0, 0},
13943 { SWIG_PY_INT, (char *)"LedModeOff", (long) 0, 0, 0, 0},
13944 { SWIG_PY_INT, (char *)"LedModeOn", (long) 1, 0, 0, 0},
13945 { SWIG_PY_INT, (char *)"KBKeyClickPercent", (long) (1L<<0), 0, 0, 0},
13946 { SWIG_PY_INT, (char *)"KBBellPercent", (long) (1L<<1), 0, 0, 0},
13947 { SWIG_PY_INT, (char *)"KBBellPitch", (long) (1L<<2), 0, 0, 0},
13948 { SWIG_PY_INT, (char *)"KBBellDuration", (long) (1L<<3), 0, 0, 0},
13949 { SWIG_PY_INT, (char *)"KBLed", (long) (1L<<4), 0, 0, 0},
13950 { SWIG_PY_INT, (char *)"KBLedMode", (long) (1L<<5), 0, 0, 0},
13951 { SWIG_PY_INT, (char *)"KBKey", (long) (1L<<6), 0, 0, 0},
13952 { SWIG_PY_INT, (char *)"KBAutoRepeatMode", (long) (1L<<7), 0, 0, 0},
13953 { SWIG_PY_INT, (char *)"MappingSuccess", (long) 0, 0, 0, 0},
13954 { SWIG_PY_INT, (char *)"MappingBusy", (long) 1, 0, 0, 0},
13955 { SWIG_PY_INT, (char *)"MappingFailed", (long) 2, 0, 0, 0},
13956 { SWIG_PY_INT, (char *)"MappingModifier", (long) 0, 0, 0, 0},
13957 { SWIG_PY_INT, (char *)"MappingKeyboard", (long) 1, 0, 0, 0},
13958 { SWIG_PY_INT, (char *)"MappingPointer", (long) 2, 0, 0, 0},
13959 { SWIG_PY_INT, (char *)"DontPreferBlanking", (long) 0, 0, 0, 0},
13960 { SWIG_PY_INT, (char *)"PreferBlanking", (long) 1, 0, 0, 0},
13961 { SWIG_PY_INT, (char *)"DefaultBlanking", (long) 2, 0, 0, 0},
13962 { SWIG_PY_INT, (char *)"DisableScreenSaver", (long) 0, 0, 0, 0},
13963 { SWIG_PY_INT, (char *)"DisableScreenInterval", (long) 0, 0, 0, 0},
13964 { SWIG_PY_INT, (char *)"DontAllowExposures", (long) 0, 0, 0, 0},
13965 { SWIG_PY_INT, (char *)"AllowExposures", (long) 1, 0, 0, 0},
13966 { SWIG_PY_INT, (char *)"DefaultExposures", (long) 2, 0, 0, 0},
13967 { SWIG_PY_INT, (char *)"ScreenSaverReset", (long) 0, 0, 0, 0},
13968 { SWIG_PY_INT, (char *)"ScreenSaverActive", (long) 1, 0, 0, 0},
13969 { SWIG_PY_INT, (char *)"HostInsert", (long) 0, 0, 0, 0},
13970 { SWIG_PY_INT, (char *)"HostDelete", (long) 1, 0, 0, 0},
13971 { SWIG_PY_INT, (char *)"EnableAccess", (long) 1, 0, 0, 0},
13972 { SWIG_PY_INT, (char *)"DisableAccess", (long) 0, 0, 0, 0},
13973 { SWIG_PY_INT, (char *)"StaticGray", (long) 0, 0, 0, 0},
13974 { SWIG_PY_INT, (char *)"GrayScale", (long) 1, 0, 0, 0},
13975 { SWIG_PY_INT, (char *)"StaticColor", (long) 2, 0, 0, 0},
13976 { SWIG_PY_INT, (char *)"PseudoColor", (long) 3, 0, 0, 0},
13977 { SWIG_PY_INT, (char *)"TrueColor", (long) 4, 0, 0, 0},
13978 { SWIG_PY_INT, (char *)"DirectColor", (long) 5, 0, 0, 0},
13979 { SWIG_PY_INT, (char *)"LSBFirst", (long) 0, 0, 0, 0},
13980 { SWIG_PY_INT, (char *)"MSBFirst", (long) 1, 0, 0, 0},
13981 {0}};
13982
13983 #ifdef __cplusplus
13984 }
13985 #endif
13986
13987 #ifdef __cplusplus
13988 extern "C"
13989 #endif
13990 SWIGEXPORT(void) SWIG_init(void) {
13991 static PyObject *SWIG_globals = 0;
13992 static int typeinit = 0;
13993 PyObject *m, *d;
13994 int i;
13995 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
13996 m = Py_InitModule((char *) SWIG_name, SwigMethods);
13997 d = PyModule_GetDict(m);
13998
13999 if (!typeinit) {
14000 for (i = 0; swig_types_initial[i]; i++) {
14001 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
14002 }
14003 typeinit = 1;
14004 }
14005 SWIG_InstallConstants(d,swig_const_table);
14006
14007 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
14008 SWIG_addvarlink(SWIG_globals,(char*)"BSENTINEL",_wrap_BSENTINEL_get, _wrap_BSENTINEL_set);
14009 }
14010
This page took 0.788924 seconds and 4 git commands to generate.