]> Dogcows Code - chaz/openbox/blob - otk/otk_wrap.cc
python with callbacks!
[chaz/openbox] / otk / otk_wrap.cc
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.17u-20021222-0248
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12
13 #ifdef __cplusplus
14 template<class T> class SwigValueWrapper {
15 T *tt;
16 public:
17 inline SwigValueWrapper() : tt(0) { }
18 inline ~SwigValueWrapper() { if (tt) delete tt; }
19 inline SwigValueWrapper& operator=(const T& t) { tt = new T(t); return *this; }
20 inline operator T&() const { return *tt; }
21 inline T *operator&() { return tt; }
22 };
23 #endif
24
25
26 #include "Python.h"
27
28 /***********************************************************************
29 * common.swg
30 *
31 * This file contains generic SWIG runtime support for pointer
32 * type checking as well as a few commonly used macros to control
33 * external linkage.
34 *
35 * Author : David Beazley (beazley@cs.uchicago.edu)
36 *
37 * Copyright (c) 1999-2000, The University of Chicago
38 *
39 * This file may be freely redistributed without license or fee provided
40 * this copyright message remains intact.
41 ************************************************************************/
42
43 #include <string.h>
44
45 #if defined(_WIN32) || defined(__WIN32__)
46 # if defined(_MSC_VER)
47 # if defined(STATIC_LINKED)
48 # define SWIGEXPORT(a) a
49 # define SWIGIMPORT(a) extern a
50 # else
51 # define SWIGEXPORT(a) __declspec(dllexport) a
52 # define SWIGIMPORT(a) extern a
53 # endif
54 # else
55 # if defined(__BORLANDC__)
56 # define SWIGEXPORT(a) a _export
57 # define SWIGIMPORT(a) a _export
58 # else
59 # define SWIGEXPORT(a) a
60 # define SWIGIMPORT(a) a
61 # endif
62 # endif
63 #else
64 # define SWIGEXPORT(a) a
65 # define SWIGIMPORT(a) a
66 #endif
67
68 #ifdef SWIG_GLOBAL
69 #define SWIGRUNTIME(a) SWIGEXPORT(a)
70 #else
71 #define SWIGRUNTIME(a) static a
72 #endif
73
74 #ifdef __cplusplus
75 extern "C" {
76 #endif
77
78 typedef void *(*swig_converter_func)(void *);
79 typedef struct swig_type_info *(*swig_dycast_func)(void **);
80
81 typedef struct swig_type_info {
82 const char *name;
83 swig_converter_func converter;
84 const char *str;
85 void *clientdata;
86 swig_dycast_func dcast;
87 struct swig_type_info *next;
88 struct swig_type_info *prev;
89 } swig_type_info;
90
91 #ifdef SWIG_NOINCLUDE
92
93 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
94 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
95 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
96 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
97 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
98 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
99
100 #else
101
102 static swig_type_info *swig_type_list = 0;
103
104 /* Register a type mapping with the type-checking */
105 SWIGRUNTIME(swig_type_info *)
106 SWIG_TypeRegister(swig_type_info *ti)
107 {
108 swig_type_info *tc, *head, *ret, *next;
109 /* Check to see if this type has already been registered */
110 tc = swig_type_list;
111 while (tc) {
112 if (strcmp(tc->name, ti->name) == 0) {
113 /* Already exists in the table. Just add additional types to the list */
114 if (tc->clientdata) ti->clientdata = tc->clientdata;
115 head = tc;
116 next = tc->next;
117 goto l1;
118 }
119 tc = tc->prev;
120 }
121 head = ti;
122 next = 0;
123
124 /* Place in list */
125 ti->prev = swig_type_list;
126 swig_type_list = ti;
127
128 /* Build linked lists */
129 l1:
130 ret = head;
131 tc = ti + 1;
132 /* Patch up the rest of the links */
133 while (tc->name) {
134 head->next = tc;
135 tc->prev = head;
136 head = tc;
137 tc++;
138 }
139 head->next = next;
140 return ret;
141 }
142
143 /* Check the typename */
144 SWIGRUNTIME(swig_type_info *)
145 SWIG_TypeCheck(char *c, swig_type_info *ty)
146 {
147 swig_type_info *s;
148 if (!ty) return 0; /* Void pointer */
149 s = ty->next; /* First element always just a name */
150 do {
151 if (strcmp(s->name,c) == 0) {
152 if (s == ty->next) return s;
153 /* Move s to the top of the linked list */
154 s->prev->next = s->next;
155 if (s->next) {
156 s->next->prev = s->prev;
157 }
158 /* Insert s as second element in the list */
159 s->next = ty->next;
160 if (ty->next) ty->next->prev = s;
161 ty->next = s;
162 return s;
163 }
164 s = s->next;
165 } while (s && (s != ty->next));
166 return 0;
167 }
168
169 /* Cast a pointer up an inheritance hierarchy */
170 SWIGRUNTIME(void *)
171 SWIG_TypeCast(swig_type_info *ty, void *ptr)
172 {
173 if ((!ty) || (!ty->converter)) return ptr;
174 return (*ty->converter)(ptr);
175 }
176
177 /* Dynamic pointer casting. Down an inheritance hierarchy */
178 SWIGRUNTIME(swig_type_info *)
179 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
180 {
181 swig_type_info *lastty = ty;
182 if (!ty || !ty->dcast) return ty;
183 while (ty && (ty->dcast)) {
184 ty = (*ty->dcast)(ptr);
185 if (ty) lastty = ty;
186 }
187 return lastty;
188 }
189
190 /* Search for a swig_type_info structure */
191 SWIGRUNTIME(swig_type_info *)
192 SWIG_TypeQuery(const char *name) {
193 swig_type_info *ty = swig_type_list;
194 while (ty) {
195 if (ty->str && (strcmp(name,ty->str) == 0)) return ty;
196 if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
197 ty = ty->prev;
198 }
199 return 0;
200 }
201
202 /* Set the clientdata field for a type */
203 SWIGRUNTIME(void)
204 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
205 swig_type_info *tc, *equiv;
206 if (ti->clientdata == clientdata) return;
207 ti->clientdata = clientdata;
208 equiv = ti->next;
209 while (equiv) {
210 if (!equiv->converter) {
211 tc = swig_type_list;
212 while (tc) {
213 if ((strcmp(tc->name, equiv->name) == 0))
214 SWIG_TypeClientData(tc,clientdata);
215 tc = tc->prev;
216 }
217 }
218 equiv = equiv->next;
219 }
220 }
221 #endif
222
223 #ifdef __cplusplus
224 }
225
226 #endif
227
228 /***********************************************************************
229 * python.swg
230 *
231 * This file contains the runtime support for Python modules
232 * and includes code for managing global variables and pointer
233 * type checking.
234 *
235 * Author : David Beazley (beazley@cs.uchicago.edu)
236 ************************************************************************/
237
238 #include "Python.h"
239
240 #ifdef __cplusplus
241 extern "C" {
242 #endif
243
244 #define SWIG_PY_INT 1
245 #define SWIG_PY_FLOAT 2
246 #define SWIG_PY_STRING 3
247 #define SWIG_PY_POINTER 4
248 #define SWIG_PY_BINARY 5
249
250 /* Flags for pointer conversion */
251
252 #define SWIG_POINTER_EXCEPTION 0x1
253 #define SWIG_POINTER_DISOWN 0x2
254
255 /* Exception handling in wrappers */
256 #define SWIG_fail goto fail
257
258 /* Constant information structure */
259 typedef struct swig_const_info {
260 int type;
261 char *name;
262 long lvalue;
263 double dvalue;
264 void *pvalue;
265 swig_type_info **ptype;
266 } swig_const_info;
267
268 #ifdef SWIG_NOINCLUDE
269
270 SWIGEXPORT(PyObject *) SWIG_newvarlink();
271 SWIGEXPORT(void) SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
272 SWIGEXPORT(int) SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int);
273 SWIGEXPORT(int) SWIG_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
274 SWIGEXPORT(char *) SWIG_PackData(char *c, void *, int);
275 SWIGEXPORT(char *) SWIG_UnpackData(char *c, void *, int);
276 SWIGEXPORT(PyObject *) SWIG_NewPointerObj(void *, swig_type_info *,int own);
277 SWIGEXPORT(PyObject *) SWIG_NewPackedObj(void *, int sz, swig_type_info *);
278 SWIGEXPORT(void) SWIG_InstallConstants(PyObject *d, swig_const_info constants[]);
279 #else
280
281 /* -----------------------------------------------------------------------------
282 * global variable support code.
283 * ----------------------------------------------------------------------------- */
284
285 typedef struct swig_globalvar {
286 char *name; /* Name of global variable */
287 PyObject *(*get_attr)(void); /* Return the current value */
288 int (*set_attr)(PyObject *); /* Set the value */
289 struct swig_globalvar *next;
290 } swig_globalvar;
291
292 typedef struct swig_varlinkobject {
293 PyObject_HEAD
294 swig_globalvar *vars;
295 } swig_varlinkobject;
296
297 static PyObject *
298 swig_varlink_repr(swig_varlinkobject *v) {
299 v = v;
300 return PyString_FromString("<Global variables>");
301 }
302
303 static int
304 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
305 swig_globalvar *var;
306 flags = flags;
307 fprintf(fp,"Global variables { ");
308 for (var = v->vars; var; var=var->next) {
309 fprintf(fp,"%s", var->name);
310 if (var->next) fprintf(fp,", ");
311 }
312 fprintf(fp," }\n");
313 return 0;
314 }
315
316 static PyObject *
317 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
318 swig_globalvar *var = v->vars;
319 while (var) {
320 if (strcmp(var->name,n) == 0) {
321 return (*var->get_attr)();
322 }
323 var = var->next;
324 }
325 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
326 return NULL;
327 }
328
329 static int
330 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
331 swig_globalvar *var = v->vars;
332 while (var) {
333 if (strcmp(var->name,n) == 0) {
334 return (*var->set_attr)(p);
335 }
336 var = var->next;
337 }
338 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
339 return 1;
340 }
341
342 statichere PyTypeObject varlinktype = {
343 PyObject_HEAD_INIT(0)
344 0,
345 (char *)"swigvarlink", /* Type name */
346 sizeof(swig_varlinkobject), /* Basic size */
347 0, /* Itemsize */
348 0, /* Deallocator */
349 (printfunc) swig_varlink_print, /* Print */
350 (getattrfunc) swig_varlink_getattr, /* get attr */
351 (setattrfunc) swig_varlink_setattr, /* Set attr */
352 0, /* tp_compare */
353 (reprfunc) swig_varlink_repr, /* tp_repr */
354 0, /* tp_as_number */
355 0, /* tp_as_mapping*/
356 0, /* tp_hash */
357 };
358
359 /* Create a variable linking object for use later */
360 SWIGRUNTIME(PyObject *)
361 SWIG_newvarlink(void) {
362 swig_varlinkobject *result = 0;
363 result = PyMem_NEW(swig_varlinkobject,1);
364 varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
365 result->ob_type = &varlinktype;
366 result->vars = 0;
367 result->ob_refcnt = 0;
368 Py_XINCREF((PyObject *) result);
369 return ((PyObject*) result);
370 }
371
372 SWIGRUNTIME(void)
373 SWIG_addvarlink(PyObject *p, char *name,
374 PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
375 swig_varlinkobject *v;
376 swig_globalvar *gv;
377 v= (swig_varlinkobject *) p;
378 gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
379 gv->name = (char *) malloc(strlen(name)+1);
380 strcpy(gv->name,name);
381 gv->get_attr = get_attr;
382 gv->set_attr = set_attr;
383 gv->next = v->vars;
384 v->vars = gv;
385 }
386
387 /* Pack binary data into a string */
388 SWIGRUNTIME(char *)
389 SWIG_PackData(char *c, void *ptr, int sz) {
390 static char hex[17] = "0123456789abcdef";
391 int i;
392 unsigned char *u = (unsigned char *) ptr;
393 register unsigned char uu;
394 for (i = 0; i < sz; i++,u++) {
395 uu = *u;
396 *(c++) = hex[(uu & 0xf0) >> 4];
397 *(c++) = hex[uu & 0xf];
398 }
399 return c;
400 }
401
402 /* Unpack binary data from a string */
403 SWIGRUNTIME(char *)
404 SWIG_UnpackData(char *c, void *ptr, int sz) {
405 register unsigned char uu = 0;
406 register int d;
407 unsigned char *u = (unsigned char *) ptr;
408 int i;
409 for (i = 0; i < sz; i++, u++) {
410 d = *(c++);
411 if ((d >= '0') && (d <= '9'))
412 uu = ((d - '0') << 4);
413 else if ((d >= 'a') && (d <= 'f'))
414 uu = ((d - ('a'-10)) << 4);
415 d = *(c++);
416 if ((d >= '0') && (d <= '9'))
417 uu |= (d - '0');
418 else if ((d >= 'a') && (d <= 'f'))
419 uu |= (d - ('a'-10));
420 *u = uu;
421 }
422 return c;
423 }
424
425 /* Convert a pointer value */
426 SWIGRUNTIME(int)
427 SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
428 swig_type_info *tc;
429 char *c;
430 static PyObject *SWIG_this = 0;
431 int newref = 0;
432 PyObject *pyobj = 0;
433
434 if (!obj) return 0;
435 if (obj == Py_None) {
436 *ptr = 0;
437 return 0;
438 }
439 #ifdef SWIG_COBJECT_TYPES
440 if (!(PyCObject_Check(obj))) {
441 if (!SWIG_this)
442 SWIG_this = PyString_FromString("this");
443 pyobj = obj;
444 obj = PyObject_GetAttr(obj,SWIG_this);
445 newref = 1;
446 if (!obj) goto type_error;
447 if (!PyCObject_Check(obj)) {
448 Py_DECREF(obj);
449 goto type_error;
450 }
451 }
452 *ptr = PyCObject_AsVoidPtr(obj);
453 c = (char *) PyCObject_GetDesc(obj);
454 if (newref) Py_DECREF(obj);
455 goto cobject;
456 #else
457 if (!(PyString_Check(obj))) {
458 if (!SWIG_this)
459 SWIG_this = PyString_FromString("this");
460 pyobj = obj;
461 obj = PyObject_GetAttr(obj,SWIG_this);
462 newref = 1;
463 if (!obj) goto type_error;
464 if (!PyString_Check(obj)) {
465 Py_DECREF(obj);
466 goto type_error;
467 }
468 }
469 c = PyString_AsString(obj);
470 /* Pointer values must start with leading underscore */
471 if (*c != '_') {
472 *ptr = (void *) 0;
473 if (strcmp(c,"NULL") == 0) {
474 if (newref) { Py_DECREF(obj); }
475 return 0;
476 } else {
477 if (newref) { Py_DECREF(obj); }
478 goto type_error;
479 }
480 }
481 c++;
482 c = SWIG_UnpackData(c,ptr,sizeof(void *));
483 if (newref) { Py_DECREF(obj); }
484 #endif
485
486 #ifdef SWIG_COBJECT_TYPES
487 cobject:
488 #endif
489
490 if (ty) {
491 tc = SWIG_TypeCheck(c,ty);
492 if (!tc) goto type_error;
493 *ptr = SWIG_TypeCast(tc,(void*) *ptr);
494 }
495
496 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
497 PyObject *zero = PyInt_FromLong(0);
498 PyObject_SetAttrString(pyobj,(char*)"thisown",zero);
499 Py_DECREF(zero);
500 }
501 return 0;
502
503 type_error:
504 if (flags & SWIG_POINTER_EXCEPTION) {
505 if (ty) {
506 char *temp = (char *) malloc(64+strlen(ty->name));
507 sprintf(temp,"Type error. Expected %s", ty->name);
508 PyErr_SetString(PyExc_TypeError, temp);
509 free((char *) temp);
510 } else {
511 PyErr_SetString(PyExc_TypeError,"Expected a pointer");
512 }
513 }
514 return -1;
515 }
516
517 /* Convert a packed value value */
518 SWIGRUNTIME(int)
519 SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
520 swig_type_info *tc;
521 char *c;
522
523 if ((!obj) || (!PyString_Check(obj))) goto type_error;
524 c = PyString_AsString(obj);
525 /* Pointer values must start with leading underscore */
526 if (*c != '_') goto type_error;
527 c++;
528 c = SWIG_UnpackData(c,ptr,sz);
529 if (ty) {
530 tc = SWIG_TypeCheck(c,ty);
531 if (!tc) goto type_error;
532 }
533 return 0;
534
535 type_error:
536
537 if (flags) {
538 if (ty) {
539 char *temp = (char *) malloc(64+strlen(ty->name));
540 sprintf(temp,"Type error. Expected %s", ty->name);
541 PyErr_SetString(PyExc_TypeError, temp);
542 free((char *) temp);
543 } else {
544 PyErr_SetString(PyExc_TypeError,"Expected a pointer");
545 }
546 }
547 return -1;
548 }
549
550 /* Create a new pointer object */
551 SWIGRUNTIME(PyObject *)
552 SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
553 PyObject *robj;
554 if (!ptr) {
555 Py_INCREF(Py_None);
556 return Py_None;
557 }
558 #ifdef SWIG_COBJECT_TYPES
559 robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) type->name, NULL);
560 #else
561 {
562 char result[1024];
563 char *r = result;
564 *(r++) = '_';
565 r = SWIG_PackData(r,&ptr,sizeof(void *));
566 strcpy(r,type->name);
567 robj = PyString_FromString(result);
568 }
569 #endif
570 if (!robj || (robj == Py_None)) return robj;
571 if (type->clientdata) {
572 PyObject *inst;
573 PyObject *args = Py_BuildValue((char*)"(O)", robj);
574 Py_DECREF(robj);
575 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
576 Py_DECREF(args);
577 if (inst) {
578 if (own) {
579 PyObject *n = PyInt_FromLong(1);
580 PyObject_SetAttrString(inst,(char*)"thisown",n);
581 Py_DECREF(n);
582 }
583 robj = inst;
584 }
585 }
586 return robj;
587 }
588
589 SWIGRUNTIME(PyObject *)
590 SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
591 char result[1024];
592 char *r = result;
593 if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
594 *(r++) = '_';
595 r = SWIG_PackData(r,ptr,sz);
596 strcpy(r,type->name);
597 return PyString_FromString(result);
598 }
599
600 /* Install Constants */
601 SWIGRUNTIME(void)
602 SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
603 int i;
604 PyObject *obj;
605 for (i = 0; constants[i].type; i++) {
606 switch(constants[i].type) {
607 case SWIG_PY_INT:
608 obj = PyInt_FromLong(constants[i].lvalue);
609 break;
610 case SWIG_PY_FLOAT:
611 obj = PyFloat_FromDouble(constants[i].dvalue);
612 break;
613 case SWIG_PY_STRING:
614 obj = PyString_FromString((char *) constants[i].pvalue);
615 break;
616 case SWIG_PY_POINTER:
617 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
618 break;
619 case SWIG_PY_BINARY:
620 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
621 break;
622 default:
623 obj = 0;
624 break;
625 }
626 if (obj) {
627 PyDict_SetItemString(d,constants[i].name,obj);
628 Py_DECREF(obj);
629 }
630 }
631 }
632
633 #endif
634
635 #ifdef __cplusplus
636 }
637 #endif
638
639
640
641
642
643
644
645
646 /* -------- TYPES TABLE (BEGIN) -------- */
647
648 #define SWIGTYPE_p_otk__BGCCache swig_types[0]
649 #define SWIGTYPE_p_otk__BColor swig_types[1]
650 #define SWIGTYPE_p_otk__OBProperty__StringVect 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_Atom swig_types[6]
655 #define SWIGTYPE_p_otk__PointerAssassin swig_types[7]
656 #define SWIGTYPE_p_otk__BImage swig_types[8]
657 #define SWIGTYPE_p_otk__OBTimer swig_types[9]
658 #define SWIGTYPE_p_otk__OtkWidget__OtkWidgetList swig_types[10]
659 #define SWIGTYPE_p_bool swig_types[11]
660 #define SWIGTYPE_p_otk__OBDisplay swig_types[12]
661 #define SWIGTYPE_p_Display swig_types[13]
662 #define SWIGTYPE_p_p_XColor swig_types[14]
663 #define SWIGTYPE_p_XReparentEvent swig_types[15]
664 #define SWIGTYPE_p_otk__BPen swig_types[16]
665 #define SWIGTYPE_p_otk__BImageControl swig_types[17]
666 #define SWIGTYPE_p_otk__OtkButton swig_types[18]
667 #define SWIGTYPE_p_otk__Rect swig_types[19]
668 #define SWIGTYPE_p_otk__Style swig_types[20]
669 #define SWIGTYPE_p_XSelectionClearEvent swig_types[21]
670 #define SWIGTYPE_p_Visual swig_types[22]
671 #define SWIGTYPE_p_timeval swig_types[23]
672 #define SWIGTYPE_p_int swig_types[24]
673 #define SWIGTYPE_p_otk__Strut swig_types[25]
674 #define SWIGTYPE_p_otk__OtkApplication swig_types[26]
675 #define SWIGTYPE_p_XRectangle swig_types[27]
676 #define SWIGTYPE_p_otk__OtkFocusWidget swig_types[28]
677 #define SWIGTYPE_p_otk__OtkWidget swig_types[29]
678 #define SWIGTYPE_p_Cursor swig_types[30]
679 #define SWIGTYPE_p_Colormap swig_types[31]
680 #define SWIGTYPE_p_XGravityEvent swig_types[32]
681 #define SWIGTYPE_p_XVisibilityEvent swig_types[33]
682 #define SWIGTYPE_p_XPropertyEvent swig_types[34]
683 #define SWIGTYPE_p_Window swig_types[35]
684 #define SWIGTYPE_p_otk__BGCCacheContext swig_types[36]
685 #define SWIGTYPE_p_XCreateWindowEvent swig_types[37]
686 #define SWIGTYPE_p_XDestroyWindowEvent swig_types[38]
687 #define SWIGTYPE_p_XCirculateEvent swig_types[39]
688 #define SWIGTYPE_p_XConfigureEvent swig_types[40]
689 #define SWIGTYPE_p_otk__OBProperty swig_types[41]
690 #define SWIGTYPE_p_long swig_types[42]
691 #define SWIGTYPE_p_XTextProperty swig_types[43]
692 #define SWIGTYPE_p_otk__OtkEventHandler swig_types[44]
693 #define SWIGTYPE_p_XCirculateRequestEvent swig_types[45]
694 #define SWIGTYPE_p_XConfigureRequestEvent swig_types[46]
695 #define SWIGTYPE_p_XMapRequestEvent swig_types[47]
696 #define SWIGTYPE_p_XResizeRequestEvent swig_types[48]
697 #define SWIGTYPE_p_XSelectionRequestEvent swig_types[49]
698 #define SWIGTYPE_otk__OBTimeoutHandler swig_types[50]
699 #define SWIGTYPE_p_XftDraw swig_types[51]
700 #define SWIGTYPE_p_otk__ScreenInfo swig_types[52]
701 #define SWIGTYPE_p_otk__OtkFocusLabel swig_types[53]
702 #define SWIGTYPE_p_otk__BTexture swig_types[54]
703 #define SWIGTYPE_p_otk__OtkEventDispatcher swig_types[55]
704 #define SWIGTYPE_p_otk__BFont swig_types[56]
705 #define SWIGTYPE_p_otk__Point swig_types[57]
706 #define SWIGTYPE_p_p_char swig_types[58]
707 #define SWIGTYPE_p_XMotionEvent swig_types[59]
708 #define SWIGTYPE_p_XButtonEvent swig_types[60]
709 #define SWIGTYPE_p_XSelectionEvent swig_types[61]
710 #define SWIGTYPE_p_Pixmap swig_types[62]
711 #define SWIGTYPE_p_GC swig_types[63]
712 #define SWIGTYPE_p_otk__OBTimerQueueManager swig_types[64]
713 #define SWIGTYPE_p_otk__OtkAppWidget swig_types[65]
714 #define SWIGTYPE_p_XKeyEvent swig_types[66]
715 #define SWIGTYPE_p_unsigned_long swig_types[67]
716 #define SWIGTYPE_p_XEvent swig_types[68]
717 #define SWIGTYPE_p_p_unsigned_long swig_types[69]
718 #define SWIGTYPE_p_std__string swig_types[70]
719 #define SWIGTYPE_p_XCrossingEvent swig_types[71]
720 #define SWIGTYPE_p_XMappingEvent swig_types[72]
721 #define SWIGTYPE_p_otk__BGCCacheItem swig_types[73]
722 #define SWIGTYPE_p_p_unsigned_int swig_types[74]
723 #define SWIGTYPE_p_unsigned_int swig_types[75]
724 #define SWIGTYPE_p_p_unsigned_char swig_types[76]
725 #define SWIGTYPE_p_XClientMessageEvent swig_types[77]
726 #define SWIGTYPE_p_XGraphicsExposeEvent swig_types[78]
727 #define SWIGTYPE_p_XExposeEvent swig_types[79]
728 #define SWIGTYPE_p_XFocusChangeEvent swig_types[80]
729 #define SWIGTYPE_p_XNoExposeEvent swig_types[81]
730 #define SWIGTYPE_p_XMapEvent swig_types[82]
731 #define SWIGTYPE_p_XUnmapEvent swig_types[83]
732 #define SWIGTYPE_p_XColormapEvent swig_types[84]
733 static swig_type_info *swig_types[86];
734
735 /* -------- TYPES TABLE (END) -------- */
736
737
738 /*-----------------------------------------------
739 @(target):= _otk.so
740 ------------------------------------------------*/
741 #define SWIG_init init_otk
742
743 #define SWIG_name "_otk"
744
745 #ifdef HAVE_CONFIG_H
746 # include "../config.h"
747 #endif
748
749 #include "application.hh"
750 #include "appwidget.hh"
751 #include "assassin.hh"
752 #include "button.hh"
753 #include "color.hh"
754 #include "configuration.hh"
755 #include "display.hh"
756 #include "eventdispatcher.hh"
757 #include "eventhandler.hh"
758 #include "focuslabel.hh"
759 #include "focuswidget.hh"
760 #include "font.hh"
761 #include "gccache.hh"
762 #include "image.hh"
763 #include "label.hh"
764 #include "point.hh"
765 #include "property.hh"
766 #include "rect.hh"
767 #include "screeninfo.hh"
768 #include "strut.hh"
769 #include "style.hh"
770 #include "texture.hh"
771 #include "timer.hh"
772 #include "timerqueue.hh"
773 #include "timerqueuemanager.hh"
774 #include "util.hh"
775 #include "widget.hh"
776
777
778 #define SWIG_MemoryError 1
779 #define SWIG_IOError 2
780 #define SWIG_RuntimeError 3
781 #define SWIG_IndexError 4
782 #define SWIG_TypeError 5
783 #define SWIG_DivisionByZero 6
784 #define SWIG_OverflowError 7
785 #define SWIG_SyntaxError 8
786 #define SWIG_ValueError 9
787 #define SWIG_SystemError 10
788 #define SWIG_UnknownError 99
789
790
791 static void _SWIG_exception(int code, const char *msg) {
792 switch(code) {
793 case SWIG_MemoryError:
794 PyErr_SetString(PyExc_MemoryError,msg);
795 break;
796 case SWIG_IOError:
797 PyErr_SetString(PyExc_IOError,msg);
798 break;
799 case SWIG_RuntimeError:
800 PyErr_SetString(PyExc_RuntimeError,msg);
801 break;
802 case SWIG_IndexError:
803 PyErr_SetString(PyExc_IndexError,msg);
804 break;
805 case SWIG_TypeError:
806 PyErr_SetString(PyExc_TypeError,msg);
807 break;
808 case SWIG_DivisionByZero:
809 PyErr_SetString(PyExc_ZeroDivisionError,msg);
810 break;
811 case SWIG_OverflowError:
812 PyErr_SetString(PyExc_OverflowError,msg);
813 break;
814 case SWIG_SyntaxError:
815 PyErr_SetString(PyExc_SyntaxError,msg);
816 break;
817 case SWIG_ValueError:
818 PyErr_SetString(PyExc_ValueError,msg);
819 break;
820 case SWIG_SystemError:
821 PyErr_SetString(PyExc_SystemError,msg);
822 break;
823 default:
824 PyErr_SetString(PyExc_RuntimeError,msg);
825 break;
826 }
827 }
828
829 #define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
830
831
832 #include <string>
833
834
835 #include <string>
836
837 PyObject* SwigInt_FromBool(bool b) {
838 return PyInt_FromLong(b ? 1L : 0L);
839 }
840 double SwigNumber_Check(PyObject* o) {
841 return PyFloat_Check(o) || PyInt_Check(o);
842 }
843 double SwigNumber_AsDouble(PyObject* o) {
844 return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o)));
845 }
846 PyObject* SwigString_FromString(const std::string& s) {
847 return PyString_FromString(s.c_str());
848 }
849 std::string SwigString_AsString(PyObject* o) {
850 return std::string(PyString_AsString(o));
851 }
852
853
854 #include <vector>
855 #include <algorithm>
856 #include <stdexcept>
857
858 #ifdef __cplusplus
859 extern "C" {
860 #endif
861 static PyObject *_wrap_new_OtkEventDispatcher(PyObject *self, PyObject *args) {
862 PyObject *resultobj;
863 otk::OtkEventDispatcher *result;
864
865 if(!PyArg_ParseTuple(args,(char *)":new_OtkEventDispatcher")) goto fail;
866 result = (otk::OtkEventDispatcher *)new otk::OtkEventDispatcher();
867
868 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventDispatcher, 1);
869 return resultobj;
870 fail:
871 return NULL;
872 }
873
874
875 static PyObject *_wrap_delete_OtkEventDispatcher(PyObject *self, PyObject *args) {
876 PyObject *resultobj;
877 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
878 PyObject * obj0 = 0 ;
879
880 if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkEventDispatcher",&obj0)) goto fail;
881 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
882 delete arg1;
883
884 Py_INCREF(Py_None); resultobj = Py_None;
885 return resultobj;
886 fail:
887 return NULL;
888 }
889
890
891 static PyObject *_wrap_OtkEventDispatcher_clearAllHandlers(PyObject *self, PyObject *args) {
892 PyObject *resultobj;
893 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
894 PyObject * obj0 = 0 ;
895
896 if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_clearAllHandlers",&obj0)) goto fail;
897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
898 (arg1)->clearAllHandlers();
899
900 Py_INCREF(Py_None); resultobj = Py_None;
901 return resultobj;
902 fail:
903 return NULL;
904 }
905
906
907 static PyObject *_wrap_OtkEventDispatcher_registerHandler(PyObject *self, PyObject *args) {
908 PyObject *resultobj;
909 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
910 Window arg2 ;
911 otk::OtkEventHandler *arg3 = (otk::OtkEventHandler *) 0 ;
912 Window *argp2 ;
913 PyObject * obj0 = 0 ;
914 PyObject * obj1 = 0 ;
915 PyObject * obj2 = 0 ;
916
917 if(!PyArg_ParseTuple(args,(char *)"OOO:OtkEventDispatcher_registerHandler",&obj0,&obj1,&obj2)) goto fail;
918 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
919 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
920 arg2 = *argp2;
921 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
922 (arg1)->registerHandler(arg2,arg3);
923
924 Py_INCREF(Py_None); resultobj = Py_None;
925 return resultobj;
926 fail:
927 return NULL;
928 }
929
930
931 static PyObject *_wrap_OtkEventDispatcher_clearHandler(PyObject *self, PyObject *args) {
932 PyObject *resultobj;
933 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
934 Window arg2 ;
935 Window *argp2 ;
936 PyObject * obj0 = 0 ;
937 PyObject * obj1 = 0 ;
938
939 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_clearHandler",&obj0,&obj1)) goto fail;
940 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
941 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
942 arg2 = *argp2;
943 (arg1)->clearHandler(arg2);
944
945 Py_INCREF(Py_None); resultobj = Py_None;
946 return resultobj;
947 fail:
948 return NULL;
949 }
950
951
952 static PyObject *_wrap_OtkEventDispatcher_dispatchEvents(PyObject *self, PyObject *args) {
953 PyObject *resultobj;
954 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
955 PyObject * obj0 = 0 ;
956
957 if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_dispatchEvents",&obj0)) goto fail;
958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
959 (arg1)->dispatchEvents();
960
961 Py_INCREF(Py_None); resultobj = Py_None;
962 return resultobj;
963 fail:
964 return NULL;
965 }
966
967
968 static PyObject *_wrap_OtkEventDispatcher_setFallbackHandler(PyObject *self, PyObject *args) {
969 PyObject *resultobj;
970 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
971 otk::OtkEventHandler *arg2 = (otk::OtkEventHandler *) 0 ;
972 PyObject * obj0 = 0 ;
973 PyObject * obj1 = 0 ;
974
975 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_setFallbackHandler",&obj0,&obj1)) goto fail;
976 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
977 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
978 (arg1)->setFallbackHandler(arg2);
979
980 Py_INCREF(Py_None); resultobj = Py_None;
981 return resultobj;
982 fail:
983 return NULL;
984 }
985
986
987 static PyObject *_wrap_OtkEventDispatcher_getFallbackHandler(PyObject *self, PyObject *args) {
988 PyObject *resultobj;
989 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
990 otk::OtkEventHandler *result;
991 PyObject * obj0 = 0 ;
992
993 if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_getFallbackHandler",&obj0)) goto fail;
994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
995 result = (otk::OtkEventHandler *)((otk::OtkEventDispatcher const *)arg1)->getFallbackHandler();
996
997 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventHandler, 0);
998 return resultobj;
999 fail:
1000 return NULL;
1001 }
1002
1003
1004 static PyObject *_wrap_OtkEventDispatcher_setMasterHandler(PyObject *self, PyObject *args) {
1005 PyObject *resultobj;
1006 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
1007 otk::OtkEventHandler *arg2 = (otk::OtkEventHandler *) 0 ;
1008 PyObject * obj0 = 0 ;
1009 PyObject * obj1 = 0 ;
1010
1011 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_setMasterHandler",&obj0,&obj1)) goto fail;
1012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1013 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1014 (arg1)->setMasterHandler(arg2);
1015
1016 Py_INCREF(Py_None); resultobj = Py_None;
1017 return resultobj;
1018 fail:
1019 return NULL;
1020 }
1021
1022
1023 static PyObject *_wrap_OtkEventDispatcher_getMasterHandler(PyObject *self, PyObject *args) {
1024 PyObject *resultobj;
1025 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
1026 otk::OtkEventHandler *result;
1027 PyObject * obj0 = 0 ;
1028
1029 if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_getMasterHandler",&obj0)) goto fail;
1030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1031 result = (otk::OtkEventHandler *)((otk::OtkEventDispatcher const *)arg1)->getMasterHandler();
1032
1033 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventHandler, 0);
1034 return resultobj;
1035 fail:
1036 return NULL;
1037 }
1038
1039
1040 static PyObject *_wrap_OtkEventDispatcher_findHandler(PyObject *self, PyObject *args) {
1041 PyObject *resultobj;
1042 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
1043 Window arg2 ;
1044 otk::OtkEventHandler *result;
1045 Window *argp2 ;
1046 PyObject * obj0 = 0 ;
1047 PyObject * obj1 = 0 ;
1048
1049 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_findHandler",&obj0,&obj1)) goto fail;
1050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1051 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
1052 arg2 = *argp2;
1053 result = (otk::OtkEventHandler *)(arg1)->findHandler(arg2);
1054
1055 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventHandler, 0);
1056 return resultobj;
1057 fail:
1058 return NULL;
1059 }
1060
1061
1062 static PyObject * OtkEventDispatcher_swigregister(PyObject *self, PyObject *args) {
1063 PyObject *obj;
1064 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1065 SWIG_TypeClientData(SWIGTYPE_p_otk__OtkEventDispatcher, obj);
1066 Py_INCREF(obj);
1067 return Py_BuildValue((char *)"");
1068 }
1069 static PyObject *_wrap_OtkEventHandler_handle(PyObject *self, PyObject *args) {
1070 PyObject *resultobj;
1071 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1072 XEvent *arg2 = 0 ;
1073 PyObject * obj0 = 0 ;
1074 PyObject * obj1 = 0 ;
1075
1076 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_handle",&obj0,&obj1)) goto fail;
1077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1078 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1079 if (arg2 == NULL) {
1080 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1081 }
1082 (arg1)->handle((XEvent const &)*arg2);
1083
1084 Py_INCREF(Py_None); resultobj = Py_None;
1085 return resultobj;
1086 fail:
1087 return NULL;
1088 }
1089
1090
1091 static PyObject *_wrap_OtkEventHandler_keyPressHandler(PyObject *self, PyObject *args) {
1092 PyObject *resultobj;
1093 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1094 XKeyEvent *arg2 = 0 ;
1095 PyObject * obj0 = 0 ;
1096 PyObject * obj1 = 0 ;
1097
1098 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_keyPressHandler",&obj0,&obj1)) goto fail;
1099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1100 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1101 if (arg2 == NULL) {
1102 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1103 }
1104 (arg1)->keyPressHandler((XKeyEvent const &)*arg2);
1105
1106 Py_INCREF(Py_None); resultobj = Py_None;
1107 return resultobj;
1108 fail:
1109 return NULL;
1110 }
1111
1112
1113 static PyObject *_wrap_OtkEventHandler_keyReleaseHandler(PyObject *self, PyObject *args) {
1114 PyObject *resultobj;
1115 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1116 XKeyEvent *arg2 = 0 ;
1117 PyObject * obj0 = 0 ;
1118 PyObject * obj1 = 0 ;
1119
1120 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_keyReleaseHandler",&obj0,&obj1)) goto fail;
1121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1122 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1123 if (arg2 == NULL) {
1124 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1125 }
1126 (arg1)->keyReleaseHandler((XKeyEvent const &)*arg2);
1127
1128 Py_INCREF(Py_None); resultobj = Py_None;
1129 return resultobj;
1130 fail:
1131 return NULL;
1132 }
1133
1134
1135 static PyObject *_wrap_OtkEventHandler_buttonPressHandler(PyObject *self, PyObject *args) {
1136 PyObject *resultobj;
1137 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1138 XButtonEvent *arg2 = 0 ;
1139 PyObject * obj0 = 0 ;
1140 PyObject * obj1 = 0 ;
1141
1142 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_buttonPressHandler",&obj0,&obj1)) goto fail;
1143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1144 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1145 if (arg2 == NULL) {
1146 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1147 }
1148 (arg1)->buttonPressHandler((XButtonEvent const &)*arg2);
1149
1150 Py_INCREF(Py_None); resultobj = Py_None;
1151 return resultobj;
1152 fail:
1153 return NULL;
1154 }
1155
1156
1157 static PyObject *_wrap_OtkEventHandler_buttonReleaseHandler(PyObject *self, PyObject *args) {
1158 PyObject *resultobj;
1159 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1160 XButtonEvent *arg2 = 0 ;
1161 PyObject * obj0 = 0 ;
1162 PyObject * obj1 = 0 ;
1163
1164 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_buttonReleaseHandler",&obj0,&obj1)) goto fail;
1165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1166 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1167 if (arg2 == NULL) {
1168 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1169 }
1170 (arg1)->buttonReleaseHandler((XButtonEvent const &)*arg2);
1171
1172 Py_INCREF(Py_None); resultobj = Py_None;
1173 return resultobj;
1174 fail:
1175 return NULL;
1176 }
1177
1178
1179 static PyObject *_wrap_OtkEventHandler_motionHandler(PyObject *self, PyObject *args) {
1180 PyObject *resultobj;
1181 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1182 XMotionEvent *arg2 = 0 ;
1183 PyObject * obj0 = 0 ;
1184 PyObject * obj1 = 0 ;
1185
1186 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_motionHandler",&obj0,&obj1)) goto fail;
1187 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1188 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMotionEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1189 if (arg2 == NULL) {
1190 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1191 }
1192 (arg1)->motionHandler((XMotionEvent const &)*arg2);
1193
1194 Py_INCREF(Py_None); resultobj = Py_None;
1195 return resultobj;
1196 fail:
1197 return NULL;
1198 }
1199
1200
1201 static PyObject *_wrap_OtkEventHandler_enterHandler(PyObject *self, PyObject *args) {
1202 PyObject *resultobj;
1203 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1204 XCrossingEvent *arg2 = 0 ;
1205 PyObject * obj0 = 0 ;
1206 PyObject * obj1 = 0 ;
1207
1208 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_enterHandler",&obj0,&obj1)) goto fail;
1209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1210 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCrossingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1211 if (arg2 == NULL) {
1212 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1213 }
1214 (arg1)->enterHandler((XCrossingEvent const &)*arg2);
1215
1216 Py_INCREF(Py_None); resultobj = Py_None;
1217 return resultobj;
1218 fail:
1219 return NULL;
1220 }
1221
1222
1223 static PyObject *_wrap_OtkEventHandler_leaveHandler(PyObject *self, PyObject *args) {
1224 PyObject *resultobj;
1225 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1226 XCrossingEvent *arg2 = 0 ;
1227 PyObject * obj0 = 0 ;
1228 PyObject * obj1 = 0 ;
1229
1230 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_leaveHandler",&obj0,&obj1)) goto fail;
1231 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1232 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCrossingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1233 if (arg2 == NULL) {
1234 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1235 }
1236 (arg1)->leaveHandler((XCrossingEvent const &)*arg2);
1237
1238 Py_INCREF(Py_None); resultobj = Py_None;
1239 return resultobj;
1240 fail:
1241 return NULL;
1242 }
1243
1244
1245 static PyObject *_wrap_OtkEventHandler_focusHandler(PyObject *self, PyObject *args) {
1246 PyObject *resultobj;
1247 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1248 XFocusChangeEvent *arg2 = 0 ;
1249 PyObject * obj0 = 0 ;
1250 PyObject * obj1 = 0 ;
1251
1252 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_focusHandler",&obj0,&obj1)) goto fail;
1253 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1254 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1255 if (arg2 == NULL) {
1256 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1257 }
1258 (arg1)->focusHandler((XFocusChangeEvent const &)*arg2);
1259
1260 Py_INCREF(Py_None); resultobj = Py_None;
1261 return resultobj;
1262 fail:
1263 return NULL;
1264 }
1265
1266
1267 static PyObject *_wrap_OtkEventHandler_unfocusHandler(PyObject *self, PyObject *args) {
1268 PyObject *resultobj;
1269 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1270 XFocusChangeEvent *arg2 = 0 ;
1271 PyObject * obj0 = 0 ;
1272 PyObject * obj1 = 0 ;
1273
1274 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_unfocusHandler",&obj0,&obj1)) goto fail;
1275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1276 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1277 if (arg2 == NULL) {
1278 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1279 }
1280 (arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2);
1281
1282 Py_INCREF(Py_None); resultobj = Py_None;
1283 return resultobj;
1284 fail:
1285 return NULL;
1286 }
1287
1288
1289 static PyObject *_wrap_OtkEventHandler_exposeHandler(PyObject *self, PyObject *args) {
1290 PyObject *resultobj;
1291 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1292 XExposeEvent *arg2 = 0 ;
1293 PyObject * obj0 = 0 ;
1294 PyObject * obj1 = 0 ;
1295
1296 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_exposeHandler",&obj0,&obj1)) goto fail;
1297 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1298 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1299 if (arg2 == NULL) {
1300 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1301 }
1302 (arg1)->exposeHandler((XExposeEvent const &)*arg2);
1303
1304 Py_INCREF(Py_None); resultobj = Py_None;
1305 return resultobj;
1306 fail:
1307 return NULL;
1308 }
1309
1310
1311 static PyObject *_wrap_OtkEventHandler_graphicsExposeHandler(PyObject *self, PyObject *args) {
1312 PyObject *resultobj;
1313 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1314 XGraphicsExposeEvent *arg2 = 0 ;
1315 PyObject * obj0 = 0 ;
1316 PyObject * obj1 = 0 ;
1317
1318 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_graphicsExposeHandler",&obj0,&obj1)) goto fail;
1319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1320 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XGraphicsExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1321 if (arg2 == NULL) {
1322 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1323 }
1324 (arg1)->graphicsExposeHandler((XGraphicsExposeEvent const &)*arg2);
1325
1326 Py_INCREF(Py_None); resultobj = Py_None;
1327 return resultobj;
1328 fail:
1329 return NULL;
1330 }
1331
1332
1333 static PyObject *_wrap_OtkEventHandler_noExposeEventHandler(PyObject *self, PyObject *args) {
1334 PyObject *resultobj;
1335 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1336 XNoExposeEvent *arg2 = 0 ;
1337 PyObject * obj0 = 0 ;
1338 PyObject * obj1 = 0 ;
1339
1340 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_noExposeEventHandler",&obj0,&obj1)) goto fail;
1341 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1342 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XNoExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1343 if (arg2 == NULL) {
1344 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1345 }
1346 (arg1)->noExposeEventHandler((XNoExposeEvent const &)*arg2);
1347
1348 Py_INCREF(Py_None); resultobj = Py_None;
1349 return resultobj;
1350 fail:
1351 return NULL;
1352 }
1353
1354
1355 static PyObject *_wrap_OtkEventHandler_circulateRequestHandler(PyObject *self, PyObject *args) {
1356 PyObject *resultobj;
1357 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1358 XCirculateRequestEvent *arg2 = 0 ;
1359 PyObject * obj0 = 0 ;
1360 PyObject * obj1 = 0 ;
1361
1362 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_circulateRequestHandler",&obj0,&obj1)) goto fail;
1363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1364 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCirculateRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1365 if (arg2 == NULL) {
1366 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1367 }
1368 (arg1)->circulateRequestHandler((XCirculateRequestEvent const &)*arg2);
1369
1370 Py_INCREF(Py_None); resultobj = Py_None;
1371 return resultobj;
1372 fail:
1373 return NULL;
1374 }
1375
1376
1377 static PyObject *_wrap_OtkEventHandler_configureRequestHandler(PyObject *self, PyObject *args) {
1378 PyObject *resultobj;
1379 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1380 XConfigureRequestEvent *arg2 = 0 ;
1381 PyObject * obj0 = 0 ;
1382 PyObject * obj1 = 0 ;
1383
1384 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_configureRequestHandler",&obj0,&obj1)) goto fail;
1385 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1386 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1387 if (arg2 == NULL) {
1388 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1389 }
1390 (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2);
1391
1392 Py_INCREF(Py_None); resultobj = Py_None;
1393 return resultobj;
1394 fail:
1395 return NULL;
1396 }
1397
1398
1399 static PyObject *_wrap_OtkEventHandler_mapRequestHandler(PyObject *self, PyObject *args) {
1400 PyObject *resultobj;
1401 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1402 XMapRequestEvent *arg2 = 0 ;
1403 PyObject * obj0 = 0 ;
1404 PyObject * obj1 = 0 ;
1405
1406 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_mapRequestHandler",&obj0,&obj1)) goto fail;
1407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1408 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1409 if (arg2 == NULL) {
1410 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1411 }
1412 (arg1)->mapRequestHandler((XMapRequestEvent const &)*arg2);
1413
1414 Py_INCREF(Py_None); resultobj = Py_None;
1415 return resultobj;
1416 fail:
1417 return NULL;
1418 }
1419
1420
1421 static PyObject *_wrap_OtkEventHandler_resizeRequestHandler(PyObject *self, PyObject *args) {
1422 PyObject *resultobj;
1423 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1424 XResizeRequestEvent *arg2 = 0 ;
1425 PyObject * obj0 = 0 ;
1426 PyObject * obj1 = 0 ;
1427
1428 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_resizeRequestHandler",&obj0,&obj1)) goto fail;
1429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1430 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XResizeRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1431 if (arg2 == NULL) {
1432 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1433 }
1434 (arg1)->resizeRequestHandler((XResizeRequestEvent const &)*arg2);
1435
1436 Py_INCREF(Py_None); resultobj = Py_None;
1437 return resultobj;
1438 fail:
1439 return NULL;
1440 }
1441
1442
1443 static PyObject *_wrap_OtkEventHandler_circulateHandler(PyObject *self, PyObject *args) {
1444 PyObject *resultobj;
1445 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1446 XCirculateEvent *arg2 = 0 ;
1447 PyObject * obj0 = 0 ;
1448 PyObject * obj1 = 0 ;
1449
1450 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_circulateHandler",&obj0,&obj1)) goto fail;
1451 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1452 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCirculateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1453 if (arg2 == NULL) {
1454 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1455 }
1456 (arg1)->circulateHandler((XCirculateEvent const &)*arg2);
1457
1458 Py_INCREF(Py_None); resultobj = Py_None;
1459 return resultobj;
1460 fail:
1461 return NULL;
1462 }
1463
1464
1465 static PyObject *_wrap_OtkEventHandler_configureHandler(PyObject *self, PyObject *args) {
1466 PyObject *resultobj;
1467 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1468 XConfigureEvent *arg2 = 0 ;
1469 PyObject * obj0 = 0 ;
1470 PyObject * obj1 = 0 ;
1471
1472 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_configureHandler",&obj0,&obj1)) goto fail;
1473 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1474 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1475 if (arg2 == NULL) {
1476 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1477 }
1478 (arg1)->configureHandler((XConfigureEvent const &)*arg2);
1479
1480 Py_INCREF(Py_None); resultobj = Py_None;
1481 return resultobj;
1482 fail:
1483 return NULL;
1484 }
1485
1486
1487 static PyObject *_wrap_OtkEventHandler_createHandler(PyObject *self, PyObject *args) {
1488 PyObject *resultobj;
1489 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1490 XCreateWindowEvent *arg2 = 0 ;
1491 PyObject * obj0 = 0 ;
1492 PyObject * obj1 = 0 ;
1493
1494 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_createHandler",&obj0,&obj1)) goto fail;
1495 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1496 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCreateWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1497 if (arg2 == NULL) {
1498 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1499 }
1500 (arg1)->createHandler((XCreateWindowEvent const &)*arg2);
1501
1502 Py_INCREF(Py_None); resultobj = Py_None;
1503 return resultobj;
1504 fail:
1505 return NULL;
1506 }
1507
1508
1509 static PyObject *_wrap_OtkEventHandler_destroyHandler(PyObject *self, PyObject *args) {
1510 PyObject *resultobj;
1511 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1512 XDestroyWindowEvent *arg2 = 0 ;
1513 PyObject * obj0 = 0 ;
1514 PyObject * obj1 = 0 ;
1515
1516 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_destroyHandler",&obj0,&obj1)) goto fail;
1517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1518 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1519 if (arg2 == NULL) {
1520 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1521 }
1522 (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2);
1523
1524 Py_INCREF(Py_None); resultobj = Py_None;
1525 return resultobj;
1526 fail:
1527 return NULL;
1528 }
1529
1530
1531 static PyObject *_wrap_OtkEventHandler_gravityHandler(PyObject *self, PyObject *args) {
1532 PyObject *resultobj;
1533 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1534 XGravityEvent *arg2 = 0 ;
1535 PyObject * obj0 = 0 ;
1536 PyObject * obj1 = 0 ;
1537
1538 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_gravityHandler",&obj0,&obj1)) goto fail;
1539 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1540 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XGravityEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1541 if (arg2 == NULL) {
1542 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1543 }
1544 (arg1)->gravityHandler((XGravityEvent const &)*arg2);
1545
1546 Py_INCREF(Py_None); resultobj = Py_None;
1547 return resultobj;
1548 fail:
1549 return NULL;
1550 }
1551
1552
1553 static PyObject *_wrap_OtkEventHandler_mapHandler(PyObject *self, PyObject *args) {
1554 PyObject *resultobj;
1555 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1556 XMapEvent *arg2 = 0 ;
1557 PyObject * obj0 = 0 ;
1558 PyObject * obj1 = 0 ;
1559
1560 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_mapHandler",&obj0,&obj1)) goto fail;
1561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1562 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1563 if (arg2 == NULL) {
1564 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1565 }
1566 (arg1)->mapHandler((XMapEvent const &)*arg2);
1567
1568 Py_INCREF(Py_None); resultobj = Py_None;
1569 return resultobj;
1570 fail:
1571 return NULL;
1572 }
1573
1574
1575 static PyObject *_wrap_OtkEventHandler_mappingHandler(PyObject *self, PyObject *args) {
1576 PyObject *resultobj;
1577 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1578 XMappingEvent *arg2 = 0 ;
1579 PyObject * obj0 = 0 ;
1580 PyObject * obj1 = 0 ;
1581
1582 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_mappingHandler",&obj0,&obj1)) goto fail;
1583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1584 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMappingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1585 if (arg2 == NULL) {
1586 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1587 }
1588 (arg1)->mappingHandler((XMappingEvent const &)*arg2);
1589
1590 Py_INCREF(Py_None); resultobj = Py_None;
1591 return resultobj;
1592 fail:
1593 return NULL;
1594 }
1595
1596
1597 static PyObject *_wrap_OtkEventHandler_reparentHandler(PyObject *self, PyObject *args) {
1598 PyObject *resultobj;
1599 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1600 XReparentEvent *arg2 = 0 ;
1601 PyObject * obj0 = 0 ;
1602 PyObject * obj1 = 0 ;
1603
1604 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_reparentHandler",&obj0,&obj1)) goto fail;
1605 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1606 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1607 if (arg2 == NULL) {
1608 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1609 }
1610 (arg1)->reparentHandler((XReparentEvent const &)*arg2);
1611
1612 Py_INCREF(Py_None); resultobj = Py_None;
1613 return resultobj;
1614 fail:
1615 return NULL;
1616 }
1617
1618
1619 static PyObject *_wrap_OtkEventHandler_unmapHandler(PyObject *self, PyObject *args) {
1620 PyObject *resultobj;
1621 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1622 XUnmapEvent *arg2 = 0 ;
1623 PyObject * obj0 = 0 ;
1624 PyObject * obj1 = 0 ;
1625
1626 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_unmapHandler",&obj0,&obj1)) goto fail;
1627 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1628 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1629 if (arg2 == NULL) {
1630 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1631 }
1632 (arg1)->unmapHandler((XUnmapEvent const &)*arg2);
1633
1634 Py_INCREF(Py_None); resultobj = Py_None;
1635 return resultobj;
1636 fail:
1637 return NULL;
1638 }
1639
1640
1641 static PyObject *_wrap_OtkEventHandler_visibilityHandler(PyObject *self, PyObject *args) {
1642 PyObject *resultobj;
1643 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1644 XVisibilityEvent *arg2 = 0 ;
1645 PyObject * obj0 = 0 ;
1646 PyObject * obj1 = 0 ;
1647
1648 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_visibilityHandler",&obj0,&obj1)) goto fail;
1649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1650 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XVisibilityEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1651 if (arg2 == NULL) {
1652 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1653 }
1654 (arg1)->visibilityHandler((XVisibilityEvent const &)*arg2);
1655
1656 Py_INCREF(Py_None); resultobj = Py_None;
1657 return resultobj;
1658 fail:
1659 return NULL;
1660 }
1661
1662
1663 static PyObject *_wrap_OtkEventHandler_colorMapHandler(PyObject *self, PyObject *args) {
1664 PyObject *resultobj;
1665 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1666 XColormapEvent *arg2 = 0 ;
1667 PyObject * obj0 = 0 ;
1668 PyObject * obj1 = 0 ;
1669
1670 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_colorMapHandler",&obj0,&obj1)) goto fail;
1671 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1672 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XColormapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1673 if (arg2 == NULL) {
1674 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1675 }
1676 (arg1)->colorMapHandler((XColormapEvent const &)*arg2);
1677
1678 Py_INCREF(Py_None); resultobj = Py_None;
1679 return resultobj;
1680 fail:
1681 return NULL;
1682 }
1683
1684
1685 static PyObject *_wrap_OtkEventHandler_propertyHandler(PyObject *self, PyObject *args) {
1686 PyObject *resultobj;
1687 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1688 XPropertyEvent *arg2 = 0 ;
1689 PyObject * obj0 = 0 ;
1690 PyObject * obj1 = 0 ;
1691
1692 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_propertyHandler",&obj0,&obj1)) goto fail;
1693 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1694 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1695 if (arg2 == NULL) {
1696 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1697 }
1698 (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
1699
1700 Py_INCREF(Py_None); resultobj = Py_None;
1701 return resultobj;
1702 fail:
1703 return NULL;
1704 }
1705
1706
1707 static PyObject *_wrap_OtkEventHandler_selectionClearHandler(PyObject *self, PyObject *args) {
1708 PyObject *resultobj;
1709 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1710 XSelectionClearEvent *arg2 = 0 ;
1711 PyObject * obj0 = 0 ;
1712 PyObject * obj1 = 0 ;
1713
1714 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_selectionClearHandler",&obj0,&obj1)) goto fail;
1715 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1716 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionClearEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1717 if (arg2 == NULL) {
1718 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1719 }
1720 (arg1)->selectionClearHandler((XSelectionClearEvent const &)*arg2);
1721
1722 Py_INCREF(Py_None); resultobj = Py_None;
1723 return resultobj;
1724 fail:
1725 return NULL;
1726 }
1727
1728
1729 static PyObject *_wrap_OtkEventHandler_selectionHandler(PyObject *self, PyObject *args) {
1730 PyObject *resultobj;
1731 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1732 XSelectionEvent *arg2 = 0 ;
1733 PyObject * obj0 = 0 ;
1734 PyObject * obj1 = 0 ;
1735
1736 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_selectionHandler",&obj0,&obj1)) goto fail;
1737 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1738 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1739 if (arg2 == NULL) {
1740 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1741 }
1742 (arg1)->selectionHandler((XSelectionEvent const &)*arg2);
1743
1744 Py_INCREF(Py_None); resultobj = Py_None;
1745 return resultobj;
1746 fail:
1747 return NULL;
1748 }
1749
1750
1751 static PyObject *_wrap_OtkEventHandler_selectionRequestHandler(PyObject *self, PyObject *args) {
1752 PyObject *resultobj;
1753 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1754 XSelectionRequestEvent *arg2 = 0 ;
1755 PyObject * obj0 = 0 ;
1756 PyObject * obj1 = 0 ;
1757
1758 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_selectionRequestHandler",&obj0,&obj1)) goto fail;
1759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1760 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1761 if (arg2 == NULL) {
1762 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1763 }
1764 (arg1)->selectionRequestHandler((XSelectionRequestEvent const &)*arg2);
1765
1766 Py_INCREF(Py_None); resultobj = Py_None;
1767 return resultobj;
1768 fail:
1769 return NULL;
1770 }
1771
1772
1773 static PyObject *_wrap_OtkEventHandler_clientMessageHandler(PyObject *self, PyObject *args) {
1774 PyObject *resultobj;
1775 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1776 XClientMessageEvent *arg2 = 0 ;
1777 PyObject * obj0 = 0 ;
1778 PyObject * obj1 = 0 ;
1779
1780 if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_clientMessageHandler",&obj0,&obj1)) goto fail;
1781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1782 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1783 if (arg2 == NULL) {
1784 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1785 }
1786 (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
1787
1788 Py_INCREF(Py_None); resultobj = Py_None;
1789 return resultobj;
1790 fail:
1791 return NULL;
1792 }
1793
1794
1795 static PyObject *_wrap_delete_OtkEventHandler(PyObject *self, PyObject *args) {
1796 PyObject *resultobj;
1797 otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
1798 PyObject * obj0 = 0 ;
1799
1800 if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkEventHandler",&obj0)) goto fail;
1801 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1802 delete arg1;
1803
1804 Py_INCREF(Py_None); resultobj = Py_None;
1805 return resultobj;
1806 fail:
1807 return NULL;
1808 }
1809
1810
1811 static PyObject * OtkEventHandler_swigregister(PyObject *self, PyObject *args) {
1812 PyObject *obj;
1813 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1814 SWIG_TypeClientData(SWIGTYPE_p_otk__OtkEventHandler, obj);
1815 Py_INCREF(obj);
1816 return Py_BuildValue((char *)"");
1817 }
1818 static PyObject *_wrap_new_OtkWidget__SWIG_0(PyObject *self, PyObject *args) {
1819 PyObject *resultobj;
1820 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
1821 int arg2 = (int) otk::OtkWidget::Horizontal ;
1822 otk::OtkWidget *result;
1823 PyObject * obj0 = 0 ;
1824
1825 if(!PyArg_ParseTuple(args,(char *)"O|i:new_OtkWidget",&obj0,&arg2)) goto fail;
1826 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1827 result = (otk::OtkWidget *)new otk::OtkWidget(arg1,(otk::OtkWidget::Direction )arg2);
1828
1829 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkWidget, 1);
1830 return resultobj;
1831 fail:
1832 return NULL;
1833 }
1834
1835
1836 static PyObject *_wrap_new_OtkWidget__SWIG_1(PyObject *self, PyObject *args) {
1837 PyObject *resultobj;
1838 otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
1839 otk::Style *arg2 = (otk::Style *) 0 ;
1840 int arg3 = (int) otk::OtkWidget::Horizontal ;
1841 Cursor arg4 = (Cursor) 0 ;
1842 int arg5 = (int) 1 ;
1843 otk::OtkWidget *result;
1844 Cursor *argp4 ;
1845 PyObject * obj0 = 0 ;
1846 PyObject * obj1 = 0 ;
1847 PyObject * obj3 = 0 ;
1848
1849 if(!PyArg_ParseTuple(args,(char *)"OO|iOi:new_OtkWidget",&obj0,&obj1,&arg3,&obj3,&arg5)) goto fail;
1850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1851 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1852 if (obj3) {
1853 if ((SWIG_ConvertPtr(obj3,(void **) &argp4, SWIGTYPE_p_Cursor,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
1854 arg4 = *argp4;
1855 }
1856 result = (otk::OtkWidget *)new otk::OtkWidget(arg1,arg2,(otk::OtkWidget::Direction )arg3,arg4,arg5);
1857
1858 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkWidget, 1);
1859 return resultobj;
1860 fail:
1861 return NULL;
1862 }
1863
1864
1865 static PyObject *_wrap_new_OtkWidget(PyObject *self, PyObject *args) {
1866 int argc;
1867 PyObject *argv[6];
1868 int ii;
1869
1870 argc = PyObject_Length(args);
1871 for (ii = 0; (ii < argc) && (ii < 5); ii++) {
1872 argv[ii] = PyTuple_GetItem(args,ii);
1873 }
1874 if ((argc >= 1) && (argc <= 2)) {
1875 int _v;
1876 {
1877 void *ptr;
1878 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
1879 _v = 0;
1880 PyErr_Clear();
1881 }else {
1882 _v = 1;
1883 }
1884 }
1885 if (_v) {
1886 if (argc <= 1) {
1887 return _wrap_new_OtkWidget__SWIG_0(self,args);
1888 }
1889 {
1890 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
1891 }
1892 if (_v) {
1893 return _wrap_new_OtkWidget__SWIG_0(self,args);
1894 }
1895 }
1896 }
1897 if ((argc >= 2) && (argc <= 5)) {
1898 int _v;
1899 {
1900 void *ptr;
1901 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkEventDispatcher, 0) == -1) {
1902 _v = 0;
1903 PyErr_Clear();
1904 }else {
1905 _v = 1;
1906 }
1907 }
1908 if (_v) {
1909 {
1910 void *ptr;
1911 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Style, 0) == -1) {
1912 _v = 0;
1913 PyErr_Clear();
1914 }else {
1915 _v = 1;
1916 }
1917 }
1918 if (_v) {
1919 if (argc <= 2) {
1920 return _wrap_new_OtkWidget__SWIG_1(self,args);
1921 }
1922 {
1923 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
1924 }
1925 if (_v) {
1926 if (argc <= 3) {
1927 return _wrap_new_OtkWidget__SWIG_1(self,args);
1928 }
1929 {
1930 void *ptr;
1931 if (SWIG_ConvertPtr(argv[3], (void **) &ptr, SWIGTYPE_p_Cursor, 0) == -1) {
1932 _v = 0;
1933 PyErr_Clear();
1934 }else {
1935 _v = 1;
1936 }
1937 }
1938 if (_v) {
1939 if (argc <= 4) {
1940 return _wrap_new_OtkWidget__SWIG_1(self,args);
1941 }
1942 {
1943 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
1944 }
1945 if (_v) {
1946 return _wrap_new_OtkWidget__SWIG_1(self,args);
1947 }
1948 }
1949 }
1950 }
1951 }
1952 }
1953
1954 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_OtkWidget'");
1955 return NULL;
1956 }
1957
1958
1959 static PyObject *_wrap_delete_OtkWidget(PyObject *self, PyObject *args) {
1960 PyObject *resultobj;
1961 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
1962 PyObject * obj0 = 0 ;
1963
1964 if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkWidget",&obj0)) goto fail;
1965 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1966 delete arg1;
1967
1968 Py_INCREF(Py_None); resultobj = Py_None;
1969 return resultobj;
1970 fail:
1971 return NULL;
1972 }
1973
1974
1975 static PyObject *_wrap_OtkWidget_update(PyObject *self, PyObject *args) {
1976 PyObject *resultobj;
1977 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
1978 PyObject * obj0 = 0 ;
1979
1980 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_update",&obj0)) goto fail;
1981 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1982 (arg1)->update();
1983
1984 Py_INCREF(Py_None); resultobj = Py_None;
1985 return resultobj;
1986 fail:
1987 return NULL;
1988 }
1989
1990
1991 static PyObject *_wrap_OtkWidget_exposeHandler(PyObject *self, PyObject *args) {
1992 PyObject *resultobj;
1993 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
1994 XExposeEvent *arg2 = 0 ;
1995 PyObject * obj0 = 0 ;
1996 PyObject * obj1 = 0 ;
1997
1998 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_exposeHandler",&obj0,&obj1)) goto fail;
1999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2000 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2001 if (arg2 == NULL) {
2002 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2003 }
2004 (arg1)->exposeHandler((XExposeEvent const &)*arg2);
2005
2006 Py_INCREF(Py_None); resultobj = Py_None;
2007 return resultobj;
2008 fail:
2009 return NULL;
2010 }
2011
2012
2013 static PyObject *_wrap_OtkWidget_configureHandler(PyObject *self, PyObject *args) {
2014 PyObject *resultobj;
2015 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2016 XConfigureEvent *arg2 = 0 ;
2017 PyObject * obj0 = 0 ;
2018 PyObject * obj1 = 0 ;
2019
2020 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_configureHandler",&obj0,&obj1)) goto fail;
2021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2022 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2023 if (arg2 == NULL) {
2024 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2025 }
2026 (arg1)->configureHandler((XConfigureEvent const &)*arg2);
2027
2028 Py_INCREF(Py_None); resultobj = Py_None;
2029 return resultobj;
2030 fail:
2031 return NULL;
2032 }
2033
2034
2035 static PyObject *_wrap_OtkWidget_window(PyObject *self, PyObject *args) {
2036 PyObject *resultobj;
2037 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2038 Window result;
2039 PyObject * obj0 = 0 ;
2040
2041 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_window",&obj0)) goto fail;
2042 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2043 result = ((otk::OtkWidget const *)arg1)->window();
2044
2045 {
2046 Window * resultptr;
2047 resultptr = new Window((Window &) result);
2048 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Window, 1);
2049 }
2050 return resultobj;
2051 fail:
2052 return NULL;
2053 }
2054
2055
2056 static PyObject *_wrap_OtkWidget_parent(PyObject *self, PyObject *args) {
2057 PyObject *resultobj;
2058 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2059 otk::OtkWidget *result;
2060 PyObject * obj0 = 0 ;
2061
2062 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_parent",&obj0)) goto fail;
2063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2064 result = (otk::OtkWidget *)((otk::OtkWidget const *)arg1)->parent();
2065
2066 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkWidget, 0);
2067 return resultobj;
2068 fail:
2069 return NULL;
2070 }
2071
2072
2073 static PyObject *_wrap_OtkWidget_children(PyObject *self, PyObject *args) {
2074 PyObject *resultobj;
2075 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2076 otk::OtkWidget::OtkWidgetList *result;
2077 PyObject * obj0 = 0 ;
2078
2079 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_children",&obj0)) goto fail;
2080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2081 {
2082 otk::OtkWidget::OtkWidgetList const &_result_ref = ((otk::OtkWidget const *)arg1)->children();
2083 result = (otk::OtkWidget::OtkWidgetList *) &_result_ref;
2084 }
2085
2086 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkWidget__OtkWidgetList, 0);
2087 return resultobj;
2088 fail:
2089 return NULL;
2090 }
2091
2092
2093 static PyObject *_wrap_OtkWidget_screen(PyObject *self, PyObject *args) {
2094 PyObject *resultobj;
2095 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2096 unsigned int result;
2097 PyObject * obj0 = 0 ;
2098
2099 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_screen",&obj0)) goto fail;
2100 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2101 result = (unsigned int)((otk::OtkWidget const *)arg1)->screen();
2102
2103 resultobj = PyInt_FromLong((long)result);
2104 return resultobj;
2105 fail:
2106 return NULL;
2107 }
2108
2109
2110 static PyObject *_wrap_OtkWidget_rect(PyObject *self, PyObject *args) {
2111 PyObject *resultobj;
2112 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2113 otk::Rect *result;
2114 PyObject * obj0 = 0 ;
2115
2116 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_rect",&obj0)) goto fail;
2117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2118 {
2119 otk::Rect const &_result_ref = ((otk::OtkWidget const *)arg1)->rect();
2120 result = (otk::Rect *) &_result_ref;
2121 }
2122
2123 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
2124 return resultobj;
2125 fail:
2126 return NULL;
2127 }
2128
2129
2130 static PyObject *_wrap_OtkWidget_move__SWIG_0(PyObject *self, PyObject *args) {
2131 PyObject *resultobj;
2132 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2133 otk::Point *arg2 = 0 ;
2134 PyObject * obj0 = 0 ;
2135 PyObject * obj1 = 0 ;
2136
2137 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_move",&obj0,&obj1)) goto fail;
2138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2139 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2140 if (arg2 == NULL) {
2141 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2142 }
2143 (arg1)->move((otk::Point const &)*arg2);
2144
2145 Py_INCREF(Py_None); resultobj = Py_None;
2146 return resultobj;
2147 fail:
2148 return NULL;
2149 }
2150
2151
2152 static PyObject *_wrap_OtkWidget_move__SWIG_1(PyObject *self, PyObject *args) {
2153 PyObject *resultobj;
2154 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2155 int arg2 ;
2156 int arg3 ;
2157 PyObject * obj0 = 0 ;
2158
2159 if(!PyArg_ParseTuple(args,(char *)"Oii:OtkWidget_move",&obj0,&arg2,&arg3)) goto fail;
2160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2161 (arg1)->move(arg2,arg3);
2162
2163 Py_INCREF(Py_None); resultobj = Py_None;
2164 return resultobj;
2165 fail:
2166 return NULL;
2167 }
2168
2169
2170 static PyObject *_wrap_OtkWidget_move(PyObject *self, PyObject *args) {
2171 int argc;
2172 PyObject *argv[4];
2173 int ii;
2174
2175 argc = PyObject_Length(args);
2176 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
2177 argv[ii] = PyTuple_GetItem(args,ii);
2178 }
2179 if (argc == 2) {
2180 int _v;
2181 {
2182 void *ptr;
2183 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
2184 _v = 0;
2185 PyErr_Clear();
2186 }else {
2187 _v = 1;
2188 }
2189 }
2190 if (_v) {
2191 {
2192 void *ptr;
2193 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2194 _v = 0;
2195 PyErr_Clear();
2196 }else {
2197 _v = 1;
2198 }
2199 }
2200 if (_v) {
2201 return _wrap_OtkWidget_move__SWIG_0(self,args);
2202 }
2203 }
2204 }
2205 if (argc == 3) {
2206 int _v;
2207 {
2208 void *ptr;
2209 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
2210 _v = 0;
2211 PyErr_Clear();
2212 }else {
2213 _v = 1;
2214 }
2215 }
2216 if (_v) {
2217 {
2218 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2219 }
2220 if (_v) {
2221 {
2222 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2223 }
2224 if (_v) {
2225 return _wrap_OtkWidget_move__SWIG_1(self,args);
2226 }
2227 }
2228 }
2229 }
2230
2231 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OtkWidget_move'");
2232 return NULL;
2233 }
2234
2235
2236 static PyObject *_wrap_OtkWidget_setWidth(PyObject *self, PyObject *args) {
2237 PyObject *resultobj;
2238 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2239 int arg2 ;
2240 PyObject * obj0 = 0 ;
2241
2242 if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setWidth",&obj0,&arg2)) goto fail;
2243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2244 (arg1)->setWidth(arg2);
2245
2246 Py_INCREF(Py_None); resultobj = Py_None;
2247 return resultobj;
2248 fail:
2249 return NULL;
2250 }
2251
2252
2253 static PyObject *_wrap_OtkWidget_setHeight(PyObject *self, PyObject *args) {
2254 PyObject *resultobj;
2255 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2256 int arg2 ;
2257 PyObject * obj0 = 0 ;
2258
2259 if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setHeight",&obj0,&arg2)) goto fail;
2260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2261 (arg1)->setHeight(arg2);
2262
2263 Py_INCREF(Py_None); resultobj = Py_None;
2264 return resultobj;
2265 fail:
2266 return NULL;
2267 }
2268
2269
2270 static PyObject *_wrap_OtkWidget_width(PyObject *self, PyObject *args) {
2271 PyObject *resultobj;
2272 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2273 int result;
2274 PyObject * obj0 = 0 ;
2275
2276 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_width",&obj0)) goto fail;
2277 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2278 result = (int)((otk::OtkWidget const *)arg1)->width();
2279
2280 resultobj = PyInt_FromLong((long)result);
2281 return resultobj;
2282 fail:
2283 return NULL;
2284 }
2285
2286
2287 static PyObject *_wrap_OtkWidget_height(PyObject *self, PyObject *args) {
2288 PyObject *resultobj;
2289 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2290 int result;
2291 PyObject * obj0 = 0 ;
2292
2293 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_height",&obj0)) goto fail;
2294 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2295 result = (int)((otk::OtkWidget const *)arg1)->height();
2296
2297 resultobj = PyInt_FromLong((long)result);
2298 return resultobj;
2299 fail:
2300 return NULL;
2301 }
2302
2303
2304 static PyObject *_wrap_OtkWidget_resize__SWIG_0(PyObject *self, PyObject *args) {
2305 PyObject *resultobj;
2306 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2307 otk::Point *arg2 = 0 ;
2308 PyObject * obj0 = 0 ;
2309 PyObject * obj1 = 0 ;
2310
2311 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_resize",&obj0,&obj1)) goto fail;
2312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2313 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2314 if (arg2 == NULL) {
2315 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2316 }
2317 (arg1)->resize((otk::Point const &)*arg2);
2318
2319 Py_INCREF(Py_None); resultobj = Py_None;
2320 return resultobj;
2321 fail:
2322 return NULL;
2323 }
2324
2325
2326 static PyObject *_wrap_OtkWidget_resize__SWIG_1(PyObject *self, PyObject *args) {
2327 PyObject *resultobj;
2328 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2329 int arg2 ;
2330 int arg3 ;
2331 PyObject * obj0 = 0 ;
2332
2333 if(!PyArg_ParseTuple(args,(char *)"Oii:OtkWidget_resize",&obj0,&arg2,&arg3)) goto fail;
2334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2335 (arg1)->resize(arg2,arg3);
2336
2337 Py_INCREF(Py_None); resultobj = Py_None;
2338 return resultobj;
2339 fail:
2340 return NULL;
2341 }
2342
2343
2344 static PyObject *_wrap_OtkWidget_resize(PyObject *self, PyObject *args) {
2345 int argc;
2346 PyObject *argv[4];
2347 int ii;
2348
2349 argc = PyObject_Length(args);
2350 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
2351 argv[ii] = PyTuple_GetItem(args,ii);
2352 }
2353 if (argc == 2) {
2354 int _v;
2355 {
2356 void *ptr;
2357 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
2358 _v = 0;
2359 PyErr_Clear();
2360 }else {
2361 _v = 1;
2362 }
2363 }
2364 if (_v) {
2365 {
2366 void *ptr;
2367 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2368 _v = 0;
2369 PyErr_Clear();
2370 }else {
2371 _v = 1;
2372 }
2373 }
2374 if (_v) {
2375 return _wrap_OtkWidget_resize__SWIG_0(self,args);
2376 }
2377 }
2378 }
2379 if (argc == 3) {
2380 int _v;
2381 {
2382 void *ptr;
2383 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
2384 _v = 0;
2385 PyErr_Clear();
2386 }else {
2387 _v = 1;
2388 }
2389 }
2390 if (_v) {
2391 {
2392 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2393 }
2394 if (_v) {
2395 {
2396 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2397 }
2398 if (_v) {
2399 return _wrap_OtkWidget_resize__SWIG_1(self,args);
2400 }
2401 }
2402 }
2403 }
2404
2405 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OtkWidget_resize'");
2406 return NULL;
2407 }
2408
2409
2410 static PyObject *_wrap_OtkWidget_setGeometry__SWIG_0(PyObject *self, PyObject *args) {
2411 PyObject *resultobj;
2412 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2413 otk::Rect *arg2 = 0 ;
2414 PyObject * obj0 = 0 ;
2415 PyObject * obj1 = 0 ;
2416
2417 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setGeometry",&obj0,&obj1)) goto fail;
2418 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2419 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2420 if (arg2 == NULL) {
2421 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2422 }
2423 (arg1)->setGeometry((otk::Rect const &)*arg2);
2424
2425 Py_INCREF(Py_None); resultobj = Py_None;
2426 return resultobj;
2427 fail:
2428 return NULL;
2429 }
2430
2431
2432 static PyObject *_wrap_OtkWidget_setGeometry__SWIG_1(PyObject *self, PyObject *args) {
2433 PyObject *resultobj;
2434 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2435 otk::Point *arg2 = 0 ;
2436 int arg3 ;
2437 int arg4 ;
2438 PyObject * obj0 = 0 ;
2439 PyObject * obj1 = 0 ;
2440
2441 if(!PyArg_ParseTuple(args,(char *)"OOii:OtkWidget_setGeometry",&obj0,&obj1,&arg3,&arg4)) goto fail;
2442 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2443 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2444 if (arg2 == NULL) {
2445 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2446 }
2447 (arg1)->setGeometry((otk::Point const &)*arg2,arg3,arg4);
2448
2449 Py_INCREF(Py_None); resultobj = Py_None;
2450 return resultobj;
2451 fail:
2452 return NULL;
2453 }
2454
2455
2456 static PyObject *_wrap_OtkWidget_setGeometry__SWIG_2(PyObject *self, PyObject *args) {
2457 PyObject *resultobj;
2458 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2459 int arg2 ;
2460 int arg3 ;
2461 int arg4 ;
2462 int arg5 ;
2463 PyObject * obj0 = 0 ;
2464
2465 if(!PyArg_ParseTuple(args,(char *)"Oiiii:OtkWidget_setGeometry",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
2466 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2467 (arg1)->setGeometry(arg2,arg3,arg4,arg5);
2468
2469 Py_INCREF(Py_None); resultobj = Py_None;
2470 return resultobj;
2471 fail:
2472 return NULL;
2473 }
2474
2475
2476 static PyObject *_wrap_OtkWidget_setGeometry(PyObject *self, PyObject *args) {
2477 int argc;
2478 PyObject *argv[6];
2479 int ii;
2480
2481 argc = PyObject_Length(args);
2482 for (ii = 0; (ii < argc) && (ii < 5); ii++) {
2483 argv[ii] = PyTuple_GetItem(args,ii);
2484 }
2485 if (argc == 2) {
2486 int _v;
2487 {
2488 void *ptr;
2489 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
2490 _v = 0;
2491 PyErr_Clear();
2492 }else {
2493 _v = 1;
2494 }
2495 }
2496 if (_v) {
2497 {
2498 void *ptr;
2499 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
2500 _v = 0;
2501 PyErr_Clear();
2502 }else {
2503 _v = 1;
2504 }
2505 }
2506 if (_v) {
2507 return _wrap_OtkWidget_setGeometry__SWIG_0(self,args);
2508 }
2509 }
2510 }
2511 if (argc == 4) {
2512 int _v;
2513 {
2514 void *ptr;
2515 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
2516 _v = 0;
2517 PyErr_Clear();
2518 }else {
2519 _v = 1;
2520 }
2521 }
2522 if (_v) {
2523 {
2524 void *ptr;
2525 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
2526 _v = 0;
2527 PyErr_Clear();
2528 }else {
2529 _v = 1;
2530 }
2531 }
2532 if (_v) {
2533 {
2534 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2535 }
2536 if (_v) {
2537 {
2538 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
2539 }
2540 if (_v) {
2541 return _wrap_OtkWidget_setGeometry__SWIG_1(self,args);
2542 }
2543 }
2544 }
2545 }
2546 }
2547 if (argc == 5) {
2548 int _v;
2549 {
2550 void *ptr;
2551 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
2552 _v = 0;
2553 PyErr_Clear();
2554 }else {
2555 _v = 1;
2556 }
2557 }
2558 if (_v) {
2559 {
2560 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
2561 }
2562 if (_v) {
2563 {
2564 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
2565 }
2566 if (_v) {
2567 {
2568 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
2569 }
2570 if (_v) {
2571 {
2572 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
2573 }
2574 if (_v) {
2575 return _wrap_OtkWidget_setGeometry__SWIG_2(self,args);
2576 }
2577 }
2578 }
2579 }
2580 }
2581 }
2582
2583 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OtkWidget_setGeometry'");
2584 return NULL;
2585 }
2586
2587
2588 static PyObject *_wrap_OtkWidget_isVisible(PyObject *self, PyObject *args) {
2589 PyObject *resultobj;
2590 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2591 bool result;
2592 PyObject * obj0 = 0 ;
2593
2594 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_isVisible",&obj0)) goto fail;
2595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2596 result = (bool)((otk::OtkWidget const *)arg1)->isVisible();
2597
2598 resultobj = PyInt_FromLong((long)result);
2599 return resultobj;
2600 fail:
2601 return NULL;
2602 }
2603
2604
2605 static PyObject *_wrap_OtkWidget_show(PyObject *self, PyObject *args) {
2606 PyObject *resultobj;
2607 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2608 bool arg2 = (bool) false ;
2609 PyObject * obj0 = 0 ;
2610 PyObject * obj1 = 0 ;
2611
2612 if(!PyArg_ParseTuple(args,(char *)"O|O:OtkWidget_show",&obj0,&obj1)) goto fail;
2613 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2614 if (obj1) {
2615 arg2 = (bool) PyInt_AsLong(obj1);
2616 if (PyErr_Occurred()) SWIG_fail;
2617 }
2618 (arg1)->show(arg2);
2619
2620 Py_INCREF(Py_None); resultobj = Py_None;
2621 return resultobj;
2622 fail:
2623 return NULL;
2624 }
2625
2626
2627 static PyObject *_wrap_OtkWidget_hide(PyObject *self, PyObject *args) {
2628 PyObject *resultobj;
2629 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2630 bool arg2 = (bool) false ;
2631 PyObject * obj0 = 0 ;
2632 PyObject * obj1 = 0 ;
2633
2634 if(!PyArg_ParseTuple(args,(char *)"O|O:OtkWidget_hide",&obj0,&obj1)) goto fail;
2635 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2636 if (obj1) {
2637 arg2 = (bool) PyInt_AsLong(obj1);
2638 if (PyErr_Occurred()) SWIG_fail;
2639 }
2640 (arg1)->hide(arg2);
2641
2642 Py_INCREF(Py_None); resultobj = Py_None;
2643 return resultobj;
2644 fail:
2645 return NULL;
2646 }
2647
2648
2649 static PyObject *_wrap_OtkWidget_isFocused(PyObject *self, PyObject *args) {
2650 PyObject *resultobj;
2651 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2652 bool result;
2653 PyObject * obj0 = 0 ;
2654
2655 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_isFocused",&obj0)) goto fail;
2656 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2657 result = (bool)((otk::OtkWidget const *)arg1)->isFocused();
2658
2659 resultobj = PyInt_FromLong((long)result);
2660 return resultobj;
2661 fail:
2662 return NULL;
2663 }
2664
2665
2666 static PyObject *_wrap_OtkWidget_focus(PyObject *self, PyObject *args) {
2667 PyObject *resultobj;
2668 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2669 PyObject * obj0 = 0 ;
2670
2671 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_focus",&obj0)) goto fail;
2672 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2673 (arg1)->focus();
2674
2675 Py_INCREF(Py_None); resultobj = Py_None;
2676 return resultobj;
2677 fail:
2678 return NULL;
2679 }
2680
2681
2682 static PyObject *_wrap_OtkWidget_unfocus(PyObject *self, PyObject *args) {
2683 PyObject *resultobj;
2684 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2685 PyObject * obj0 = 0 ;
2686
2687 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_unfocus",&obj0)) goto fail;
2688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2689 (arg1)->unfocus();
2690
2691 Py_INCREF(Py_None); resultobj = Py_None;
2692 return resultobj;
2693 fail:
2694 return NULL;
2695 }
2696
2697
2698 static PyObject *_wrap_OtkWidget_hasGrabbedMouse(PyObject *self, PyObject *args) {
2699 PyObject *resultobj;
2700 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2701 bool result;
2702 PyObject * obj0 = 0 ;
2703
2704 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_hasGrabbedMouse",&obj0)) goto fail;
2705 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2706 result = (bool)((otk::OtkWidget const *)arg1)->hasGrabbedMouse();
2707
2708 resultobj = PyInt_FromLong((long)result);
2709 return resultobj;
2710 fail:
2711 return NULL;
2712 }
2713
2714
2715 static PyObject *_wrap_OtkWidget_grabMouse(PyObject *self, PyObject *args) {
2716 PyObject *resultobj;
2717 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2718 bool result;
2719 PyObject * obj0 = 0 ;
2720
2721 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_grabMouse",&obj0)) goto fail;
2722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2723 result = (bool)(arg1)->grabMouse();
2724
2725 resultobj = PyInt_FromLong((long)result);
2726 return resultobj;
2727 fail:
2728 return NULL;
2729 }
2730
2731
2732 static PyObject *_wrap_OtkWidget_ungrabMouse(PyObject *self, PyObject *args) {
2733 PyObject *resultobj;
2734 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2735 PyObject * obj0 = 0 ;
2736
2737 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_ungrabMouse",&obj0)) goto fail;
2738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2739 (arg1)->ungrabMouse();
2740
2741 Py_INCREF(Py_None); resultobj = Py_None;
2742 return resultobj;
2743 fail:
2744 return NULL;
2745 }
2746
2747
2748 static PyObject *_wrap_OtkWidget_hasGrabbedKeyboard(PyObject *self, PyObject *args) {
2749 PyObject *resultobj;
2750 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2751 bool result;
2752 PyObject * obj0 = 0 ;
2753
2754 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_hasGrabbedKeyboard",&obj0)) goto fail;
2755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2756 result = (bool)((otk::OtkWidget const *)arg1)->hasGrabbedKeyboard();
2757
2758 resultobj = PyInt_FromLong((long)result);
2759 return resultobj;
2760 fail:
2761 return NULL;
2762 }
2763
2764
2765 static PyObject *_wrap_OtkWidget_grabKeyboard(PyObject *self, PyObject *args) {
2766 PyObject *resultobj;
2767 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2768 bool result;
2769 PyObject * obj0 = 0 ;
2770
2771 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_grabKeyboard",&obj0)) goto fail;
2772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2773 result = (bool)(arg1)->grabKeyboard();
2774
2775 resultobj = PyInt_FromLong((long)result);
2776 return resultobj;
2777 fail:
2778 return NULL;
2779 }
2780
2781
2782 static PyObject *_wrap_OtkWidget_ungrabKeyboard(PyObject *self, PyObject *args) {
2783 PyObject *resultobj;
2784 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2785 PyObject * obj0 = 0 ;
2786
2787 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_ungrabKeyboard",&obj0)) goto fail;
2788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2789 (arg1)->ungrabKeyboard();
2790
2791 Py_INCREF(Py_None); resultobj = Py_None;
2792 return resultobj;
2793 fail:
2794 return NULL;
2795 }
2796
2797
2798 static PyObject *_wrap_OtkWidget_texture(PyObject *self, PyObject *args) {
2799 PyObject *resultobj;
2800 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2801 otk::BTexture *result;
2802 PyObject * obj0 = 0 ;
2803
2804 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_texture",&obj0)) goto fail;
2805 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2806 result = (otk::BTexture *)((otk::OtkWidget const *)arg1)->texture();
2807
2808 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
2809 return resultobj;
2810 fail:
2811 return NULL;
2812 }
2813
2814
2815 static PyObject *_wrap_OtkWidget_setTexture(PyObject *self, PyObject *args) {
2816 PyObject *resultobj;
2817 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2818 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
2819 PyObject * obj0 = 0 ;
2820 PyObject * obj1 = 0 ;
2821
2822 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setTexture",&obj0,&obj1)) goto fail;
2823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2824 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2825 (arg1)->setTexture(arg2);
2826
2827 Py_INCREF(Py_None); resultobj = Py_None;
2828 return resultobj;
2829 fail:
2830 return NULL;
2831 }
2832
2833
2834 static PyObject *_wrap_OtkWidget_borderColor(PyObject *self, PyObject *args) {
2835 PyObject *resultobj;
2836 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2837 otk::BColor *result;
2838 PyObject * obj0 = 0 ;
2839
2840 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_borderColor",&obj0)) goto fail;
2841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2842 result = (otk::BColor *)((otk::OtkWidget const *)arg1)->borderColor();
2843
2844 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
2845 return resultobj;
2846 fail:
2847 return NULL;
2848 }
2849
2850
2851 static PyObject *_wrap_OtkWidget_setBorderColor(PyObject *self, PyObject *args) {
2852 PyObject *resultobj;
2853 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2854 otk::BColor *arg2 = (otk::BColor *) 0 ;
2855 PyObject * obj0 = 0 ;
2856 PyObject * obj1 = 0 ;
2857
2858 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setBorderColor",&obj0,&obj1)) goto fail;
2859 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2860 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2861 (arg1)->setBorderColor((otk::BColor const *)arg2);
2862
2863 Py_INCREF(Py_None); resultobj = Py_None;
2864 return resultobj;
2865 fail:
2866 return NULL;
2867 }
2868
2869
2870 static PyObject *_wrap_OtkWidget_borderWidth(PyObject *self, PyObject *args) {
2871 PyObject *resultobj;
2872 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2873 int result;
2874 PyObject * obj0 = 0 ;
2875
2876 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_borderWidth",&obj0)) goto fail;
2877 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2878 result = (int)((otk::OtkWidget const *)arg1)->borderWidth();
2879
2880 resultobj = PyInt_FromLong((long)result);
2881 return resultobj;
2882 fail:
2883 return NULL;
2884 }
2885
2886
2887 static PyObject *_wrap_OtkWidget_setBorderWidth(PyObject *self, PyObject *args) {
2888 PyObject *resultobj;
2889 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2890 int arg2 ;
2891 PyObject * obj0 = 0 ;
2892
2893 if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setBorderWidth",&obj0,&arg2)) goto fail;
2894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2895 (arg1)->setBorderWidth(arg2);
2896
2897 Py_INCREF(Py_None); resultobj = Py_None;
2898 return resultobj;
2899 fail:
2900 return NULL;
2901 }
2902
2903
2904 static PyObject *_wrap_OtkWidget_addChild(PyObject *self, PyObject *args) {
2905 PyObject *resultobj;
2906 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2907 otk::OtkWidget *arg2 = (otk::OtkWidget *) 0 ;
2908 bool arg3 = (bool) false ;
2909 PyObject * obj0 = 0 ;
2910 PyObject * obj1 = 0 ;
2911 PyObject * obj2 = 0 ;
2912
2913 if(!PyArg_ParseTuple(args,(char *)"OO|O:OtkWidget_addChild",&obj0,&obj1,&obj2)) goto fail;
2914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2915 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2916 if (obj2) {
2917 arg3 = (bool) PyInt_AsLong(obj2);
2918 if (PyErr_Occurred()) SWIG_fail;
2919 }
2920 (arg1)->addChild(arg2,arg3);
2921
2922 Py_INCREF(Py_None); resultobj = Py_None;
2923 return resultobj;
2924 fail:
2925 return NULL;
2926 }
2927
2928
2929 static PyObject *_wrap_OtkWidget_removeChild(PyObject *self, PyObject *args) {
2930 PyObject *resultobj;
2931 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2932 otk::OtkWidget *arg2 = (otk::OtkWidget *) 0 ;
2933 PyObject * obj0 = 0 ;
2934 PyObject * obj1 = 0 ;
2935
2936 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_removeChild",&obj0,&obj1)) goto fail;
2937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2938 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2939 (arg1)->removeChild(arg2);
2940
2941 Py_INCREF(Py_None); resultobj = Py_None;
2942 return resultobj;
2943 fail:
2944 return NULL;
2945 }
2946
2947
2948 static PyObject *_wrap_OtkWidget_isStretchableHorz(PyObject *self, PyObject *args) {
2949 PyObject *resultobj;
2950 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2951 bool result;
2952 PyObject * obj0 = 0 ;
2953
2954 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_isStretchableHorz",&obj0)) goto fail;
2955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2956 result = (bool)((otk::OtkWidget const *)arg1)->isStretchableHorz();
2957
2958 resultobj = PyInt_FromLong((long)result);
2959 return resultobj;
2960 fail:
2961 return NULL;
2962 }
2963
2964
2965 static PyObject *_wrap_OtkWidget_setStretchableHorz(PyObject *self, PyObject *args) {
2966 PyObject *resultobj;
2967 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2968 bool arg2 = (bool) true ;
2969 PyObject * obj0 = 0 ;
2970 PyObject * obj1 = 0 ;
2971
2972 if(!PyArg_ParseTuple(args,(char *)"O|O:OtkWidget_setStretchableHorz",&obj0,&obj1)) goto fail;
2973 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2974 if (obj1) {
2975 arg2 = (bool) PyInt_AsLong(obj1);
2976 if (PyErr_Occurred()) SWIG_fail;
2977 }
2978 (arg1)->setStretchableHorz(arg2);
2979
2980 Py_INCREF(Py_None); resultobj = Py_None;
2981 return resultobj;
2982 fail:
2983 return NULL;
2984 }
2985
2986
2987 static PyObject *_wrap_OtkWidget_isStretchableVert(PyObject *self, PyObject *args) {
2988 PyObject *resultobj;
2989 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
2990 bool result;
2991 PyObject * obj0 = 0 ;
2992
2993 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_isStretchableVert",&obj0)) goto fail;
2994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2995 result = (bool)((otk::OtkWidget const *)arg1)->isStretchableVert();
2996
2997 resultobj = PyInt_FromLong((long)result);
2998 return resultobj;
2999 fail:
3000 return NULL;
3001 }
3002
3003
3004 static PyObject *_wrap_OtkWidget_setStretchableVert(PyObject *self, PyObject *args) {
3005 PyObject *resultobj;
3006 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3007 bool arg2 = (bool) true ;
3008 PyObject * obj0 = 0 ;
3009 PyObject * obj1 = 0 ;
3010
3011 if(!PyArg_ParseTuple(args,(char *)"O|O:OtkWidget_setStretchableVert",&obj0,&obj1)) goto fail;
3012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3013 if (obj1) {
3014 arg2 = (bool) PyInt_AsLong(obj1);
3015 if (PyErr_Occurred()) SWIG_fail;
3016 }
3017 (arg1)->setStretchableVert(arg2);
3018
3019 Py_INCREF(Py_None); resultobj = Py_None;
3020 return resultobj;
3021 fail:
3022 return NULL;
3023 }
3024
3025
3026 static PyObject *_wrap_OtkWidget_cursor(PyObject *self, PyObject *args) {
3027 PyObject *resultobj;
3028 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3029 Cursor result;
3030 PyObject * obj0 = 0 ;
3031
3032 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_cursor",&obj0)) goto fail;
3033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3034 result = ((otk::OtkWidget const *)arg1)->cursor();
3035
3036 {
3037 Cursor * resultptr;
3038 resultptr = new Cursor((Cursor &) result);
3039 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Cursor, 1);
3040 }
3041 return resultobj;
3042 fail:
3043 return NULL;
3044 }
3045
3046
3047 static PyObject *_wrap_OtkWidget_setCursor(PyObject *self, PyObject *args) {
3048 PyObject *resultobj;
3049 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3050 Cursor arg2 ;
3051 Cursor *argp2 ;
3052 PyObject * obj0 = 0 ;
3053 PyObject * obj1 = 0 ;
3054
3055 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setCursor",&obj0,&obj1)) goto fail;
3056 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3057 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Cursor,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
3058 arg2 = *argp2;
3059 (arg1)->setCursor(arg2);
3060
3061 Py_INCREF(Py_None); resultobj = Py_None;
3062 return resultobj;
3063 fail:
3064 return NULL;
3065 }
3066
3067
3068 static PyObject *_wrap_OtkWidget_bevelWidth(PyObject *self, PyObject *args) {
3069 PyObject *resultobj;
3070 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3071 int result;
3072 PyObject * obj0 = 0 ;
3073
3074 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_bevelWidth",&obj0)) goto fail;
3075 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3076 result = (int)((otk::OtkWidget const *)arg1)->bevelWidth();
3077
3078 resultobj = PyInt_FromLong((long)result);
3079 return resultobj;
3080 fail:
3081 return NULL;
3082 }
3083
3084
3085 static PyObject *_wrap_OtkWidget_setBevelWidth(PyObject *self, PyObject *args) {
3086 PyObject *resultobj;
3087 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3088 int arg2 ;
3089 PyObject * obj0 = 0 ;
3090
3091 if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setBevelWidth",&obj0,&arg2)) goto fail;
3092 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3093 (arg1)->setBevelWidth(arg2);
3094
3095 Py_INCREF(Py_None); resultobj = Py_None;
3096 return resultobj;
3097 fail:
3098 return NULL;
3099 }
3100
3101
3102 static PyObject *_wrap_OtkWidget_direction(PyObject *self, PyObject *args) {
3103 PyObject *resultobj;
3104 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3105 int result;
3106 PyObject * obj0 = 0 ;
3107
3108 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_direction",&obj0)) goto fail;
3109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3110 result = (int)((otk::OtkWidget const *)arg1)->direction();
3111
3112 resultobj = PyInt_FromLong((long)result);
3113 return resultobj;
3114 fail:
3115 return NULL;
3116 }
3117
3118
3119 static PyObject *_wrap_OtkWidget_setDirection(PyObject *self, PyObject *args) {
3120 PyObject *resultobj;
3121 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3122 int arg2 ;
3123 PyObject * obj0 = 0 ;
3124
3125 if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setDirection",&obj0,&arg2)) goto fail;
3126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3127 (arg1)->setDirection((otk::OtkWidget::Direction )arg2);
3128
3129 Py_INCREF(Py_None); resultobj = Py_None;
3130 return resultobj;
3131 fail:
3132 return NULL;
3133 }
3134
3135
3136 static PyObject *_wrap_OtkWidget_style(PyObject *self, PyObject *args) {
3137 PyObject *resultobj;
3138 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3139 otk::Style *result;
3140 PyObject * obj0 = 0 ;
3141
3142 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_style",&obj0)) goto fail;
3143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3144 result = (otk::Style *)((otk::OtkWidget const *)arg1)->style();
3145
3146 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
3147 return resultobj;
3148 fail:
3149 return NULL;
3150 }
3151
3152
3153 static PyObject *_wrap_OtkWidget_setStyle(PyObject *self, PyObject *args) {
3154 PyObject *resultobj;
3155 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3156 otk::Style *arg2 = (otk::Style *) 0 ;
3157 PyObject * obj0 = 0 ;
3158 PyObject * obj1 = 0 ;
3159
3160 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setStyle",&obj0,&obj1)) goto fail;
3161 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3162 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3163 (arg1)->setStyle(arg2);
3164
3165 Py_INCREF(Py_None); resultobj = Py_None;
3166 return resultobj;
3167 fail:
3168 return NULL;
3169 }
3170
3171
3172 static PyObject *_wrap_OtkWidget_eventDispatcher(PyObject *self, PyObject *args) {
3173 PyObject *resultobj;
3174 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3175 otk::OtkEventDispatcher *result;
3176 PyObject * obj0 = 0 ;
3177
3178 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_eventDispatcher",&obj0)) goto fail;
3179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3180 result = (otk::OtkEventDispatcher *)(arg1)->eventDispatcher();
3181
3182 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventDispatcher, 0);
3183 return resultobj;
3184 fail:
3185 return NULL;
3186 }
3187
3188
3189 static PyObject *_wrap_OtkWidget_setEventDispatcher(PyObject *self, PyObject *args) {
3190 PyObject *resultobj;
3191 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3192 otk::OtkEventDispatcher *arg2 = (otk::OtkEventDispatcher *) 0 ;
3193 PyObject * obj0 = 0 ;
3194 PyObject * obj1 = 0 ;
3195
3196 if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setEventDispatcher",&obj0,&obj1)) goto fail;
3197 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3198 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3199 (arg1)->setEventDispatcher(arg2);
3200
3201 Py_INCREF(Py_None); resultobj = Py_None;
3202 return resultobj;
3203 fail:
3204 return NULL;
3205 }
3206
3207
3208 static PyObject *_wrap_OtkWidget_unmanaged(PyObject *self, PyObject *args) {
3209 PyObject *resultobj;
3210 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3211 PyObject * obj0 = 0 ;
3212
3213 if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_unmanaged",&obj0)) goto fail;
3214 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3215 (arg1)->unmanaged();
3216
3217 Py_INCREF(Py_None); resultobj = Py_None;
3218 return resultobj;
3219 fail:
3220 return NULL;
3221 }
3222
3223
3224 static PyObject * OtkWidget_swigregister(PyObject *self, PyObject *args) {
3225 PyObject *obj;
3226 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3227 SWIG_TypeClientData(SWIGTYPE_p_otk__OtkWidget, obj);
3228 Py_INCREF(obj);
3229 return Py_BuildValue((char *)"");
3230 }
3231 static PyObject *_wrap_new_OtkFocusWidget(PyObject *self, PyObject *args) {
3232 PyObject *resultobj;
3233 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3234 int arg2 = (int) otk::OtkWidget::Horizontal ;
3235 otk::OtkFocusWidget *result;
3236 PyObject * obj0 = 0 ;
3237
3238 if(!PyArg_ParseTuple(args,(char *)"O|i:new_OtkFocusWidget",&obj0,&arg2)) goto fail;
3239 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3240 result = (otk::OtkFocusWidget *)new otk::OtkFocusWidget(arg1,(otk::OtkWidget::Direction )arg2);
3241
3242 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkFocusWidget, 1);
3243 return resultobj;
3244 fail:
3245 return NULL;
3246 }
3247
3248
3249 static PyObject *_wrap_delete_OtkFocusWidget(PyObject *self, PyObject *args) {
3250 PyObject *resultobj;
3251 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3252 PyObject * obj0 = 0 ;
3253
3254 if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkFocusWidget",&obj0)) goto fail;
3255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3256 delete arg1;
3257
3258 Py_INCREF(Py_None); resultobj = Py_None;
3259 return resultobj;
3260 fail:
3261 return NULL;
3262 }
3263
3264
3265 static PyObject *_wrap_OtkFocusWidget_focus(PyObject *self, PyObject *args) {
3266 PyObject *resultobj;
3267 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3268 PyObject * obj0 = 0 ;
3269
3270 if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_focus",&obj0)) goto fail;
3271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3272 (arg1)->focus();
3273
3274 Py_INCREF(Py_None); resultobj = Py_None;
3275 return resultobj;
3276 fail:
3277 return NULL;
3278 }
3279
3280
3281 static PyObject *_wrap_OtkFocusWidget_unfocus(PyObject *self, PyObject *args) {
3282 PyObject *resultobj;
3283 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3284 PyObject * obj0 = 0 ;
3285
3286 if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_unfocus",&obj0)) goto fail;
3287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3288 (arg1)->unfocus();
3289
3290 Py_INCREF(Py_None); resultobj = Py_None;
3291 return resultobj;
3292 fail:
3293 return NULL;
3294 }
3295
3296
3297 static PyObject *_wrap_OtkFocusWidget_setTexture(PyObject *self, PyObject *args) {
3298 PyObject *resultobj;
3299 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3300 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
3301 PyObject * obj0 = 0 ;
3302 PyObject * obj1 = 0 ;
3303
3304 if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusWidget_setTexture",&obj0,&obj1)) goto fail;
3305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3306 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3307 (arg1)->setTexture(arg2);
3308
3309 Py_INCREF(Py_None); resultobj = Py_None;
3310 return resultobj;
3311 fail:
3312 return NULL;
3313 }
3314
3315
3316 static PyObject *_wrap_OtkFocusWidget_setBorderColor(PyObject *self, PyObject *args) {
3317 PyObject *resultobj;
3318 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3319 otk::BColor *arg2 = (otk::BColor *) 0 ;
3320 PyObject * obj0 = 0 ;
3321 PyObject * obj1 = 0 ;
3322
3323 if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusWidget_setBorderColor",&obj0,&obj1)) goto fail;
3324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3325 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3326 (arg1)->setBorderColor((otk::BColor const *)arg2);
3327
3328 Py_INCREF(Py_None); resultobj = Py_None;
3329 return resultobj;
3330 fail:
3331 return NULL;
3332 }
3333
3334
3335 static PyObject *_wrap_OtkFocusWidget_setUnfocusTexture(PyObject *self, PyObject *args) {
3336 PyObject *resultobj;
3337 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3338 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
3339 PyObject * obj0 = 0 ;
3340 PyObject * obj1 = 0 ;
3341
3342 if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusWidget_setUnfocusTexture",&obj0,&obj1)) goto fail;
3343 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3344 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3345 (arg1)->setUnfocusTexture(arg2);
3346
3347 Py_INCREF(Py_None); resultobj = Py_None;
3348 return resultobj;
3349 fail:
3350 return NULL;
3351 }
3352
3353
3354 static PyObject *_wrap_OtkFocusWidget_getUnfocusTexture(PyObject *self, PyObject *args) {
3355 PyObject *resultobj;
3356 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3357 otk::BTexture *result;
3358 PyObject * obj0 = 0 ;
3359
3360 if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_getUnfocusTexture",&obj0)) goto fail;
3361 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3362 result = (otk::BTexture *)((otk::OtkFocusWidget const *)arg1)->getUnfocusTexture();
3363
3364 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
3365 return resultobj;
3366 fail:
3367 return NULL;
3368 }
3369
3370
3371 static PyObject *_wrap_OtkFocusWidget_setUnfocusBorderColor(PyObject *self, PyObject *args) {
3372 PyObject *resultobj;
3373 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3374 otk::BColor *arg2 = (otk::BColor *) 0 ;
3375 PyObject * obj0 = 0 ;
3376 PyObject * obj1 = 0 ;
3377
3378 if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusWidget_setUnfocusBorderColor",&obj0,&obj1)) goto fail;
3379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3380 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3381 (arg1)->setUnfocusBorderColor((otk::BColor const *)arg2);
3382
3383 Py_INCREF(Py_None); resultobj = Py_None;
3384 return resultobj;
3385 fail:
3386 return NULL;
3387 }
3388
3389
3390 static PyObject *_wrap_OtkFocusWidget_getUnfocusBorderColor(PyObject *self, PyObject *args) {
3391 PyObject *resultobj;
3392 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3393 otk::BColor *result;
3394 PyObject * obj0 = 0 ;
3395
3396 if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_getUnfocusBorderColor",&obj0)) goto fail;
3397 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3398 result = (otk::BColor *)((otk::OtkFocusWidget const *)arg1)->getUnfocusBorderColor();
3399
3400 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
3401 return resultobj;
3402 fail:
3403 return NULL;
3404 }
3405
3406
3407 static PyObject *_wrap_OtkFocusWidget_isFocused(PyObject *self, PyObject *args) {
3408 PyObject *resultobj;
3409 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3410 bool result;
3411 PyObject * obj0 = 0 ;
3412
3413 if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_isFocused",&obj0)) goto fail;
3414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3415 result = (bool)((otk::OtkFocusWidget const *)arg1)->isFocused();
3416
3417 resultobj = PyInt_FromLong((long)result);
3418 return resultobj;
3419 fail:
3420 return NULL;
3421 }
3422
3423
3424 static PyObject *_wrap_OtkFocusWidget_isUnfocused(PyObject *self, PyObject *args) {
3425 PyObject *resultobj;
3426 otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
3427 bool result;
3428 PyObject * obj0 = 0 ;
3429
3430 if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_isUnfocused",&obj0)) goto fail;
3431 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3432 result = (bool)((otk::OtkFocusWidget const *)arg1)->isUnfocused();
3433
3434 resultobj = PyInt_FromLong((long)result);
3435 return resultobj;
3436 fail:
3437 return NULL;
3438 }
3439
3440
3441 static PyObject * OtkFocusWidget_swigregister(PyObject *self, PyObject *args) {
3442 PyObject *obj;
3443 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3444 SWIG_TypeClientData(SWIGTYPE_p_otk__OtkFocusWidget, obj);
3445 Py_INCREF(obj);
3446 return Py_BuildValue((char *)"");
3447 }
3448 static PyObject *_wrap_new_OtkFocusLabel(PyObject *self, PyObject *args) {
3449 PyObject *resultobj;
3450 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3451 otk::OtkFocusLabel *result;
3452 PyObject * obj0 = 0 ;
3453
3454 if(!PyArg_ParseTuple(args,(char *)"O:new_OtkFocusLabel",&obj0)) goto fail;
3455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3456 result = (otk::OtkFocusLabel *)new otk::OtkFocusLabel(arg1);
3457
3458 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkFocusLabel, 1);
3459 return resultobj;
3460 fail:
3461 return NULL;
3462 }
3463
3464
3465 static PyObject *_wrap_delete_OtkFocusLabel(PyObject *self, PyObject *args) {
3466 PyObject *resultobj;
3467 otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
3468 PyObject * obj0 = 0 ;
3469
3470 if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkFocusLabel",&obj0)) goto fail;
3471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3472 delete arg1;
3473
3474 Py_INCREF(Py_None); resultobj = Py_None;
3475 return resultobj;
3476 fail:
3477 return NULL;
3478 }
3479
3480
3481 static PyObject *_wrap_OtkFocusLabel_getText(PyObject *self, PyObject *args) {
3482 PyObject *resultobj;
3483 otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
3484 std::string *result;
3485 PyObject * obj0 = 0 ;
3486
3487 if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusLabel_getText",&obj0)) goto fail;
3488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3489 {
3490 std::string const &_result_ref = ((otk::OtkFocusLabel const *)arg1)->getText();
3491 result = (std::string *) &_result_ref;
3492 }
3493
3494 {
3495 resultobj = PyString_FromString(result->c_str());
3496 }
3497 return resultobj;
3498 fail:
3499 return NULL;
3500 }
3501
3502
3503 static PyObject *_wrap_OtkFocusLabel_setText(PyObject *self, PyObject *args) {
3504 PyObject *resultobj;
3505 otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
3506 std::string *arg2 = 0 ;
3507 std::string temp2 ;
3508 PyObject * obj0 = 0 ;
3509 PyObject * obj1 = 0 ;
3510
3511 if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusLabel_setText",&obj0,&obj1)) goto fail;
3512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3513 {
3514 if (PyString_Check(obj1)) {
3515 temp2 = std::string(PyString_AsString(obj1));
3516 arg2 = &temp2;
3517 }else {
3518 SWIG_exception(SWIG_TypeError, "string expected");
3519 }
3520 }
3521 (arg1)->setText((std::string const &)*arg2);
3522
3523 Py_INCREF(Py_None); resultobj = Py_None;
3524 return resultobj;
3525 fail:
3526 return NULL;
3527 }
3528
3529
3530 static PyObject *_wrap_OtkFocusLabel_update(PyObject *self, PyObject *args) {
3531 PyObject *resultobj;
3532 otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
3533 PyObject * obj0 = 0 ;
3534
3535 if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusLabel_update",&obj0)) goto fail;
3536 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3537 (arg1)->update();
3538
3539 Py_INCREF(Py_None); resultobj = Py_None;
3540 return resultobj;
3541 fail:
3542 return NULL;
3543 }
3544
3545
3546 static PyObject *_wrap_OtkFocusLabel_setStyle(PyObject *self, PyObject *args) {
3547 PyObject *resultobj;
3548 otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
3549 otk::Style *arg2 = (otk::Style *) 0 ;
3550 PyObject * obj0 = 0 ;
3551 PyObject * obj1 = 0 ;
3552
3553 if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusLabel_setStyle",&obj0,&obj1)) goto fail;
3554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3555 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3556 (arg1)->setStyle(arg2);
3557
3558 Py_INCREF(Py_None); resultobj = Py_None;
3559 return resultobj;
3560 fail:
3561 return NULL;
3562 }
3563
3564
3565 static PyObject * OtkFocusLabel_swigregister(PyObject *self, PyObject *args) {
3566 PyObject *obj;
3567 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3568 SWIG_TypeClientData(SWIGTYPE_p_otk__OtkFocusLabel, obj);
3569 Py_INCREF(obj);
3570 return Py_BuildValue((char *)"");
3571 }
3572 static PyObject *_wrap_new_OtkAppWidget(PyObject *self, PyObject *args) {
3573 PyObject *resultobj;
3574 otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
3575 int arg2 = (int) otk::OtkWidget::Horizontal ;
3576 Cursor arg3 = (Cursor) 0 ;
3577 int arg4 = (int) 1 ;
3578 otk::OtkAppWidget *result;
3579 Cursor *argp3 ;
3580 PyObject * obj0 = 0 ;
3581 PyObject * obj2 = 0 ;
3582
3583 if(!PyArg_ParseTuple(args,(char *)"O|iOi:new_OtkAppWidget",&obj0,&arg2,&obj2,&arg4)) goto fail;
3584 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3585 if (obj2) {
3586 if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_Cursor,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
3587 arg3 = *argp3;
3588 }
3589 result = (otk::OtkAppWidget *)new otk::OtkAppWidget(arg1,(otk::OtkWidget::Direction )arg2,arg3,arg4);
3590
3591 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkAppWidget, 1);
3592 return resultobj;
3593 fail:
3594 return NULL;
3595 }
3596
3597
3598 static PyObject *_wrap_delete_OtkAppWidget(PyObject *self, PyObject *args) {
3599 PyObject *resultobj;
3600 otk::OtkAppWidget *arg1 = (otk::OtkAppWidget *) 0 ;
3601 PyObject * obj0 = 0 ;
3602
3603 if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkAppWidget",&obj0)) goto fail;
3604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkAppWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3605 delete arg1;
3606
3607 Py_INCREF(Py_None); resultobj = Py_None;
3608 return resultobj;
3609 fail:
3610 return NULL;
3611 }
3612
3613
3614 static PyObject *_wrap_OtkAppWidget_show(PyObject *self, PyObject *args) {
3615 PyObject *resultobj;
3616 otk::OtkAppWidget *arg1 = (otk::OtkAppWidget *) 0 ;
3617 PyObject * obj0 = 0 ;
3618
3619 if(!PyArg_ParseTuple(args,(char *)"O:OtkAppWidget_show",&obj0)) goto fail;
3620 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkAppWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3621 (arg1)->show();
3622
3623 Py_INCREF(Py_None); resultobj = Py_None;
3624 return resultobj;
3625 fail:
3626 return NULL;
3627 }
3628
3629
3630 static PyObject *_wrap_OtkAppWidget_hide(PyObject *self, PyObject *args) {
3631 PyObject *resultobj;
3632 otk::OtkAppWidget *arg1 = (otk::OtkAppWidget *) 0 ;
3633 PyObject * obj0 = 0 ;
3634
3635 if(!PyArg_ParseTuple(args,(char *)"O:OtkAppWidget_hide",&obj0)) goto fail;
3636 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkAppWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3637 (arg1)->hide();
3638
3639 Py_INCREF(Py_None); resultobj = Py_None;
3640 return resultobj;
3641 fail:
3642 return NULL;
3643 }
3644
3645
3646 static PyObject *_wrap_OtkAppWidget_clientMessageHandler(PyObject *self, PyObject *args) {
3647 PyObject *resultobj;
3648 otk::OtkAppWidget *arg1 = (otk::OtkAppWidget *) 0 ;
3649 XClientMessageEvent *arg2 = 0 ;
3650 PyObject * obj0 = 0 ;
3651 PyObject * obj1 = 0 ;
3652
3653 if(!PyArg_ParseTuple(args,(char *)"OO:OtkAppWidget_clientMessageHandler",&obj0,&obj1)) goto fail;
3654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkAppWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3655 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3656 if (arg2 == NULL) {
3657 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3658 }
3659 (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
3660
3661 Py_INCREF(Py_None); resultobj = Py_None;
3662 return resultobj;
3663 fail:
3664 return NULL;
3665 }
3666
3667
3668 static PyObject * OtkAppWidget_swigregister(PyObject *self, PyObject *args) {
3669 PyObject *obj;
3670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3671 SWIG_TypeClientData(SWIGTYPE_p_otk__OtkAppWidget, obj);
3672 Py_INCREF(obj);
3673 return Py_BuildValue((char *)"");
3674 }
3675 static PyObject *_wrap_new_OtkApplication(PyObject *self, PyObject *args) {
3676 PyObject *resultobj;
3677 int arg1 ;
3678 char **arg2 = (char **) 0 ;
3679 otk::OtkApplication *result;
3680 PyObject * obj1 = 0 ;
3681
3682 if(!PyArg_ParseTuple(args,(char *)"iO:new_OtkApplication",&arg1,&obj1)) goto fail;
3683 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3684 result = (otk::OtkApplication *)new otk::OtkApplication(arg1,arg2);
3685
3686 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkApplication, 1);
3687 return resultobj;
3688 fail:
3689 return NULL;
3690 }
3691
3692
3693 static PyObject *_wrap_delete_OtkApplication(PyObject *self, PyObject *args) {
3694 PyObject *resultobj;
3695 otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
3696 PyObject * obj0 = 0 ;
3697
3698 if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkApplication",&obj0)) goto fail;
3699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3700 delete arg1;
3701
3702 Py_INCREF(Py_None); resultobj = Py_None;
3703 return resultobj;
3704 fail:
3705 return NULL;
3706 }
3707
3708
3709 static PyObject *_wrap_OtkApplication_run(PyObject *self, PyObject *args) {
3710 PyObject *resultobj;
3711 otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
3712 PyObject * obj0 = 0 ;
3713
3714 if(!PyArg_ParseTuple(args,(char *)"O:OtkApplication_run",&obj0)) goto fail;
3715 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3716 (arg1)->run();
3717
3718 Py_INCREF(Py_None); resultobj = Py_None;
3719 return resultobj;
3720 fail:
3721 return NULL;
3722 }
3723
3724
3725 static PyObject *_wrap_OtkApplication_setDockable(PyObject *self, PyObject *args) {
3726 PyObject *resultobj;
3727 otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
3728 bool arg2 ;
3729 PyObject * obj0 = 0 ;
3730 PyObject * obj1 = 0 ;
3731
3732 if(!PyArg_ParseTuple(args,(char *)"OO:OtkApplication_setDockable",&obj0,&obj1)) goto fail;
3733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3734 arg2 = (bool) PyInt_AsLong(obj1);
3735 if (PyErr_Occurred()) SWIG_fail;
3736 (arg1)->setDockable(arg2);
3737
3738 Py_INCREF(Py_None); resultobj = Py_None;
3739 return resultobj;
3740 fail:
3741 return NULL;
3742 }
3743
3744
3745 static PyObject *_wrap_OtkApplication_isDockable(PyObject *self, PyObject *args) {
3746 PyObject *resultobj;
3747 otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
3748 bool result;
3749 PyObject * obj0 = 0 ;
3750
3751 if(!PyArg_ParseTuple(args,(char *)"O:OtkApplication_isDockable",&obj0)) goto fail;
3752 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3753 result = (bool)((otk::OtkApplication const *)arg1)->isDockable();
3754
3755 resultobj = PyInt_FromLong((long)result);
3756 return resultobj;
3757 fail:
3758 return NULL;
3759 }
3760
3761
3762 static PyObject *_wrap_OtkApplication_getStyle(PyObject *self, PyObject *args) {
3763 PyObject *resultobj;
3764 otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
3765 otk::Style *result;
3766 PyObject * obj0 = 0 ;
3767
3768 if(!PyArg_ParseTuple(args,(char *)"O:OtkApplication_getStyle",&obj0)) goto fail;
3769 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3770 result = (otk::Style *)((otk::OtkApplication const *)arg1)->getStyle();
3771
3772 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
3773 return resultobj;
3774 fail:
3775 return NULL;
3776 }
3777
3778
3779 static PyObject * OtkApplication_swigregister(PyObject *self, PyObject *args) {
3780 PyObject *obj;
3781 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3782 SWIG_TypeClientData(SWIGTYPE_p_otk__OtkApplication, obj);
3783 Py_INCREF(obj);
3784 return Py_BuildValue((char *)"");
3785 }
3786 static PyObject * PointerAssassin_swigregister(PyObject *self, PyObject *args) {
3787 PyObject *obj;
3788 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3789 SWIG_TypeClientData(SWIGTYPE_p_otk__PointerAssassin, obj);
3790 Py_INCREF(obj);
3791 return Py_BuildValue((char *)"");
3792 }
3793 static PyObject *_wrap_new_OtkButton(PyObject *self, PyObject *args) {
3794 PyObject *resultobj;
3795 otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
3796 otk::OtkButton *result;
3797 PyObject * obj0 = 0 ;
3798
3799 if(!PyArg_ParseTuple(args,(char *)"O:new_OtkButton",&obj0)) goto fail;
3800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3801 result = (otk::OtkButton *)new otk::OtkButton(arg1);
3802
3803 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkButton, 1);
3804 return resultobj;
3805 fail:
3806 return NULL;
3807 }
3808
3809
3810 static PyObject *_wrap_delete_OtkButton(PyObject *self, PyObject *args) {
3811 PyObject *resultobj;
3812 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3813 PyObject * obj0 = 0 ;
3814
3815 if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkButton",&obj0)) goto fail;
3816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3817 delete arg1;
3818
3819 Py_INCREF(Py_None); resultobj = Py_None;
3820 return resultobj;
3821 fail:
3822 return NULL;
3823 }
3824
3825
3826 static PyObject *_wrap_OtkButton_getPressedFocusTexture(PyObject *self, PyObject *args) {
3827 PyObject *resultobj;
3828 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3829 otk::BTexture *result;
3830 PyObject * obj0 = 0 ;
3831
3832 if(!PyArg_ParseTuple(args,(char *)"O:OtkButton_getPressedFocusTexture",&obj0)) goto fail;
3833 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3834 result = (otk::BTexture *)((otk::OtkButton const *)arg1)->getPressedFocusTexture();
3835
3836 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
3837 return resultobj;
3838 fail:
3839 return NULL;
3840 }
3841
3842
3843 static PyObject *_wrap_OtkButton_setPressedFocusTexture(PyObject *self, PyObject *args) {
3844 PyObject *resultobj;
3845 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3846 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
3847 PyObject * obj0 = 0 ;
3848 PyObject * obj1 = 0 ;
3849
3850 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setPressedFocusTexture",&obj0,&obj1)) goto fail;
3851 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3852 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3853 (arg1)->setPressedFocusTexture(arg2);
3854
3855 Py_INCREF(Py_None); resultobj = Py_None;
3856 return resultobj;
3857 fail:
3858 return NULL;
3859 }
3860
3861
3862 static PyObject *_wrap_OtkButton_getPressedUnfocusTexture(PyObject *self, PyObject *args) {
3863 PyObject *resultobj;
3864 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3865 otk::BTexture *result;
3866 PyObject * obj0 = 0 ;
3867
3868 if(!PyArg_ParseTuple(args,(char *)"O:OtkButton_getPressedUnfocusTexture",&obj0)) goto fail;
3869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3870 result = (otk::BTexture *)((otk::OtkButton const *)arg1)->getPressedUnfocusTexture();
3871
3872 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
3873 return resultobj;
3874 fail:
3875 return NULL;
3876 }
3877
3878
3879 static PyObject *_wrap_OtkButton_setPressedUnfocusTexture(PyObject *self, PyObject *args) {
3880 PyObject *resultobj;
3881 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3882 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
3883 PyObject * obj0 = 0 ;
3884 PyObject * obj1 = 0 ;
3885
3886 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setPressedUnfocusTexture",&obj0,&obj1)) goto fail;
3887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3888 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3889 (arg1)->setPressedUnfocusTexture(arg2);
3890
3891 Py_INCREF(Py_None); resultobj = Py_None;
3892 return resultobj;
3893 fail:
3894 return NULL;
3895 }
3896
3897
3898 static PyObject *_wrap_OtkButton_setTexture(PyObject *self, PyObject *args) {
3899 PyObject *resultobj;
3900 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3901 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
3902 PyObject * obj0 = 0 ;
3903 PyObject * obj1 = 0 ;
3904
3905 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setTexture",&obj0,&obj1)) goto fail;
3906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3907 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3908 (arg1)->setTexture(arg2);
3909
3910 Py_INCREF(Py_None); resultobj = Py_None;
3911 return resultobj;
3912 fail:
3913 return NULL;
3914 }
3915
3916
3917 static PyObject *_wrap_OtkButton_setUnfocusTexture(PyObject *self, PyObject *args) {
3918 PyObject *resultobj;
3919 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3920 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
3921 PyObject * obj0 = 0 ;
3922 PyObject * obj1 = 0 ;
3923
3924 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setUnfocusTexture",&obj0,&obj1)) goto fail;
3925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3926 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3927 (arg1)->setUnfocusTexture(arg2);
3928
3929 Py_INCREF(Py_None); resultobj = Py_None;
3930 return resultobj;
3931 fail:
3932 return NULL;
3933 }
3934
3935
3936 static PyObject *_wrap_OtkButton_isPressed(PyObject *self, PyObject *args) {
3937 PyObject *resultobj;
3938 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3939 bool result;
3940 PyObject * obj0 = 0 ;
3941
3942 if(!PyArg_ParseTuple(args,(char *)"O:OtkButton_isPressed",&obj0)) goto fail;
3943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3944 result = (bool)((otk::OtkButton const *)arg1)->isPressed();
3945
3946 resultobj = PyInt_FromLong((long)result);
3947 return resultobj;
3948 fail:
3949 return NULL;
3950 }
3951
3952
3953 static PyObject *_wrap_OtkButton_press(PyObject *self, PyObject *args) {
3954 PyObject *resultobj;
3955 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3956 unsigned int arg2 ;
3957 PyObject * obj0 = 0 ;
3958 PyObject * obj1 = 0 ;
3959
3960 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_press",&obj0,&obj1)) goto fail;
3961 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3962 arg2 = (unsigned int) PyInt_AsLong(obj1);
3963 if (PyErr_Occurred()) SWIG_fail;
3964 (arg1)->press(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_release(PyObject *self, PyObject *args) {
3974 PyObject *resultobj;
3975 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3976 unsigned int arg2 ;
3977 PyObject * obj0 = 0 ;
3978 PyObject * obj1 = 0 ;
3979
3980 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_release",&obj0,&obj1)) goto fail;
3981 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3982 arg2 = (unsigned int) PyInt_AsLong(obj1);
3983 if (PyErr_Occurred()) SWIG_fail;
3984 (arg1)->release(arg2);
3985
3986 Py_INCREF(Py_None); resultobj = Py_None;
3987 return resultobj;
3988 fail:
3989 return NULL;
3990 }
3991
3992
3993 static PyObject *_wrap_OtkButton_buttonPressHandler(PyObject *self, PyObject *args) {
3994 PyObject *resultobj;
3995 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
3996 XButtonEvent *arg2 = 0 ;
3997 PyObject * obj0 = 0 ;
3998 PyObject * obj1 = 0 ;
3999
4000 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_buttonPressHandler",&obj0,&obj1)) goto fail;
4001 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4002 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4003 if (arg2 == NULL) {
4004 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4005 }
4006 (arg1)->buttonPressHandler((XButtonEvent const &)*arg2);
4007
4008 Py_INCREF(Py_None); resultobj = Py_None;
4009 return resultobj;
4010 fail:
4011 return NULL;
4012 }
4013
4014
4015 static PyObject *_wrap_OtkButton_buttonReleaseHandler(PyObject *self, PyObject *args) {
4016 PyObject *resultobj;
4017 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
4018 XButtonEvent *arg2 = 0 ;
4019 PyObject * obj0 = 0 ;
4020 PyObject * obj1 = 0 ;
4021
4022 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_buttonReleaseHandler",&obj0,&obj1)) goto fail;
4023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4024 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4025 if (arg2 == NULL) {
4026 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4027 }
4028 (arg1)->buttonReleaseHandler((XButtonEvent const &)*arg2);
4029
4030 Py_INCREF(Py_None); resultobj = Py_None;
4031 return resultobj;
4032 fail:
4033 return NULL;
4034 }
4035
4036
4037 static PyObject *_wrap_OtkButton_setStyle(PyObject *self, PyObject *args) {
4038 PyObject *resultobj;
4039 otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
4040 otk::Style *arg2 = (otk::Style *) 0 ;
4041 PyObject * obj0 = 0 ;
4042 PyObject * obj1 = 0 ;
4043
4044 if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setStyle",&obj0,&obj1)) goto fail;
4045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4046 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4047 (arg1)->setStyle(arg2);
4048
4049 Py_INCREF(Py_None); resultobj = Py_None;
4050 return resultobj;
4051 fail:
4052 return NULL;
4053 }
4054
4055
4056 static PyObject * OtkButton_swigregister(PyObject *self, PyObject *args) {
4057 PyObject *obj;
4058 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4059 SWIG_TypeClientData(SWIGTYPE_p_otk__OtkButton, obj);
4060 Py_INCREF(obj);
4061 return Py_BuildValue((char *)"");
4062 }
4063 static PyObject *_wrap_new_BColor__SWIG_0(PyObject *self, PyObject *args) {
4064 PyObject *resultobj;
4065 unsigned int arg1 = (unsigned int) ~(0u) ;
4066 otk::BColor *result;
4067 PyObject * obj0 = 0 ;
4068
4069 if(!PyArg_ParseTuple(args,(char *)"|O:new_BColor",&obj0)) goto fail;
4070 if (obj0) {
4071 arg1 = (unsigned int) PyInt_AsLong(obj0);
4072 if (PyErr_Occurred()) SWIG_fail;
4073 }
4074 result = (otk::BColor *)new otk::BColor(arg1);
4075
4076 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 1);
4077 return resultobj;
4078 fail:
4079 return NULL;
4080 }
4081
4082
4083 static PyObject *_wrap_new_BColor__SWIG_1(PyObject *self, PyObject *args) {
4084 PyObject *resultobj;
4085 int arg1 ;
4086 int arg2 ;
4087 int arg3 ;
4088 unsigned int arg4 = (unsigned int) ~(0u) ;
4089 otk::BColor *result;
4090 PyObject * obj3 = 0 ;
4091
4092 if(!PyArg_ParseTuple(args,(char *)"iii|O:new_BColor",&arg1,&arg2,&arg3,&obj3)) goto fail;
4093 if (obj3) {
4094 arg4 = (unsigned int) PyInt_AsLong(obj3);
4095 if (PyErr_Occurred()) SWIG_fail;
4096 }
4097 result = (otk::BColor *)new otk::BColor(arg1,arg2,arg3,arg4);
4098
4099 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 1);
4100 return resultobj;
4101 fail:
4102 return NULL;
4103 }
4104
4105
4106 static PyObject *_wrap_new_BColor__SWIG_2(PyObject *self, PyObject *args) {
4107 PyObject *resultobj;
4108 std::string *arg1 = 0 ;
4109 unsigned int arg2 = (unsigned int) ~(0u) ;
4110 otk::BColor *result;
4111 std::string temp1 ;
4112 PyObject * obj0 = 0 ;
4113 PyObject * obj1 = 0 ;
4114
4115 if(!PyArg_ParseTuple(args,(char *)"O|O:new_BColor",&obj0,&obj1)) goto fail;
4116 {
4117 if (PyString_Check(obj0)) {
4118 temp1 = std::string(PyString_AsString(obj0));
4119 arg1 = &temp1;
4120 }else {
4121 SWIG_exception(SWIG_TypeError, "string expected");
4122 }
4123 }
4124 if (obj1) {
4125 arg2 = (unsigned int) PyInt_AsLong(obj1);
4126 if (PyErr_Occurred()) SWIG_fail;
4127 }
4128 result = (otk::BColor *)new otk::BColor((std::string const &)*arg1,arg2);
4129
4130 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 1);
4131 return resultobj;
4132 fail:
4133 return NULL;
4134 }
4135
4136
4137 static PyObject *_wrap_new_BColor(PyObject *self, PyObject *args) {
4138 int argc;
4139 PyObject *argv[5];
4140 int ii;
4141
4142 argc = PyObject_Length(args);
4143 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
4144 argv[ii] = PyTuple_GetItem(args,ii);
4145 }
4146 if ((argc >= 0) && (argc <= 1)) {
4147 int _v;
4148 if (argc <= 0) {
4149 return _wrap_new_BColor__SWIG_0(self,args);
4150 }
4151 {
4152 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
4153 }
4154 if (_v) {
4155 return _wrap_new_BColor__SWIG_0(self,args);
4156 }
4157 }
4158 if ((argc >= 1) && (argc <= 2)) {
4159 int _v;
4160 {
4161 _v = PyString_Check(argv[0]) ? 1 : 0;
4162 }
4163 if (_v) {
4164 if (argc <= 1) {
4165 return _wrap_new_BColor__SWIG_2(self,args);
4166 }
4167 {
4168 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
4169 }
4170 if (_v) {
4171 return _wrap_new_BColor__SWIG_2(self,args);
4172 }
4173 }
4174 }
4175 if ((argc >= 3) && (argc <= 4)) {
4176 int _v;
4177 {
4178 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
4179 }
4180 if (_v) {
4181 {
4182 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
4183 }
4184 if (_v) {
4185 {
4186 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
4187 }
4188 if (_v) {
4189 if (argc <= 3) {
4190 return _wrap_new_BColor__SWIG_1(self,args);
4191 }
4192 {
4193 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
4194 }
4195 if (_v) {
4196 return _wrap_new_BColor__SWIG_1(self,args);
4197 }
4198 }
4199 }
4200 }
4201 }
4202
4203 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BColor'");
4204 return NULL;
4205 }
4206
4207
4208 static PyObject *_wrap_delete_BColor(PyObject *self, PyObject *args) {
4209 PyObject *resultobj;
4210 otk::BColor *arg1 = (otk::BColor *) 0 ;
4211 PyObject * obj0 = 0 ;
4212
4213 if(!PyArg_ParseTuple(args,(char *)"O:delete_BColor",&obj0)) goto fail;
4214 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4215 delete arg1;
4216
4217 Py_INCREF(Py_None); resultobj = Py_None;
4218 return resultobj;
4219 fail:
4220 return NULL;
4221 }
4222
4223
4224 static PyObject *_wrap_BColor_name(PyObject *self, PyObject *args) {
4225 PyObject *resultobj;
4226 otk::BColor *arg1 = (otk::BColor *) 0 ;
4227 std::string *result;
4228 PyObject * obj0 = 0 ;
4229
4230 if(!PyArg_ParseTuple(args,(char *)"O:BColor_name",&obj0)) goto fail;
4231 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4232 {
4233 std::string const &_result_ref = ((otk::BColor const *)arg1)->name();
4234 result = (std::string *) &_result_ref;
4235 }
4236
4237 {
4238 resultobj = PyString_FromString(result->c_str());
4239 }
4240 return resultobj;
4241 fail:
4242 return NULL;
4243 }
4244
4245
4246 static PyObject *_wrap_BColor_red(PyObject *self, PyObject *args) {
4247 PyObject *resultobj;
4248 otk::BColor *arg1 = (otk::BColor *) 0 ;
4249 int result;
4250 PyObject * obj0 = 0 ;
4251
4252 if(!PyArg_ParseTuple(args,(char *)"O:BColor_red",&obj0)) goto fail;
4253 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4254 result = (int)((otk::BColor const *)arg1)->red();
4255
4256 resultobj = PyInt_FromLong((long)result);
4257 return resultobj;
4258 fail:
4259 return NULL;
4260 }
4261
4262
4263 static PyObject *_wrap_BColor_green(PyObject *self, PyObject *args) {
4264 PyObject *resultobj;
4265 otk::BColor *arg1 = (otk::BColor *) 0 ;
4266 int result;
4267 PyObject * obj0 = 0 ;
4268
4269 if(!PyArg_ParseTuple(args,(char *)"O:BColor_green",&obj0)) goto fail;
4270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4271 result = (int)((otk::BColor const *)arg1)->green();
4272
4273 resultobj = PyInt_FromLong((long)result);
4274 return resultobj;
4275 fail:
4276 return NULL;
4277 }
4278
4279
4280 static PyObject *_wrap_BColor_blue(PyObject *self, PyObject *args) {
4281 PyObject *resultobj;
4282 otk::BColor *arg1 = (otk::BColor *) 0 ;
4283 int result;
4284 PyObject * obj0 = 0 ;
4285
4286 if(!PyArg_ParseTuple(args,(char *)"O:BColor_blue",&obj0)) goto fail;
4287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4288 result = (int)((otk::BColor const *)arg1)->blue();
4289
4290 resultobj = PyInt_FromLong((long)result);
4291 return resultobj;
4292 fail:
4293 return NULL;
4294 }
4295
4296
4297 static PyObject *_wrap_BColor_setRGB(PyObject *self, PyObject *args) {
4298 PyObject *resultobj;
4299 otk::BColor *arg1 = (otk::BColor *) 0 ;
4300 int arg2 ;
4301 int arg3 ;
4302 int arg4 ;
4303 PyObject * obj0 = 0 ;
4304
4305 if(!PyArg_ParseTuple(args,(char *)"Oiii:BColor_setRGB",&obj0,&arg2,&arg3,&arg4)) goto fail;
4306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4307 (arg1)->setRGB(arg2,arg3,arg4);
4308
4309 Py_INCREF(Py_None); resultobj = Py_None;
4310 return resultobj;
4311 fail:
4312 return NULL;
4313 }
4314
4315
4316 static PyObject *_wrap_BColor_screen(PyObject *self, PyObject *args) {
4317 PyObject *resultobj;
4318 otk::BColor *arg1 = (otk::BColor *) 0 ;
4319 unsigned int result;
4320 PyObject * obj0 = 0 ;
4321
4322 if(!PyArg_ParseTuple(args,(char *)"O:BColor_screen",&obj0)) goto fail;
4323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4324 result = (unsigned int)((otk::BColor const *)arg1)->screen();
4325
4326 resultobj = PyInt_FromLong((long)result);
4327 return resultobj;
4328 fail:
4329 return NULL;
4330 }
4331
4332
4333 static PyObject *_wrap_BColor_setScreen(PyObject *self, PyObject *args) {
4334 PyObject *resultobj;
4335 otk::BColor *arg1 = (otk::BColor *) 0 ;
4336 unsigned int arg2 = (unsigned int) ~(0u) ;
4337 PyObject * obj0 = 0 ;
4338 PyObject * obj1 = 0 ;
4339
4340 if(!PyArg_ParseTuple(args,(char *)"O|O:BColor_setScreen",&obj0,&obj1)) goto fail;
4341 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4342 if (obj1) {
4343 arg2 = (unsigned int) PyInt_AsLong(obj1);
4344 if (PyErr_Occurred()) SWIG_fail;
4345 }
4346 (arg1)->setScreen(arg2);
4347
4348 Py_INCREF(Py_None); resultobj = Py_None;
4349 return resultobj;
4350 fail:
4351 return NULL;
4352 }
4353
4354
4355 static PyObject *_wrap_BColor_isAllocated(PyObject *self, PyObject *args) {
4356 PyObject *resultobj;
4357 otk::BColor *arg1 = (otk::BColor *) 0 ;
4358 bool result;
4359 PyObject * obj0 = 0 ;
4360
4361 if(!PyArg_ParseTuple(args,(char *)"O:BColor_isAllocated",&obj0)) goto fail;
4362 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4363 result = (bool)((otk::BColor const *)arg1)->isAllocated();
4364
4365 resultobj = PyInt_FromLong((long)result);
4366 return resultobj;
4367 fail:
4368 return NULL;
4369 }
4370
4371
4372 static PyObject *_wrap_BColor_isValid(PyObject *self, PyObject *args) {
4373 PyObject *resultobj;
4374 otk::BColor *arg1 = (otk::BColor *) 0 ;
4375 bool result;
4376 PyObject * obj0 = 0 ;
4377
4378 if(!PyArg_ParseTuple(args,(char *)"O:BColor_isValid",&obj0)) goto fail;
4379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4380 result = (bool)((otk::BColor const *)arg1)->isValid();
4381
4382 resultobj = PyInt_FromLong((long)result);
4383 return resultobj;
4384 fail:
4385 return NULL;
4386 }
4387
4388
4389 static PyObject *_wrap_BColor_pixel(PyObject *self, PyObject *args) {
4390 PyObject *resultobj;
4391 otk::BColor *arg1 = (otk::BColor *) 0 ;
4392 unsigned long result;
4393 PyObject * obj0 = 0 ;
4394
4395 if(!PyArg_ParseTuple(args,(char *)"O:BColor_pixel",&obj0)) goto fail;
4396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4397 result = (unsigned long)((otk::BColor const *)arg1)->pixel();
4398
4399 resultobj = PyInt_FromLong((long)result);
4400 return resultobj;
4401 fail:
4402 return NULL;
4403 }
4404
4405
4406 static PyObject *_wrap_BColor_equals(PyObject *self, PyObject *args) {
4407 PyObject *resultobj;
4408 otk::BColor *arg1 = (otk::BColor *) 0 ;
4409 otk::BColor *arg2 = 0 ;
4410 bool result;
4411 PyObject * obj0 = 0 ;
4412 PyObject * obj1 = 0 ;
4413
4414 if(!PyArg_ParseTuple(args,(char *)"OO:BColor_equals",&obj0,&obj1)) goto fail;
4415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4416 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4417 if (arg2 == NULL) {
4418 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4419 }
4420 result = (bool)((otk::BColor const *)arg1)->operator ==((otk::BColor const &)*arg2);
4421
4422 resultobj = PyInt_FromLong((long)result);
4423 return resultobj;
4424 fail:
4425 return NULL;
4426 }
4427
4428
4429 static PyObject *_wrap_BColor_cleanupColorCache(PyObject *self, PyObject *args) {
4430 PyObject *resultobj;
4431
4432 if(!PyArg_ParseTuple(args,(char *)":BColor_cleanupColorCache")) goto fail;
4433 otk::BColor::cleanupColorCache();
4434
4435 Py_INCREF(Py_None); resultobj = Py_None;
4436 return resultobj;
4437 fail:
4438 return NULL;
4439 }
4440
4441
4442 static PyObject * BColor_swigregister(PyObject *self, PyObject *args) {
4443 PyObject *obj;
4444 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4445 SWIG_TypeClientData(SWIGTYPE_p_otk__BColor, obj);
4446 Py_INCREF(obj);
4447 return Py_BuildValue((char *)"");
4448 }
4449 static PyObject *_wrap_new_Configuration__SWIG_0(PyObject *self, PyObject *args) {
4450 PyObject *resultobj;
4451 std::string *arg1 = 0 ;
4452 bool arg2 = (bool) True ;
4453 otk::Configuration *result;
4454 std::string temp1 ;
4455 PyObject * obj0 = 0 ;
4456 PyObject * obj1 = 0 ;
4457
4458 if(!PyArg_ParseTuple(args,(char *)"O|O:new_Configuration",&obj0,&obj1)) goto fail;
4459 {
4460 if (PyString_Check(obj0)) {
4461 temp1 = std::string(PyString_AsString(obj0));
4462 arg1 = &temp1;
4463 }else {
4464 SWIG_exception(SWIG_TypeError, "string expected");
4465 }
4466 }
4467 if (obj1) {
4468 arg2 = (bool) PyInt_AsLong(obj1);
4469 if (PyErr_Occurred()) SWIG_fail;
4470 }
4471 result = (otk::Configuration *)new otk::Configuration((std::string const &)*arg1,arg2);
4472
4473 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Configuration, 1);
4474 return resultobj;
4475 fail:
4476 return NULL;
4477 }
4478
4479
4480 static PyObject *_wrap_new_Configuration__SWIG_1(PyObject *self, PyObject *args) {
4481 PyObject *resultobj;
4482 bool arg1 = (bool) True ;
4483 otk::Configuration *result;
4484 PyObject * obj0 = 0 ;
4485
4486 if(!PyArg_ParseTuple(args,(char *)"|O:new_Configuration",&obj0)) goto fail;
4487 if (obj0) {
4488 arg1 = (bool) PyInt_AsLong(obj0);
4489 if (PyErr_Occurred()) SWIG_fail;
4490 }
4491 result = (otk::Configuration *)new otk::Configuration(arg1);
4492
4493 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Configuration, 1);
4494 return resultobj;
4495 fail:
4496 return NULL;
4497 }
4498
4499
4500 static PyObject *_wrap_new_Configuration(PyObject *self, PyObject *args) {
4501 int argc;
4502 PyObject *argv[3];
4503 int ii;
4504
4505 argc = PyObject_Length(args);
4506 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
4507 argv[ii] = PyTuple_GetItem(args,ii);
4508 }
4509 if ((argc >= 0) && (argc <= 1)) {
4510 int _v;
4511 if (argc <= 0) {
4512 return _wrap_new_Configuration__SWIG_1(self,args);
4513 }
4514 {
4515 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
4516 }
4517 if (_v) {
4518 return _wrap_new_Configuration__SWIG_1(self,args);
4519 }
4520 }
4521 if ((argc >= 1) && (argc <= 2)) {
4522 int _v;
4523 {
4524 _v = PyString_Check(argv[0]) ? 1 : 0;
4525 }
4526 if (_v) {
4527 if (argc <= 1) {
4528 return _wrap_new_Configuration__SWIG_0(self,args);
4529 }
4530 {
4531 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
4532 }
4533 if (_v) {
4534 return _wrap_new_Configuration__SWIG_0(self,args);
4535 }
4536 }
4537 }
4538
4539 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Configuration'");
4540 return NULL;
4541 }
4542
4543
4544 static PyObject *_wrap_delete_Configuration(PyObject *self, PyObject *args) {
4545 PyObject *resultobj;
4546 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4547 PyObject * obj0 = 0 ;
4548
4549 if(!PyArg_ParseTuple(args,(char *)"O:delete_Configuration",&obj0)) goto fail;
4550 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4551 delete arg1;
4552
4553 Py_INCREF(Py_None); resultobj = Py_None;
4554 return resultobj;
4555 fail:
4556 return NULL;
4557 }
4558
4559
4560 static PyObject *_wrap_Configuration_file(PyObject *self, PyObject *args) {
4561 PyObject *resultobj;
4562 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4563 std::string *result;
4564 PyObject * obj0 = 0 ;
4565
4566 if(!PyArg_ParseTuple(args,(char *)"O:Configuration_file",&obj0)) goto fail;
4567 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4568 {
4569 std::string const &_result_ref = ((otk::Configuration const *)arg1)->file();
4570 result = (std::string *) &_result_ref;
4571 }
4572
4573 {
4574 resultobj = PyString_FromString(result->c_str());
4575 }
4576 return resultobj;
4577 fail:
4578 return NULL;
4579 }
4580
4581
4582 static PyObject *_wrap_Configuration_setFile(PyObject *self, PyObject *args) {
4583 PyObject *resultobj;
4584 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4585 std::string *arg2 = 0 ;
4586 std::string temp2 ;
4587 PyObject * obj0 = 0 ;
4588 PyObject * obj1 = 0 ;
4589
4590 if(!PyArg_ParseTuple(args,(char *)"OO:Configuration_setFile",&obj0,&obj1)) goto fail;
4591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4592 {
4593 if (PyString_Check(obj1)) {
4594 temp2 = std::string(PyString_AsString(obj1));
4595 arg2 = &temp2;
4596 }else {
4597 SWIG_exception(SWIG_TypeError, "string expected");
4598 }
4599 }
4600 (arg1)->setFile((std::string const &)*arg2);
4601
4602 Py_INCREF(Py_None); resultobj = Py_None;
4603 return resultobj;
4604 fail:
4605 return NULL;
4606 }
4607
4608
4609 static PyObject *_wrap_Configuration_autoSave(PyObject *self, PyObject *args) {
4610 PyObject *resultobj;
4611 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4612 bool result;
4613 PyObject * obj0 = 0 ;
4614
4615 if(!PyArg_ParseTuple(args,(char *)"O:Configuration_autoSave",&obj0)) goto fail;
4616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4617 result = (bool)((otk::Configuration const *)arg1)->autoSave();
4618
4619 resultobj = PyInt_FromLong((long)result);
4620 return resultobj;
4621 fail:
4622 return NULL;
4623 }
4624
4625
4626 static PyObject *_wrap_Configuration_setAutoSave(PyObject *self, PyObject *args) {
4627 PyObject *resultobj;
4628 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4629 bool arg2 ;
4630 PyObject * obj0 = 0 ;
4631 PyObject * obj1 = 0 ;
4632
4633 if(!PyArg_ParseTuple(args,(char *)"OO:Configuration_setAutoSave",&obj0,&obj1)) goto fail;
4634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4635 arg2 = (bool) PyInt_AsLong(obj1);
4636 if (PyErr_Occurred()) SWIG_fail;
4637 (arg1)->setAutoSave(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_isModified(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_isModified",&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)->isModified();
4655
4656 resultobj = PyInt_FromLong((long)result);
4657 return resultobj;
4658 fail:
4659 return NULL;
4660 }
4661
4662
4663 static PyObject *_wrap_Configuration_save(PyObject *self, PyObject *args) {
4664 PyObject *resultobj;
4665 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4666 PyObject * obj0 = 0 ;
4667
4668 if(!PyArg_ParseTuple(args,(char *)"O:Configuration_save",&obj0)) goto fail;
4669 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4670 (arg1)->save();
4671
4672 Py_INCREF(Py_None); resultobj = Py_None;
4673 return resultobj;
4674 fail:
4675 return NULL;
4676 }
4677
4678
4679 static PyObject *_wrap_Configuration_load(PyObject *self, PyObject *args) {
4680 PyObject *resultobj;
4681 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4682 bool result;
4683 PyObject * obj0 = 0 ;
4684
4685 if(!PyArg_ParseTuple(args,(char *)"O:Configuration_load",&obj0)) goto fail;
4686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4687 result = (bool)(arg1)->load();
4688
4689 resultobj = PyInt_FromLong((long)result);
4690 return resultobj;
4691 fail:
4692 return NULL;
4693 }
4694
4695
4696 static PyObject *_wrap_Configuration_merge(PyObject *self, PyObject *args) {
4697 PyObject *resultobj;
4698 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4699 std::string *arg2 = 0 ;
4700 bool arg3 = (bool) False ;
4701 bool result;
4702 std::string temp2 ;
4703 PyObject * obj0 = 0 ;
4704 PyObject * obj1 = 0 ;
4705 PyObject * obj2 = 0 ;
4706
4707 if(!PyArg_ParseTuple(args,(char *)"OO|O:Configuration_merge",&obj0,&obj1,&obj2)) goto fail;
4708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4709 {
4710 if (PyString_Check(obj1)) {
4711 temp2 = std::string(PyString_AsString(obj1));
4712 arg2 = &temp2;
4713 }else {
4714 SWIG_exception(SWIG_TypeError, "string expected");
4715 }
4716 }
4717 if (obj2) {
4718 arg3 = (bool) PyInt_AsLong(obj2);
4719 if (PyErr_Occurred()) SWIG_fail;
4720 }
4721 result = (bool)(arg1)->merge((std::string const &)*arg2,arg3);
4722
4723 resultobj = PyInt_FromLong((long)result);
4724 return resultobj;
4725 fail:
4726 return NULL;
4727 }
4728
4729
4730 static PyObject *_wrap_Configuration_create(PyObject *self, PyObject *args) {
4731 PyObject *resultobj;
4732 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4733 PyObject * obj0 = 0 ;
4734
4735 if(!PyArg_ParseTuple(args,(char *)"O:Configuration_create",&obj0)) goto fail;
4736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4737 (arg1)->create();
4738
4739 Py_INCREF(Py_None); resultobj = Py_None;
4740 return resultobj;
4741 fail:
4742 return NULL;
4743 }
4744
4745
4746 static PyObject *_wrap_Configuration_setValue_bool(PyObject *self, PyObject *args) {
4747 PyObject *resultobj;
4748 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4749 std::string *arg2 = 0 ;
4750 bool arg3 ;
4751 std::string temp2 ;
4752 PyObject * obj0 = 0 ;
4753 PyObject * obj1 = 0 ;
4754 PyObject * obj2 = 0 ;
4755
4756 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_setValue_bool",&obj0,&obj1,&obj2)) goto fail;
4757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4758 {
4759 if (PyString_Check(obj1)) {
4760 temp2 = std::string(PyString_AsString(obj1));
4761 arg2 = &temp2;
4762 }else {
4763 SWIG_exception(SWIG_TypeError, "string expected");
4764 }
4765 }
4766 arg3 = (bool) PyInt_AsLong(obj2);
4767 if (PyErr_Occurred()) SWIG_fail;
4768 (arg1)->setValue((std::string const &)*arg2,arg3);
4769
4770 Py_INCREF(Py_None); resultobj = Py_None;
4771 return resultobj;
4772 fail:
4773 return NULL;
4774 }
4775
4776
4777 static PyObject *_wrap_Configuration_setValue(PyObject *self, PyObject *args) {
4778 PyObject *resultobj;
4779 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4780 std::string *arg2 = 0 ;
4781 int arg3 ;
4782 std::string temp2 ;
4783 PyObject * obj0 = 0 ;
4784 PyObject * obj1 = 0 ;
4785
4786 if(!PyArg_ParseTuple(args,(char *)"OOi:Configuration_setValue",&obj0,&obj1,&arg3)) goto fail;
4787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4788 {
4789 if (PyString_Check(obj1)) {
4790 temp2 = std::string(PyString_AsString(obj1));
4791 arg2 = &temp2;
4792 }else {
4793 SWIG_exception(SWIG_TypeError, "string expected");
4794 }
4795 }
4796 (arg1)->setValue((std::string const &)*arg2,arg3);
4797
4798 Py_INCREF(Py_None); resultobj = Py_None;
4799 return resultobj;
4800 fail:
4801 return NULL;
4802 }
4803
4804
4805 static PyObject *_wrap_Configuration_setValue_unsigned(PyObject *self, PyObject *args) {
4806 PyObject *resultobj;
4807 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4808 std::string *arg2 = 0 ;
4809 unsigned int arg3 ;
4810 std::string temp2 ;
4811 PyObject * obj0 = 0 ;
4812 PyObject * obj1 = 0 ;
4813 PyObject * obj2 = 0 ;
4814
4815 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_setValue_unsigned",&obj0,&obj1,&obj2)) goto fail;
4816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4817 {
4818 if (PyString_Check(obj1)) {
4819 temp2 = std::string(PyString_AsString(obj1));
4820 arg2 = &temp2;
4821 }else {
4822 SWIG_exception(SWIG_TypeError, "string expected");
4823 }
4824 }
4825 arg3 = (unsigned int) PyInt_AsLong(obj2);
4826 if (PyErr_Occurred()) SWIG_fail;
4827 (arg1)->setValue((std::string const &)*arg2,arg3);
4828
4829 Py_INCREF(Py_None); resultobj = Py_None;
4830 return resultobj;
4831 fail:
4832 return NULL;
4833 }
4834
4835
4836 static PyObject *_wrap_Configuration_setValue_long(PyObject *self, PyObject *args) {
4837 PyObject *resultobj;
4838 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4839 std::string *arg2 = 0 ;
4840 long arg3 ;
4841 std::string temp2 ;
4842 PyObject * obj0 = 0 ;
4843 PyObject * obj1 = 0 ;
4844
4845 if(!PyArg_ParseTuple(args,(char *)"OOl:Configuration_setValue_long",&obj0,&obj1,&arg3)) goto fail;
4846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4847 {
4848 if (PyString_Check(obj1)) {
4849 temp2 = std::string(PyString_AsString(obj1));
4850 arg2 = &temp2;
4851 }else {
4852 SWIG_exception(SWIG_TypeError, "string expected");
4853 }
4854 }
4855 (arg1)->setValue((std::string const &)*arg2,arg3);
4856
4857 Py_INCREF(Py_None); resultobj = Py_None;
4858 return resultobj;
4859 fail:
4860 return NULL;
4861 }
4862
4863
4864 static PyObject *_wrap_Configuration_setValue_unsignedlong(PyObject *self, PyObject *args) {
4865 PyObject *resultobj;
4866 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4867 std::string *arg2 = 0 ;
4868 unsigned long arg3 ;
4869 std::string temp2 ;
4870 PyObject * obj0 = 0 ;
4871 PyObject * obj1 = 0 ;
4872 PyObject * obj2 = 0 ;
4873
4874 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_setValue_unsignedlong",&obj0,&obj1,&obj2)) goto fail;
4875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4876 {
4877 if (PyString_Check(obj1)) {
4878 temp2 = std::string(PyString_AsString(obj1));
4879 arg2 = &temp2;
4880 }else {
4881 SWIG_exception(SWIG_TypeError, "string expected");
4882 }
4883 }
4884 arg3 = (unsigned long) PyInt_AsLong(obj2);
4885 if (PyErr_Occurred()) SWIG_fail;
4886 (arg1)->setValue((std::string const &)*arg2,arg3);
4887
4888 Py_INCREF(Py_None); resultobj = Py_None;
4889 return resultobj;
4890 fail:
4891 return NULL;
4892 }
4893
4894
4895 static PyObject *_wrap_Configuration_setValue_string(PyObject *self, PyObject *args) {
4896 PyObject *resultobj;
4897 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4898 std::string *arg2 = 0 ;
4899 std::string *arg3 = 0 ;
4900 std::string temp2 ;
4901 std::string temp3 ;
4902 PyObject * obj0 = 0 ;
4903 PyObject * obj1 = 0 ;
4904 PyObject * obj2 = 0 ;
4905
4906 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_setValue_string",&obj0,&obj1,&obj2)) goto fail;
4907 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4908 {
4909 if (PyString_Check(obj1)) {
4910 temp2 = std::string(PyString_AsString(obj1));
4911 arg2 = &temp2;
4912 }else {
4913 SWIG_exception(SWIG_TypeError, "string expected");
4914 }
4915 }
4916 {
4917 if (PyString_Check(obj2)) {
4918 temp3 = std::string(PyString_AsString(obj2));
4919 arg3 = &temp3;
4920 }else {
4921 SWIG_exception(SWIG_TypeError, "string expected");
4922 }
4923 }
4924 (arg1)->setValue((std::string const &)*arg2,(std::string const &)*arg3);
4925
4926 Py_INCREF(Py_None); resultobj = Py_None;
4927 return resultobj;
4928 fail:
4929 return NULL;
4930 }
4931
4932
4933 static PyObject *_wrap_Configuration_setValue_charptr(PyObject *self, PyObject *args) {
4934 PyObject *resultobj;
4935 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4936 std::string *arg2 = 0 ;
4937 char *arg3 ;
4938 std::string temp2 ;
4939 PyObject * obj0 = 0 ;
4940 PyObject * obj1 = 0 ;
4941
4942 if(!PyArg_ParseTuple(args,(char *)"OOs:Configuration_setValue_charptr",&obj0,&obj1,&arg3)) goto fail;
4943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4944 {
4945 if (PyString_Check(obj1)) {
4946 temp2 = std::string(PyString_AsString(obj1));
4947 arg2 = &temp2;
4948 }else {
4949 SWIG_exception(SWIG_TypeError, "string expected");
4950 }
4951 }
4952 (arg1)->setValue((std::string const &)*arg2,(char const *)arg3);
4953
4954 Py_INCREF(Py_None); resultobj = Py_None;
4955 return resultobj;
4956 fail:
4957 return NULL;
4958 }
4959
4960
4961 static PyObject *_wrap_Configuration_getValue__SWIG_0(PyObject *self, PyObject *args) {
4962 PyObject *resultobj;
4963 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4964 std::string *arg2 = 0 ;
4965 bool *arg3 = 0 ;
4966 bool result;
4967 std::string temp2 ;
4968 PyObject * obj0 = 0 ;
4969 PyObject * obj1 = 0 ;
4970 PyObject * obj2 = 0 ;
4971
4972 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
4973 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4974 {
4975 if (PyString_Check(obj1)) {
4976 temp2 = std::string(PyString_AsString(obj1));
4977 arg2 = &temp2;
4978 }else {
4979 SWIG_exception(SWIG_TypeError, "string expected");
4980 }
4981 }
4982 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_bool,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4983 if (arg3 == NULL) {
4984 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4985 }
4986 result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
4987
4988 resultobj = PyInt_FromLong((long)result);
4989 return resultobj;
4990 fail:
4991 return NULL;
4992 }
4993
4994
4995 static PyObject *_wrap_Configuration_getValue__SWIG_1(PyObject *self, PyObject *args) {
4996 PyObject *resultobj;
4997 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
4998 std::string *arg2 = 0 ;
4999 int *arg3 = 0 ;
5000 bool result;
5001 std::string temp2 ;
5002 PyObject * obj0 = 0 ;
5003 PyObject * obj1 = 0 ;
5004 PyObject * obj2 = 0 ;
5005
5006 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
5007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5008 {
5009 if (PyString_Check(obj1)) {
5010 temp2 = std::string(PyString_AsString(obj1));
5011 arg2 = &temp2;
5012 }else {
5013 SWIG_exception(SWIG_TypeError, "string expected");
5014 }
5015 }
5016 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5017 if (arg3 == NULL) {
5018 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5019 }
5020 result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
5021
5022 resultobj = PyInt_FromLong((long)result);
5023 return resultobj;
5024 fail:
5025 return NULL;
5026 }
5027
5028
5029 static PyObject *_wrap_Configuration_getValue__SWIG_2(PyObject *self, PyObject *args) {
5030 PyObject *resultobj;
5031 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
5032 std::string *arg2 = 0 ;
5033 unsigned int *arg3 = 0 ;
5034 bool result;
5035 std::string temp2 ;
5036 PyObject * obj0 = 0 ;
5037 PyObject * obj1 = 0 ;
5038 PyObject * obj2 = 0 ;
5039
5040 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
5041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5042 {
5043 if (PyString_Check(obj1)) {
5044 temp2 = std::string(PyString_AsString(obj1));
5045 arg2 = &temp2;
5046 }else {
5047 SWIG_exception(SWIG_TypeError, "string expected");
5048 }
5049 }
5050 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5051 if (arg3 == NULL) {
5052 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5053 }
5054 result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
5055
5056 resultobj = PyInt_FromLong((long)result);
5057 return resultobj;
5058 fail:
5059 return NULL;
5060 }
5061
5062
5063 static PyObject *_wrap_Configuration_getValue__SWIG_3(PyObject *self, PyObject *args) {
5064 PyObject *resultobj;
5065 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
5066 std::string *arg2 = 0 ;
5067 long *arg3 = 0 ;
5068 bool result;
5069 std::string temp2 ;
5070 PyObject * obj0 = 0 ;
5071 PyObject * obj1 = 0 ;
5072 PyObject * obj2 = 0 ;
5073
5074 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
5075 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5076 {
5077 if (PyString_Check(obj1)) {
5078 temp2 = std::string(PyString_AsString(obj1));
5079 arg2 = &temp2;
5080 }else {
5081 SWIG_exception(SWIG_TypeError, "string expected");
5082 }
5083 }
5084 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5085 if (arg3 == NULL) {
5086 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5087 }
5088 result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
5089
5090 resultobj = PyInt_FromLong((long)result);
5091 return resultobj;
5092 fail:
5093 return NULL;
5094 }
5095
5096
5097 static PyObject *_wrap_Configuration_getValue__SWIG_4(PyObject *self, PyObject *args) {
5098 PyObject *resultobj;
5099 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
5100 std::string *arg2 = 0 ;
5101 unsigned long *arg3 = 0 ;
5102 bool result;
5103 std::string temp2 ;
5104 PyObject * obj0 = 0 ;
5105 PyObject * obj1 = 0 ;
5106 PyObject * obj2 = 0 ;
5107
5108 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
5109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5110 {
5111 if (PyString_Check(obj1)) {
5112 temp2 = std::string(PyString_AsString(obj1));
5113 arg2 = &temp2;
5114 }else {
5115 SWIG_exception(SWIG_TypeError, "string expected");
5116 }
5117 }
5118 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5119 if (arg3 == NULL) {
5120 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5121 }
5122 result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
5123
5124 resultobj = PyInt_FromLong((long)result);
5125 return resultobj;
5126 fail:
5127 return NULL;
5128 }
5129
5130
5131 static PyObject *_wrap_Configuration_getValue__SWIG_5(PyObject *self, PyObject *args) {
5132 PyObject *resultobj;
5133 otk::Configuration *arg1 = (otk::Configuration *) 0 ;
5134 std::string *arg2 = 0 ;
5135 std::string *arg3 = 0 ;
5136 bool result;
5137 std::string temp2 ;
5138 PyObject * obj0 = 0 ;
5139 PyObject * obj1 = 0 ;
5140 PyObject * obj2 = 0 ;
5141
5142 if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
5143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5144 {
5145 if (PyString_Check(obj1)) {
5146 temp2 = std::string(PyString_AsString(obj1));
5147 arg2 = &temp2;
5148 }else {
5149 SWIG_exception(SWIG_TypeError, "string expected");
5150 }
5151 }
5152 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_std__string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5153 if (arg3 == NULL) {
5154 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5155 }
5156 result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
5157
5158 resultobj = PyInt_FromLong((long)result);
5159 return resultobj;
5160 fail:
5161 return NULL;
5162 }
5163
5164
5165 static PyObject *_wrap_Configuration_getValue(PyObject *self, PyObject *args) {
5166 int argc;
5167 PyObject *argv[4];
5168 int ii;
5169
5170 argc = PyObject_Length(args);
5171 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
5172 argv[ii] = PyTuple_GetItem(args,ii);
5173 }
5174 if (argc == 3) {
5175 int _v;
5176 {
5177 void *ptr;
5178 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
5179 _v = 0;
5180 PyErr_Clear();
5181 }else {
5182 _v = 1;
5183 }
5184 }
5185 if (_v) {
5186 {
5187 _v = PyString_Check(argv[1]) ? 1 : 0;
5188 }
5189 if (_v) {
5190 {
5191 void *ptr;
5192 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_bool, 0) == -1) {
5193 _v = 0;
5194 PyErr_Clear();
5195 }else {
5196 _v = 1;
5197 }
5198 }
5199 if (_v) {
5200 return _wrap_Configuration_getValue__SWIG_0(self,args);
5201 }
5202 }
5203 }
5204 }
5205 if (argc == 3) {
5206 int _v;
5207 {
5208 void *ptr;
5209 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
5210 _v = 0;
5211 PyErr_Clear();
5212 }else {
5213 _v = 1;
5214 }
5215 }
5216 if (_v) {
5217 {
5218 _v = PyString_Check(argv[1]) ? 1 : 0;
5219 }
5220 if (_v) {
5221 {
5222 void *ptr;
5223 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_int, 0) == -1) {
5224 _v = 0;
5225 PyErr_Clear();
5226 }else {
5227 _v = 1;
5228 }
5229 }
5230 if (_v) {
5231 return _wrap_Configuration_getValue__SWIG_1(self,args);
5232 }
5233 }
5234 }
5235 }
5236 if (argc == 3) {
5237 int _v;
5238 {
5239 void *ptr;
5240 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
5241 _v = 0;
5242 PyErr_Clear();
5243 }else {
5244 _v = 1;
5245 }
5246 }
5247 if (_v) {
5248 {
5249 _v = PyString_Check(argv[1]) ? 1 : 0;
5250 }
5251 if (_v) {
5252 {
5253 void *ptr;
5254 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_unsigned_int, 0) == -1) {
5255 _v = 0;
5256 PyErr_Clear();
5257 }else {
5258 _v = 1;
5259 }
5260 }
5261 if (_v) {
5262 return _wrap_Configuration_getValue__SWIG_2(self,args);
5263 }
5264 }
5265 }
5266 }
5267 if (argc == 3) {
5268 int _v;
5269 {
5270 void *ptr;
5271 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
5272 _v = 0;
5273 PyErr_Clear();
5274 }else {
5275 _v = 1;
5276 }
5277 }
5278 if (_v) {
5279 {
5280 _v = PyString_Check(argv[1]) ? 1 : 0;
5281 }
5282 if (_v) {
5283 {
5284 void *ptr;
5285 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_long, 0) == -1) {
5286 _v = 0;
5287 PyErr_Clear();
5288 }else {
5289 _v = 1;
5290 }
5291 }
5292 if (_v) {
5293 return _wrap_Configuration_getValue__SWIG_3(self,args);
5294 }
5295 }
5296 }
5297 }
5298 if (argc == 3) {
5299 int _v;
5300 {
5301 void *ptr;
5302 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
5303 _v = 0;
5304 PyErr_Clear();
5305 }else {
5306 _v = 1;
5307 }
5308 }
5309 if (_v) {
5310 {
5311 _v = PyString_Check(argv[1]) ? 1 : 0;
5312 }
5313 if (_v) {
5314 {
5315 void *ptr;
5316 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
5317 _v = 0;
5318 PyErr_Clear();
5319 }else {
5320 _v = 1;
5321 }
5322 }
5323 if (_v) {
5324 return _wrap_Configuration_getValue__SWIG_4(self,args);
5325 }
5326 }
5327 }
5328 }
5329 if (argc == 3) {
5330 int _v;
5331 {
5332 void *ptr;
5333 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
5334 _v = 0;
5335 PyErr_Clear();
5336 }else {
5337 _v = 1;
5338 }
5339 }
5340 if (_v) {
5341 {
5342 _v = PyString_Check(argv[1]) ? 1 : 0;
5343 }
5344 if (_v) {
5345 {
5346 void *ptr;
5347 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_std__string, 0) == -1) {
5348 _v = 0;
5349 PyErr_Clear();
5350 }else {
5351 _v = 1;
5352 }
5353 }
5354 if (_v) {
5355 return _wrap_Configuration_getValue__SWIG_5(self,args);
5356 }
5357 }
5358 }
5359 }
5360
5361 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Configuration_getValue'");
5362 return NULL;
5363 }
5364
5365
5366 static PyObject * Configuration_swigregister(PyObject *self, PyObject *args) {
5367 PyObject *obj;
5368 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5369 SWIG_TypeClientData(SWIGTYPE_p_otk__Configuration, obj);
5370 Py_INCREF(obj);
5371 return Py_BuildValue((char *)"");
5372 }
5373 static int _wrap_OBDisplay_display_set(PyObject *_val) {
5374 {
5375 void *temp;
5376 if ((SWIG_ConvertPtr(_val,(void **) &temp, SWIGTYPE_p_Display, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) {
5377 PyErr_SetString(PyExc_TypeError, "C variable 'otk::OBDisplay::display (Display *)'");
5378 return 1;
5379 }
5380 otk::OBDisplay::display = (Display *) temp;
5381 }
5382 return 0;
5383 }
5384
5385
5386 static PyObject *_wrap_OBDisplay_display_get() {
5387 PyObject *pyobj;
5388
5389 pyobj = SWIG_NewPointerObj((void *) otk::OBDisplay::display, SWIGTYPE_p_Display, 0);
5390 return pyobj;
5391 }
5392
5393
5394 static PyObject *_wrap_OBDisplay_initialize(PyObject *self, PyObject *args) {
5395 PyObject *resultobj;
5396 char *arg1 ;
5397
5398 if(!PyArg_ParseTuple(args,(char *)"s:OBDisplay_initialize",&arg1)) goto fail;
5399 otk::OBDisplay::initialize(arg1);
5400
5401 Py_INCREF(Py_None); resultobj = Py_None;
5402 return resultobj;
5403 fail:
5404 return NULL;
5405 }
5406
5407
5408 static PyObject *_wrap_OBDisplay_destroy(PyObject *self, PyObject *args) {
5409 PyObject *resultobj;
5410
5411 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_destroy")) goto fail;
5412 otk::OBDisplay::destroy();
5413
5414 Py_INCREF(Py_None); resultobj = Py_None;
5415 return resultobj;
5416 fail:
5417 return NULL;
5418 }
5419
5420
5421 static PyObject *_wrap_OBDisplay_gcCache(PyObject *self, PyObject *args) {
5422 PyObject *resultobj;
5423 otk::BGCCache *result;
5424
5425 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_gcCache")) goto fail;
5426 result = (otk::BGCCache *)otk::OBDisplay::gcCache();
5427
5428 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BGCCache, 0);
5429 return resultobj;
5430 fail:
5431 return NULL;
5432 }
5433
5434
5435 static PyObject *_wrap_OBDisplay_screenInfo(PyObject *self, PyObject *args) {
5436 PyObject *resultobj;
5437 int arg1 ;
5438 otk::ScreenInfo *result;
5439
5440 if(!PyArg_ParseTuple(args,(char *)"i:OBDisplay_screenInfo",&arg1)) goto fail;
5441 result = (otk::ScreenInfo *)otk::OBDisplay::screenInfo(arg1);
5442
5443 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0);
5444 return resultobj;
5445 fail:
5446 return NULL;
5447 }
5448
5449
5450 static PyObject *_wrap_OBDisplay_shape(PyObject *self, PyObject *args) {
5451 PyObject *resultobj;
5452 bool result;
5453
5454 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_shape")) goto fail;
5455 result = (bool)otk::OBDisplay::shape();
5456
5457 resultobj = PyInt_FromLong((long)result);
5458 return resultobj;
5459 fail:
5460 return NULL;
5461 }
5462
5463
5464 static PyObject *_wrap_OBDisplay_shapeEventBase(PyObject *self, PyObject *args) {
5465 PyObject *resultobj;
5466 int result;
5467
5468 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_shapeEventBase")) goto fail;
5469 result = (int)otk::OBDisplay::shapeEventBase();
5470
5471 resultobj = PyInt_FromLong((long)result);
5472 return resultobj;
5473 fail:
5474 return NULL;
5475 }
5476
5477
5478 static PyObject *_wrap_OBDisplay_xinerama(PyObject *self, PyObject *args) {
5479 PyObject *resultobj;
5480 bool result;
5481
5482 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_xinerama")) goto fail;
5483 result = (bool)otk::OBDisplay::xinerama();
5484
5485 resultobj = PyInt_FromLong((long)result);
5486 return resultobj;
5487 fail:
5488 return NULL;
5489 }
5490
5491
5492 static PyObject *_wrap_OBDisplay_grab(PyObject *self, PyObject *args) {
5493 PyObject *resultobj;
5494
5495 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_grab")) goto fail;
5496 otk::OBDisplay::grab();
5497
5498 Py_INCREF(Py_None); resultobj = Py_None;
5499 return resultobj;
5500 fail:
5501 return NULL;
5502 }
5503
5504
5505 static PyObject *_wrap_OBDisplay_ungrab(PyObject *self, PyObject *args) {
5506 PyObject *resultobj;
5507
5508 if(!PyArg_ParseTuple(args,(char *)":OBDisplay_ungrab")) goto fail;
5509 otk::OBDisplay::ungrab();
5510
5511 Py_INCREF(Py_None); resultobj = Py_None;
5512 return resultobj;
5513 fail:
5514 return NULL;
5515 }
5516
5517
5518 static PyObject *_wrap_OBDisplay_grabButton(PyObject *self, PyObject *args) {
5519 PyObject *resultobj;
5520 unsigned int arg1 ;
5521 unsigned int arg2 ;
5522 Window arg3 ;
5523 bool arg4 ;
5524 unsigned int arg5 ;
5525 int arg6 ;
5526 int arg7 ;
5527 Window arg8 ;
5528 Cursor arg9 ;
5529 bool arg10 ;
5530 Window *argp3 ;
5531 Window *argp8 ;
5532 Cursor *argp9 ;
5533 PyObject * obj0 = 0 ;
5534 PyObject * obj1 = 0 ;
5535 PyObject * obj2 = 0 ;
5536 PyObject * obj3 = 0 ;
5537 PyObject * obj4 = 0 ;
5538 PyObject * obj7 = 0 ;
5539 PyObject * obj8 = 0 ;
5540 PyObject * obj9 = 0 ;
5541
5542 if(!PyArg_ParseTuple(args,(char *)"OOOOOiiOOO:OBDisplay_grabButton",&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7,&obj7,&obj8,&obj9)) goto fail;
5543 arg1 = (unsigned int) PyInt_AsLong(obj0);
5544 if (PyErr_Occurred()) SWIG_fail;
5545 arg2 = (unsigned int) PyInt_AsLong(obj1);
5546 if (PyErr_Occurred()) SWIG_fail;
5547 if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
5548 arg3 = *argp3;
5549 arg4 = (bool) PyInt_AsLong(obj3);
5550 if (PyErr_Occurred()) SWIG_fail;
5551 arg5 = (unsigned int) PyInt_AsLong(obj4);
5552 if (PyErr_Occurred()) SWIG_fail;
5553 if ((SWIG_ConvertPtr(obj7,(void **) &argp8, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
5554 arg8 = *argp8;
5555 if ((SWIG_ConvertPtr(obj8,(void **) &argp9, SWIGTYPE_p_Cursor,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
5556 arg9 = *argp9;
5557 arg10 = (bool) PyInt_AsLong(obj9);
5558 if (PyErr_Occurred()) SWIG_fail;
5559 otk::OBDisplay::grabButton(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
5560
5561 Py_INCREF(Py_None); resultobj = Py_None;
5562 return resultobj;
5563 fail:
5564 return NULL;
5565 }
5566
5567
5568 static PyObject *_wrap_OBDisplay_ungrabButton(PyObject *self, PyObject *args) {
5569 PyObject *resultobj;
5570 unsigned int arg1 ;
5571 unsigned int arg2 ;
5572 Window arg3 ;
5573 Window *argp3 ;
5574 PyObject * obj0 = 0 ;
5575 PyObject * obj1 = 0 ;
5576 PyObject * obj2 = 0 ;
5577
5578 if(!PyArg_ParseTuple(args,(char *)"OOO:OBDisplay_ungrabButton",&obj0,&obj1,&obj2)) goto fail;
5579 arg1 = (unsigned int) PyInt_AsLong(obj0);
5580 if (PyErr_Occurred()) SWIG_fail;
5581 arg2 = (unsigned int) PyInt_AsLong(obj1);
5582 if (PyErr_Occurred()) SWIG_fail;
5583 if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
5584 arg3 = *argp3;
5585 otk::OBDisplay::ungrabButton(arg1,arg2,arg3);
5586
5587 Py_INCREF(Py_None); resultobj = Py_None;
5588 return resultobj;
5589 fail:
5590 return NULL;
5591 }
5592
5593
5594 static PyObject * OBDisplay_swigregister(PyObject *self, PyObject *args) {
5595 PyObject *obj;
5596 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5597 SWIG_TypeClientData(SWIGTYPE_p_otk__OBDisplay, obj);
5598 Py_INCREF(obj);
5599 return Py_BuildValue((char *)"");
5600 }
5601 static PyObject *_wrap_BFont_fallbackFont(PyObject *self, PyObject *args) {
5602 PyObject *resultobj;
5603 std::string result;
5604
5605 if(!PyArg_ParseTuple(args,(char *)":BFont_fallbackFont")) goto fail;
5606 result = otk::BFont::fallbackFont();
5607
5608 {
5609 resultobj = PyString_FromString((&result)->c_str());
5610 }
5611 return resultobj;
5612 fail:
5613 return NULL;
5614 }
5615
5616
5617 static PyObject *_wrap_BFont_setFallbackFont(PyObject *self, PyObject *args) {
5618 PyObject *resultobj;
5619 std::string *arg1 = 0 ;
5620 std::string temp1 ;
5621 PyObject * obj0 = 0 ;
5622
5623 if(!PyArg_ParseTuple(args,(char *)"O:BFont_setFallbackFont",&obj0)) goto fail;
5624 {
5625 if (PyString_Check(obj0)) {
5626 temp1 = std::string(PyString_AsString(obj0));
5627 arg1 = &temp1;
5628 }else {
5629 SWIG_exception(SWIG_TypeError, "string expected");
5630 }
5631 }
5632 otk::BFont::setFallbackFont((std::string const &)*arg1);
5633
5634 Py_INCREF(Py_None); resultobj = Py_None;
5635 return resultobj;
5636 fail:
5637 return NULL;
5638 }
5639
5640
5641 static PyObject *_wrap_new_BFont(PyObject *self, PyObject *args) {
5642 PyObject *resultobj;
5643 int arg1 ;
5644 std::string *arg2 = 0 ;
5645 bool arg3 ;
5646 unsigned char arg4 ;
5647 unsigned char arg5 ;
5648 otk::BFont *result;
5649 std::string temp2 ;
5650 PyObject * obj1 = 0 ;
5651 PyObject * obj2 = 0 ;
5652 PyObject * obj3 = 0 ;
5653 PyObject * obj4 = 0 ;
5654
5655 if(!PyArg_ParseTuple(args,(char *)"iOOOO:new_BFont",&arg1,&obj1,&obj2,&obj3,&obj4)) goto fail;
5656 {
5657 if (PyString_Check(obj1)) {
5658 temp2 = std::string(PyString_AsString(obj1));
5659 arg2 = &temp2;
5660 }else {
5661 SWIG_exception(SWIG_TypeError, "string expected");
5662 }
5663 }
5664 arg3 = (bool) PyInt_AsLong(obj2);
5665 if (PyErr_Occurred()) SWIG_fail;
5666 arg4 = (unsigned char) PyInt_AsLong(obj3);
5667 if (PyErr_Occurred()) SWIG_fail;
5668 arg5 = (unsigned char) PyInt_AsLong(obj4);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 result = (otk::BFont *)new otk::BFont(arg1,(std::string const &)*arg2,arg3,arg4,arg5);
5671
5672 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BFont, 1);
5673 return resultobj;
5674 fail:
5675 return NULL;
5676 }
5677
5678
5679 static PyObject *_wrap_delete_BFont(PyObject *self, PyObject *args) {
5680 PyObject *resultobj;
5681 otk::BFont *arg1 = (otk::BFont *) 0 ;
5682 PyObject * obj0 = 0 ;
5683
5684 if(!PyArg_ParseTuple(args,(char *)"O:delete_BFont",&obj0)) goto fail;
5685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5686 delete arg1;
5687
5688 Py_INCREF(Py_None); resultobj = Py_None;
5689 return resultobj;
5690 fail:
5691 return NULL;
5692 }
5693
5694
5695 static PyObject *_wrap_BFont_fontstring(PyObject *self, PyObject *args) {
5696 PyObject *resultobj;
5697 otk::BFont *arg1 = (otk::BFont *) 0 ;
5698 std::string *result;
5699 PyObject * obj0 = 0 ;
5700
5701 if(!PyArg_ParseTuple(args,(char *)"O:BFont_fontstring",&obj0)) goto fail;
5702 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5703 {
5704 std::string const &_result_ref = ((otk::BFont const *)arg1)->fontstring();
5705 result = (std::string *) &_result_ref;
5706 }
5707
5708 {
5709 resultobj = PyString_FromString(result->c_str());
5710 }
5711 return resultobj;
5712 fail:
5713 return NULL;
5714 }
5715
5716
5717 static PyObject *_wrap_BFont_height(PyObject *self, PyObject *args) {
5718 PyObject *resultobj;
5719 otk::BFont *arg1 = (otk::BFont *) 0 ;
5720 unsigned int result;
5721 PyObject * obj0 = 0 ;
5722
5723 if(!PyArg_ParseTuple(args,(char *)"O:BFont_height",&obj0)) goto fail;
5724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5725 result = (unsigned int)((otk::BFont const *)arg1)->height();
5726
5727 resultobj = PyInt_FromLong((long)result);
5728 return resultobj;
5729 fail:
5730 return NULL;
5731 }
5732
5733
5734 static PyObject *_wrap_BFont_maxCharWidth(PyObject *self, PyObject *args) {
5735 PyObject *resultobj;
5736 otk::BFont *arg1 = (otk::BFont *) 0 ;
5737 unsigned int result;
5738 PyObject * obj0 = 0 ;
5739
5740 if(!PyArg_ParseTuple(args,(char *)"O:BFont_maxCharWidth",&obj0)) goto fail;
5741 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5742 result = (unsigned int)((otk::BFont const *)arg1)->maxCharWidth();
5743
5744 resultobj = PyInt_FromLong((long)result);
5745 return resultobj;
5746 fail:
5747 return NULL;
5748 }
5749
5750
5751 static PyObject *_wrap_BFont_measureString(PyObject *self, PyObject *args) {
5752 PyObject *resultobj;
5753 otk::BFont *arg1 = (otk::BFont *) 0 ;
5754 std::string *arg2 = 0 ;
5755 bool arg3 = (bool) false ;
5756 unsigned int result;
5757 std::string temp2 ;
5758 PyObject * obj0 = 0 ;
5759 PyObject * obj1 = 0 ;
5760 PyObject * obj2 = 0 ;
5761
5762 if(!PyArg_ParseTuple(args,(char *)"OO|O:BFont_measureString",&obj0,&obj1,&obj2)) goto fail;
5763 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5764 {
5765 if (PyString_Check(obj1)) {
5766 temp2 = std::string(PyString_AsString(obj1));
5767 arg2 = &temp2;
5768 }else {
5769 SWIG_exception(SWIG_TypeError, "string expected");
5770 }
5771 }
5772 if (obj2) {
5773 arg3 = (bool) PyInt_AsLong(obj2);
5774 if (PyErr_Occurred()) SWIG_fail;
5775 }
5776 result = (unsigned int)((otk::BFont const *)arg1)->measureString((std::string const &)*arg2,arg3);
5777
5778 resultobj = PyInt_FromLong((long)result);
5779 return resultobj;
5780 fail:
5781 return NULL;
5782 }
5783
5784
5785 static PyObject *_wrap_BFont_drawString(PyObject *self, PyObject *args) {
5786 PyObject *resultobj;
5787 otk::BFont *arg1 = (otk::BFont *) 0 ;
5788 XftDraw *arg2 = (XftDraw *) 0 ;
5789 int arg3 ;
5790 int arg4 ;
5791 otk::BColor *arg5 = 0 ;
5792 std::string *arg6 = 0 ;
5793 bool arg7 = (bool) false ;
5794 std::string temp6 ;
5795 PyObject * obj0 = 0 ;
5796 PyObject * obj1 = 0 ;
5797 PyObject * obj4 = 0 ;
5798 PyObject * obj5 = 0 ;
5799 PyObject * obj6 = 0 ;
5800
5801 if(!PyArg_ParseTuple(args,(char *)"OOiiOO|O:BFont_drawString",&obj0,&obj1,&arg3,&arg4,&obj4,&obj5,&obj6)) goto fail;
5802 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5803 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XftDraw,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5804 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5805 if (arg5 == NULL) {
5806 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5807 }
5808 {
5809 if (PyString_Check(obj5)) {
5810 temp6 = std::string(PyString_AsString(obj5));
5811 arg6 = &temp6;
5812 }else {
5813 SWIG_exception(SWIG_TypeError, "string expected");
5814 }
5815 }
5816 if (obj6) {
5817 arg7 = (bool) PyInt_AsLong(obj6);
5818 if (PyErr_Occurred()) SWIG_fail;
5819 }
5820 ((otk::BFont const *)arg1)->drawString(arg2,arg3,arg4,(otk::BColor const &)*arg5,(std::string const &)*arg6,arg7);
5821
5822 Py_INCREF(Py_None); resultobj = Py_None;
5823 return resultobj;
5824 fail:
5825 return NULL;
5826 }
5827
5828
5829 static PyObject * BFont_swigregister(PyObject *self, PyObject *args) {
5830 PyObject *obj;
5831 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5832 SWIG_TypeClientData(SWIGTYPE_p_otk__BFont, obj);
5833 Py_INCREF(obj);
5834 return Py_BuildValue((char *)"");
5835 }
5836 static PyObject *_wrap_BGCCacheContext_set__SWIG_0(PyObject *self, PyObject *args) {
5837 PyObject *resultobj;
5838 otk::BGCCacheContext *arg1 = (otk::BGCCacheContext *) 0 ;
5839 otk::BColor *arg2 = 0 ;
5840 XFontStruct *arg3 = (XFontStruct *) (XFontStruct *)0 ;
5841 int arg4 ;
5842 int arg5 ;
5843 int arg6 ;
5844 PyObject * obj0 = 0 ;
5845 PyObject * obj1 = 0 ;
5846 PyObject * obj2 = 0 ;
5847
5848 if(!PyArg_ParseTuple(args,(char *)"OOOiii:BGCCacheContext_set",&obj0,&obj1,&obj2,&arg4,&arg5,&arg6)) goto fail;
5849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5850 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5851 if (arg2 == NULL) {
5852 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5853 }
5854 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_XFontStruct,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5855 (arg1)->set((otk::BColor const &)*arg2,(XFontStruct const *)arg3,arg4,arg5,arg6);
5856
5857 Py_INCREF(Py_None); resultobj = Py_None;
5858 return resultobj;
5859 fail:
5860 return NULL;
5861 }
5862
5863
5864 static PyObject *_wrap_BGCCacheContext_set__SWIG_1(PyObject *self, PyObject *args) {
5865 PyObject *resultobj;
5866 otk::BGCCacheContext *arg1 = (otk::BGCCacheContext *) 0 ;
5867 XFontStruct *arg2 = (XFontStruct *) (XFontStruct *)0 ;
5868 PyObject * obj0 = 0 ;
5869 PyObject * obj1 = 0 ;
5870
5871 if(!PyArg_ParseTuple(args,(char *)"OO:BGCCacheContext_set",&obj0,&obj1)) goto fail;
5872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5873 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFontStruct,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5874 (arg1)->set((XFontStruct const *)arg2);
5875
5876 Py_INCREF(Py_None); resultobj = Py_None;
5877 return resultobj;
5878 fail:
5879 return NULL;
5880 }
5881
5882
5883 static PyObject *_wrap_BGCCacheContext_set(PyObject *self, PyObject *args) {
5884 int argc;
5885 PyObject *argv[7];
5886 int ii;
5887
5888 argc = PyObject_Length(args);
5889 for (ii = 0; (ii < argc) && (ii < 6); ii++) {
5890 argv[ii] = PyTuple_GetItem(args,ii);
5891 }
5892 if (argc == 2) {
5893 int _v;
5894 {
5895 void *ptr;
5896 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__BGCCacheContext, 0) == -1) {
5897 _v = 0;
5898 PyErr_Clear();
5899 }else {
5900 _v = 1;
5901 }
5902 }
5903 if (_v) {
5904 {
5905 void *ptr;
5906 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_XFontStruct, 0) == -1) {
5907 _v = 0;
5908 PyErr_Clear();
5909 }else {
5910 _v = 1;
5911 }
5912 }
5913 if (_v) {
5914 return _wrap_BGCCacheContext_set__SWIG_1(self,args);
5915 }
5916 }
5917 }
5918 if (argc == 6) {
5919 int _v;
5920 {
5921 void *ptr;
5922 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__BGCCacheContext, 0) == -1) {
5923 _v = 0;
5924 PyErr_Clear();
5925 }else {
5926 _v = 1;
5927 }
5928 }
5929 if (_v) {
5930 {
5931 void *ptr;
5932 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__BColor, 0) == -1) {
5933 _v = 0;
5934 PyErr_Clear();
5935 }else {
5936 _v = 1;
5937 }
5938 }
5939 if (_v) {
5940 {
5941 void *ptr;
5942 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_XFontStruct, 0) == -1) {
5943 _v = 0;
5944 PyErr_Clear();
5945 }else {
5946 _v = 1;
5947 }
5948 }
5949 if (_v) {
5950 {
5951 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
5952 }
5953 if (_v) {
5954 {
5955 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
5956 }
5957 if (_v) {
5958 {
5959 _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
5960 }
5961 if (_v) {
5962 return _wrap_BGCCacheContext_set__SWIG_0(self,args);
5963 }
5964 }
5965 }
5966 }
5967 }
5968 }
5969 }
5970
5971 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'BGCCacheContext_set'");
5972 return NULL;
5973 }
5974
5975
5976 static PyObject *_wrap_delete_BGCCacheContext(PyObject *self, PyObject *args) {
5977 PyObject *resultobj;
5978 otk::BGCCacheContext *arg1 = (otk::BGCCacheContext *) 0 ;
5979 PyObject * obj0 = 0 ;
5980
5981 if(!PyArg_ParseTuple(args,(char *)"O:delete_BGCCacheContext",&obj0)) goto fail;
5982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5983 delete arg1;
5984
5985 Py_INCREF(Py_None); resultobj = Py_None;
5986 return resultobj;
5987 fail:
5988 return NULL;
5989 }
5990
5991
5992 static PyObject * BGCCacheContext_swigregister(PyObject *self, PyObject *args) {
5993 PyObject *obj;
5994 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5995 SWIG_TypeClientData(SWIGTYPE_p_otk__BGCCacheContext, obj);
5996 Py_INCREF(obj);
5997 return Py_BuildValue((char *)"");
5998 }
5999 static PyObject *_wrap_BGCCacheItem_gc(PyObject *self, PyObject *args) {
6000 PyObject *resultobj;
6001 otk::BGCCacheItem *arg1 = (otk::BGCCacheItem *) 0 ;
6002 GC *result;
6003 PyObject * obj0 = 0 ;
6004
6005 if(!PyArg_ParseTuple(args,(char *)"O:BGCCacheItem_gc",&obj0)) goto fail;
6006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6007 {
6008 GC const &_result_ref = ((otk::BGCCacheItem const *)arg1)->gc();
6009 result = (GC *) &_result_ref;
6010 }
6011
6012 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_GC, 0);
6013 return resultobj;
6014 fail:
6015 return NULL;
6016 }
6017
6018
6019 static PyObject * BGCCacheItem_swigregister(PyObject *self, PyObject *args) {
6020 PyObject *obj;
6021 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6022 SWIG_TypeClientData(SWIGTYPE_p_otk__BGCCacheItem, obj);
6023 Py_INCREF(obj);
6024 return Py_BuildValue((char *)"");
6025 }
6026 static PyObject *_wrap_new_BGCCache(PyObject *self, PyObject *args) {
6027 PyObject *resultobj;
6028 unsigned int arg1 ;
6029 otk::BGCCache *result;
6030 PyObject * obj0 = 0 ;
6031
6032 if(!PyArg_ParseTuple(args,(char *)"O:new_BGCCache",&obj0)) goto fail;
6033 arg1 = (unsigned int) PyInt_AsLong(obj0);
6034 if (PyErr_Occurred()) SWIG_fail;
6035 result = (otk::BGCCache *)new otk::BGCCache(arg1);
6036
6037 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BGCCache, 1);
6038 return resultobj;
6039 fail:
6040 return NULL;
6041 }
6042
6043
6044 static PyObject *_wrap_delete_BGCCache(PyObject *self, PyObject *args) {
6045 PyObject *resultobj;
6046 otk::BGCCache *arg1 = (otk::BGCCache *) 0 ;
6047 PyObject * obj0 = 0 ;
6048
6049 if(!PyArg_ParseTuple(args,(char *)"O:delete_BGCCache",&obj0)) goto fail;
6050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6051 delete arg1;
6052
6053 Py_INCREF(Py_None); resultobj = Py_None;
6054 return resultobj;
6055 fail:
6056 return NULL;
6057 }
6058
6059
6060 static PyObject *_wrap_BGCCache_purge(PyObject *self, PyObject *args) {
6061 PyObject *resultobj;
6062 otk::BGCCache *arg1 = (otk::BGCCache *) 0 ;
6063 PyObject * obj0 = 0 ;
6064
6065 if(!PyArg_ParseTuple(args,(char *)"O:BGCCache_purge",&obj0)) goto fail;
6066 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6067 (arg1)->purge();
6068
6069 Py_INCREF(Py_None); resultobj = Py_None;
6070 return resultobj;
6071 fail:
6072 return NULL;
6073 }
6074
6075
6076 static PyObject *_wrap_BGCCache_find(PyObject *self, PyObject *args) {
6077 PyObject *resultobj;
6078 otk::BGCCache *arg1 = (otk::BGCCache *) 0 ;
6079 otk::BColor *arg2 = 0 ;
6080 XFontStruct *arg3 = (XFontStruct *) (XFontStruct *)0 ;
6081 int arg4 = (int) GXcopy ;
6082 int arg5 = (int) ClipByChildren ;
6083 int arg6 = (int) 0 ;
6084 otk::BGCCacheItem *result;
6085 PyObject * obj0 = 0 ;
6086 PyObject * obj1 = 0 ;
6087 PyObject * obj2 = 0 ;
6088
6089 if(!PyArg_ParseTuple(args,(char *)"OO|Oiii:BGCCache_find",&obj0,&obj1,&obj2,&arg4,&arg5,&arg6)) goto fail;
6090 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6091 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6092 if (arg2 == NULL) {
6093 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6094 }
6095 if (obj2) {
6096 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_XFontStruct,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6097 }
6098 result = (otk::BGCCacheItem *)(arg1)->find((otk::BColor const &)*arg2,(XFontStruct const *)arg3,arg4,arg5,arg6);
6099
6100 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BGCCacheItem, 0);
6101 return resultobj;
6102 fail:
6103 return NULL;
6104 }
6105
6106
6107 static PyObject *_wrap_BGCCache_release(PyObject *self, PyObject *args) {
6108 PyObject *resultobj;
6109 otk::BGCCache *arg1 = (otk::BGCCache *) 0 ;
6110 otk::BGCCacheItem *arg2 = (otk::BGCCacheItem *) 0 ;
6111 PyObject * obj0 = 0 ;
6112 PyObject * obj1 = 0 ;
6113
6114 if(!PyArg_ParseTuple(args,(char *)"OO:BGCCache_release",&obj0,&obj1)) goto fail;
6115 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6116 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BGCCacheItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6117 (arg1)->release(arg2);
6118
6119 Py_INCREF(Py_None); resultobj = Py_None;
6120 return resultobj;
6121 fail:
6122 return NULL;
6123 }
6124
6125
6126 static PyObject * BGCCache_swigregister(PyObject *self, PyObject *args) {
6127 PyObject *obj;
6128 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6129 SWIG_TypeClientData(SWIGTYPE_p_otk__BGCCache, obj);
6130 Py_INCREF(obj);
6131 return Py_BuildValue((char *)"");
6132 }
6133 static PyObject *_wrap_new_BPen(PyObject *self, PyObject *args) {
6134 PyObject *resultobj;
6135 otk::BColor *arg1 = 0 ;
6136 XFontStruct *arg2 = (XFontStruct *) (XFontStruct *)0 ;
6137 int arg3 = (int) 0 ;
6138 int arg4 = (int) GXcopy ;
6139 int arg5 = (int) ClipByChildren ;
6140 otk::BPen *result;
6141 PyObject * obj0 = 0 ;
6142 PyObject * obj1 = 0 ;
6143
6144 if(!PyArg_ParseTuple(args,(char *)"O|Oiii:new_BPen",&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
6145 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6146 if (arg1 == NULL) {
6147 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6148 }
6149 if (obj1) {
6150 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFontStruct,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6151 }
6152 result = (otk::BPen *)new otk::BPen((otk::BColor const &)*arg1,(XFontStruct const *)arg2,arg3,arg4,arg5);
6153
6154 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BPen, 1);
6155 return resultobj;
6156 fail:
6157 return NULL;
6158 }
6159
6160
6161 static PyObject *_wrap_delete_BPen(PyObject *self, PyObject *args) {
6162 PyObject *resultobj;
6163 otk::BPen *arg1 = (otk::BPen *) 0 ;
6164 PyObject * obj0 = 0 ;
6165
6166 if(!PyArg_ParseTuple(args,(char *)"O:delete_BPen",&obj0)) goto fail;
6167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6168 delete arg1;
6169
6170 Py_INCREF(Py_None); resultobj = Py_None;
6171 return resultobj;
6172 fail:
6173 return NULL;
6174 }
6175
6176
6177 static PyObject *_wrap_BPen_gc(PyObject *self, PyObject *args) {
6178 PyObject *resultobj;
6179 otk::BPen *arg1 = (otk::BPen *) 0 ;
6180 GC *result;
6181 PyObject * obj0 = 0 ;
6182
6183 if(!PyArg_ParseTuple(args,(char *)"O:BPen_gc",&obj0)) goto fail;
6184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6185 {
6186 GC const &_result_ref = ((otk::BPen const *)arg1)->gc();
6187 result = (GC *) &_result_ref;
6188 }
6189
6190 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_GC, 0);
6191 return resultobj;
6192 fail:
6193 return NULL;
6194 }
6195
6196
6197 static PyObject * BPen_swigregister(PyObject *self, PyObject *args) {
6198 PyObject *obj;
6199 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6200 SWIG_TypeClientData(SWIGTYPE_p_otk__BPen, obj);
6201 Py_INCREF(obj);
6202 return Py_BuildValue((char *)"");
6203 }
6204 static PyObject *_wrap_new_BImage(PyObject *self, PyObject *args) {
6205 PyObject *resultobj;
6206 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6207 int arg2 ;
6208 int arg3 ;
6209 otk::BImage *result;
6210 PyObject * obj0 = 0 ;
6211
6212 if(!PyArg_ParseTuple(args,(char *)"Oii:new_BImage",&obj0,&arg2,&arg3)) goto fail;
6213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6214 result = (otk::BImage *)new otk::BImage(arg1,arg2,arg3);
6215
6216 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImage, 1);
6217 return resultobj;
6218 fail:
6219 return NULL;
6220 }
6221
6222
6223 static PyObject *_wrap_delete_BImage(PyObject *self, PyObject *args) {
6224 PyObject *resultobj;
6225 otk::BImage *arg1 = (otk::BImage *) 0 ;
6226 PyObject * obj0 = 0 ;
6227
6228 if(!PyArg_ParseTuple(args,(char *)"O:delete_BImage",&obj0)) goto fail;
6229 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6230 delete arg1;
6231
6232 Py_INCREF(Py_None); resultobj = Py_None;
6233 return resultobj;
6234 fail:
6235 return NULL;
6236 }
6237
6238
6239 static PyObject *_wrap_BImage_render(PyObject *self, PyObject *args) {
6240 PyObject *resultobj;
6241 otk::BImage *arg1 = (otk::BImage *) 0 ;
6242 otk::BTexture *arg2 = 0 ;
6243 Pixmap result;
6244 PyObject * obj0 = 0 ;
6245 PyObject * obj1 = 0 ;
6246
6247 if(!PyArg_ParseTuple(args,(char *)"OO:BImage_render",&obj0,&obj1)) goto fail;
6248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6249 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6250 if (arg2 == NULL) {
6251 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6252 }
6253 result = (arg1)->render((otk::BTexture const &)*arg2);
6254
6255 {
6256 Pixmap * resultptr;
6257 resultptr = new Pixmap((Pixmap &) result);
6258 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Pixmap, 1);
6259 }
6260 return resultobj;
6261 fail:
6262 return NULL;
6263 }
6264
6265
6266 static PyObject * BImage_swigregister(PyObject *self, PyObject *args) {
6267 PyObject *obj;
6268 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6269 SWIG_TypeClientData(SWIGTYPE_p_otk__BImage, obj);
6270 Py_INCREF(obj);
6271 return Py_BuildValue((char *)"");
6272 }
6273 static PyObject *_wrap_new_BImageControl(PyObject *self, PyObject *args) {
6274 PyObject *resultobj;
6275 otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
6276 otk::ScreenInfo *arg2 = (otk::ScreenInfo *) 0 ;
6277 bool arg3 = (bool) False ;
6278 int arg4 = (int) 4 ;
6279 unsigned long arg5 = (unsigned long) 300000l ;
6280 unsigned long arg6 = (unsigned long) 200l ;
6281 otk::BImageControl *result;
6282 PyObject * obj0 = 0 ;
6283 PyObject * obj1 = 0 ;
6284 PyObject * obj2 = 0 ;
6285 PyObject * obj4 = 0 ;
6286 PyObject * obj5 = 0 ;
6287
6288 if(!PyArg_ParseTuple(args,(char *)"OO|OiOO:new_BImageControl",&obj0,&obj1,&obj2,&arg4,&obj4,&obj5)) goto fail;
6289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6290 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6291 if (obj2) {
6292 arg3 = (bool) PyInt_AsLong(obj2);
6293 if (PyErr_Occurred()) SWIG_fail;
6294 }
6295 if (obj4) {
6296 arg5 = (unsigned long) PyInt_AsLong(obj4);
6297 if (PyErr_Occurred()) SWIG_fail;
6298 }
6299 if (obj5) {
6300 arg6 = (unsigned long) PyInt_AsLong(obj5);
6301 if (PyErr_Occurred()) SWIG_fail;
6302 }
6303 result = (otk::BImageControl *)new otk::BImageControl(arg1,(otk::ScreenInfo const *)arg2,arg3,arg4,arg5,arg6);
6304
6305 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 1);
6306 return resultobj;
6307 fail:
6308 return NULL;
6309 }
6310
6311
6312 static PyObject *_wrap_delete_BImageControl(PyObject *self, PyObject *args) {
6313 PyObject *resultobj;
6314 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6315 PyObject * obj0 = 0 ;
6316
6317 if(!PyArg_ParseTuple(args,(char *)"O:delete_BImageControl",&obj0)) goto fail;
6318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6319 delete arg1;
6320
6321 Py_INCREF(Py_None); resultobj = Py_None;
6322 return resultobj;
6323 fail:
6324 return NULL;
6325 }
6326
6327
6328 static PyObject *_wrap_BImageControl_doDither(PyObject *self, PyObject *args) {
6329 PyObject *resultobj;
6330 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6331 bool result;
6332 PyObject * obj0 = 0 ;
6333
6334 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_doDither",&obj0)) goto fail;
6335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6336 result = (bool)(arg1)->doDither();
6337
6338 resultobj = PyInt_FromLong((long)result);
6339 return resultobj;
6340 fail:
6341 return NULL;
6342 }
6343
6344
6345 static PyObject *_wrap_BImageControl_getScreenInfo(PyObject *self, PyObject *args) {
6346 PyObject *resultobj;
6347 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6348 otk::ScreenInfo *result;
6349 PyObject * obj0 = 0 ;
6350
6351 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getScreenInfo",&obj0)) goto fail;
6352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6353 result = (otk::ScreenInfo *)((otk::BImageControl const *)arg1)->getScreenInfo();
6354
6355 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0);
6356 return resultobj;
6357 fail:
6358 return NULL;
6359 }
6360
6361
6362 static PyObject *_wrap_BImageControl_getDrawable(PyObject *self, PyObject *args) {
6363 PyObject *resultobj;
6364 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6365 Window result;
6366 PyObject * obj0 = 0 ;
6367
6368 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getDrawable",&obj0)) goto fail;
6369 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6370 result = ((otk::BImageControl const *)arg1)->getDrawable();
6371
6372 {
6373 Window * resultptr;
6374 resultptr = new Window((Window &) result);
6375 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Window, 1);
6376 }
6377 return resultobj;
6378 fail:
6379 return NULL;
6380 }
6381
6382
6383 static PyObject *_wrap_BImageControl_getVisual(PyObject *self, PyObject *args) {
6384 PyObject *resultobj;
6385 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6386 Visual *result;
6387 PyObject * obj0 = 0 ;
6388
6389 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getVisual",&obj0)) goto fail;
6390 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6391 result = (Visual *)(arg1)->getVisual();
6392
6393 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Visual, 0);
6394 return resultobj;
6395 fail:
6396 return NULL;
6397 }
6398
6399
6400 static PyObject *_wrap_BImageControl_getBitsPerPixel(PyObject *self, PyObject *args) {
6401 PyObject *resultobj;
6402 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6403 int result;
6404 PyObject * obj0 = 0 ;
6405
6406 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getBitsPerPixel",&obj0)) goto fail;
6407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6408 result = (int)((otk::BImageControl const *)arg1)->getBitsPerPixel();
6409
6410 resultobj = PyInt_FromLong((long)result);
6411 return resultobj;
6412 fail:
6413 return NULL;
6414 }
6415
6416
6417 static PyObject *_wrap_BImageControl_getDepth(PyObject *self, PyObject *args) {
6418 PyObject *resultobj;
6419 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6420 int result;
6421 PyObject * obj0 = 0 ;
6422
6423 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getDepth",&obj0)) goto fail;
6424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6425 result = (int)((otk::BImageControl const *)arg1)->getDepth();
6426
6427 resultobj = PyInt_FromLong((long)result);
6428 return resultobj;
6429 fail:
6430 return NULL;
6431 }
6432
6433
6434 static PyObject *_wrap_BImageControl_getColorsPerChannel(PyObject *self, PyObject *args) {
6435 PyObject *resultobj;
6436 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6437 int result;
6438 PyObject * obj0 = 0 ;
6439
6440 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getColorsPerChannel",&obj0)) goto fail;
6441 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6442 result = (int)((otk::BImageControl const *)arg1)->getColorsPerChannel();
6443
6444 resultobj = PyInt_FromLong((long)result);
6445 return resultobj;
6446 fail:
6447 return NULL;
6448 }
6449
6450
6451 static PyObject *_wrap_BImageControl_getSqrt(PyObject *self, PyObject *args) {
6452 PyObject *resultobj;
6453 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6454 unsigned int arg2 ;
6455 unsigned long result;
6456 PyObject * obj0 = 0 ;
6457 PyObject * obj1 = 0 ;
6458
6459 if(!PyArg_ParseTuple(args,(char *)"OO:BImageControl_getSqrt",&obj0,&obj1)) goto fail;
6460 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6461 arg2 = (unsigned int) PyInt_AsLong(obj1);
6462 if (PyErr_Occurred()) SWIG_fail;
6463 result = (unsigned long)(arg1)->getSqrt(arg2);
6464
6465 resultobj = PyInt_FromLong((long)result);
6466 return resultobj;
6467 fail:
6468 return NULL;
6469 }
6470
6471
6472 static PyObject *_wrap_BImageControl_renderImage(PyObject *self, PyObject *args) {
6473 PyObject *resultobj;
6474 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6475 unsigned int arg2 ;
6476 unsigned int arg3 ;
6477 otk::BTexture *arg4 = 0 ;
6478 Pixmap result;
6479 PyObject * obj0 = 0 ;
6480 PyObject * obj1 = 0 ;
6481 PyObject * obj2 = 0 ;
6482 PyObject * obj3 = 0 ;
6483
6484 if(!PyArg_ParseTuple(args,(char *)"OOOO:BImageControl_renderImage",&obj0,&obj1,&obj2,&obj3)) goto fail;
6485 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6486 arg2 = (unsigned int) PyInt_AsLong(obj1);
6487 if (PyErr_Occurred()) SWIG_fail;
6488 arg3 = (unsigned int) PyInt_AsLong(obj2);
6489 if (PyErr_Occurred()) SWIG_fail;
6490 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6491 if (arg4 == NULL) {
6492 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6493 }
6494 result = (arg1)->renderImage(arg2,arg3,(otk::BTexture const &)*arg4);
6495
6496 {
6497 Pixmap * resultptr;
6498 resultptr = new Pixmap((Pixmap &) result);
6499 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Pixmap, 1);
6500 }
6501 return resultobj;
6502 fail:
6503 return NULL;
6504 }
6505
6506
6507 static PyObject *_wrap_BImageControl_installRootColormap(PyObject *self, PyObject *args) {
6508 PyObject *resultobj;
6509 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6510 PyObject * obj0 = 0 ;
6511
6512 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_installRootColormap",&obj0)) goto fail;
6513 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6514 (arg1)->installRootColormap();
6515
6516 Py_INCREF(Py_None); resultobj = Py_None;
6517 return resultobj;
6518 fail:
6519 return NULL;
6520 }
6521
6522
6523 static PyObject *_wrap_BImageControl_removeImage(PyObject *self, PyObject *args) {
6524 PyObject *resultobj;
6525 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6526 Pixmap arg2 ;
6527 Pixmap *argp2 ;
6528 PyObject * obj0 = 0 ;
6529 PyObject * obj1 = 0 ;
6530
6531 if(!PyArg_ParseTuple(args,(char *)"OO:BImageControl_removeImage",&obj0,&obj1)) goto fail;
6532 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6533 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Pixmap,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
6534 arg2 = *argp2;
6535 (arg1)->removeImage(arg2);
6536
6537 Py_INCREF(Py_None); resultobj = Py_None;
6538 return resultobj;
6539 fail:
6540 return NULL;
6541 }
6542
6543
6544 static PyObject *_wrap_BImageControl_getColorTables(PyObject *self, PyObject *args) {
6545 PyObject *resultobj;
6546 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6547 unsigned char **arg2 = (unsigned char **) 0 ;
6548 unsigned char **arg3 = (unsigned char **) 0 ;
6549 unsigned char **arg4 = (unsigned char **) 0 ;
6550 int *arg5 = (int *) 0 ;
6551 int *arg6 = (int *) 0 ;
6552 int *arg7 = (int *) 0 ;
6553 int *arg8 = (int *) 0 ;
6554 int *arg9 = (int *) 0 ;
6555 int *arg10 = (int *) 0 ;
6556 PyObject * obj0 = 0 ;
6557 PyObject * obj1 = 0 ;
6558 PyObject * obj2 = 0 ;
6559 PyObject * obj3 = 0 ;
6560 PyObject * obj4 = 0 ;
6561 PyObject * obj5 = 0 ;
6562 PyObject * obj6 = 0 ;
6563 PyObject * obj7 = 0 ;
6564 PyObject * obj8 = 0 ;
6565 PyObject * obj9 = 0 ;
6566
6567 if(!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:BImageControl_getColorTables",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
6568 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6569 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6570 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6571 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6572 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6573 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6574 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6575 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6576 if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6577 if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6578 (arg1)->getColorTables(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
6579
6580 Py_INCREF(Py_None); resultobj = Py_None;
6581 return resultobj;
6582 fail:
6583 return NULL;
6584 }
6585
6586
6587 static PyObject *_wrap_BImageControl_getXColorTable(PyObject *self, PyObject *args) {
6588 PyObject *resultobj;
6589 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6590 XColor **arg2 = (XColor **) 0 ;
6591 int *arg3 = (int *) 0 ;
6592 PyObject * obj0 = 0 ;
6593 PyObject * obj1 = 0 ;
6594 PyObject * obj2 = 0 ;
6595
6596 if(!PyArg_ParseTuple(args,(char *)"OOO:BImageControl_getXColorTable",&obj0,&obj1,&obj2)) goto fail;
6597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6598 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_XColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6599 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6600 (arg1)->getXColorTable(arg2,arg3);
6601
6602 Py_INCREF(Py_None); resultobj = Py_None;
6603 return resultobj;
6604 fail:
6605 return NULL;
6606 }
6607
6608
6609 static PyObject *_wrap_BImageControl_getGradientBuffers(PyObject *self, PyObject *args) {
6610 PyObject *resultobj;
6611 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6612 unsigned int arg2 ;
6613 unsigned int arg3 ;
6614 unsigned int **arg4 = (unsigned int **) 0 ;
6615 unsigned int **arg5 = (unsigned int **) 0 ;
6616 PyObject * obj0 = 0 ;
6617 PyObject * obj1 = 0 ;
6618 PyObject * obj2 = 0 ;
6619 PyObject * obj3 = 0 ;
6620 PyObject * obj4 = 0 ;
6621
6622 if(!PyArg_ParseTuple(args,(char *)"OOOOO:BImageControl_getGradientBuffers",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6624 arg2 = (unsigned int) PyInt_AsLong(obj1);
6625 if (PyErr_Occurred()) SWIG_fail;
6626 arg3 = (unsigned int) PyInt_AsLong(obj2);
6627 if (PyErr_Occurred()) SWIG_fail;
6628 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_p_unsigned_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6629 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_p_unsigned_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6630 (arg1)->getGradientBuffers(arg2,arg3,arg4,arg5);
6631
6632 Py_INCREF(Py_None); resultobj = Py_None;
6633 return resultobj;
6634 fail:
6635 return NULL;
6636 }
6637
6638
6639 static PyObject *_wrap_BImageControl_setDither(PyObject *self, PyObject *args) {
6640 PyObject *resultobj;
6641 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6642 bool arg2 ;
6643 PyObject * obj0 = 0 ;
6644 PyObject * obj1 = 0 ;
6645
6646 if(!PyArg_ParseTuple(args,(char *)"OO:BImageControl_setDither",&obj0,&obj1)) goto fail;
6647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6648 arg2 = (bool) PyInt_AsLong(obj1);
6649 if (PyErr_Occurred()) SWIG_fail;
6650 (arg1)->setDither(arg2);
6651
6652 Py_INCREF(Py_None); resultobj = Py_None;
6653 return resultobj;
6654 fail:
6655 return NULL;
6656 }
6657
6658
6659 static PyObject *_wrap_BImageControl_setColorsPerChannel(PyObject *self, PyObject *args) {
6660 PyObject *resultobj;
6661 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6662 int arg2 ;
6663 PyObject * obj0 = 0 ;
6664
6665 if(!PyArg_ParseTuple(args,(char *)"Oi:BImageControl_setColorsPerChannel",&obj0,&arg2)) goto fail;
6666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6667 (arg1)->setColorsPerChannel(arg2);
6668
6669 Py_INCREF(Py_None); resultobj = Py_None;
6670 return resultobj;
6671 fail:
6672 return NULL;
6673 }
6674
6675
6676 static PyObject *_wrap_BImageControl_timeout(PyObject *self, PyObject *args) {
6677 PyObject *resultobj;
6678 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
6679 PyObject * obj0 = 0 ;
6680
6681 if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_timeout",&obj0)) goto fail;
6682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6683 otk::BImageControl::timeout(arg1);
6684
6685 Py_INCREF(Py_None); resultobj = Py_None;
6686 return resultobj;
6687 fail:
6688 return NULL;
6689 }
6690
6691
6692 static PyObject * BImageControl_swigregister(PyObject *self, PyObject *args) {
6693 PyObject *obj;
6694 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6695 SWIG_TypeClientData(SWIGTYPE_p_otk__BImageControl, obj);
6696 Py_INCREF(obj);
6697 return Py_BuildValue((char *)"");
6698 }
6699 static PyObject *_wrap_new_Point__SWIG_0(PyObject *self, PyObject *args) {
6700 PyObject *resultobj;
6701 otk::Point *result;
6702
6703 if(!PyArg_ParseTuple(args,(char *)":new_Point")) goto fail;
6704 result = (otk::Point *)new otk::Point();
6705
6706 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Point, 1);
6707 return resultobj;
6708 fail:
6709 return NULL;
6710 }
6711
6712
6713 static PyObject *_wrap_new_Point__SWIG_1(PyObject *self, PyObject *args) {
6714 PyObject *resultobj;
6715 int arg1 ;
6716 int arg2 ;
6717 otk::Point *result;
6718
6719 if(!PyArg_ParseTuple(args,(char *)"ii:new_Point",&arg1,&arg2)) goto fail;
6720 result = (otk::Point *)new otk::Point(arg1,arg2);
6721
6722 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Point, 1);
6723 return resultobj;
6724 fail:
6725 return NULL;
6726 }
6727
6728
6729 static PyObject *_wrap_new_Point(PyObject *self, PyObject *args) {
6730 int argc;
6731 PyObject *argv[3];
6732 int ii;
6733
6734 argc = PyObject_Length(args);
6735 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
6736 argv[ii] = PyTuple_GetItem(args,ii);
6737 }
6738 if (argc == 0) {
6739 return _wrap_new_Point__SWIG_0(self,args);
6740 }
6741 if (argc == 2) {
6742 int _v;
6743 {
6744 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
6745 }
6746 if (_v) {
6747 {
6748 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
6749 }
6750 if (_v) {
6751 return _wrap_new_Point__SWIG_1(self,args);
6752 }
6753 }
6754 }
6755
6756 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Point'");
6757 return NULL;
6758 }
6759
6760
6761 static PyObject *_wrap_Point_setX(PyObject *self, PyObject *args) {
6762 PyObject *resultobj;
6763 otk::Point *arg1 = (otk::Point *) 0 ;
6764 int arg2 ;
6765 PyObject * obj0 = 0 ;
6766
6767 if(!PyArg_ParseTuple(args,(char *)"Oi:Point_setX",&obj0,&arg2)) goto fail;
6768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6769 (arg1)->setX(arg2);
6770
6771 Py_INCREF(Py_None); resultobj = Py_None;
6772 return resultobj;
6773 fail:
6774 return NULL;
6775 }
6776
6777
6778 static PyObject *_wrap_Point_x(PyObject *self, PyObject *args) {
6779 PyObject *resultobj;
6780 otk::Point *arg1 = (otk::Point *) 0 ;
6781 int result;
6782 PyObject * obj0 = 0 ;
6783
6784 if(!PyArg_ParseTuple(args,(char *)"O:Point_x",&obj0)) goto fail;
6785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6786 result = (int)((otk::Point const *)arg1)->x();
6787
6788 resultobj = PyInt_FromLong((long)result);
6789 return resultobj;
6790 fail:
6791 return NULL;
6792 }
6793
6794
6795 static PyObject *_wrap_Point_setY(PyObject *self, PyObject *args) {
6796 PyObject *resultobj;
6797 otk::Point *arg1 = (otk::Point *) 0 ;
6798 int arg2 ;
6799 PyObject * obj0 = 0 ;
6800
6801 if(!PyArg_ParseTuple(args,(char *)"Oi:Point_setY",&obj0,&arg2)) goto fail;
6802 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6803 (arg1)->setY(arg2);
6804
6805 Py_INCREF(Py_None); resultobj = Py_None;
6806 return resultobj;
6807 fail:
6808 return NULL;
6809 }
6810
6811
6812 static PyObject *_wrap_Point_y(PyObject *self, PyObject *args) {
6813 PyObject *resultobj;
6814 otk::Point *arg1 = (otk::Point *) 0 ;
6815 int result;
6816 PyObject * obj0 = 0 ;
6817
6818 if(!PyArg_ParseTuple(args,(char *)"O:Point_y",&obj0)) goto fail;
6819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6820 result = (int)((otk::Point const *)arg1)->y();
6821
6822 resultobj = PyInt_FromLong((long)result);
6823 return resultobj;
6824 fail:
6825 return NULL;
6826 }
6827
6828
6829 static PyObject *_wrap_Point_setPoint(PyObject *self, PyObject *args) {
6830 PyObject *resultobj;
6831 otk::Point *arg1 = (otk::Point *) 0 ;
6832 int arg2 ;
6833 int arg3 ;
6834 PyObject * obj0 = 0 ;
6835
6836 if(!PyArg_ParseTuple(args,(char *)"Oii:Point_setPoint",&obj0,&arg2,&arg3)) goto fail;
6837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6838 (arg1)->setPoint(arg2,arg3);
6839
6840 Py_INCREF(Py_None); resultobj = Py_None;
6841 return resultobj;
6842 fail:
6843 return NULL;
6844 }
6845
6846
6847 static PyObject * Point_swigregister(PyObject *self, PyObject *args) {
6848 PyObject *obj;
6849 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6850 SWIG_TypeClientData(SWIGTYPE_p_otk__Point, obj);
6851 Py_INCREF(obj);
6852 return Py_BuildValue((char *)"");
6853 }
6854 static PyObject *_wrap_new_OBProperty(PyObject *self, PyObject *args) {
6855 PyObject *resultobj;
6856 otk::OBProperty *result;
6857
6858 if(!PyArg_ParseTuple(args,(char *)":new_OBProperty")) goto fail;
6859 result = (otk::OBProperty *)new otk::OBProperty();
6860
6861 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBProperty, 1);
6862 return resultobj;
6863 fail:
6864 return NULL;
6865 }
6866
6867
6868 static PyObject *_wrap_delete_OBProperty(PyObject *self, PyObject *args) {
6869 PyObject *resultobj;
6870 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
6871 PyObject * obj0 = 0 ;
6872
6873 if(!PyArg_ParseTuple(args,(char *)"O:delete_OBProperty",&obj0)) goto fail;
6874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6875 delete arg1;
6876
6877 Py_INCREF(Py_None); resultobj = Py_None;
6878 return resultobj;
6879 fail:
6880 return NULL;
6881 }
6882
6883
6884 static PyObject *_wrap_OBProperty_set__SWIG_0(PyObject *self, PyObject *args) {
6885 PyObject *resultobj;
6886 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
6887 Window arg2 ;
6888 int arg3 ;
6889 int arg4 ;
6890 unsigned long arg5 ;
6891 Window *argp2 ;
6892 PyObject * obj0 = 0 ;
6893 PyObject * obj1 = 0 ;
6894 PyObject * obj4 = 0 ;
6895
6896 if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
6897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6898 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
6899 arg2 = *argp2;
6900 arg5 = (unsigned long) PyInt_AsLong(obj4);
6901 if (PyErr_Occurred()) SWIG_fail;
6902 ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5);
6903
6904 Py_INCREF(Py_None); resultobj = Py_None;
6905 return resultobj;
6906 fail:
6907 return NULL;
6908 }
6909
6910
6911 static PyObject *_wrap_OBProperty_set__SWIG_1(PyObject *self, PyObject *args) {
6912 PyObject *resultobj;
6913 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
6914 Window arg2 ;
6915 int arg3 ;
6916 int arg4 ;
6917 unsigned long *arg5 ;
6918 int arg6 ;
6919 Window *argp2 ;
6920 PyObject * obj0 = 0 ;
6921 PyObject * obj1 = 0 ;
6922 PyObject * obj4 = 0 ;
6923
6924 if(!PyArg_ParseTuple(args,(char *)"OOiiOi:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4,&arg6)) goto fail;
6925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6926 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
6927 arg2 = *argp2;
6928 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6929 ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5,arg6);
6930
6931 Py_INCREF(Py_None); resultobj = Py_None;
6932 return resultobj;
6933 fail:
6934 return NULL;
6935 }
6936
6937
6938 static PyObject *_wrap_OBProperty_set__SWIG_2(PyObject *self, PyObject *args) {
6939 PyObject *resultobj;
6940 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
6941 Window arg2 ;
6942 int arg3 ;
6943 int arg4 ;
6944 std::string *arg5 = 0 ;
6945 Window *argp2 ;
6946 std::string temp5 ;
6947 PyObject * obj0 = 0 ;
6948 PyObject * obj1 = 0 ;
6949 PyObject * obj4 = 0 ;
6950
6951 if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
6952 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6953 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
6954 arg2 = *argp2;
6955 {
6956 if (PyString_Check(obj4)) {
6957 temp5 = std::string(PyString_AsString(obj4));
6958 arg5 = &temp5;
6959 }else {
6960 SWIG_exception(SWIG_TypeError, "string expected");
6961 }
6962 }
6963 ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,(std::string const &)*arg5);
6964
6965 Py_INCREF(Py_None); resultobj = Py_None;
6966 return resultobj;
6967 fail:
6968 return NULL;
6969 }
6970
6971
6972 static PyObject *_wrap_OBProperty_set__SWIG_3(PyObject *self, PyObject *args) {
6973 PyObject *resultobj;
6974 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
6975 Window arg2 ;
6976 int arg3 ;
6977 int arg4 ;
6978 otk::OBProperty::StringVect *arg5 = 0 ;
6979 Window *argp2 ;
6980 PyObject * obj0 = 0 ;
6981 PyObject * obj1 = 0 ;
6982 PyObject * obj4 = 0 ;
6983
6984 if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
6985 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6986 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
6987 arg2 = *argp2;
6988 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_otk__OBProperty__StringVect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6989 if (arg5 == NULL) {
6990 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6991 }
6992 ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,(otk::OBProperty::StringVect const &)*arg5);
6993
6994 Py_INCREF(Py_None); resultobj = Py_None;
6995 return resultobj;
6996 fail:
6997 return NULL;
6998 }
6999
7000
7001 static PyObject *_wrap_OBProperty_set(PyObject *self, PyObject *args) {
7002 int argc;
7003 PyObject *argv[7];
7004 int ii;
7005
7006 argc = PyObject_Length(args);
7007 for (ii = 0; (ii < argc) && (ii < 6); ii++) {
7008 argv[ii] = PyTuple_GetItem(args,ii);
7009 }
7010 if (argc == 5) {
7011 int _v;
7012 {
7013 void *ptr;
7014 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
7015 _v = 0;
7016 PyErr_Clear();
7017 }else {
7018 _v = 1;
7019 }
7020 }
7021 if (_v) {
7022 {
7023 void *ptr;
7024 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_Window, 0) == -1) {
7025 _v = 0;
7026 PyErr_Clear();
7027 }else {
7028 _v = 1;
7029 }
7030 }
7031 if (_v) {
7032 {
7033 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7034 }
7035 if (_v) {
7036 {
7037 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7038 }
7039 if (_v) {
7040 {
7041 void *ptr;
7042 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_otk__OBProperty__StringVect, 0) == -1) {
7043 _v = 0;
7044 PyErr_Clear();
7045 }else {
7046 _v = 1;
7047 }
7048 }
7049 if (_v) {
7050 return _wrap_OBProperty_set__SWIG_3(self,args);
7051 }
7052 }
7053 }
7054 }
7055 }
7056 }
7057 if (argc == 5) {
7058 int _v;
7059 {
7060 void *ptr;
7061 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
7062 _v = 0;
7063 PyErr_Clear();
7064 }else {
7065 _v = 1;
7066 }
7067 }
7068 if (_v) {
7069 {
7070 void *ptr;
7071 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_Window, 0) == -1) {
7072 _v = 0;
7073 PyErr_Clear();
7074 }else {
7075 _v = 1;
7076 }
7077 }
7078 if (_v) {
7079 {
7080 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7081 }
7082 if (_v) {
7083 {
7084 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7085 }
7086 if (_v) {
7087 {
7088 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
7089 }
7090 if (_v) {
7091 return _wrap_OBProperty_set__SWIG_0(self,args);
7092 }
7093 }
7094 }
7095 }
7096 }
7097 }
7098 if (argc == 5) {
7099 int _v;
7100 {
7101 void *ptr;
7102 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
7103 _v = 0;
7104 PyErr_Clear();
7105 }else {
7106 _v = 1;
7107 }
7108 }
7109 if (_v) {
7110 {
7111 void *ptr;
7112 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_Window, 0) == -1) {
7113 _v = 0;
7114 PyErr_Clear();
7115 }else {
7116 _v = 1;
7117 }
7118 }
7119 if (_v) {
7120 {
7121 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7122 }
7123 if (_v) {
7124 {
7125 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7126 }
7127 if (_v) {
7128 {
7129 _v = PyString_Check(argv[4]) ? 1 : 0;
7130 }
7131 if (_v) {
7132 return _wrap_OBProperty_set__SWIG_2(self,args);
7133 }
7134 }
7135 }
7136 }
7137 }
7138 }
7139 if (argc == 6) {
7140 int _v;
7141 {
7142 void *ptr;
7143 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
7144 _v = 0;
7145 PyErr_Clear();
7146 }else {
7147 _v = 1;
7148 }
7149 }
7150 if (_v) {
7151 {
7152 void *ptr;
7153 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_Window, 0) == -1) {
7154 _v = 0;
7155 PyErr_Clear();
7156 }else {
7157 _v = 1;
7158 }
7159 }
7160 if (_v) {
7161 {
7162 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7163 }
7164 if (_v) {
7165 {
7166 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7167 }
7168 if (_v) {
7169 {
7170 void *ptr;
7171 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
7172 _v = 0;
7173 PyErr_Clear();
7174 }else {
7175 _v = 1;
7176 }
7177 }
7178 if (_v) {
7179 {
7180 _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
7181 }
7182 if (_v) {
7183 return _wrap_OBProperty_set__SWIG_1(self,args);
7184 }
7185 }
7186 }
7187 }
7188 }
7189 }
7190 }
7191
7192 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OBProperty_set'");
7193 return NULL;
7194 }
7195
7196
7197 static PyObject *_wrap_OBProperty_get__SWIG_0(PyObject *self, PyObject *args) {
7198 PyObject *resultobj;
7199 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7200 Window arg2 ;
7201 int arg3 ;
7202 int arg4 ;
7203 unsigned long *arg5 = (unsigned long *) 0 ;
7204 unsigned long **arg6 = (unsigned long **) 0 ;
7205 bool result;
7206 Window *argp2 ;
7207 PyObject * obj0 = 0 ;
7208 PyObject * obj1 = 0 ;
7209 PyObject * obj4 = 0 ;
7210 PyObject * obj5 = 0 ;
7211
7212 if(!PyArg_ParseTuple(args,(char *)"OOiiOO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4,&obj5)) goto fail;
7213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7214 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
7215 arg2 = *argp2;
7216 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7217 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7218 result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5,arg6);
7219
7220 resultobj = PyInt_FromLong((long)result);
7221 return resultobj;
7222 fail:
7223 return NULL;
7224 }
7225
7226
7227 static PyObject *_wrap_OBProperty_get__SWIG_1(PyObject *self, PyObject *args) {
7228 PyObject *resultobj;
7229 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7230 Window arg2 ;
7231 int arg3 ;
7232 int arg4 ;
7233 unsigned long *arg5 = (unsigned long *) 0 ;
7234 bool result;
7235 Window *argp2 ;
7236 PyObject * obj0 = 0 ;
7237 PyObject * obj1 = 0 ;
7238 PyObject * obj4 = 0 ;
7239
7240 if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
7241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7242 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
7243 arg2 = *argp2;
7244 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7245 result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5);
7246
7247 resultobj = PyInt_FromLong((long)result);
7248 return resultobj;
7249 fail:
7250 return NULL;
7251 }
7252
7253
7254 static PyObject *_wrap_OBProperty_get__SWIG_2(PyObject *self, PyObject *args) {
7255 PyObject *resultobj;
7256 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7257 Window arg2 ;
7258 int arg3 ;
7259 int arg4 ;
7260 std::string *arg5 = (std::string *) 0 ;
7261 bool result;
7262 Window *argp2 ;
7263 PyObject * obj0 = 0 ;
7264 PyObject * obj1 = 0 ;
7265 PyObject * obj4 = 0 ;
7266
7267 if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
7268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7269 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
7270 arg2 = *argp2;
7271 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_std__string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7272 result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,arg5);
7273
7274 resultobj = PyInt_FromLong((long)result);
7275 return resultobj;
7276 fail:
7277 return NULL;
7278 }
7279
7280
7281 static PyObject *_wrap_OBProperty_get__SWIG_3(PyObject *self, PyObject *args) {
7282 PyObject *resultobj;
7283 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7284 Window arg2 ;
7285 int arg3 ;
7286 int arg4 ;
7287 unsigned long *arg5 = (unsigned long *) 0 ;
7288 otk::OBProperty::StringVect *arg6 = (otk::OBProperty::StringVect *) 0 ;
7289 bool result;
7290 Window *argp2 ;
7291 PyObject * obj0 = 0 ;
7292 PyObject * obj1 = 0 ;
7293 PyObject * obj4 = 0 ;
7294 PyObject * obj5 = 0 ;
7295
7296 if(!PyArg_ParseTuple(args,(char *)"OOiiOO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4,&obj5)) goto fail;
7297 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7298 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
7299 arg2 = *argp2;
7300 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7301 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_otk__OBProperty__StringVect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7302 result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,arg5,arg6);
7303
7304 resultobj = PyInt_FromLong((long)result);
7305 return resultobj;
7306 fail:
7307 return NULL;
7308 }
7309
7310
7311 static PyObject *_wrap_OBProperty_get(PyObject *self, PyObject *args) {
7312 int argc;
7313 PyObject *argv[7];
7314 int ii;
7315
7316 argc = PyObject_Length(args);
7317 for (ii = 0; (ii < argc) && (ii < 6); ii++) {
7318 argv[ii] = PyTuple_GetItem(args,ii);
7319 }
7320 if (argc == 5) {
7321 int _v;
7322 {
7323 void *ptr;
7324 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
7325 _v = 0;
7326 PyErr_Clear();
7327 }else {
7328 _v = 1;
7329 }
7330 }
7331 if (_v) {
7332 {
7333 void *ptr;
7334 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_Window, 0) == -1) {
7335 _v = 0;
7336 PyErr_Clear();
7337 }else {
7338 _v = 1;
7339 }
7340 }
7341 if (_v) {
7342 {
7343 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7344 }
7345 if (_v) {
7346 {
7347 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7348 }
7349 if (_v) {
7350 {
7351 void *ptr;
7352 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
7353 _v = 0;
7354 PyErr_Clear();
7355 }else {
7356 _v = 1;
7357 }
7358 }
7359 if (_v) {
7360 return _wrap_OBProperty_get__SWIG_1(self,args);
7361 }
7362 }
7363 }
7364 }
7365 }
7366 }
7367 if (argc == 5) {
7368 int _v;
7369 {
7370 void *ptr;
7371 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
7372 _v = 0;
7373 PyErr_Clear();
7374 }else {
7375 _v = 1;
7376 }
7377 }
7378 if (_v) {
7379 {
7380 void *ptr;
7381 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_Window, 0) == -1) {
7382 _v = 0;
7383 PyErr_Clear();
7384 }else {
7385 _v = 1;
7386 }
7387 }
7388 if (_v) {
7389 {
7390 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7391 }
7392 if (_v) {
7393 {
7394 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7395 }
7396 if (_v) {
7397 {
7398 void *ptr;
7399 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_std__string, 0) == -1) {
7400 _v = 0;
7401 PyErr_Clear();
7402 }else {
7403 _v = 1;
7404 }
7405 }
7406 if (_v) {
7407 return _wrap_OBProperty_get__SWIG_2(self,args);
7408 }
7409 }
7410 }
7411 }
7412 }
7413 }
7414 if (argc == 6) {
7415 int _v;
7416 {
7417 void *ptr;
7418 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
7419 _v = 0;
7420 PyErr_Clear();
7421 }else {
7422 _v = 1;
7423 }
7424 }
7425 if (_v) {
7426 {
7427 void *ptr;
7428 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_Window, 0) == -1) {
7429 _v = 0;
7430 PyErr_Clear();
7431 }else {
7432 _v = 1;
7433 }
7434 }
7435 if (_v) {
7436 {
7437 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7438 }
7439 if (_v) {
7440 {
7441 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7442 }
7443 if (_v) {
7444 {
7445 void *ptr;
7446 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
7447 _v = 0;
7448 PyErr_Clear();
7449 }else {
7450 _v = 1;
7451 }
7452 }
7453 if (_v) {
7454 {
7455 void *ptr;
7456 if (SWIG_ConvertPtr(argv[5], (void **) &ptr, SWIGTYPE_p_p_unsigned_long, 0) == -1) {
7457 _v = 0;
7458 PyErr_Clear();
7459 }else {
7460 _v = 1;
7461 }
7462 }
7463 if (_v) {
7464 return _wrap_OBProperty_get__SWIG_0(self,args);
7465 }
7466 }
7467 }
7468 }
7469 }
7470 }
7471 }
7472 if (argc == 6) {
7473 int _v;
7474 {
7475 void *ptr;
7476 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
7477 _v = 0;
7478 PyErr_Clear();
7479 }else {
7480 _v = 1;
7481 }
7482 }
7483 if (_v) {
7484 {
7485 void *ptr;
7486 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_Window, 0) == -1) {
7487 _v = 0;
7488 PyErr_Clear();
7489 }else {
7490 _v = 1;
7491 }
7492 }
7493 if (_v) {
7494 {
7495 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7496 }
7497 if (_v) {
7498 {
7499 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7500 }
7501 if (_v) {
7502 {
7503 void *ptr;
7504 if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
7505 _v = 0;
7506 PyErr_Clear();
7507 }else {
7508 _v = 1;
7509 }
7510 }
7511 if (_v) {
7512 {
7513 void *ptr;
7514 if (SWIG_ConvertPtr(argv[5], (void **) &ptr, SWIGTYPE_p_otk__OBProperty__StringVect, 0) == -1) {
7515 _v = 0;
7516 PyErr_Clear();
7517 }else {
7518 _v = 1;
7519 }
7520 }
7521 if (_v) {
7522 return _wrap_OBProperty_get__SWIG_3(self,args);
7523 }
7524 }
7525 }
7526 }
7527 }
7528 }
7529 }
7530
7531 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OBProperty_get'");
7532 return NULL;
7533 }
7534
7535
7536 static PyObject *_wrap_OBProperty_erase(PyObject *self, PyObject *args) {
7537 PyObject *resultobj;
7538 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7539 Window arg2 ;
7540 int arg3 ;
7541 Window *argp2 ;
7542 PyObject * obj0 = 0 ;
7543 PyObject * obj1 = 0 ;
7544
7545 if(!PyArg_ParseTuple(args,(char *)"OOi:OBProperty_erase",&obj0,&obj1,&arg3)) goto fail;
7546 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7547 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Window,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
7548 arg2 = *argp2;
7549 ((otk::OBProperty const *)arg1)->erase(arg2,(otk::OBProperty::Atoms )arg3);
7550
7551 Py_INCREF(Py_None); resultobj = Py_None;
7552 return resultobj;
7553 fail:
7554 return NULL;
7555 }
7556
7557
7558 static PyObject *_wrap_OBProperty_atom(PyObject *self, PyObject *args) {
7559 PyObject *resultobj;
7560 otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
7561 int arg2 ;
7562 Atom result;
7563 PyObject * obj0 = 0 ;
7564
7565 if(!PyArg_ParseTuple(args,(char *)"Oi:OBProperty_atom",&obj0,&arg2)) goto fail;
7566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7567 result = ((otk::OBProperty const *)arg1)->atom((otk::OBProperty::Atoms )arg2);
7568
7569 {
7570 Atom * resultptr;
7571 resultptr = new Atom((Atom &) result);
7572 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Atom, 1);
7573 }
7574 return resultobj;
7575 fail:
7576 return NULL;
7577 }
7578
7579
7580 static PyObject * OBProperty_swigregister(PyObject *self, PyObject *args) {
7581 PyObject *obj;
7582 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7583 SWIG_TypeClientData(SWIGTYPE_p_otk__OBProperty, obj);
7584 Py_INCREF(obj);
7585 return Py_BuildValue((char *)"");
7586 }
7587 static PyObject *_wrap_new_Rect__SWIG_0(PyObject *self, PyObject *args) {
7588 PyObject *resultobj;
7589 otk::Rect *result;
7590
7591 if(!PyArg_ParseTuple(args,(char *)":new_Rect")) goto fail;
7592 result = (otk::Rect *)new otk::Rect();
7593
7594 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
7595 return resultobj;
7596 fail:
7597 return NULL;
7598 }
7599
7600
7601 static PyObject *_wrap_new_Rect__SWIG_1(PyObject *self, PyObject *args) {
7602 PyObject *resultobj;
7603 int arg1 ;
7604 int arg2 ;
7605 int arg3 ;
7606 int arg4 ;
7607 otk::Rect *result;
7608
7609 if(!PyArg_ParseTuple(args,(char *)"iiii:new_Rect",&arg1,&arg2,&arg3,&arg4)) goto fail;
7610 result = (otk::Rect *)new otk::Rect(arg1,arg2,arg3,arg4);
7611
7612 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
7613 return resultobj;
7614 fail:
7615 return NULL;
7616 }
7617
7618
7619 static PyObject *_wrap_new_Rect__SWIG_2(PyObject *self, PyObject *args) {
7620 PyObject *resultobj;
7621 otk::Point *arg1 = 0 ;
7622 otk::Point *arg2 = 0 ;
7623 otk::Rect *result;
7624 PyObject * obj0 = 0 ;
7625 PyObject * obj1 = 0 ;
7626
7627 if(!PyArg_ParseTuple(args,(char *)"OO:new_Rect",&obj0,&obj1)) goto fail;
7628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7629 if (arg1 == NULL) {
7630 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7631 }
7632 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7633 if (arg2 == NULL) {
7634 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7635 }
7636 result = (otk::Rect *)new otk::Rect((otk::Point const &)*arg1,(otk::Point const &)*arg2);
7637
7638 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
7639 return resultobj;
7640 fail:
7641 return NULL;
7642 }
7643
7644
7645 static PyObject *_wrap_new_Rect__SWIG_3(PyObject *self, PyObject *args) {
7646 PyObject *resultobj;
7647 XRectangle *arg1 = 0 ;
7648 otk::Rect *result;
7649 PyObject * obj0 = 0 ;
7650
7651 if(!PyArg_ParseTuple(args,(char *)"O:new_Rect",&obj0)) goto fail;
7652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_XRectangle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7653 if (arg1 == NULL) {
7654 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7655 }
7656 result = (otk::Rect *)new otk::Rect((XRectangle const &)*arg1);
7657
7658 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
7659 return resultobj;
7660 fail:
7661 return NULL;
7662 }
7663
7664
7665 static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args) {
7666 int argc;
7667 PyObject *argv[5];
7668 int ii;
7669
7670 argc = PyObject_Length(args);
7671 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
7672 argv[ii] = PyTuple_GetItem(args,ii);
7673 }
7674 if (argc == 0) {
7675 return _wrap_new_Rect__SWIG_0(self,args);
7676 }
7677 if (argc == 1) {
7678 int _v;
7679 {
7680 void *ptr;
7681 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_XRectangle, 0) == -1) {
7682 _v = 0;
7683 PyErr_Clear();
7684 }else {
7685 _v = 1;
7686 }
7687 }
7688 if (_v) {
7689 return _wrap_new_Rect__SWIG_3(self,args);
7690 }
7691 }
7692 if (argc == 2) {
7693 int _v;
7694 {
7695 void *ptr;
7696 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
7697 _v = 0;
7698 PyErr_Clear();
7699 }else {
7700 _v = 1;
7701 }
7702 }
7703 if (_v) {
7704 {
7705 void *ptr;
7706 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
7707 _v = 0;
7708 PyErr_Clear();
7709 }else {
7710 _v = 1;
7711 }
7712 }
7713 if (_v) {
7714 return _wrap_new_Rect__SWIG_2(self,args);
7715 }
7716 }
7717 }
7718 if (argc == 4) {
7719 int _v;
7720 {
7721 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
7722 }
7723 if (_v) {
7724 {
7725 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
7726 }
7727 if (_v) {
7728 {
7729 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7730 }
7731 if (_v) {
7732 {
7733 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
7734 }
7735 if (_v) {
7736 return _wrap_new_Rect__SWIG_1(self,args);
7737 }
7738 }
7739 }
7740 }
7741 }
7742
7743 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Rect'");
7744 return NULL;
7745 }
7746
7747
7748 static PyObject *_wrap_Rect_left(PyObject *self, PyObject *args) {
7749 PyObject *resultobj;
7750 otk::Rect *arg1 = (otk::Rect *) 0 ;
7751 int result;
7752 PyObject * obj0 = 0 ;
7753
7754 if(!PyArg_ParseTuple(args,(char *)"O:Rect_left",&obj0)) goto fail;
7755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7756 result = (int)((otk::Rect const *)arg1)->left();
7757
7758 resultobj = PyInt_FromLong((long)result);
7759 return resultobj;
7760 fail:
7761 return NULL;
7762 }
7763
7764
7765 static PyObject *_wrap_Rect_top(PyObject *self, PyObject *args) {
7766 PyObject *resultobj;
7767 otk::Rect *arg1 = (otk::Rect *) 0 ;
7768 int result;
7769 PyObject * obj0 = 0 ;
7770
7771 if(!PyArg_ParseTuple(args,(char *)"O:Rect_top",&obj0)) goto fail;
7772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7773 result = (int)((otk::Rect const *)arg1)->top();
7774
7775 resultobj = PyInt_FromLong((long)result);
7776 return resultobj;
7777 fail:
7778 return NULL;
7779 }
7780
7781
7782 static PyObject *_wrap_Rect_right(PyObject *self, PyObject *args) {
7783 PyObject *resultobj;
7784 otk::Rect *arg1 = (otk::Rect *) 0 ;
7785 int result;
7786 PyObject * obj0 = 0 ;
7787
7788 if(!PyArg_ParseTuple(args,(char *)"O:Rect_right",&obj0)) goto fail;
7789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7790 result = (int)((otk::Rect const *)arg1)->right();
7791
7792 resultobj = PyInt_FromLong((long)result);
7793 return resultobj;
7794 fail:
7795 return NULL;
7796 }
7797
7798
7799 static PyObject *_wrap_Rect_bottom(PyObject *self, PyObject *args) {
7800 PyObject *resultobj;
7801 otk::Rect *arg1 = (otk::Rect *) 0 ;
7802 int result;
7803 PyObject * obj0 = 0 ;
7804
7805 if(!PyArg_ParseTuple(args,(char *)"O:Rect_bottom",&obj0)) goto fail;
7806 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7807 result = (int)((otk::Rect const *)arg1)->bottom();
7808
7809 resultobj = PyInt_FromLong((long)result);
7810 return resultobj;
7811 fail:
7812 return NULL;
7813 }
7814
7815
7816 static PyObject *_wrap_Rect_x(PyObject *self, PyObject *args) {
7817 PyObject *resultobj;
7818 otk::Rect *arg1 = (otk::Rect *) 0 ;
7819 int result;
7820 PyObject * obj0 = 0 ;
7821
7822 if(!PyArg_ParseTuple(args,(char *)"O:Rect_x",&obj0)) goto fail;
7823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7824 result = (int)((otk::Rect const *)arg1)->x();
7825
7826 resultobj = PyInt_FromLong((long)result);
7827 return resultobj;
7828 fail:
7829 return NULL;
7830 }
7831
7832
7833 static PyObject *_wrap_Rect_y(PyObject *self, PyObject *args) {
7834 PyObject *resultobj;
7835 otk::Rect *arg1 = (otk::Rect *) 0 ;
7836 int result;
7837 PyObject * obj0 = 0 ;
7838
7839 if(!PyArg_ParseTuple(args,(char *)"O:Rect_y",&obj0)) goto fail;
7840 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7841 result = (int)((otk::Rect const *)arg1)->y();
7842
7843 resultobj = PyInt_FromLong((long)result);
7844 return resultobj;
7845 fail:
7846 return NULL;
7847 }
7848
7849
7850 static PyObject *_wrap_Rect_location(PyObject *self, PyObject *args) {
7851 PyObject *resultobj;
7852 otk::Rect *arg1 = (otk::Rect *) 0 ;
7853 otk::Point result;
7854 PyObject * obj0 = 0 ;
7855
7856 if(!PyArg_ParseTuple(args,(char *)"O:Rect_location",&obj0)) goto fail;
7857 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7858 result = ((otk::Rect const *)arg1)->location();
7859
7860 {
7861 otk::Point * resultptr;
7862 resultptr = new otk::Point((otk::Point &) result);
7863 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Point, 1);
7864 }
7865 return resultobj;
7866 fail:
7867 return NULL;
7868 }
7869
7870
7871 static PyObject *_wrap_Rect_setX(PyObject *self, PyObject *args) {
7872 PyObject *resultobj;
7873 otk::Rect *arg1 = (otk::Rect *) 0 ;
7874 int arg2 ;
7875 PyObject * obj0 = 0 ;
7876
7877 if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setX",&obj0,&arg2)) goto fail;
7878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7879 (arg1)->setX(arg2);
7880
7881 Py_INCREF(Py_None); resultobj = Py_None;
7882 return resultobj;
7883 fail:
7884 return NULL;
7885 }
7886
7887
7888 static PyObject *_wrap_Rect_setY(PyObject *self, PyObject *args) {
7889 PyObject *resultobj;
7890 otk::Rect *arg1 = (otk::Rect *) 0 ;
7891 int arg2 ;
7892 PyObject * obj0 = 0 ;
7893
7894 if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setY",&obj0,&arg2)) goto fail;
7895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7896 (arg1)->setY(arg2);
7897
7898 Py_INCREF(Py_None); resultobj = Py_None;
7899 return resultobj;
7900 fail:
7901 return NULL;
7902 }
7903
7904
7905 static PyObject *_wrap_Rect_setPos__SWIG_0(PyObject *self, PyObject *args) {
7906 PyObject *resultobj;
7907 otk::Rect *arg1 = (otk::Rect *) 0 ;
7908 int arg2 ;
7909 int arg3 ;
7910 PyObject * obj0 = 0 ;
7911
7912 if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_setPos",&obj0,&arg2,&arg3)) goto fail;
7913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7914 (arg1)->setPos(arg2,arg3);
7915
7916 Py_INCREF(Py_None); resultobj = Py_None;
7917 return resultobj;
7918 fail:
7919 return NULL;
7920 }
7921
7922
7923 static PyObject *_wrap_Rect_setPos__SWIG_1(PyObject *self, PyObject *args) {
7924 PyObject *resultobj;
7925 otk::Rect *arg1 = (otk::Rect *) 0 ;
7926 otk::Point *arg2 = 0 ;
7927 PyObject * obj0 = 0 ;
7928 PyObject * obj1 = 0 ;
7929
7930 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_setPos",&obj0,&obj1)) goto fail;
7931 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7932 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7933 if (arg2 == NULL) {
7934 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7935 }
7936 (arg1)->setPos((otk::Point const &)*arg2);
7937
7938 Py_INCREF(Py_None); resultobj = Py_None;
7939 return resultobj;
7940 fail:
7941 return NULL;
7942 }
7943
7944
7945 static PyObject *_wrap_Rect_setPos(PyObject *self, PyObject *args) {
7946 int argc;
7947 PyObject *argv[4];
7948 int ii;
7949
7950 argc = PyObject_Length(args);
7951 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
7952 argv[ii] = PyTuple_GetItem(args,ii);
7953 }
7954 if (argc == 2) {
7955 int _v;
7956 {
7957 void *ptr;
7958 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
7959 _v = 0;
7960 PyErr_Clear();
7961 }else {
7962 _v = 1;
7963 }
7964 }
7965 if (_v) {
7966 {
7967 void *ptr;
7968 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
7969 _v = 0;
7970 PyErr_Clear();
7971 }else {
7972 _v = 1;
7973 }
7974 }
7975 if (_v) {
7976 return _wrap_Rect_setPos__SWIG_1(self,args);
7977 }
7978 }
7979 }
7980 if (argc == 3) {
7981 int _v;
7982 {
7983 void *ptr;
7984 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
7985 _v = 0;
7986 PyErr_Clear();
7987 }else {
7988 _v = 1;
7989 }
7990 }
7991 if (_v) {
7992 {
7993 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
7994 }
7995 if (_v) {
7996 {
7997 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
7998 }
7999 if (_v) {
8000 return _wrap_Rect_setPos__SWIG_0(self,args);
8001 }
8002 }
8003 }
8004 }
8005
8006 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setPos'");
8007 return NULL;
8008 }
8009
8010
8011 static PyObject *_wrap_Rect_width(PyObject *self, PyObject *args) {
8012 PyObject *resultobj;
8013 otk::Rect *arg1 = (otk::Rect *) 0 ;
8014 int result;
8015 PyObject * obj0 = 0 ;
8016
8017 if(!PyArg_ParseTuple(args,(char *)"O:Rect_width",&obj0)) goto fail;
8018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8019 result = (int)((otk::Rect const *)arg1)->width();
8020
8021 resultobj = PyInt_FromLong((long)result);
8022 return resultobj;
8023 fail:
8024 return NULL;
8025 }
8026
8027
8028 static PyObject *_wrap_Rect_height(PyObject *self, PyObject *args) {
8029 PyObject *resultobj;
8030 otk::Rect *arg1 = (otk::Rect *) 0 ;
8031 int result;
8032 PyObject * obj0 = 0 ;
8033
8034 if(!PyArg_ParseTuple(args,(char *)"O:Rect_height",&obj0)) goto fail;
8035 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8036 result = (int)((otk::Rect const *)arg1)->height();
8037
8038 resultobj = PyInt_FromLong((long)result);
8039 return resultobj;
8040 fail:
8041 return NULL;
8042 }
8043
8044
8045 static PyObject *_wrap_Rect_size(PyObject *self, PyObject *args) {
8046 PyObject *resultobj;
8047 otk::Rect *arg1 = (otk::Rect *) 0 ;
8048 otk::Point result;
8049 PyObject * obj0 = 0 ;
8050
8051 if(!PyArg_ParseTuple(args,(char *)"O:Rect_size",&obj0)) goto fail;
8052 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8053 result = ((otk::Rect const *)arg1)->size();
8054
8055 {
8056 otk::Point * resultptr;
8057 resultptr = new otk::Point((otk::Point &) result);
8058 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Point, 1);
8059 }
8060 return resultobj;
8061 fail:
8062 return NULL;
8063 }
8064
8065
8066 static PyObject *_wrap_Rect_setWidth(PyObject *self, PyObject *args) {
8067 PyObject *resultobj;
8068 otk::Rect *arg1 = (otk::Rect *) 0 ;
8069 int arg2 ;
8070 PyObject * obj0 = 0 ;
8071
8072 if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setWidth",&obj0,&arg2)) goto fail;
8073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8074 (arg1)->setWidth(arg2);
8075
8076 Py_INCREF(Py_None); resultobj = Py_None;
8077 return resultobj;
8078 fail:
8079 return NULL;
8080 }
8081
8082
8083 static PyObject *_wrap_Rect_setHeight(PyObject *self, PyObject *args) {
8084 PyObject *resultobj;
8085 otk::Rect *arg1 = (otk::Rect *) 0 ;
8086 int arg2 ;
8087 PyObject * obj0 = 0 ;
8088
8089 if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setHeight",&obj0,&arg2)) goto fail;
8090 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8091 (arg1)->setHeight(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_setSize__SWIG_0(PyObject *self, PyObject *args) {
8101 PyObject *resultobj;
8102 otk::Rect *arg1 = (otk::Rect *) 0 ;
8103 int arg2 ;
8104 int arg3 ;
8105 PyObject * obj0 = 0 ;
8106
8107 if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_setSize",&obj0,&arg2,&arg3)) goto fail;
8108 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8109 (arg1)->setSize(arg2,arg3);
8110
8111 Py_INCREF(Py_None); resultobj = Py_None;
8112 return resultobj;
8113 fail:
8114 return NULL;
8115 }
8116
8117
8118 static PyObject *_wrap_Rect_setSize__SWIG_1(PyObject *self, PyObject *args) {
8119 PyObject *resultobj;
8120 otk::Rect *arg1 = (otk::Rect *) 0 ;
8121 otk::Point *arg2 = 0 ;
8122 PyObject * obj0 = 0 ;
8123 PyObject * obj1 = 0 ;
8124
8125 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_setSize",&obj0,&obj1)) goto fail;
8126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8127 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8128 if (arg2 == NULL) {
8129 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8130 }
8131 (arg1)->setSize((otk::Point const &)*arg2);
8132
8133 Py_INCREF(Py_None); resultobj = Py_None;
8134 return resultobj;
8135 fail:
8136 return NULL;
8137 }
8138
8139
8140 static PyObject *_wrap_Rect_setSize(PyObject *self, PyObject *args) {
8141 int argc;
8142 PyObject *argv[4];
8143 int ii;
8144
8145 argc = PyObject_Length(args);
8146 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8147 argv[ii] = PyTuple_GetItem(args,ii);
8148 }
8149 if (argc == 2) {
8150 int _v;
8151 {
8152 void *ptr;
8153 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8154 _v = 0;
8155 PyErr_Clear();
8156 }else {
8157 _v = 1;
8158 }
8159 }
8160 if (_v) {
8161 {
8162 void *ptr;
8163 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
8164 _v = 0;
8165 PyErr_Clear();
8166 }else {
8167 _v = 1;
8168 }
8169 }
8170 if (_v) {
8171 return _wrap_Rect_setSize__SWIG_1(self,args);
8172 }
8173 }
8174 }
8175 if (argc == 3) {
8176 int _v;
8177 {
8178 void *ptr;
8179 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8180 _v = 0;
8181 PyErr_Clear();
8182 }else {
8183 _v = 1;
8184 }
8185 }
8186 if (_v) {
8187 {
8188 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
8189 }
8190 if (_v) {
8191 {
8192 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8193 }
8194 if (_v) {
8195 return _wrap_Rect_setSize__SWIG_0(self,args);
8196 }
8197 }
8198 }
8199 }
8200
8201 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setSize'");
8202 return NULL;
8203 }
8204
8205
8206 static PyObject *_wrap_Rect_setRect__SWIG_0(PyObject *self, PyObject *args) {
8207 PyObject *resultobj;
8208 otk::Rect *arg1 = (otk::Rect *) 0 ;
8209 int arg2 ;
8210 int arg3 ;
8211 int arg4 ;
8212 int arg5 ;
8213 PyObject * obj0 = 0 ;
8214
8215 if(!PyArg_ParseTuple(args,(char *)"Oiiii:Rect_setRect",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
8216 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8217 (arg1)->setRect(arg2,arg3,arg4,arg5);
8218
8219 Py_INCREF(Py_None); resultobj = Py_None;
8220 return resultobj;
8221 fail:
8222 return NULL;
8223 }
8224
8225
8226 static PyObject *_wrap_Rect_setRect__SWIG_1(PyObject *self, PyObject *args) {
8227 PyObject *resultobj;
8228 otk::Rect *arg1 = (otk::Rect *) 0 ;
8229 otk::Point *arg2 = 0 ;
8230 otk::Point *arg3 = 0 ;
8231 PyObject * obj0 = 0 ;
8232 PyObject * obj1 = 0 ;
8233 PyObject * obj2 = 0 ;
8234
8235 if(!PyArg_ParseTuple(args,(char *)"OOO:Rect_setRect",&obj0,&obj1,&obj2)) goto fail;
8236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8237 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8238 if (arg2 == NULL) {
8239 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8240 }
8241 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8242 if (arg3 == NULL) {
8243 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8244 }
8245 (arg1)->setRect((otk::Point const &)*arg2,(otk::Point const &)*arg3);
8246
8247 Py_INCREF(Py_None); resultobj = Py_None;
8248 return resultobj;
8249 fail:
8250 return NULL;
8251 }
8252
8253
8254 static PyObject *_wrap_Rect_setRect(PyObject *self, PyObject *args) {
8255 int argc;
8256 PyObject *argv[6];
8257 int ii;
8258
8259 argc = PyObject_Length(args);
8260 for (ii = 0; (ii < argc) && (ii < 5); ii++) {
8261 argv[ii] = PyTuple_GetItem(args,ii);
8262 }
8263 if (argc == 3) {
8264 int _v;
8265 {
8266 void *ptr;
8267 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8268 _v = 0;
8269 PyErr_Clear();
8270 }else {
8271 _v = 1;
8272 }
8273 }
8274 if (_v) {
8275 {
8276 void *ptr;
8277 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
8278 _v = 0;
8279 PyErr_Clear();
8280 }else {
8281 _v = 1;
8282 }
8283 }
8284 if (_v) {
8285 {
8286 void *ptr;
8287 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
8288 _v = 0;
8289 PyErr_Clear();
8290 }else {
8291 _v = 1;
8292 }
8293 }
8294 if (_v) {
8295 return _wrap_Rect_setRect__SWIG_1(self,args);
8296 }
8297 }
8298 }
8299 }
8300 if (argc == 5) {
8301 int _v;
8302 {
8303 void *ptr;
8304 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8305 _v = 0;
8306 PyErr_Clear();
8307 }else {
8308 _v = 1;
8309 }
8310 }
8311 if (_v) {
8312 {
8313 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
8314 }
8315 if (_v) {
8316 {
8317 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8318 }
8319 if (_v) {
8320 {
8321 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
8322 }
8323 if (_v) {
8324 {
8325 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
8326 }
8327 if (_v) {
8328 return _wrap_Rect_setRect__SWIG_0(self,args);
8329 }
8330 }
8331 }
8332 }
8333 }
8334 }
8335
8336 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setRect'");
8337 return NULL;
8338 }
8339
8340
8341 static PyObject *_wrap_Rect_setCoords__SWIG_0(PyObject *self, PyObject *args) {
8342 PyObject *resultobj;
8343 otk::Rect *arg1 = (otk::Rect *) 0 ;
8344 int arg2 ;
8345 int arg3 ;
8346 int arg4 ;
8347 int arg5 ;
8348 PyObject * obj0 = 0 ;
8349
8350 if(!PyArg_ParseTuple(args,(char *)"Oiiii:Rect_setCoords",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
8351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8352 (arg1)->setCoords(arg2,arg3,arg4,arg5);
8353
8354 Py_INCREF(Py_None); resultobj = Py_None;
8355 return resultobj;
8356 fail:
8357 return NULL;
8358 }
8359
8360
8361 static PyObject *_wrap_Rect_setCoords__SWIG_1(PyObject *self, PyObject *args) {
8362 PyObject *resultobj;
8363 otk::Rect *arg1 = (otk::Rect *) 0 ;
8364 otk::Point *arg2 = 0 ;
8365 otk::Point *arg3 = 0 ;
8366 PyObject * obj0 = 0 ;
8367 PyObject * obj1 = 0 ;
8368 PyObject * obj2 = 0 ;
8369
8370 if(!PyArg_ParseTuple(args,(char *)"OOO:Rect_setCoords",&obj0,&obj1,&obj2)) goto fail;
8371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8372 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8373 if (arg2 == NULL) {
8374 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8375 }
8376 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8377 if (arg3 == NULL) {
8378 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8379 }
8380 (arg1)->setCoords((otk::Point const &)*arg2,(otk::Point const &)*arg3);
8381
8382 Py_INCREF(Py_None); resultobj = Py_None;
8383 return resultobj;
8384 fail:
8385 return NULL;
8386 }
8387
8388
8389 static PyObject *_wrap_Rect_setCoords(PyObject *self, PyObject *args) {
8390 int argc;
8391 PyObject *argv[6];
8392 int ii;
8393
8394 argc = PyObject_Length(args);
8395 for (ii = 0; (ii < argc) && (ii < 5); ii++) {
8396 argv[ii] = PyTuple_GetItem(args,ii);
8397 }
8398 if (argc == 3) {
8399 int _v;
8400 {
8401 void *ptr;
8402 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8403 _v = 0;
8404 PyErr_Clear();
8405 }else {
8406 _v = 1;
8407 }
8408 }
8409 if (_v) {
8410 {
8411 void *ptr;
8412 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
8413 _v = 0;
8414 PyErr_Clear();
8415 }else {
8416 _v = 1;
8417 }
8418 }
8419 if (_v) {
8420 {
8421 void *ptr;
8422 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
8423 _v = 0;
8424 PyErr_Clear();
8425 }else {
8426 _v = 1;
8427 }
8428 }
8429 if (_v) {
8430 return _wrap_Rect_setCoords__SWIG_1(self,args);
8431 }
8432 }
8433 }
8434 }
8435 if (argc == 5) {
8436 int _v;
8437 {
8438 void *ptr;
8439 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8440 _v = 0;
8441 PyErr_Clear();
8442 }else {
8443 _v = 1;
8444 }
8445 }
8446 if (_v) {
8447 {
8448 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
8449 }
8450 if (_v) {
8451 {
8452 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8453 }
8454 if (_v) {
8455 {
8456 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
8457 }
8458 if (_v) {
8459 {
8460 _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
8461 }
8462 if (_v) {
8463 return _wrap_Rect_setCoords__SWIG_0(self,args);
8464 }
8465 }
8466 }
8467 }
8468 }
8469 }
8470
8471 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setCoords'");
8472 return NULL;
8473 }
8474
8475
8476 static PyObject *_wrap_Rect_equals(PyObject *self, PyObject *args) {
8477 PyObject *resultobj;
8478 otk::Rect *arg1 = (otk::Rect *) 0 ;
8479 otk::Rect *arg2 = 0 ;
8480 bool result;
8481 PyObject * obj0 = 0 ;
8482 PyObject * obj1 = 0 ;
8483
8484 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_equals",&obj0,&obj1)) goto fail;
8485 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8486 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8487 if (arg2 == NULL) {
8488 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8489 }
8490 result = (bool)(arg1)->operator ==((otk::Rect const &)*arg2);
8491
8492 resultobj = PyInt_FromLong((long)result);
8493 return resultobj;
8494 fail:
8495 return NULL;
8496 }
8497
8498
8499 static PyObject *_wrap_Rect_valid(PyObject *self, PyObject *args) {
8500 PyObject *resultobj;
8501 otk::Rect *arg1 = (otk::Rect *) 0 ;
8502 bool result;
8503 PyObject * obj0 = 0 ;
8504
8505 if(!PyArg_ParseTuple(args,(char *)"O:Rect_valid",&obj0)) goto fail;
8506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8507 result = (bool)((otk::Rect const *)arg1)->valid();
8508
8509 resultobj = PyInt_FromLong((long)result);
8510 return resultobj;
8511 fail:
8512 return NULL;
8513 }
8514
8515
8516 static PyObject *_wrap_Rect_intersects(PyObject *self, PyObject *args) {
8517 PyObject *resultobj;
8518 otk::Rect *arg1 = (otk::Rect *) 0 ;
8519 otk::Rect *arg2 = 0 ;
8520 bool result;
8521 PyObject * obj0 = 0 ;
8522 PyObject * obj1 = 0 ;
8523
8524 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_intersects",&obj0,&obj1)) goto fail;
8525 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8526 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8527 if (arg2 == NULL) {
8528 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8529 }
8530 result = (bool)((otk::Rect const *)arg1)->intersects((otk::Rect const &)*arg2);
8531
8532 resultobj = PyInt_FromLong((long)result);
8533 return resultobj;
8534 fail:
8535 return NULL;
8536 }
8537
8538
8539 static PyObject *_wrap_Rect_contains__SWIG_0(PyObject *self, PyObject *args) {
8540 PyObject *resultobj;
8541 otk::Rect *arg1 = (otk::Rect *) 0 ;
8542 int arg2 ;
8543 int arg3 ;
8544 bool result;
8545 PyObject * obj0 = 0 ;
8546
8547 if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_contains",&obj0,&arg2,&arg3)) goto fail;
8548 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8549 result = (bool)((otk::Rect const *)arg1)->contains(arg2,arg3);
8550
8551 resultobj = PyInt_FromLong((long)result);
8552 return resultobj;
8553 fail:
8554 return NULL;
8555 }
8556
8557
8558 static PyObject *_wrap_Rect_contains__SWIG_1(PyObject *self, PyObject *args) {
8559 PyObject *resultobj;
8560 otk::Rect *arg1 = (otk::Rect *) 0 ;
8561 otk::Point *arg2 = 0 ;
8562 bool result;
8563 PyObject * obj0 = 0 ;
8564 PyObject * obj1 = 0 ;
8565
8566 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_contains",&obj0,&obj1)) goto fail;
8567 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8568 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8569 if (arg2 == NULL) {
8570 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8571 }
8572 result = (bool)((otk::Rect const *)arg1)->contains((otk::Point const &)*arg2);
8573
8574 resultobj = PyInt_FromLong((long)result);
8575 return resultobj;
8576 fail:
8577 return NULL;
8578 }
8579
8580
8581 static PyObject *_wrap_Rect_contains__SWIG_2(PyObject *self, PyObject *args) {
8582 PyObject *resultobj;
8583 otk::Rect *arg1 = (otk::Rect *) 0 ;
8584 otk::Rect *arg2 = 0 ;
8585 bool result;
8586 PyObject * obj0 = 0 ;
8587 PyObject * obj1 = 0 ;
8588
8589 if(!PyArg_ParseTuple(args,(char *)"OO:Rect_contains",&obj0,&obj1)) goto fail;
8590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8591 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8592 if (arg2 == NULL) {
8593 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8594 }
8595 result = (bool)((otk::Rect const *)arg1)->contains((otk::Rect const &)*arg2);
8596
8597 resultobj = PyInt_FromLong((long)result);
8598 return resultobj;
8599 fail:
8600 return NULL;
8601 }
8602
8603
8604 static PyObject *_wrap_Rect_contains(PyObject *self, PyObject *args) {
8605 int argc;
8606 PyObject *argv[4];
8607 int ii;
8608
8609 argc = PyObject_Length(args);
8610 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8611 argv[ii] = PyTuple_GetItem(args,ii);
8612 }
8613 if (argc == 2) {
8614 int _v;
8615 {
8616 void *ptr;
8617 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8618 _v = 0;
8619 PyErr_Clear();
8620 }else {
8621 _v = 1;
8622 }
8623 }
8624 if (_v) {
8625 {
8626 void *ptr;
8627 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
8628 _v = 0;
8629 PyErr_Clear();
8630 }else {
8631 _v = 1;
8632 }
8633 }
8634 if (_v) {
8635 return _wrap_Rect_contains__SWIG_1(self,args);
8636 }
8637 }
8638 }
8639 if (argc == 2) {
8640 int _v;
8641 {
8642 void *ptr;
8643 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8644 _v = 0;
8645 PyErr_Clear();
8646 }else {
8647 _v = 1;
8648 }
8649 }
8650 if (_v) {
8651 {
8652 void *ptr;
8653 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8654 _v = 0;
8655 PyErr_Clear();
8656 }else {
8657 _v = 1;
8658 }
8659 }
8660 if (_v) {
8661 return _wrap_Rect_contains__SWIG_2(self,args);
8662 }
8663 }
8664 }
8665 if (argc == 3) {
8666 int _v;
8667 {
8668 void *ptr;
8669 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
8670 _v = 0;
8671 PyErr_Clear();
8672 }else {
8673 _v = 1;
8674 }
8675 }
8676 if (_v) {
8677 {
8678 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
8679 }
8680 if (_v) {
8681 {
8682 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8683 }
8684 if (_v) {
8685 return _wrap_Rect_contains__SWIG_0(self,args);
8686 }
8687 }
8688 }
8689 }
8690
8691 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_contains'");
8692 return NULL;
8693 }
8694
8695
8696 static PyObject * Rect_swigregister(PyObject *self, PyObject *args) {
8697 PyObject *obj;
8698 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8699 SWIG_TypeClientData(SWIGTYPE_p_otk__Rect, obj);
8700 Py_INCREF(obj);
8701 return Py_BuildValue((char *)"");
8702 }
8703 static PyObject *_wrap_new_ScreenInfo(PyObject *self, PyObject *args) {
8704 PyObject *resultobj;
8705 unsigned int arg1 ;
8706 otk::ScreenInfo *result;
8707 PyObject * obj0 = 0 ;
8708
8709 if(!PyArg_ParseTuple(args,(char *)"O:new_ScreenInfo",&obj0)) goto fail;
8710 arg1 = (unsigned int) PyInt_AsLong(obj0);
8711 if (PyErr_Occurred()) SWIG_fail;
8712 result = (otk::ScreenInfo *)new otk::ScreenInfo(arg1);
8713
8714 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 1);
8715 return resultobj;
8716 fail:
8717 return NULL;
8718 }
8719
8720
8721 static PyObject *_wrap_ScreenInfo_visual(PyObject *self, PyObject *args) {
8722 PyObject *resultobj;
8723 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
8724 Visual *result;
8725 PyObject * obj0 = 0 ;
8726
8727 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_visual",&obj0)) goto fail;
8728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8729 result = (Visual *)((otk::ScreenInfo const *)arg1)->visual();
8730
8731 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Visual, 0);
8732 return resultobj;
8733 fail:
8734 return NULL;
8735 }
8736
8737
8738 static PyObject *_wrap_ScreenInfo_rootWindow(PyObject *self, PyObject *args) {
8739 PyObject *resultobj;
8740 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
8741 Window result;
8742 PyObject * obj0 = 0 ;
8743
8744 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_rootWindow",&obj0)) goto fail;
8745 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8746 result = ((otk::ScreenInfo const *)arg1)->rootWindow();
8747
8748 {
8749 Window * resultptr;
8750 resultptr = new Window((Window &) result);
8751 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Window, 1);
8752 }
8753 return resultobj;
8754 fail:
8755 return NULL;
8756 }
8757
8758
8759 static PyObject *_wrap_ScreenInfo_colormap(PyObject *self, PyObject *args) {
8760 PyObject *resultobj;
8761 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
8762 Colormap result;
8763 PyObject * obj0 = 0 ;
8764
8765 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_colormap",&obj0)) goto fail;
8766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8767 result = ((otk::ScreenInfo const *)arg1)->colormap();
8768
8769 {
8770 Colormap * resultptr;
8771 resultptr = new Colormap((Colormap &) result);
8772 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Colormap, 1);
8773 }
8774 return resultobj;
8775 fail:
8776 return NULL;
8777 }
8778
8779
8780 static PyObject *_wrap_ScreenInfo_depth(PyObject *self, PyObject *args) {
8781 PyObject *resultobj;
8782 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
8783 int result;
8784 PyObject * obj0 = 0 ;
8785
8786 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_depth",&obj0)) goto fail;
8787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8788 result = (int)((otk::ScreenInfo const *)arg1)->depth();
8789
8790 resultobj = PyInt_FromLong((long)result);
8791 return resultobj;
8792 fail:
8793 return NULL;
8794 }
8795
8796
8797 static PyObject *_wrap_ScreenInfo_screen(PyObject *self, PyObject *args) {
8798 PyObject *resultobj;
8799 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
8800 unsigned int result;
8801 PyObject * obj0 = 0 ;
8802
8803 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_screen",&obj0)) goto fail;
8804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8805 result = (unsigned int)((otk::ScreenInfo const *)arg1)->screen();
8806
8807 resultobj = PyInt_FromLong((long)result);
8808 return resultobj;
8809 fail:
8810 return NULL;
8811 }
8812
8813
8814 static PyObject *_wrap_ScreenInfo_rect(PyObject *self, PyObject *args) {
8815 PyObject *resultobj;
8816 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
8817 otk::Rect *result;
8818 PyObject * obj0 = 0 ;
8819
8820 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_rect",&obj0)) goto fail;
8821 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8822 {
8823 otk::Rect const &_result_ref = ((otk::ScreenInfo const *)arg1)->rect();
8824 result = (otk::Rect *) &_result_ref;
8825 }
8826
8827 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
8828 return resultobj;
8829 fail:
8830 return NULL;
8831 }
8832
8833
8834 static PyObject *_wrap_ScreenInfo_width(PyObject *self, PyObject *args) {
8835 PyObject *resultobj;
8836 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
8837 unsigned int result;
8838 PyObject * obj0 = 0 ;
8839
8840 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_width",&obj0)) goto fail;
8841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8842 result = (unsigned int)((otk::ScreenInfo const *)arg1)->width();
8843
8844 resultobj = PyInt_FromLong((long)result);
8845 return resultobj;
8846 fail:
8847 return NULL;
8848 }
8849
8850
8851 static PyObject *_wrap_ScreenInfo_height(PyObject *self, PyObject *args) {
8852 PyObject *resultobj;
8853 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
8854 unsigned int result;
8855 PyObject * obj0 = 0 ;
8856
8857 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_height",&obj0)) goto fail;
8858 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8859 result = (unsigned int)((otk::ScreenInfo const *)arg1)->height();
8860
8861 resultobj = PyInt_FromLong((long)result);
8862 return resultobj;
8863 fail:
8864 return NULL;
8865 }
8866
8867
8868 static PyObject *_wrap_ScreenInfo_displayString(PyObject *self, PyObject *args) {
8869 PyObject *resultobj;
8870 otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
8871 std::string *result;
8872 PyObject * obj0 = 0 ;
8873
8874 if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_displayString",&obj0)) goto fail;
8875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8876 {
8877 std::string const &_result_ref = ((otk::ScreenInfo const *)arg1)->displayString();
8878 result = (std::string *) &_result_ref;
8879 }
8880
8881 {
8882 resultobj = PyString_FromString(result->c_str());
8883 }
8884 return resultobj;
8885 fail:
8886 return NULL;
8887 }
8888
8889
8890 static PyObject * ScreenInfo_swigregister(PyObject *self, PyObject *args) {
8891 PyObject *obj;
8892 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8893 SWIG_TypeClientData(SWIGTYPE_p_otk__ScreenInfo, obj);
8894 Py_INCREF(obj);
8895 return Py_BuildValue((char *)"");
8896 }
8897 static PyObject *_wrap_Strut_top_set(PyObject *self, PyObject *args) {
8898 PyObject *resultobj;
8899 otk::Strut *arg1 = (otk::Strut *) 0 ;
8900 unsigned int arg2 ;
8901 PyObject * obj0 = 0 ;
8902 PyObject * obj1 = 0 ;
8903
8904 if(!PyArg_ParseTuple(args,(char *)"OO:Strut_top_set",&obj0,&obj1)) goto fail;
8905 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8906 arg2 = (unsigned int) PyInt_AsLong(obj1);
8907 if (PyErr_Occurred()) SWIG_fail;
8908 if (arg1) (arg1)->top = arg2;
8909
8910 Py_INCREF(Py_None); resultobj = Py_None;
8911 return resultobj;
8912 fail:
8913 return NULL;
8914 }
8915
8916
8917 static PyObject *_wrap_Strut_top_get(PyObject *self, PyObject *args) {
8918 PyObject *resultobj;
8919 otk::Strut *arg1 = (otk::Strut *) 0 ;
8920 unsigned int result;
8921 PyObject * obj0 = 0 ;
8922
8923 if(!PyArg_ParseTuple(args,(char *)"O:Strut_top_get",&obj0)) goto fail;
8924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8925 result = (unsigned int) ((arg1)->top);
8926
8927 resultobj = PyInt_FromLong((long)result);
8928 return resultobj;
8929 fail:
8930 return NULL;
8931 }
8932
8933
8934 static PyObject *_wrap_Strut_bottom_set(PyObject *self, PyObject *args) {
8935 PyObject *resultobj;
8936 otk::Strut *arg1 = (otk::Strut *) 0 ;
8937 unsigned int arg2 ;
8938 PyObject * obj0 = 0 ;
8939 PyObject * obj1 = 0 ;
8940
8941 if(!PyArg_ParseTuple(args,(char *)"OO:Strut_bottom_set",&obj0,&obj1)) goto fail;
8942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8943 arg2 = (unsigned int) PyInt_AsLong(obj1);
8944 if (PyErr_Occurred()) SWIG_fail;
8945 if (arg1) (arg1)->bottom = arg2;
8946
8947 Py_INCREF(Py_None); resultobj = Py_None;
8948 return resultobj;
8949 fail:
8950 return NULL;
8951 }
8952
8953
8954 static PyObject *_wrap_Strut_bottom_get(PyObject *self, PyObject *args) {
8955 PyObject *resultobj;
8956 otk::Strut *arg1 = (otk::Strut *) 0 ;
8957 unsigned int result;
8958 PyObject * obj0 = 0 ;
8959
8960 if(!PyArg_ParseTuple(args,(char *)"O:Strut_bottom_get",&obj0)) goto fail;
8961 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8962 result = (unsigned int) ((arg1)->bottom);
8963
8964 resultobj = PyInt_FromLong((long)result);
8965 return resultobj;
8966 fail:
8967 return NULL;
8968 }
8969
8970
8971 static PyObject *_wrap_Strut_left_set(PyObject *self, PyObject *args) {
8972 PyObject *resultobj;
8973 otk::Strut *arg1 = (otk::Strut *) 0 ;
8974 unsigned int arg2 ;
8975 PyObject * obj0 = 0 ;
8976 PyObject * obj1 = 0 ;
8977
8978 if(!PyArg_ParseTuple(args,(char *)"OO:Strut_left_set",&obj0,&obj1)) goto fail;
8979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8980 arg2 = (unsigned int) PyInt_AsLong(obj1);
8981 if (PyErr_Occurred()) SWIG_fail;
8982 if (arg1) (arg1)->left = arg2;
8983
8984 Py_INCREF(Py_None); resultobj = Py_None;
8985 return resultobj;
8986 fail:
8987 return NULL;
8988 }
8989
8990
8991 static PyObject *_wrap_Strut_left_get(PyObject *self, PyObject *args) {
8992 PyObject *resultobj;
8993 otk::Strut *arg1 = (otk::Strut *) 0 ;
8994 unsigned int result;
8995 PyObject * obj0 = 0 ;
8996
8997 if(!PyArg_ParseTuple(args,(char *)"O:Strut_left_get",&obj0)) goto fail;
8998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8999 result = (unsigned int) ((arg1)->left);
9000
9001 resultobj = PyInt_FromLong((long)result);
9002 return resultobj;
9003 fail:
9004 return NULL;
9005 }
9006
9007
9008 static PyObject *_wrap_Strut_right_set(PyObject *self, PyObject *args) {
9009 PyObject *resultobj;
9010 otk::Strut *arg1 = (otk::Strut *) 0 ;
9011 unsigned int arg2 ;
9012 PyObject * obj0 = 0 ;
9013 PyObject * obj1 = 0 ;
9014
9015 if(!PyArg_ParseTuple(args,(char *)"OO:Strut_right_set",&obj0,&obj1)) goto fail;
9016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9017 arg2 = (unsigned int) PyInt_AsLong(obj1);
9018 if (PyErr_Occurred()) SWIG_fail;
9019 if (arg1) (arg1)->right = arg2;
9020
9021 Py_INCREF(Py_None); resultobj = Py_None;
9022 return resultobj;
9023 fail:
9024 return NULL;
9025 }
9026
9027
9028 static PyObject *_wrap_Strut_right_get(PyObject *self, PyObject *args) {
9029 PyObject *resultobj;
9030 otk::Strut *arg1 = (otk::Strut *) 0 ;
9031 unsigned int result;
9032 PyObject * obj0 = 0 ;
9033
9034 if(!PyArg_ParseTuple(args,(char *)"O:Strut_right_get",&obj0)) goto fail;
9035 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9036 result = (unsigned int) ((arg1)->right);
9037
9038 resultobj = PyInt_FromLong((long)result);
9039 return resultobj;
9040 fail:
9041 return NULL;
9042 }
9043
9044
9045 static PyObject *_wrap_new_Strut__SWIG_0(PyObject *self, PyObject *args) {
9046 PyObject *resultobj;
9047 otk::Strut *result;
9048
9049 if(!PyArg_ParseTuple(args,(char *)":new_Strut")) goto fail;
9050 result = (otk::Strut *)new otk::Strut();
9051
9052 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 1);
9053 return resultobj;
9054 fail:
9055 return NULL;
9056 }
9057
9058
9059 static PyObject *_wrap_new_Strut__SWIG_1(PyObject *self, PyObject *args) {
9060 PyObject *resultobj;
9061 int arg1 ;
9062 int arg2 ;
9063 int arg3 ;
9064 int arg4 ;
9065 otk::Strut *result;
9066
9067 if(!PyArg_ParseTuple(args,(char *)"iiii:new_Strut",&arg1,&arg2,&arg3,&arg4)) goto fail;
9068 result = (otk::Strut *)new otk::Strut(arg1,arg2,arg3,arg4);
9069
9070 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 1);
9071 return resultobj;
9072 fail:
9073 return NULL;
9074 }
9075
9076
9077 static PyObject *_wrap_new_Strut(PyObject *self, PyObject *args) {
9078 int argc;
9079 PyObject *argv[5];
9080 int ii;
9081
9082 argc = PyObject_Length(args);
9083 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
9084 argv[ii] = PyTuple_GetItem(args,ii);
9085 }
9086 if (argc == 0) {
9087 return _wrap_new_Strut__SWIG_0(self,args);
9088 }
9089 if (argc == 4) {
9090 int _v;
9091 {
9092 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
9093 }
9094 if (_v) {
9095 {
9096 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
9097 }
9098 if (_v) {
9099 {
9100 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
9101 }
9102 if (_v) {
9103 {
9104 _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
9105 }
9106 if (_v) {
9107 return _wrap_new_Strut__SWIG_1(self,args);
9108 }
9109 }
9110 }
9111 }
9112 }
9113
9114 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Strut'");
9115 return NULL;
9116 }
9117
9118
9119 static PyObject * Strut_swigregister(PyObject *self, PyObject *args) {
9120 PyObject *obj;
9121 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9122 SWIG_TypeClientData(SWIGTYPE_p_otk__Strut, obj);
9123 Py_INCREF(obj);
9124 return Py_BuildValue((char *)"");
9125 }
9126 static PyObject *_wrap_PixmapMask_mask_set(PyObject *self, PyObject *args) {
9127 PyObject *resultobj;
9128 otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
9129 Pixmap arg2 ;
9130 Pixmap *argp2 ;
9131 PyObject * obj0 = 0 ;
9132 PyObject * obj1 = 0 ;
9133
9134 if(!PyArg_ParseTuple(args,(char *)"OO:PixmapMask_mask_set",&obj0,&obj1)) goto fail;
9135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9136 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_Pixmap,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
9137 arg2 = *argp2;
9138 if (arg1) (arg1)->mask = arg2;
9139
9140 Py_INCREF(Py_None); resultobj = Py_None;
9141 return resultobj;
9142 fail:
9143 return NULL;
9144 }
9145
9146
9147 static PyObject *_wrap_PixmapMask_mask_get(PyObject *self, PyObject *args) {
9148 PyObject *resultobj;
9149 otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
9150 Pixmap result;
9151 PyObject * obj0 = 0 ;
9152
9153 if(!PyArg_ParseTuple(args,(char *)"O:PixmapMask_mask_get",&obj0)) goto fail;
9154 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9155 result = ((arg1)->mask);
9156
9157 {
9158 Pixmap * resultptr;
9159 resultptr = new Pixmap((Pixmap &) result);
9160 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Pixmap, 1);
9161 }
9162 return resultobj;
9163 fail:
9164 return NULL;
9165 }
9166
9167
9168 static PyObject *_wrap_PixmapMask_w_set(PyObject *self, PyObject *args) {
9169 PyObject *resultobj;
9170 otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
9171 unsigned int arg2 ;
9172 PyObject * obj0 = 0 ;
9173 PyObject * obj1 = 0 ;
9174
9175 if(!PyArg_ParseTuple(args,(char *)"OO:PixmapMask_w_set",&obj0,&obj1)) goto fail;
9176 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9177 arg2 = (unsigned int) PyInt_AsLong(obj1);
9178 if (PyErr_Occurred()) SWIG_fail;
9179 if (arg1) (arg1)->w = arg2;
9180
9181 Py_INCREF(Py_None); resultobj = Py_None;
9182 return resultobj;
9183 fail:
9184 return NULL;
9185 }
9186
9187
9188 static PyObject *_wrap_PixmapMask_w_get(PyObject *self, PyObject *args) {
9189 PyObject *resultobj;
9190 otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
9191 unsigned int result;
9192 PyObject * obj0 = 0 ;
9193
9194 if(!PyArg_ParseTuple(args,(char *)"O:PixmapMask_w_get",&obj0)) goto fail;
9195 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9196 result = (unsigned int) ((arg1)->w);
9197
9198 resultobj = PyInt_FromLong((long)result);
9199 return resultobj;
9200 fail:
9201 return NULL;
9202 }
9203
9204
9205 static PyObject *_wrap_PixmapMask_h_set(PyObject *self, PyObject *args) {
9206 PyObject *resultobj;
9207 otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
9208 unsigned int arg2 ;
9209 PyObject * obj0 = 0 ;
9210 PyObject * obj1 = 0 ;
9211
9212 if(!PyArg_ParseTuple(args,(char *)"OO:PixmapMask_h_set",&obj0,&obj1)) goto fail;
9213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9214 arg2 = (unsigned int) PyInt_AsLong(obj1);
9215 if (PyErr_Occurred()) SWIG_fail;
9216 if (arg1) (arg1)->h = arg2;
9217
9218 Py_INCREF(Py_None); resultobj = Py_None;
9219 return resultobj;
9220 fail:
9221 return NULL;
9222 }
9223
9224
9225 static PyObject *_wrap_PixmapMask_h_get(PyObject *self, PyObject *args) {
9226 PyObject *resultobj;
9227 otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
9228 unsigned int result;
9229 PyObject * obj0 = 0 ;
9230
9231 if(!PyArg_ParseTuple(args,(char *)"O:PixmapMask_h_get",&obj0)) goto fail;
9232 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9233 result = (unsigned int) ((arg1)->h);
9234
9235 resultobj = PyInt_FromLong((long)result);
9236 return resultobj;
9237 fail:
9238 return NULL;
9239 }
9240
9241
9242 static PyObject * PixmapMask_swigregister(PyObject *self, PyObject *args) {
9243 PyObject *obj;
9244 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9245 SWIG_TypeClientData(SWIGTYPE_p_otk__PixmapMask, obj);
9246 Py_INCREF(obj);
9247 return Py_BuildValue((char *)"");
9248 }
9249 static PyObject *_wrap_Style_image_control_set(PyObject *self, PyObject *args) {
9250 PyObject *resultobj;
9251 otk::Style *arg1 = (otk::Style *) 0 ;
9252 otk::BImageControl *arg2 = (otk::BImageControl *) 0 ;
9253 PyObject * obj0 = 0 ;
9254 PyObject * obj1 = 0 ;
9255
9256 if(!PyArg_ParseTuple(args,(char *)"OO:Style_image_control_set",&obj0,&obj1)) goto fail;
9257 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9258 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
9259 if (arg1) (arg1)->image_control = arg2;
9260
9261 Py_INCREF(Py_None); resultobj = Py_None;
9262 return resultobj;
9263 fail:
9264 return NULL;
9265 }
9266
9267
9268 static PyObject *_wrap_Style_image_control_get(PyObject *self, PyObject *args) {
9269 PyObject *resultobj;
9270 otk::Style *arg1 = (otk::Style *) 0 ;
9271 otk::BImageControl *result;
9272 PyObject * obj0 = 0 ;
9273
9274 if(!PyArg_ParseTuple(args,(char *)"O:Style_image_control_get",&obj0)) goto fail;
9275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9276 result = (otk::BImageControl *) ((arg1)->image_control);
9277
9278 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 0);
9279 return resultobj;
9280 fail:
9281 return NULL;
9282 }
9283
9284
9285 static PyObject *_wrap_Style_l_text_focus_set(PyObject *self, PyObject *args) {
9286 PyObject *resultobj;
9287 otk::Style *arg1 = (otk::Style *) 0 ;
9288 otk::BColor *arg2 = (otk::BColor *) 0 ;
9289 PyObject * obj0 = 0 ;
9290 PyObject * obj1 = 0 ;
9291
9292 if(!PyArg_ParseTuple(args,(char *)"OO:Style_l_text_focus_set",&obj0,&obj1)) goto fail;
9293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9294 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9295 if (arg1) (arg1)->l_text_focus = *arg2;
9296
9297 Py_INCREF(Py_None); resultobj = Py_None;
9298 return resultobj;
9299 fail:
9300 return NULL;
9301 }
9302
9303
9304 static PyObject *_wrap_Style_l_text_focus_get(PyObject *self, PyObject *args) {
9305 PyObject *resultobj;
9306 otk::Style *arg1 = (otk::Style *) 0 ;
9307 otk::BColor *result;
9308 PyObject * obj0 = 0 ;
9309
9310 if(!PyArg_ParseTuple(args,(char *)"O:Style_l_text_focus_get",&obj0)) goto fail;
9311 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9312 result = (otk::BColor *)& ((arg1)->l_text_focus);
9313
9314 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
9315 return resultobj;
9316 fail:
9317 return NULL;
9318 }
9319
9320
9321 static PyObject *_wrap_Style_l_text_unfocus_set(PyObject *self, PyObject *args) {
9322 PyObject *resultobj;
9323 otk::Style *arg1 = (otk::Style *) 0 ;
9324 otk::BColor *arg2 = (otk::BColor *) 0 ;
9325 PyObject * obj0 = 0 ;
9326 PyObject * obj1 = 0 ;
9327
9328 if(!PyArg_ParseTuple(args,(char *)"OO:Style_l_text_unfocus_set",&obj0,&obj1)) goto fail;
9329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9330 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9331 if (arg1) (arg1)->l_text_unfocus = *arg2;
9332
9333 Py_INCREF(Py_None); resultobj = Py_None;
9334 return resultobj;
9335 fail:
9336 return NULL;
9337 }
9338
9339
9340 static PyObject *_wrap_Style_l_text_unfocus_get(PyObject *self, PyObject *args) {
9341 PyObject *resultobj;
9342 otk::Style *arg1 = (otk::Style *) 0 ;
9343 otk::BColor *result;
9344 PyObject * obj0 = 0 ;
9345
9346 if(!PyArg_ParseTuple(args,(char *)"O:Style_l_text_unfocus_get",&obj0)) goto fail;
9347 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9348 result = (otk::BColor *)& ((arg1)->l_text_unfocus);
9349
9350 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
9351 return resultobj;
9352 fail:
9353 return NULL;
9354 }
9355
9356
9357 static PyObject *_wrap_Style_b_pic_focus_set(PyObject *self, PyObject *args) {
9358 PyObject *resultobj;
9359 otk::Style *arg1 = (otk::Style *) 0 ;
9360 otk::BColor *arg2 = (otk::BColor *) 0 ;
9361 PyObject * obj0 = 0 ;
9362 PyObject * obj1 = 0 ;
9363
9364 if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pic_focus_set",&obj0,&obj1)) goto fail;
9365 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9366 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9367 if (arg1) (arg1)->b_pic_focus = *arg2;
9368
9369 Py_INCREF(Py_None); resultobj = Py_None;
9370 return resultobj;
9371 fail:
9372 return NULL;
9373 }
9374
9375
9376 static PyObject *_wrap_Style_b_pic_focus_get(PyObject *self, PyObject *args) {
9377 PyObject *resultobj;
9378 otk::Style *arg1 = (otk::Style *) 0 ;
9379 otk::BColor *result;
9380 PyObject * obj0 = 0 ;
9381
9382 if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pic_focus_get",&obj0)) goto fail;
9383 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9384 result = (otk::BColor *)& ((arg1)->b_pic_focus);
9385
9386 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
9387 return resultobj;
9388 fail:
9389 return NULL;
9390 }
9391
9392
9393 static PyObject *_wrap_Style_b_pic_unfocus_set(PyObject *self, PyObject *args) {
9394 PyObject *resultobj;
9395 otk::Style *arg1 = (otk::Style *) 0 ;
9396 otk::BColor *arg2 = (otk::BColor *) 0 ;
9397 PyObject * obj0 = 0 ;
9398 PyObject * obj1 = 0 ;
9399
9400 if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pic_unfocus_set",&obj0,&obj1)) goto fail;
9401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9402 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9403 if (arg1) (arg1)->b_pic_unfocus = *arg2;
9404
9405 Py_INCREF(Py_None); resultobj = Py_None;
9406 return resultobj;
9407 fail:
9408 return NULL;
9409 }
9410
9411
9412 static PyObject *_wrap_Style_b_pic_unfocus_get(PyObject *self, PyObject *args) {
9413 PyObject *resultobj;
9414 otk::Style *arg1 = (otk::Style *) 0 ;
9415 otk::BColor *result;
9416 PyObject * obj0 = 0 ;
9417
9418 if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pic_unfocus_get",&obj0)) goto fail;
9419 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9420 result = (otk::BColor *)& ((arg1)->b_pic_unfocus);
9421
9422 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
9423 return resultobj;
9424 fail:
9425 return NULL;
9426 }
9427
9428
9429 static PyObject *_wrap_Style_border_color_set(PyObject *self, PyObject *args) {
9430 PyObject *resultobj;
9431 otk::Style *arg1 = (otk::Style *) 0 ;
9432 otk::BColor *arg2 = (otk::BColor *) 0 ;
9433 PyObject * obj0 = 0 ;
9434 PyObject * obj1 = 0 ;
9435
9436 if(!PyArg_ParseTuple(args,(char *)"OO:Style_border_color_set",&obj0,&obj1)) goto fail;
9437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9438 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9439 if (arg1) (arg1)->border_color = *arg2;
9440
9441 Py_INCREF(Py_None); resultobj = Py_None;
9442 return resultobj;
9443 fail:
9444 return NULL;
9445 }
9446
9447
9448 static PyObject *_wrap_Style_border_color_get(PyObject *self, PyObject *args) {
9449 PyObject *resultobj;
9450 otk::Style *arg1 = (otk::Style *) 0 ;
9451 otk::BColor *result;
9452 PyObject * obj0 = 0 ;
9453
9454 if(!PyArg_ParseTuple(args,(char *)"O:Style_border_color_get",&obj0)) goto fail;
9455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9456 result = (otk::BColor *)& ((arg1)->border_color);
9457
9458 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
9459 return resultobj;
9460 fail:
9461 return NULL;
9462 }
9463
9464
9465 static PyObject *_wrap_Style_font_set(PyObject *self, PyObject *args) {
9466 PyObject *resultobj;
9467 otk::Style *arg1 = (otk::Style *) 0 ;
9468 otk::BFont *arg2 = (otk::BFont *) 0 ;
9469 PyObject * obj0 = 0 ;
9470 PyObject * obj1 = 0 ;
9471
9472 if(!PyArg_ParseTuple(args,(char *)"OO:Style_font_set",&obj0,&obj1)) goto fail;
9473 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9474 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
9475 if (arg1) (arg1)->font = arg2;
9476
9477 Py_INCREF(Py_None); resultobj = Py_None;
9478 return resultobj;
9479 fail:
9480 return NULL;
9481 }
9482
9483
9484 static PyObject *_wrap_Style_font_get(PyObject *self, PyObject *args) {
9485 PyObject *resultobj;
9486 otk::Style *arg1 = (otk::Style *) 0 ;
9487 otk::BFont *result;
9488 PyObject * obj0 = 0 ;
9489
9490 if(!PyArg_ParseTuple(args,(char *)"O:Style_font_get",&obj0)) goto fail;
9491 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9492 result = (otk::BFont *) ((arg1)->font);
9493
9494 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BFont, 0);
9495 return resultobj;
9496 fail:
9497 return NULL;
9498 }
9499
9500
9501 static PyObject *_wrap_Style_f_focus_set(PyObject *self, PyObject *args) {
9502 PyObject *resultobj;
9503 otk::Style *arg1 = (otk::Style *) 0 ;
9504 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9505 PyObject * obj0 = 0 ;
9506 PyObject * obj1 = 0 ;
9507
9508 if(!PyArg_ParseTuple(args,(char *)"OO:Style_f_focus_set",&obj0,&obj1)) goto fail;
9509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9510 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9511 if (arg1) (arg1)->f_focus = *arg2;
9512
9513 Py_INCREF(Py_None); resultobj = Py_None;
9514 return resultobj;
9515 fail:
9516 return NULL;
9517 }
9518
9519
9520 static PyObject *_wrap_Style_f_focus_get(PyObject *self, PyObject *args) {
9521 PyObject *resultobj;
9522 otk::Style *arg1 = (otk::Style *) 0 ;
9523 otk::BTexture *result;
9524 PyObject * obj0 = 0 ;
9525
9526 if(!PyArg_ParseTuple(args,(char *)"O:Style_f_focus_get",&obj0)) goto fail;
9527 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9528 result = (otk::BTexture *)& ((arg1)->f_focus);
9529
9530 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9531 return resultobj;
9532 fail:
9533 return NULL;
9534 }
9535
9536
9537 static PyObject *_wrap_Style_f_unfocus_set(PyObject *self, PyObject *args) {
9538 PyObject *resultobj;
9539 otk::Style *arg1 = (otk::Style *) 0 ;
9540 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9541 PyObject * obj0 = 0 ;
9542 PyObject * obj1 = 0 ;
9543
9544 if(!PyArg_ParseTuple(args,(char *)"OO:Style_f_unfocus_set",&obj0,&obj1)) goto fail;
9545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9546 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9547 if (arg1) (arg1)->f_unfocus = *arg2;
9548
9549 Py_INCREF(Py_None); resultobj = Py_None;
9550 return resultobj;
9551 fail:
9552 return NULL;
9553 }
9554
9555
9556 static PyObject *_wrap_Style_f_unfocus_get(PyObject *self, PyObject *args) {
9557 PyObject *resultobj;
9558 otk::Style *arg1 = (otk::Style *) 0 ;
9559 otk::BTexture *result;
9560 PyObject * obj0 = 0 ;
9561
9562 if(!PyArg_ParseTuple(args,(char *)"O:Style_f_unfocus_get",&obj0)) goto fail;
9563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9564 result = (otk::BTexture *)& ((arg1)->f_unfocus);
9565
9566 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9567 return resultobj;
9568 fail:
9569 return NULL;
9570 }
9571
9572
9573 static PyObject *_wrap_Style_t_focus_set(PyObject *self, PyObject *args) {
9574 PyObject *resultobj;
9575 otk::Style *arg1 = (otk::Style *) 0 ;
9576 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9577 PyObject * obj0 = 0 ;
9578 PyObject * obj1 = 0 ;
9579
9580 if(!PyArg_ParseTuple(args,(char *)"OO:Style_t_focus_set",&obj0,&obj1)) goto fail;
9581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9582 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9583 if (arg1) (arg1)->t_focus = *arg2;
9584
9585 Py_INCREF(Py_None); resultobj = Py_None;
9586 return resultobj;
9587 fail:
9588 return NULL;
9589 }
9590
9591
9592 static PyObject *_wrap_Style_t_focus_get(PyObject *self, PyObject *args) {
9593 PyObject *resultobj;
9594 otk::Style *arg1 = (otk::Style *) 0 ;
9595 otk::BTexture *result;
9596 PyObject * obj0 = 0 ;
9597
9598 if(!PyArg_ParseTuple(args,(char *)"O:Style_t_focus_get",&obj0)) goto fail;
9599 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9600 result = (otk::BTexture *)& ((arg1)->t_focus);
9601
9602 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9603 return resultobj;
9604 fail:
9605 return NULL;
9606 }
9607
9608
9609 static PyObject *_wrap_Style_t_unfocus_set(PyObject *self, PyObject *args) {
9610 PyObject *resultobj;
9611 otk::Style *arg1 = (otk::Style *) 0 ;
9612 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9613 PyObject * obj0 = 0 ;
9614 PyObject * obj1 = 0 ;
9615
9616 if(!PyArg_ParseTuple(args,(char *)"OO:Style_t_unfocus_set",&obj0,&obj1)) goto fail;
9617 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9618 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9619 if (arg1) (arg1)->t_unfocus = *arg2;
9620
9621 Py_INCREF(Py_None); resultobj = Py_None;
9622 return resultobj;
9623 fail:
9624 return NULL;
9625 }
9626
9627
9628 static PyObject *_wrap_Style_t_unfocus_get(PyObject *self, PyObject *args) {
9629 PyObject *resultobj;
9630 otk::Style *arg1 = (otk::Style *) 0 ;
9631 otk::BTexture *result;
9632 PyObject * obj0 = 0 ;
9633
9634 if(!PyArg_ParseTuple(args,(char *)"O:Style_t_unfocus_get",&obj0)) goto fail;
9635 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9636 result = (otk::BTexture *)& ((arg1)->t_unfocus);
9637
9638 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9639 return resultobj;
9640 fail:
9641 return NULL;
9642 }
9643
9644
9645 static PyObject *_wrap_Style_l_focus_set(PyObject *self, PyObject *args) {
9646 PyObject *resultobj;
9647 otk::Style *arg1 = (otk::Style *) 0 ;
9648 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9649 PyObject * obj0 = 0 ;
9650 PyObject * obj1 = 0 ;
9651
9652 if(!PyArg_ParseTuple(args,(char *)"OO:Style_l_focus_set",&obj0,&obj1)) goto fail;
9653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9654 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9655 if (arg1) (arg1)->l_focus = *arg2;
9656
9657 Py_INCREF(Py_None); resultobj = Py_None;
9658 return resultobj;
9659 fail:
9660 return NULL;
9661 }
9662
9663
9664 static PyObject *_wrap_Style_l_focus_get(PyObject *self, PyObject *args) {
9665 PyObject *resultobj;
9666 otk::Style *arg1 = (otk::Style *) 0 ;
9667 otk::BTexture *result;
9668 PyObject * obj0 = 0 ;
9669
9670 if(!PyArg_ParseTuple(args,(char *)"O:Style_l_focus_get",&obj0)) goto fail;
9671 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9672 result = (otk::BTexture *)& ((arg1)->l_focus);
9673
9674 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9675 return resultobj;
9676 fail:
9677 return NULL;
9678 }
9679
9680
9681 static PyObject *_wrap_Style_l_unfocus_set(PyObject *self, PyObject *args) {
9682 PyObject *resultobj;
9683 otk::Style *arg1 = (otk::Style *) 0 ;
9684 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9685 PyObject * obj0 = 0 ;
9686 PyObject * obj1 = 0 ;
9687
9688 if(!PyArg_ParseTuple(args,(char *)"OO:Style_l_unfocus_set",&obj0,&obj1)) goto fail;
9689 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9690 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9691 if (arg1) (arg1)->l_unfocus = *arg2;
9692
9693 Py_INCREF(Py_None); resultobj = Py_None;
9694 return resultobj;
9695 fail:
9696 return NULL;
9697 }
9698
9699
9700 static PyObject *_wrap_Style_l_unfocus_get(PyObject *self, PyObject *args) {
9701 PyObject *resultobj;
9702 otk::Style *arg1 = (otk::Style *) 0 ;
9703 otk::BTexture *result;
9704 PyObject * obj0 = 0 ;
9705
9706 if(!PyArg_ParseTuple(args,(char *)"O:Style_l_unfocus_get",&obj0)) goto fail;
9707 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9708 result = (otk::BTexture *)& ((arg1)->l_unfocus);
9709
9710 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9711 return resultobj;
9712 fail:
9713 return NULL;
9714 }
9715
9716
9717 static PyObject *_wrap_Style_h_focus_set(PyObject *self, PyObject *args) {
9718 PyObject *resultobj;
9719 otk::Style *arg1 = (otk::Style *) 0 ;
9720 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9721 PyObject * obj0 = 0 ;
9722 PyObject * obj1 = 0 ;
9723
9724 if(!PyArg_ParseTuple(args,(char *)"OO:Style_h_focus_set",&obj0,&obj1)) goto fail;
9725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9726 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9727 if (arg1) (arg1)->h_focus = *arg2;
9728
9729 Py_INCREF(Py_None); resultobj = Py_None;
9730 return resultobj;
9731 fail:
9732 return NULL;
9733 }
9734
9735
9736 static PyObject *_wrap_Style_h_focus_get(PyObject *self, PyObject *args) {
9737 PyObject *resultobj;
9738 otk::Style *arg1 = (otk::Style *) 0 ;
9739 otk::BTexture *result;
9740 PyObject * obj0 = 0 ;
9741
9742 if(!PyArg_ParseTuple(args,(char *)"O:Style_h_focus_get",&obj0)) goto fail;
9743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9744 result = (otk::BTexture *)& ((arg1)->h_focus);
9745
9746 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9747 return resultobj;
9748 fail:
9749 return NULL;
9750 }
9751
9752
9753 static PyObject *_wrap_Style_h_unfocus_set(PyObject *self, PyObject *args) {
9754 PyObject *resultobj;
9755 otk::Style *arg1 = (otk::Style *) 0 ;
9756 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9757 PyObject * obj0 = 0 ;
9758 PyObject * obj1 = 0 ;
9759
9760 if(!PyArg_ParseTuple(args,(char *)"OO:Style_h_unfocus_set",&obj0,&obj1)) goto fail;
9761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9762 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9763 if (arg1) (arg1)->h_unfocus = *arg2;
9764
9765 Py_INCREF(Py_None); resultobj = Py_None;
9766 return resultobj;
9767 fail:
9768 return NULL;
9769 }
9770
9771
9772 static PyObject *_wrap_Style_h_unfocus_get(PyObject *self, PyObject *args) {
9773 PyObject *resultobj;
9774 otk::Style *arg1 = (otk::Style *) 0 ;
9775 otk::BTexture *result;
9776 PyObject * obj0 = 0 ;
9777
9778 if(!PyArg_ParseTuple(args,(char *)"O:Style_h_unfocus_get",&obj0)) goto fail;
9779 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9780 result = (otk::BTexture *)& ((arg1)->h_unfocus);
9781
9782 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9783 return resultobj;
9784 fail:
9785 return NULL;
9786 }
9787
9788
9789 static PyObject *_wrap_Style_b_focus_set(PyObject *self, PyObject *args) {
9790 PyObject *resultobj;
9791 otk::Style *arg1 = (otk::Style *) 0 ;
9792 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9793 PyObject * obj0 = 0 ;
9794 PyObject * obj1 = 0 ;
9795
9796 if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_focus_set",&obj0,&obj1)) goto fail;
9797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9798 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9799 if (arg1) (arg1)->b_focus = *arg2;
9800
9801 Py_INCREF(Py_None); resultobj = Py_None;
9802 return resultobj;
9803 fail:
9804 return NULL;
9805 }
9806
9807
9808 static PyObject *_wrap_Style_b_focus_get(PyObject *self, PyObject *args) {
9809 PyObject *resultobj;
9810 otk::Style *arg1 = (otk::Style *) 0 ;
9811 otk::BTexture *result;
9812 PyObject * obj0 = 0 ;
9813
9814 if(!PyArg_ParseTuple(args,(char *)"O:Style_b_focus_get",&obj0)) goto fail;
9815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9816 result = (otk::BTexture *)& ((arg1)->b_focus);
9817
9818 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9819 return resultobj;
9820 fail:
9821 return NULL;
9822 }
9823
9824
9825 static PyObject *_wrap_Style_b_unfocus_set(PyObject *self, PyObject *args) {
9826 PyObject *resultobj;
9827 otk::Style *arg1 = (otk::Style *) 0 ;
9828 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9829 PyObject * obj0 = 0 ;
9830 PyObject * obj1 = 0 ;
9831
9832 if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_unfocus_set",&obj0,&obj1)) goto fail;
9833 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9834 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9835 if (arg1) (arg1)->b_unfocus = *arg2;
9836
9837 Py_INCREF(Py_None); resultobj = Py_None;
9838 return resultobj;
9839 fail:
9840 return NULL;
9841 }
9842
9843
9844 static PyObject *_wrap_Style_b_unfocus_get(PyObject *self, PyObject *args) {
9845 PyObject *resultobj;
9846 otk::Style *arg1 = (otk::Style *) 0 ;
9847 otk::BTexture *result;
9848 PyObject * obj0 = 0 ;
9849
9850 if(!PyArg_ParseTuple(args,(char *)"O:Style_b_unfocus_get",&obj0)) goto fail;
9851 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9852 result = (otk::BTexture *)& ((arg1)->b_unfocus);
9853
9854 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9855 return resultobj;
9856 fail:
9857 return NULL;
9858 }
9859
9860
9861 static PyObject *_wrap_Style_b_pressed_set(PyObject *self, PyObject *args) {
9862 PyObject *resultobj;
9863 otk::Style *arg1 = (otk::Style *) 0 ;
9864 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9865 PyObject * obj0 = 0 ;
9866 PyObject * obj1 = 0 ;
9867
9868 if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pressed_set",&obj0,&obj1)) goto fail;
9869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9870 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9871 if (arg1) (arg1)->b_pressed = *arg2;
9872
9873 Py_INCREF(Py_None); resultobj = Py_None;
9874 return resultobj;
9875 fail:
9876 return NULL;
9877 }
9878
9879
9880 static PyObject *_wrap_Style_b_pressed_get(PyObject *self, PyObject *args) {
9881 PyObject *resultobj;
9882 otk::Style *arg1 = (otk::Style *) 0 ;
9883 otk::BTexture *result;
9884 PyObject * obj0 = 0 ;
9885
9886 if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pressed_get",&obj0)) goto fail;
9887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9888 result = (otk::BTexture *)& ((arg1)->b_pressed);
9889
9890 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9891 return resultobj;
9892 fail:
9893 return NULL;
9894 }
9895
9896
9897 static PyObject *_wrap_Style_b_pressed_focus_set(PyObject *self, PyObject *args) {
9898 PyObject *resultobj;
9899 otk::Style *arg1 = (otk::Style *) 0 ;
9900 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9901 PyObject * obj0 = 0 ;
9902 PyObject * obj1 = 0 ;
9903
9904 if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pressed_focus_set",&obj0,&obj1)) goto fail;
9905 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9906 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9907 if (arg1) (arg1)->b_pressed_focus = *arg2;
9908
9909 Py_INCREF(Py_None); resultobj = Py_None;
9910 return resultobj;
9911 fail:
9912 return NULL;
9913 }
9914
9915
9916 static PyObject *_wrap_Style_b_pressed_focus_get(PyObject *self, PyObject *args) {
9917 PyObject *resultobj;
9918 otk::Style *arg1 = (otk::Style *) 0 ;
9919 otk::BTexture *result;
9920 PyObject * obj0 = 0 ;
9921
9922 if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pressed_focus_get",&obj0)) goto fail;
9923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9924 result = (otk::BTexture *)& ((arg1)->b_pressed_focus);
9925
9926 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9927 return resultobj;
9928 fail:
9929 return NULL;
9930 }
9931
9932
9933 static PyObject *_wrap_Style_b_pressed_unfocus_set(PyObject *self, PyObject *args) {
9934 PyObject *resultobj;
9935 otk::Style *arg1 = (otk::Style *) 0 ;
9936 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9937 PyObject * obj0 = 0 ;
9938 PyObject * obj1 = 0 ;
9939
9940 if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pressed_unfocus_set",&obj0,&obj1)) goto fail;
9941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9942 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9943 if (arg1) (arg1)->b_pressed_unfocus = *arg2;
9944
9945 Py_INCREF(Py_None); resultobj = Py_None;
9946 return resultobj;
9947 fail:
9948 return NULL;
9949 }
9950
9951
9952 static PyObject *_wrap_Style_b_pressed_unfocus_get(PyObject *self, PyObject *args) {
9953 PyObject *resultobj;
9954 otk::Style *arg1 = (otk::Style *) 0 ;
9955 otk::BTexture *result;
9956 PyObject * obj0 = 0 ;
9957
9958 if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pressed_unfocus_get",&obj0)) goto fail;
9959 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9960 result = (otk::BTexture *)& ((arg1)->b_pressed_unfocus);
9961
9962 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9963 return resultobj;
9964 fail:
9965 return NULL;
9966 }
9967
9968
9969 static PyObject *_wrap_Style_g_focus_set(PyObject *self, PyObject *args) {
9970 PyObject *resultobj;
9971 otk::Style *arg1 = (otk::Style *) 0 ;
9972 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
9973 PyObject * obj0 = 0 ;
9974 PyObject * obj1 = 0 ;
9975
9976 if(!PyArg_ParseTuple(args,(char *)"OO:Style_g_focus_set",&obj0,&obj1)) goto fail;
9977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9978 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9979 if (arg1) (arg1)->g_focus = *arg2;
9980
9981 Py_INCREF(Py_None); resultobj = Py_None;
9982 return resultobj;
9983 fail:
9984 return NULL;
9985 }
9986
9987
9988 static PyObject *_wrap_Style_g_focus_get(PyObject *self, PyObject *args) {
9989 PyObject *resultobj;
9990 otk::Style *arg1 = (otk::Style *) 0 ;
9991 otk::BTexture *result;
9992 PyObject * obj0 = 0 ;
9993
9994 if(!PyArg_ParseTuple(args,(char *)"O:Style_g_focus_get",&obj0)) goto fail;
9995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9996 result = (otk::BTexture *)& ((arg1)->g_focus);
9997
9998 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
9999 return resultobj;
10000 fail:
10001 return NULL;
10002 }
10003
10004
10005 static PyObject *_wrap_Style_g_unfocus_set(PyObject *self, PyObject *args) {
10006 PyObject *resultobj;
10007 otk::Style *arg1 = (otk::Style *) 0 ;
10008 otk::BTexture *arg2 = (otk::BTexture *) 0 ;
10009 PyObject * obj0 = 0 ;
10010 PyObject * obj1 = 0 ;
10011
10012 if(!PyArg_ParseTuple(args,(char *)"OO:Style_g_unfocus_set",&obj0,&obj1)) goto fail;
10013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10014 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10015 if (arg1) (arg1)->g_unfocus = *arg2;
10016
10017 Py_INCREF(Py_None); resultobj = Py_None;
10018 return resultobj;
10019 fail:
10020 return NULL;
10021 }
10022
10023
10024 static PyObject *_wrap_Style_g_unfocus_get(PyObject *self, PyObject *args) {
10025 PyObject *resultobj;
10026 otk::Style *arg1 = (otk::Style *) 0 ;
10027 otk::BTexture *result;
10028 PyObject * obj0 = 0 ;
10029
10030 if(!PyArg_ParseTuple(args,(char *)"O:Style_g_unfocus_get",&obj0)) goto fail;
10031 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10032 result = (otk::BTexture *)& ((arg1)->g_unfocus);
10033
10034 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
10035 return resultobj;
10036 fail:
10037 return NULL;
10038 }
10039
10040
10041 static PyObject *_wrap_Style_close_button_set(PyObject *self, PyObject *args) {
10042 PyObject *resultobj;
10043 otk::Style *arg1 = (otk::Style *) 0 ;
10044 otk::PixmapMask *arg2 = (otk::PixmapMask *) 0 ;
10045 PyObject * obj0 = 0 ;
10046 PyObject * obj1 = 0 ;
10047
10048 if(!PyArg_ParseTuple(args,(char *)"OO:Style_close_button_set",&obj0,&obj1)) goto fail;
10049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10050 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10051 if (arg1) (arg1)->close_button = *arg2;
10052
10053 Py_INCREF(Py_None); resultobj = Py_None;
10054 return resultobj;
10055 fail:
10056 return NULL;
10057 }
10058
10059
10060 static PyObject *_wrap_Style_close_button_get(PyObject *self, PyObject *args) {
10061 PyObject *resultobj;
10062 otk::Style *arg1 = (otk::Style *) 0 ;
10063 otk::PixmapMask *result;
10064 PyObject * obj0 = 0 ;
10065
10066 if(!PyArg_ParseTuple(args,(char *)"O:Style_close_button_get",&obj0)) goto fail;
10067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10068 result = (otk::PixmapMask *)& ((arg1)->close_button);
10069
10070 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
10071 return resultobj;
10072 fail:
10073 return NULL;
10074 }
10075
10076
10077 static PyObject *_wrap_Style_max_button_set(PyObject *self, PyObject *args) {
10078 PyObject *resultobj;
10079 otk::Style *arg1 = (otk::Style *) 0 ;
10080 otk::PixmapMask *arg2 = (otk::PixmapMask *) 0 ;
10081 PyObject * obj0 = 0 ;
10082 PyObject * obj1 = 0 ;
10083
10084 if(!PyArg_ParseTuple(args,(char *)"OO:Style_max_button_set",&obj0,&obj1)) goto fail;
10085 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10086 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10087 if (arg1) (arg1)->max_button = *arg2;
10088
10089 Py_INCREF(Py_None); resultobj = Py_None;
10090 return resultobj;
10091 fail:
10092 return NULL;
10093 }
10094
10095
10096 static PyObject *_wrap_Style_max_button_get(PyObject *self, PyObject *args) {
10097 PyObject *resultobj;
10098 otk::Style *arg1 = (otk::Style *) 0 ;
10099 otk::PixmapMask *result;
10100 PyObject * obj0 = 0 ;
10101
10102 if(!PyArg_ParseTuple(args,(char *)"O:Style_max_button_get",&obj0)) goto fail;
10103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10104 result = (otk::PixmapMask *)& ((arg1)->max_button);
10105
10106 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
10107 return resultobj;
10108 fail:
10109 return NULL;
10110 }
10111
10112
10113 static PyObject *_wrap_Style_icon_button_set(PyObject *self, PyObject *args) {
10114 PyObject *resultobj;
10115 otk::Style *arg1 = (otk::Style *) 0 ;
10116 otk::PixmapMask *arg2 = (otk::PixmapMask *) 0 ;
10117 PyObject * obj0 = 0 ;
10118 PyObject * obj1 = 0 ;
10119
10120 if(!PyArg_ParseTuple(args,(char *)"OO:Style_icon_button_set",&obj0,&obj1)) goto fail;
10121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10122 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10123 if (arg1) (arg1)->icon_button = *arg2;
10124
10125 Py_INCREF(Py_None); resultobj = Py_None;
10126 return resultobj;
10127 fail:
10128 return NULL;
10129 }
10130
10131
10132 static PyObject *_wrap_Style_icon_button_get(PyObject *self, PyObject *args) {
10133 PyObject *resultobj;
10134 otk::Style *arg1 = (otk::Style *) 0 ;
10135 otk::PixmapMask *result;
10136 PyObject * obj0 = 0 ;
10137
10138 if(!PyArg_ParseTuple(args,(char *)"O:Style_icon_button_get",&obj0)) goto fail;
10139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10140 result = (otk::PixmapMask *)& ((arg1)->icon_button);
10141
10142 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
10143 return resultobj;
10144 fail:
10145 return NULL;
10146 }
10147
10148
10149 static PyObject *_wrap_Style_stick_button_set(PyObject *self, PyObject *args) {
10150 PyObject *resultobj;
10151 otk::Style *arg1 = (otk::Style *) 0 ;
10152 otk::PixmapMask *arg2 = (otk::PixmapMask *) 0 ;
10153 PyObject * obj0 = 0 ;
10154 PyObject * obj1 = 0 ;
10155
10156 if(!PyArg_ParseTuple(args,(char *)"OO:Style_stick_button_set",&obj0,&obj1)) goto fail;
10157 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10158 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10159 if (arg1) (arg1)->stick_button = *arg2;
10160
10161 Py_INCREF(Py_None); resultobj = Py_None;
10162 return resultobj;
10163 fail:
10164 return NULL;
10165 }
10166
10167
10168 static PyObject *_wrap_Style_stick_button_get(PyObject *self, PyObject *args) {
10169 PyObject *resultobj;
10170 otk::Style *arg1 = (otk::Style *) 0 ;
10171 otk::PixmapMask *result;
10172 PyObject * obj0 = 0 ;
10173
10174 if(!PyArg_ParseTuple(args,(char *)"O:Style_stick_button_get",&obj0)) goto fail;
10175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10176 result = (otk::PixmapMask *)& ((arg1)->stick_button);
10177
10178 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
10179 return resultobj;
10180 fail:
10181 return NULL;
10182 }
10183
10184
10185 static PyObject *_wrap_Style_justify_set(PyObject *self, PyObject *args) {
10186 PyObject *resultobj;
10187 otk::Style *arg1 = (otk::Style *) 0 ;
10188 int arg2 ;
10189 PyObject * obj0 = 0 ;
10190
10191 if(!PyArg_ParseTuple(args,(char *)"Oi:Style_justify_set",&obj0,&arg2)) goto fail;
10192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10193 if (arg1) (arg1)->justify = (otk::Style::TextJustify )arg2;
10194
10195 Py_INCREF(Py_None); resultobj = Py_None;
10196 return resultobj;
10197 fail:
10198 return NULL;
10199 }
10200
10201
10202 static PyObject *_wrap_Style_justify_get(PyObject *self, PyObject *args) {
10203 PyObject *resultobj;
10204 otk::Style *arg1 = (otk::Style *) 0 ;
10205 int result;
10206 PyObject * obj0 = 0 ;
10207
10208 if(!PyArg_ParseTuple(args,(char *)"O:Style_justify_get",&obj0)) goto fail;
10209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10210 result = (int) ((arg1)->justify);
10211
10212 resultobj = PyInt_FromLong((long)result);
10213 return resultobj;
10214 fail:
10215 return NULL;
10216 }
10217
10218
10219 static PyObject *_wrap_Style_bullet_type_set(PyObject *self, PyObject *args) {
10220 PyObject *resultobj;
10221 otk::Style *arg1 = (otk::Style *) 0 ;
10222 int arg2 ;
10223 PyObject * obj0 = 0 ;
10224
10225 if(!PyArg_ParseTuple(args,(char *)"Oi:Style_bullet_type_set",&obj0,&arg2)) goto fail;
10226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10227 if (arg1) (arg1)->bullet_type = (otk::Style::BulletType )arg2;
10228
10229 Py_INCREF(Py_None); resultobj = Py_None;
10230 return resultobj;
10231 fail:
10232 return NULL;
10233 }
10234
10235
10236 static PyObject *_wrap_Style_bullet_type_get(PyObject *self, PyObject *args) {
10237 PyObject *resultobj;
10238 otk::Style *arg1 = (otk::Style *) 0 ;
10239 int result;
10240 PyObject * obj0 = 0 ;
10241
10242 if(!PyArg_ParseTuple(args,(char *)"O:Style_bullet_type_get",&obj0)) goto fail;
10243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10244 result = (int) ((arg1)->bullet_type);
10245
10246 resultobj = PyInt_FromLong((long)result);
10247 return resultobj;
10248 fail:
10249 return NULL;
10250 }
10251
10252
10253 static PyObject *_wrap_Style_handle_width_set(PyObject *self, PyObject *args) {
10254 PyObject *resultobj;
10255 otk::Style *arg1 = (otk::Style *) 0 ;
10256 unsigned int arg2 ;
10257 PyObject * obj0 = 0 ;
10258 PyObject * obj1 = 0 ;
10259
10260 if(!PyArg_ParseTuple(args,(char *)"OO:Style_handle_width_set",&obj0,&obj1)) goto fail;
10261 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10262 arg2 = (unsigned int) PyInt_AsLong(obj1);
10263 if (PyErr_Occurred()) SWIG_fail;
10264 if (arg1) (arg1)->handle_width = arg2;
10265
10266 Py_INCREF(Py_None); resultobj = Py_None;
10267 return resultobj;
10268 fail:
10269 return NULL;
10270 }
10271
10272
10273 static PyObject *_wrap_Style_handle_width_get(PyObject *self, PyObject *args) {
10274 PyObject *resultobj;
10275 otk::Style *arg1 = (otk::Style *) 0 ;
10276 unsigned int result;
10277 PyObject * obj0 = 0 ;
10278
10279 if(!PyArg_ParseTuple(args,(char *)"O:Style_handle_width_get",&obj0)) goto fail;
10280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10281 result = (unsigned int) ((arg1)->handle_width);
10282
10283 resultobj = PyInt_FromLong((long)result);
10284 return resultobj;
10285 fail:
10286 return NULL;
10287 }
10288
10289
10290 static PyObject *_wrap_Style_bevel_width_set(PyObject *self, PyObject *args) {
10291 PyObject *resultobj;
10292 otk::Style *arg1 = (otk::Style *) 0 ;
10293 unsigned int arg2 ;
10294 PyObject * obj0 = 0 ;
10295 PyObject * obj1 = 0 ;
10296
10297 if(!PyArg_ParseTuple(args,(char *)"OO:Style_bevel_width_set",&obj0,&obj1)) goto fail;
10298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10299 arg2 = (unsigned int) PyInt_AsLong(obj1);
10300 if (PyErr_Occurred()) SWIG_fail;
10301 if (arg1) (arg1)->bevel_width = arg2;
10302
10303 Py_INCREF(Py_None); resultobj = Py_None;
10304 return resultobj;
10305 fail:
10306 return NULL;
10307 }
10308
10309
10310 static PyObject *_wrap_Style_bevel_width_get(PyObject *self, PyObject *args) {
10311 PyObject *resultobj;
10312 otk::Style *arg1 = (otk::Style *) 0 ;
10313 unsigned int result;
10314 PyObject * obj0 = 0 ;
10315
10316 if(!PyArg_ParseTuple(args,(char *)"O:Style_bevel_width_get",&obj0)) goto fail;
10317 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10318 result = (unsigned int) ((arg1)->bevel_width);
10319
10320 resultobj = PyInt_FromLong((long)result);
10321 return resultobj;
10322 fail:
10323 return NULL;
10324 }
10325
10326
10327 static PyObject *_wrap_Style_frame_width_set(PyObject *self, PyObject *args) {
10328 PyObject *resultobj;
10329 otk::Style *arg1 = (otk::Style *) 0 ;
10330 unsigned int arg2 ;
10331 PyObject * obj0 = 0 ;
10332 PyObject * obj1 = 0 ;
10333
10334 if(!PyArg_ParseTuple(args,(char *)"OO:Style_frame_width_set",&obj0,&obj1)) goto fail;
10335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10336 arg2 = (unsigned int) PyInt_AsLong(obj1);
10337 if (PyErr_Occurred()) SWIG_fail;
10338 if (arg1) (arg1)->frame_width = arg2;
10339
10340 Py_INCREF(Py_None); resultobj = Py_None;
10341 return resultobj;
10342 fail:
10343 return NULL;
10344 }
10345
10346
10347 static PyObject *_wrap_Style_frame_width_get(PyObject *self, PyObject *args) {
10348 PyObject *resultobj;
10349 otk::Style *arg1 = (otk::Style *) 0 ;
10350 unsigned int result;
10351 PyObject * obj0 = 0 ;
10352
10353 if(!PyArg_ParseTuple(args,(char *)"O:Style_frame_width_get",&obj0)) goto fail;
10354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10355 result = (unsigned int) ((arg1)->frame_width);
10356
10357 resultobj = PyInt_FromLong((long)result);
10358 return resultobj;
10359 fail:
10360 return NULL;
10361 }
10362
10363
10364 static PyObject *_wrap_Style_border_width_set(PyObject *self, PyObject *args) {
10365 PyObject *resultobj;
10366 otk::Style *arg1 = (otk::Style *) 0 ;
10367 unsigned int arg2 ;
10368 PyObject * obj0 = 0 ;
10369 PyObject * obj1 = 0 ;
10370
10371 if(!PyArg_ParseTuple(args,(char *)"OO:Style_border_width_set",&obj0,&obj1)) goto fail;
10372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10373 arg2 = (unsigned int) PyInt_AsLong(obj1);
10374 if (PyErr_Occurred()) SWIG_fail;
10375 if (arg1) (arg1)->border_width = arg2;
10376
10377 Py_INCREF(Py_None); resultobj = Py_None;
10378 return resultobj;
10379 fail:
10380 return NULL;
10381 }
10382
10383
10384 static PyObject *_wrap_Style_border_width_get(PyObject *self, PyObject *args) {
10385 PyObject *resultobj;
10386 otk::Style *arg1 = (otk::Style *) 0 ;
10387 unsigned int result;
10388 PyObject * obj0 = 0 ;
10389
10390 if(!PyArg_ParseTuple(args,(char *)"O:Style_border_width_get",&obj0)) goto fail;
10391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10392 result = (unsigned int) ((arg1)->border_width);
10393
10394 resultobj = PyInt_FromLong((long)result);
10395 return resultobj;
10396 fail:
10397 return NULL;
10398 }
10399
10400
10401 static PyObject *_wrap_Style_screen_number_set(PyObject *self, PyObject *args) {
10402 PyObject *resultobj;
10403 otk::Style *arg1 = (otk::Style *) 0 ;
10404 unsigned int arg2 ;
10405 PyObject * obj0 = 0 ;
10406 PyObject * obj1 = 0 ;
10407
10408 if(!PyArg_ParseTuple(args,(char *)"OO:Style_screen_number_set",&obj0,&obj1)) goto fail;
10409 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10410 arg2 = (unsigned int) PyInt_AsLong(obj1);
10411 if (PyErr_Occurred()) SWIG_fail;
10412 if (arg1) (arg1)->screen_number = arg2;
10413
10414 Py_INCREF(Py_None); resultobj = Py_None;
10415 return resultobj;
10416 fail:
10417 return NULL;
10418 }
10419
10420
10421 static PyObject *_wrap_Style_screen_number_get(PyObject *self, PyObject *args) {
10422 PyObject *resultobj;
10423 otk::Style *arg1 = (otk::Style *) 0 ;
10424 unsigned int result;
10425 PyObject * obj0 = 0 ;
10426
10427 if(!PyArg_ParseTuple(args,(char *)"O:Style_screen_number_get",&obj0)) goto fail;
10428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10429 result = (unsigned int) ((arg1)->screen_number);
10430
10431 resultobj = PyInt_FromLong((long)result);
10432 return resultobj;
10433 fail:
10434 return NULL;
10435 }
10436
10437
10438 static PyObject *_wrap_Style_shadow_fonts_set(PyObject *self, PyObject *args) {
10439 PyObject *resultobj;
10440 otk::Style *arg1 = (otk::Style *) 0 ;
10441 bool arg2 ;
10442 PyObject * obj0 = 0 ;
10443 PyObject * obj1 = 0 ;
10444
10445 if(!PyArg_ParseTuple(args,(char *)"OO:Style_shadow_fonts_set",&obj0,&obj1)) goto fail;
10446 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10447 arg2 = (bool) PyInt_AsLong(obj1);
10448 if (PyErr_Occurred()) SWIG_fail;
10449 if (arg1) (arg1)->shadow_fonts = arg2;
10450
10451 Py_INCREF(Py_None); resultobj = Py_None;
10452 return resultobj;
10453 fail:
10454 return NULL;
10455 }
10456
10457
10458 static PyObject *_wrap_Style_shadow_fonts_get(PyObject *self, PyObject *args) {
10459 PyObject *resultobj;
10460 otk::Style *arg1 = (otk::Style *) 0 ;
10461 bool result;
10462 PyObject * obj0 = 0 ;
10463
10464 if(!PyArg_ParseTuple(args,(char *)"O:Style_shadow_fonts_get",&obj0)) goto fail;
10465 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10466 result = (bool) ((arg1)->shadow_fonts);
10467
10468 resultobj = PyInt_FromLong((long)result);
10469 return resultobj;
10470 fail:
10471 return NULL;
10472 }
10473
10474
10475 static PyObject *_wrap_Style_aa_fonts_set(PyObject *self, PyObject *args) {
10476 PyObject *resultobj;
10477 otk::Style *arg1 = (otk::Style *) 0 ;
10478 bool arg2 ;
10479 PyObject * obj0 = 0 ;
10480 PyObject * obj1 = 0 ;
10481
10482 if(!PyArg_ParseTuple(args,(char *)"OO:Style_aa_fonts_set",&obj0,&obj1)) goto fail;
10483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10484 arg2 = (bool) PyInt_AsLong(obj1);
10485 if (PyErr_Occurred()) SWIG_fail;
10486 if (arg1) (arg1)->aa_fonts = arg2;
10487
10488 Py_INCREF(Py_None); resultobj = Py_None;
10489 return resultobj;
10490 fail:
10491 return NULL;
10492 }
10493
10494
10495 static PyObject *_wrap_Style_aa_fonts_get(PyObject *self, PyObject *args) {
10496 PyObject *resultobj;
10497 otk::Style *arg1 = (otk::Style *) 0 ;
10498 bool result;
10499 PyObject * obj0 = 0 ;
10500
10501 if(!PyArg_ParseTuple(args,(char *)"O:Style_aa_fonts_get",&obj0)) goto fail;
10502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10503 result = (bool) ((arg1)->aa_fonts);
10504
10505 resultobj = PyInt_FromLong((long)result);
10506 return resultobj;
10507 fail:
10508 return NULL;
10509 }
10510
10511
10512 static PyObject *_wrap_new_Style__SWIG_0(PyObject *self, PyObject *args) {
10513 PyObject *resultobj;
10514 otk::Style *result;
10515
10516 if(!PyArg_ParseTuple(args,(char *)":new_Style")) goto fail;
10517 result = (otk::Style *)new otk::Style();
10518
10519 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 1);
10520 return resultobj;
10521 fail:
10522 return NULL;
10523 }
10524
10525
10526 static PyObject *_wrap_new_Style__SWIG_1(PyObject *self, PyObject *args) {
10527 PyObject *resultobj;
10528 otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
10529 otk::Style *result;
10530 PyObject * obj0 = 0 ;
10531
10532 if(!PyArg_ParseTuple(args,(char *)"O:new_Style",&obj0)) goto fail;
10533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10534 result = (otk::Style *)new otk::Style(arg1);
10535
10536 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 1);
10537 return resultobj;
10538 fail:
10539 return NULL;
10540 }
10541
10542
10543 static PyObject *_wrap_new_Style(PyObject *self, PyObject *args) {
10544 int argc;
10545 PyObject *argv[2];
10546 int ii;
10547
10548 argc = PyObject_Length(args);
10549 for (ii = 0; (ii < argc) && (ii < 1); ii++) {
10550 argv[ii] = PyTuple_GetItem(args,ii);
10551 }
10552 if (argc == 0) {
10553 return _wrap_new_Style__SWIG_0(self,args);
10554 }
10555 if (argc == 1) {
10556 int _v;
10557 {
10558 void *ptr;
10559 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__BImageControl, 0) == -1) {
10560 _v = 0;
10561 PyErr_Clear();
10562 }else {
10563 _v = 1;
10564 }
10565 }
10566 if (_v) {
10567 return _wrap_new_Style__SWIG_1(self,args);
10568 }
10569 }
10570
10571 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Style'");
10572 return NULL;
10573 }
10574
10575
10576 static PyObject *_wrap_delete_Style(PyObject *self, PyObject *args) {
10577 PyObject *resultobj;
10578 otk::Style *arg1 = (otk::Style *) 0 ;
10579 PyObject * obj0 = 0 ;
10580
10581 if(!PyArg_ParseTuple(args,(char *)"O:delete_Style",&obj0)) goto fail;
10582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10583 delete arg1;
10584
10585 Py_INCREF(Py_None); resultobj = Py_None;
10586 return resultobj;
10587 fail:
10588 return NULL;
10589 }
10590
10591
10592 static PyObject *_wrap_Style_readDatabaseMask(PyObject *self, PyObject *args) {
10593 PyObject *resultobj;
10594 otk::Style *arg1 = (otk::Style *) 0 ;
10595 std::string *arg2 = 0 ;
10596 otk::PixmapMask *arg3 = 0 ;
10597 otk::Configuration *arg4 = 0 ;
10598 std::string temp2 ;
10599 PyObject * obj0 = 0 ;
10600 PyObject * obj1 = 0 ;
10601 PyObject * obj2 = 0 ;
10602 PyObject * obj3 = 0 ;
10603
10604 if(!PyArg_ParseTuple(args,(char *)"OOOO:Style_readDatabaseMask",&obj0,&obj1,&obj2,&obj3)) goto fail;
10605 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10606 {
10607 if (PyString_Check(obj1)) {
10608 temp2 = std::string(PyString_AsString(obj1));
10609 arg2 = &temp2;
10610 }else {
10611 SWIG_exception(SWIG_TypeError, "string expected");
10612 }
10613 }
10614 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10615 if (arg3 == NULL) {
10616 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10617 }
10618 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10619 if (arg4 == NULL) {
10620 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10621 }
10622 (arg1)->readDatabaseMask((std::string const &)*arg2,*arg3,(otk::Configuration const &)*arg4);
10623
10624 Py_INCREF(Py_None); resultobj = Py_None;
10625 return resultobj;
10626 fail:
10627 return NULL;
10628 }
10629
10630
10631 static PyObject *_wrap_Style_readDatabaseTexture(PyObject *self, PyObject *args) {
10632 PyObject *resultobj;
10633 otk::Style *arg1 = (otk::Style *) 0 ;
10634 std::string *arg2 = 0 ;
10635 std::string *arg3 = 0 ;
10636 otk::Configuration *arg4 = 0 ;
10637 bool arg5 = (bool) false ;
10638 otk::BTexture result;
10639 std::string temp2 ;
10640 std::string temp3 ;
10641 PyObject * obj0 = 0 ;
10642 PyObject * obj1 = 0 ;
10643 PyObject * obj2 = 0 ;
10644 PyObject * obj3 = 0 ;
10645 PyObject * obj4 = 0 ;
10646
10647 if(!PyArg_ParseTuple(args,(char *)"OOOO|O:Style_readDatabaseTexture",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10649 {
10650 if (PyString_Check(obj1)) {
10651 temp2 = std::string(PyString_AsString(obj1));
10652 arg2 = &temp2;
10653 }else {
10654 SWIG_exception(SWIG_TypeError, "string expected");
10655 }
10656 }
10657 {
10658 if (PyString_Check(obj2)) {
10659 temp3 = std::string(PyString_AsString(obj2));
10660 arg3 = &temp3;
10661 }else {
10662 SWIG_exception(SWIG_TypeError, "string expected");
10663 }
10664 }
10665 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10666 if (arg4 == NULL) {
10667 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10668 }
10669 if (obj4) {
10670 arg5 = (bool) PyInt_AsLong(obj4);
10671 if (PyErr_Occurred()) SWIG_fail;
10672 }
10673 result = (arg1)->readDatabaseTexture((std::string const &)*arg2,(std::string const &)*arg3,(otk::Configuration const &)*arg4,arg5);
10674
10675 {
10676 otk::BTexture * resultptr;
10677 resultptr = new otk::BTexture((otk::BTexture &) result);
10678 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__BTexture, 1);
10679 }
10680 return resultobj;
10681 fail:
10682 return NULL;
10683 }
10684
10685
10686 static PyObject *_wrap_Style_readDatabaseColor(PyObject *self, PyObject *args) {
10687 PyObject *resultobj;
10688 otk::Style *arg1 = (otk::Style *) 0 ;
10689 std::string *arg2 = 0 ;
10690 std::string *arg3 = 0 ;
10691 otk::Configuration *arg4 = 0 ;
10692 otk::BColor result;
10693 std::string temp2 ;
10694 std::string temp3 ;
10695 PyObject * obj0 = 0 ;
10696 PyObject * obj1 = 0 ;
10697 PyObject * obj2 = 0 ;
10698 PyObject * obj3 = 0 ;
10699
10700 if(!PyArg_ParseTuple(args,(char *)"OOOO:Style_readDatabaseColor",&obj0,&obj1,&obj2,&obj3)) goto fail;
10701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10702 {
10703 if (PyString_Check(obj1)) {
10704 temp2 = std::string(PyString_AsString(obj1));
10705 arg2 = &temp2;
10706 }else {
10707 SWIG_exception(SWIG_TypeError, "string expected");
10708 }
10709 }
10710 {
10711 if (PyString_Check(obj2)) {
10712 temp3 = std::string(PyString_AsString(obj2));
10713 arg3 = &temp3;
10714 }else {
10715 SWIG_exception(SWIG_TypeError, "string expected");
10716 }
10717 }
10718 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10719 if (arg4 == NULL) {
10720 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10721 }
10722 result = (arg1)->readDatabaseColor((std::string const &)*arg2,(std::string const &)*arg3,(otk::Configuration const &)*arg4);
10723
10724 {
10725 otk::BColor * resultptr;
10726 resultptr = new otk::BColor((otk::BColor &) result);
10727 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__BColor, 1);
10728 }
10729 return resultobj;
10730 fail:
10731 return NULL;
10732 }
10733
10734
10735 static PyObject *_wrap_Style_readDatabaseFont(PyObject *self, PyObject *args) {
10736 PyObject *resultobj;
10737 otk::Style *arg1 = (otk::Style *) 0 ;
10738 std::string *arg2 = 0 ;
10739 otk::Configuration *arg3 = 0 ;
10740 otk::BFont *result;
10741 std::string temp2 ;
10742 PyObject * obj0 = 0 ;
10743 PyObject * obj1 = 0 ;
10744 PyObject * obj2 = 0 ;
10745
10746 if(!PyArg_ParseTuple(args,(char *)"OOO:Style_readDatabaseFont",&obj0,&obj1,&obj2)) goto fail;
10747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10748 {
10749 if (PyString_Check(obj1)) {
10750 temp2 = std::string(PyString_AsString(obj1));
10751 arg2 = &temp2;
10752 }else {
10753 SWIG_exception(SWIG_TypeError, "string expected");
10754 }
10755 }
10756 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10757 if (arg3 == NULL) {
10758 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10759 }
10760 result = (otk::BFont *)(arg1)->readDatabaseFont((std::string const &)*arg2,(otk::Configuration const &)*arg3);
10761
10762 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BFont, 0);
10763 return resultobj;
10764 fail:
10765 return NULL;
10766 }
10767
10768
10769 static PyObject *_wrap_Style_load(PyObject *self, PyObject *args) {
10770 PyObject *resultobj;
10771 otk::Style *arg1 = (otk::Style *) 0 ;
10772 otk::Configuration *arg2 = 0 ;
10773 PyObject * obj0 = 0 ;
10774 PyObject * obj1 = 0 ;
10775
10776 if(!PyArg_ParseTuple(args,(char *)"OO:Style_load",&obj0,&obj1)) goto fail;
10777 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10778 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10779 if (arg2 == NULL) {
10780 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10781 }
10782 (arg1)->load((otk::Configuration const &)*arg2);
10783
10784 Py_INCREF(Py_None); resultobj = Py_None;
10785 return resultobj;
10786 fail:
10787 return NULL;
10788 }
10789
10790
10791 static PyObject *_wrap_Style_getTextFocus(PyObject *self, PyObject *args) {
10792 PyObject *resultobj;
10793 otk::Style *arg1 = (otk::Style *) 0 ;
10794 otk::BColor *result;
10795 PyObject * obj0 = 0 ;
10796
10797 if(!PyArg_ParseTuple(args,(char *)"O:Style_getTextFocus",&obj0)) goto fail;
10798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10799 result = (otk::BColor *)(arg1)->getTextFocus();
10800
10801 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
10802 return resultobj;
10803 fail:
10804 return NULL;
10805 }
10806
10807
10808 static PyObject *_wrap_Style_getTextUnfocus(PyObject *self, PyObject *args) {
10809 PyObject *resultobj;
10810 otk::Style *arg1 = (otk::Style *) 0 ;
10811 otk::BColor *result;
10812 PyObject * obj0 = 0 ;
10813
10814 if(!PyArg_ParseTuple(args,(char *)"O:Style_getTextUnfocus",&obj0)) goto fail;
10815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10816 result = (otk::BColor *)(arg1)->getTextUnfocus();
10817
10818 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
10819 return resultobj;
10820 fail:
10821 return NULL;
10822 }
10823
10824
10825 static PyObject *_wrap_Style_getButtonPicFocus(PyObject *self, PyObject *args) {
10826 PyObject *resultobj;
10827 otk::Style *arg1 = (otk::Style *) 0 ;
10828 otk::BColor *result;
10829 PyObject * obj0 = 0 ;
10830
10831 if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonPicFocus",&obj0)) goto fail;
10832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10833 result = (otk::BColor *)(arg1)->getButtonPicFocus();
10834
10835 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
10836 return resultobj;
10837 fail:
10838 return NULL;
10839 }
10840
10841
10842 static PyObject *_wrap_Style_getButtonPicUnfocus(PyObject *self, PyObject *args) {
10843 PyObject *resultobj;
10844 otk::Style *arg1 = (otk::Style *) 0 ;
10845 otk::BColor *result;
10846 PyObject * obj0 = 0 ;
10847
10848 if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonPicUnfocus",&obj0)) goto fail;
10849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10850 result = (otk::BColor *)(arg1)->getButtonPicUnfocus();
10851
10852 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
10853 return resultobj;
10854 fail:
10855 return NULL;
10856 }
10857
10858
10859 static PyObject *_wrap_Style_getTitleFocus(PyObject *self, PyObject *args) {
10860 PyObject *resultobj;
10861 otk::Style *arg1 = (otk::Style *) 0 ;
10862 otk::BTexture *result;
10863 PyObject * obj0 = 0 ;
10864
10865 if(!PyArg_ParseTuple(args,(char *)"O:Style_getTitleFocus",&obj0)) goto fail;
10866 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10867 result = (otk::BTexture *)(arg1)->getTitleFocus();
10868
10869 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
10870 return resultobj;
10871 fail:
10872 return NULL;
10873 }
10874
10875
10876 static PyObject *_wrap_Style_getTitleUnfocus(PyObject *self, PyObject *args) {
10877 PyObject *resultobj;
10878 otk::Style *arg1 = (otk::Style *) 0 ;
10879 otk::BTexture *result;
10880 PyObject * obj0 = 0 ;
10881
10882 if(!PyArg_ParseTuple(args,(char *)"O:Style_getTitleUnfocus",&obj0)) goto fail;
10883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10884 result = (otk::BTexture *)(arg1)->getTitleUnfocus();
10885
10886 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
10887 return resultobj;
10888 fail:
10889 return NULL;
10890 }
10891
10892
10893 static PyObject *_wrap_Style_getLabelFocus(PyObject *self, PyObject *args) {
10894 PyObject *resultobj;
10895 otk::Style *arg1 = (otk::Style *) 0 ;
10896 otk::BTexture *result;
10897 PyObject * obj0 = 0 ;
10898
10899 if(!PyArg_ParseTuple(args,(char *)"O:Style_getLabelFocus",&obj0)) goto fail;
10900 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10901 result = (otk::BTexture *)(arg1)->getLabelFocus();
10902
10903 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
10904 return resultobj;
10905 fail:
10906 return NULL;
10907 }
10908
10909
10910 static PyObject *_wrap_Style_getLabelUnfocus(PyObject *self, PyObject *args) {
10911 PyObject *resultobj;
10912 otk::Style *arg1 = (otk::Style *) 0 ;
10913 otk::BTexture *result;
10914 PyObject * obj0 = 0 ;
10915
10916 if(!PyArg_ParseTuple(args,(char *)"O:Style_getLabelUnfocus",&obj0)) goto fail;
10917 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10918 result = (otk::BTexture *)(arg1)->getLabelUnfocus();
10919
10920 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
10921 return resultobj;
10922 fail:
10923 return NULL;
10924 }
10925
10926
10927 static PyObject *_wrap_Style_getHandleFocus(PyObject *self, PyObject *args) {
10928 PyObject *resultobj;
10929 otk::Style *arg1 = (otk::Style *) 0 ;
10930 otk::BTexture *result;
10931 PyObject * obj0 = 0 ;
10932
10933 if(!PyArg_ParseTuple(args,(char *)"O:Style_getHandleFocus",&obj0)) goto fail;
10934 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10935 result = (otk::BTexture *)(arg1)->getHandleFocus();
10936
10937 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
10938 return resultobj;
10939 fail:
10940 return NULL;
10941 }
10942
10943
10944 static PyObject *_wrap_Style_getHandleUnfocus(PyObject *self, PyObject *args) {
10945 PyObject *resultobj;
10946 otk::Style *arg1 = (otk::Style *) 0 ;
10947 otk::BTexture *result;
10948 PyObject * obj0 = 0 ;
10949
10950 if(!PyArg_ParseTuple(args,(char *)"O:Style_getHandleUnfocus",&obj0)) goto fail;
10951 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10952 result = (otk::BTexture *)(arg1)->getHandleUnfocus();
10953
10954 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
10955 return resultobj;
10956 fail:
10957 return NULL;
10958 }
10959
10960
10961 static PyObject *_wrap_Style_getButtonFocus(PyObject *self, PyObject *args) {
10962 PyObject *resultobj;
10963 otk::Style *arg1 = (otk::Style *) 0 ;
10964 otk::BTexture *result;
10965 PyObject * obj0 = 0 ;
10966
10967 if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonFocus",&obj0)) goto fail;
10968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10969 result = (otk::BTexture *)(arg1)->getButtonFocus();
10970
10971 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
10972 return resultobj;
10973 fail:
10974 return NULL;
10975 }
10976
10977
10978 static PyObject *_wrap_Style_getButtonUnfocus(PyObject *self, PyObject *args) {
10979 PyObject *resultobj;
10980 otk::Style *arg1 = (otk::Style *) 0 ;
10981 otk::BTexture *result;
10982 PyObject * obj0 = 0 ;
10983
10984 if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonUnfocus",&obj0)) goto fail;
10985 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10986 result = (otk::BTexture *)(arg1)->getButtonUnfocus();
10987
10988 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
10989 return resultobj;
10990 fail:
10991 return NULL;
10992 }
10993
10994
10995 static PyObject *_wrap_Style_getButtonPressedFocus(PyObject *self, PyObject *args) {
10996 PyObject *resultobj;
10997 otk::Style *arg1 = (otk::Style *) 0 ;
10998 otk::BTexture *result;
10999 PyObject * obj0 = 0 ;
11000
11001 if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonPressedFocus",&obj0)) goto fail;
11002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11003 result = (otk::BTexture *)(arg1)->getButtonPressedFocus();
11004
11005 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11006 return resultobj;
11007 fail:
11008 return NULL;
11009 }
11010
11011
11012 static PyObject *_wrap_Style_getButtonPressedUnfocus(PyObject *self, PyObject *args) {
11013 PyObject *resultobj;
11014 otk::Style *arg1 = (otk::Style *) 0 ;
11015 otk::BTexture *result;
11016 PyObject * obj0 = 0 ;
11017
11018 if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonPressedUnfocus",&obj0)) goto fail;
11019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11020 result = (otk::BTexture *)(arg1)->getButtonPressedUnfocus();
11021
11022 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11023 return resultobj;
11024 fail:
11025 return NULL;
11026 }
11027
11028
11029 static PyObject *_wrap_Style_getGripFocus(PyObject *self, PyObject *args) {
11030 PyObject *resultobj;
11031 otk::Style *arg1 = (otk::Style *) 0 ;
11032 otk::BTexture *result;
11033 PyObject * obj0 = 0 ;
11034
11035 if(!PyArg_ParseTuple(args,(char *)"O:Style_getGripFocus",&obj0)) goto fail;
11036 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11037 result = (otk::BTexture *)(arg1)->getGripFocus();
11038
11039 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11040 return resultobj;
11041 fail:
11042 return NULL;
11043 }
11044
11045
11046 static PyObject *_wrap_Style_getGripUnfocus(PyObject *self, PyObject *args) {
11047 PyObject *resultobj;
11048 otk::Style *arg1 = (otk::Style *) 0 ;
11049 otk::BTexture *result;
11050 PyObject * obj0 = 0 ;
11051
11052 if(!PyArg_ParseTuple(args,(char *)"O:Style_getGripUnfocus",&obj0)) goto fail;
11053 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11054 result = (otk::BTexture *)(arg1)->getGripUnfocus();
11055
11056 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11057 return resultobj;
11058 fail:
11059 return NULL;
11060 }
11061
11062
11063 static PyObject *_wrap_Style_getHandleWidth(PyObject *self, PyObject *args) {
11064 PyObject *resultobj;
11065 otk::Style *arg1 = (otk::Style *) 0 ;
11066 unsigned int result;
11067 PyObject * obj0 = 0 ;
11068
11069 if(!PyArg_ParseTuple(args,(char *)"O:Style_getHandleWidth",&obj0)) goto fail;
11070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11071 result = (unsigned int)((otk::Style const *)arg1)->getHandleWidth();
11072
11073 resultobj = PyInt_FromLong((long)result);
11074 return resultobj;
11075 fail:
11076 return NULL;
11077 }
11078
11079
11080 static PyObject *_wrap_Style_getBevelWidth(PyObject *self, PyObject *args) {
11081 PyObject *resultobj;
11082 otk::Style *arg1 = (otk::Style *) 0 ;
11083 unsigned int result;
11084 PyObject * obj0 = 0 ;
11085
11086 if(!PyArg_ParseTuple(args,(char *)"O:Style_getBevelWidth",&obj0)) goto fail;
11087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11088 result = (unsigned int)((otk::Style const *)arg1)->getBevelWidth();
11089
11090 resultobj = PyInt_FromLong((long)result);
11091 return resultobj;
11092 fail:
11093 return NULL;
11094 }
11095
11096
11097 static PyObject *_wrap_Style_getFrameWidth(PyObject *self, PyObject *args) {
11098 PyObject *resultobj;
11099 otk::Style *arg1 = (otk::Style *) 0 ;
11100 unsigned int result;
11101 PyObject * obj0 = 0 ;
11102
11103 if(!PyArg_ParseTuple(args,(char *)"O:Style_getFrameWidth",&obj0)) goto fail;
11104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11105 result = (unsigned int)((otk::Style const *)arg1)->getFrameWidth();
11106
11107 resultobj = PyInt_FromLong((long)result);
11108 return resultobj;
11109 fail:
11110 return NULL;
11111 }
11112
11113
11114 static PyObject *_wrap_Style_getBorderWidth(PyObject *self, PyObject *args) {
11115 PyObject *resultobj;
11116 otk::Style *arg1 = (otk::Style *) 0 ;
11117 unsigned int result;
11118 PyObject * obj0 = 0 ;
11119
11120 if(!PyArg_ParseTuple(args,(char *)"O:Style_getBorderWidth",&obj0)) goto fail;
11121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11122 result = (unsigned int)((otk::Style const *)arg1)->getBorderWidth();
11123
11124 resultobj = PyInt_FromLong((long)result);
11125 return resultobj;
11126 fail:
11127 return NULL;
11128 }
11129
11130
11131 static PyObject *_wrap_Style_getFont(PyObject *self, PyObject *args) {
11132 PyObject *resultobj;
11133 otk::Style *arg1 = (otk::Style *) 0 ;
11134 otk::BFont *result;
11135 PyObject * obj0 = 0 ;
11136
11137 if(!PyArg_ParseTuple(args,(char *)"O:Style_getFont",&obj0)) goto fail;
11138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11139 {
11140 otk::BFont const &_result_ref = ((otk::Style const *)arg1)->getFont();
11141 result = (otk::BFont *) &_result_ref;
11142 }
11143
11144 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BFont, 0);
11145 return resultobj;
11146 fail:
11147 return NULL;
11148 }
11149
11150
11151 static PyObject *_wrap_Style_setShadowFonts(PyObject *self, PyObject *args) {
11152 PyObject *resultobj;
11153 otk::Style *arg1 = (otk::Style *) 0 ;
11154 bool arg2 ;
11155 PyObject * obj0 = 0 ;
11156 PyObject * obj1 = 0 ;
11157
11158 if(!PyArg_ParseTuple(args,(char *)"OO:Style_setShadowFonts",&obj0,&obj1)) goto fail;
11159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11160 arg2 = (bool) PyInt_AsLong(obj1);
11161 if (PyErr_Occurred()) SWIG_fail;
11162 (arg1)->setShadowFonts(arg2);
11163
11164 Py_INCREF(Py_None); resultobj = Py_None;
11165 return resultobj;
11166 fail:
11167 return NULL;
11168 }
11169
11170
11171 static PyObject *_wrap_Style_hasShadowFonts(PyObject *self, PyObject *args) {
11172 PyObject *resultobj;
11173 otk::Style *arg1 = (otk::Style *) 0 ;
11174 bool result;
11175 PyObject * obj0 = 0 ;
11176
11177 if(!PyArg_ParseTuple(args,(char *)"O:Style_hasShadowFonts",&obj0)) goto fail;
11178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11179 result = (bool)((otk::Style const *)arg1)->hasShadowFonts();
11180
11181 resultobj = PyInt_FromLong((long)result);
11182 return resultobj;
11183 fail:
11184 return NULL;
11185 }
11186
11187
11188 static PyObject *_wrap_Style_setAAFonts(PyObject *self, PyObject *args) {
11189 PyObject *resultobj;
11190 otk::Style *arg1 = (otk::Style *) 0 ;
11191 bool arg2 ;
11192 PyObject * obj0 = 0 ;
11193 PyObject * obj1 = 0 ;
11194
11195 if(!PyArg_ParseTuple(args,(char *)"OO:Style_setAAFonts",&obj0,&obj1)) goto fail;
11196 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11197 arg2 = (bool) PyInt_AsLong(obj1);
11198 if (PyErr_Occurred()) SWIG_fail;
11199 (arg1)->setAAFonts(arg2);
11200
11201 Py_INCREF(Py_None); resultobj = Py_None;
11202 return resultobj;
11203 fail:
11204 return NULL;
11205 }
11206
11207
11208 static PyObject *_wrap_Style_hasAAFonts(PyObject *self, PyObject *args) {
11209 PyObject *resultobj;
11210 otk::Style *arg1 = (otk::Style *) 0 ;
11211 bool result;
11212 PyObject * obj0 = 0 ;
11213
11214 if(!PyArg_ParseTuple(args,(char *)"O:Style_hasAAFonts",&obj0)) goto fail;
11215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11216 result = (bool)((otk::Style const *)arg1)->hasAAFonts();
11217
11218 resultobj = PyInt_FromLong((long)result);
11219 return resultobj;
11220 fail:
11221 return NULL;
11222 }
11223
11224
11225 static PyObject *_wrap_Style_textJustify(PyObject *self, PyObject *args) {
11226 PyObject *resultobj;
11227 otk::Style *arg1 = (otk::Style *) 0 ;
11228 int result;
11229 PyObject * obj0 = 0 ;
11230
11231 if(!PyArg_ParseTuple(args,(char *)"O:Style_textJustify",&obj0)) goto fail;
11232 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11233 result = (int)(arg1)->textJustify();
11234
11235 resultobj = PyInt_FromLong((long)result);
11236 return resultobj;
11237 fail:
11238 return NULL;
11239 }
11240
11241
11242 static PyObject *_wrap_Style_bulletType(PyObject *self, PyObject *args) {
11243 PyObject *resultobj;
11244 otk::Style *arg1 = (otk::Style *) 0 ;
11245 int result;
11246 PyObject * obj0 = 0 ;
11247
11248 if(!PyArg_ParseTuple(args,(char *)"O:Style_bulletType",&obj0)) goto fail;
11249 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11250 result = (int)(arg1)->bulletType();
11251
11252 resultobj = PyInt_FromLong((long)result);
11253 return resultobj;
11254 fail:
11255 return NULL;
11256 }
11257
11258
11259 static PyObject *_wrap_Style_getBorderColor(PyObject *self, PyObject *args) {
11260 PyObject *resultobj;
11261 otk::Style *arg1 = (otk::Style *) 0 ;
11262 otk::BColor *result;
11263 PyObject * obj0 = 0 ;
11264
11265 if(!PyArg_ParseTuple(args,(char *)"O:Style_getBorderColor",&obj0)) goto fail;
11266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11267 result = (otk::BColor *)((otk::Style const *)arg1)->getBorderColor();
11268
11269 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
11270 return resultobj;
11271 fail:
11272 return NULL;
11273 }
11274
11275
11276 static PyObject *_wrap_Style_getFrameFocus(PyObject *self, PyObject *args) {
11277 PyObject *resultobj;
11278 otk::Style *arg1 = (otk::Style *) 0 ;
11279 otk::BTexture *result;
11280 PyObject * obj0 = 0 ;
11281
11282 if(!PyArg_ParseTuple(args,(char *)"O:Style_getFrameFocus",&obj0)) goto fail;
11283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11284 result = (otk::BTexture *)((otk::Style const *)arg1)->getFrameFocus();
11285
11286 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11287 return resultobj;
11288 fail:
11289 return NULL;
11290 }
11291
11292
11293 static PyObject *_wrap_Style_getFrameUnfocus(PyObject *self, PyObject *args) {
11294 PyObject *resultobj;
11295 otk::Style *arg1 = (otk::Style *) 0 ;
11296 otk::BTexture *result;
11297 PyObject * obj0 = 0 ;
11298
11299 if(!PyArg_ParseTuple(args,(char *)"O:Style_getFrameUnfocus",&obj0)) goto fail;
11300 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11301 result = (otk::BTexture *)((otk::Style const *)arg1)->getFrameUnfocus();
11302
11303 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
11304 return resultobj;
11305 fail:
11306 return NULL;
11307 }
11308
11309
11310 static PyObject *_wrap_Style_setImageControl(PyObject *self, PyObject *args) {
11311 PyObject *resultobj;
11312 otk::Style *arg1 = (otk::Style *) 0 ;
11313 otk::BImageControl *arg2 = (otk::BImageControl *) 0 ;
11314 PyObject * obj0 = 0 ;
11315 PyObject * obj1 = 0 ;
11316
11317 if(!PyArg_ParseTuple(args,(char *)"OO:Style_setImageControl",&obj0,&obj1)) goto fail;
11318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11319 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11320 (arg1)->setImageControl(arg2);
11321
11322 Py_INCREF(Py_None); resultobj = Py_None;
11323 return resultobj;
11324 fail:
11325 return NULL;
11326 }
11327
11328
11329 static PyObject *_wrap_Style_getScreen(PyObject *self, PyObject *args) {
11330 PyObject *resultobj;
11331 otk::Style *arg1 = (otk::Style *) 0 ;
11332 unsigned int result;
11333 PyObject * obj0 = 0 ;
11334
11335 if(!PyArg_ParseTuple(args,(char *)"O:Style_getScreen",&obj0)) goto fail;
11336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11337 result = (unsigned int)(arg1)->getScreen();
11338
11339 resultobj = PyInt_FromLong((long)result);
11340 return resultobj;
11341 fail:
11342 return NULL;
11343 }
11344
11345
11346 static PyObject * Style_swigregister(PyObject *self, PyObject *args) {
11347 PyObject *obj;
11348 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11349 SWIG_TypeClientData(SWIGTYPE_p_otk__Style, obj);
11350 Py_INCREF(obj);
11351 return Py_BuildValue((char *)"");
11352 }
11353 static PyObject *_wrap_new_BTexture__SWIG_0(PyObject *self, PyObject *args) {
11354 PyObject *resultobj;
11355 unsigned int arg1 = (unsigned int) ~(0u) ;
11356 otk::BImageControl *arg2 = (otk::BImageControl *) 0 ;
11357 otk::BTexture *result;
11358 PyObject * obj0 = 0 ;
11359 PyObject * obj1 = 0 ;
11360
11361 if(!PyArg_ParseTuple(args,(char *)"|OO:new_BTexture",&obj0,&obj1)) goto fail;
11362 if (obj0) {
11363 arg1 = (unsigned int) PyInt_AsLong(obj0);
11364 if (PyErr_Occurred()) SWIG_fail;
11365 }
11366 if (obj1) {
11367 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11368 }
11369 result = (otk::BTexture *)new otk::BTexture(arg1,arg2);
11370
11371 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 1);
11372 return resultobj;
11373 fail:
11374 return NULL;
11375 }
11376
11377
11378 static PyObject *_wrap_new_BTexture__SWIG_1(PyObject *self, PyObject *args) {
11379 PyObject *resultobj;
11380 std::string *arg1 = 0 ;
11381 unsigned int arg2 = (unsigned int) ~(0u) ;
11382 otk::BImageControl *arg3 = (otk::BImageControl *) 0 ;
11383 otk::BTexture *result;
11384 std::string temp1 ;
11385 PyObject * obj0 = 0 ;
11386 PyObject * obj1 = 0 ;
11387 PyObject * obj2 = 0 ;
11388
11389 if(!PyArg_ParseTuple(args,(char *)"O|OO:new_BTexture",&obj0,&obj1,&obj2)) goto fail;
11390 {
11391 if (PyString_Check(obj0)) {
11392 temp1 = std::string(PyString_AsString(obj0));
11393 arg1 = &temp1;
11394 }else {
11395 SWIG_exception(SWIG_TypeError, "string expected");
11396 }
11397 }
11398 if (obj1) {
11399 arg2 = (unsigned int) PyInt_AsLong(obj1);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 if (obj2) {
11403 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11404 }
11405 result = (otk::BTexture *)new otk::BTexture((std::string const &)*arg1,arg2,arg3);
11406
11407 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 1);
11408 return resultobj;
11409 fail:
11410 return NULL;
11411 }
11412
11413
11414 static PyObject *_wrap_new_BTexture(PyObject *self, PyObject *args) {
11415 int argc;
11416 PyObject *argv[4];
11417 int ii;
11418
11419 argc = PyObject_Length(args);
11420 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
11421 argv[ii] = PyTuple_GetItem(args,ii);
11422 }
11423 if ((argc >= 0) && (argc <= 2)) {
11424 int _v;
11425 if (argc <= 0) {
11426 return _wrap_new_BTexture__SWIG_0(self,args);
11427 }
11428 {
11429 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
11430 }
11431 if (_v) {
11432 if (argc <= 1) {
11433 return _wrap_new_BTexture__SWIG_0(self,args);
11434 }
11435 {
11436 void *ptr;
11437 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__BImageControl, 0) == -1) {
11438 _v = 0;
11439 PyErr_Clear();
11440 }else {
11441 _v = 1;
11442 }
11443 }
11444 if (_v) {
11445 return _wrap_new_BTexture__SWIG_0(self,args);
11446 }
11447 }
11448 }
11449 if ((argc >= 1) && (argc <= 3)) {
11450 int _v;
11451 {
11452 _v = PyString_Check(argv[0]) ? 1 : 0;
11453 }
11454 if (_v) {
11455 if (argc <= 1) {
11456 return _wrap_new_BTexture__SWIG_1(self,args);
11457 }
11458 {
11459 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
11460 }
11461 if (_v) {
11462 if (argc <= 2) {
11463 return _wrap_new_BTexture__SWIG_1(self,args);
11464 }
11465 {
11466 void *ptr;
11467 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__BImageControl, 0) == -1) {
11468 _v = 0;
11469 PyErr_Clear();
11470 }else {
11471 _v = 1;
11472 }
11473 }
11474 if (_v) {
11475 return _wrap_new_BTexture__SWIG_1(self,args);
11476 }
11477 }
11478 }
11479 }
11480
11481 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BTexture'");
11482 return NULL;
11483 }
11484
11485
11486 static PyObject *_wrap_BTexture_setColor(PyObject *self, PyObject *args) {
11487 PyObject *resultobj;
11488 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11489 otk::BColor *arg2 = 0 ;
11490 PyObject * obj0 = 0 ;
11491 PyObject * obj1 = 0 ;
11492
11493 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setColor",&obj0,&obj1)) goto fail;
11494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11495 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11496 if (arg2 == NULL) {
11497 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11498 }
11499 (arg1)->setColor((otk::BColor const &)*arg2);
11500
11501 Py_INCREF(Py_None); resultobj = Py_None;
11502 return resultobj;
11503 fail:
11504 return NULL;
11505 }
11506
11507
11508 static PyObject *_wrap_BTexture_setColorTo(PyObject *self, PyObject *args) {
11509 PyObject *resultobj;
11510 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11511 otk::BColor *arg2 = 0 ;
11512 PyObject * obj0 = 0 ;
11513 PyObject * obj1 = 0 ;
11514
11515 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setColorTo",&obj0,&obj1)) goto fail;
11516 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11517 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11518 if (arg2 == NULL) {
11519 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11520 }
11521 (arg1)->setColorTo((otk::BColor const &)*arg2);
11522
11523 Py_INCREF(Py_None); resultobj = Py_None;
11524 return resultobj;
11525 fail:
11526 return NULL;
11527 }
11528
11529
11530 static PyObject *_wrap_BTexture_setBorderColor(PyObject *self, PyObject *args) {
11531 PyObject *resultobj;
11532 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11533 otk::BColor *arg2 = 0 ;
11534 PyObject * obj0 = 0 ;
11535 PyObject * obj1 = 0 ;
11536
11537 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setBorderColor",&obj0,&obj1)) goto fail;
11538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11539 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11540 if (arg2 == NULL) {
11541 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11542 }
11543 (arg1)->setBorderColor((otk::BColor const &)*arg2);
11544
11545 Py_INCREF(Py_None); resultobj = Py_None;
11546 return resultobj;
11547 fail:
11548 return NULL;
11549 }
11550
11551
11552 static PyObject *_wrap_BTexture_color(PyObject *self, PyObject *args) {
11553 PyObject *resultobj;
11554 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11555 otk::BColor *result;
11556 PyObject * obj0 = 0 ;
11557
11558 if(!PyArg_ParseTuple(args,(char *)"O:BTexture_color",&obj0)) goto fail;
11559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11560 {
11561 otk::BColor const &_result_ref = ((otk::BTexture const *)arg1)->color();
11562 result = (otk::BColor *) &_result_ref;
11563 }
11564
11565 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
11566 return resultobj;
11567 fail:
11568 return NULL;
11569 }
11570
11571
11572 static PyObject *_wrap_BTexture_colorTo(PyObject *self, PyObject *args) {
11573 PyObject *resultobj;
11574 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11575 otk::BColor *result;
11576 PyObject * obj0 = 0 ;
11577
11578 if(!PyArg_ParseTuple(args,(char *)"O:BTexture_colorTo",&obj0)) goto fail;
11579 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11580 {
11581 otk::BColor const &_result_ref = ((otk::BTexture const *)arg1)->colorTo();
11582 result = (otk::BColor *) &_result_ref;
11583 }
11584
11585 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
11586 return resultobj;
11587 fail:
11588 return NULL;
11589 }
11590
11591
11592 static PyObject *_wrap_BTexture_lightColor(PyObject *self, PyObject *args) {
11593 PyObject *resultobj;
11594 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11595 otk::BColor *result;
11596 PyObject * obj0 = 0 ;
11597
11598 if(!PyArg_ParseTuple(args,(char *)"O:BTexture_lightColor",&obj0)) goto fail;
11599 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11600 {
11601 otk::BColor const &_result_ref = ((otk::BTexture const *)arg1)->lightColor();
11602 result = (otk::BColor *) &_result_ref;
11603 }
11604
11605 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
11606 return resultobj;
11607 fail:
11608 return NULL;
11609 }
11610
11611
11612 static PyObject *_wrap_BTexture_shadowColor(PyObject *self, PyObject *args) {
11613 PyObject *resultobj;
11614 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11615 otk::BColor *result;
11616 PyObject * obj0 = 0 ;
11617
11618 if(!PyArg_ParseTuple(args,(char *)"O:BTexture_shadowColor",&obj0)) goto fail;
11619 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11620 {
11621 otk::BColor const &_result_ref = ((otk::BTexture const *)arg1)->shadowColor();
11622 result = (otk::BColor *) &_result_ref;
11623 }
11624
11625 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
11626 return resultobj;
11627 fail:
11628 return NULL;
11629 }
11630
11631
11632 static PyObject *_wrap_BTexture_borderColor(PyObject *self, PyObject *args) {
11633 PyObject *resultobj;
11634 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11635 otk::BColor *result;
11636 PyObject * obj0 = 0 ;
11637
11638 if(!PyArg_ParseTuple(args,(char *)"O:BTexture_borderColor",&obj0)) goto fail;
11639 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11640 {
11641 otk::BColor const &_result_ref = ((otk::BTexture const *)arg1)->borderColor();
11642 result = (otk::BColor *) &_result_ref;
11643 }
11644
11645 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
11646 return resultobj;
11647 fail:
11648 return NULL;
11649 }
11650
11651
11652 static PyObject *_wrap_BTexture_texture(PyObject *self, PyObject *args) {
11653 PyObject *resultobj;
11654 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11655 unsigned long result;
11656 PyObject * obj0 = 0 ;
11657
11658 if(!PyArg_ParseTuple(args,(char *)"O:BTexture_texture",&obj0)) goto fail;
11659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11660 result = (unsigned long)((otk::BTexture const *)arg1)->texture();
11661
11662 resultobj = PyInt_FromLong((long)result);
11663 return resultobj;
11664 fail:
11665 return NULL;
11666 }
11667
11668
11669 static PyObject *_wrap_BTexture_setTexture(PyObject *self, PyObject *args) {
11670 PyObject *resultobj;
11671 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11672 unsigned long arg2 ;
11673 PyObject * obj0 = 0 ;
11674 PyObject * obj1 = 0 ;
11675
11676 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setTexture",&obj0,&obj1)) goto fail;
11677 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11678 arg2 = (unsigned long) PyInt_AsLong(obj1);
11679 if (PyErr_Occurred()) SWIG_fail;
11680 (arg1)->setTexture(arg2);
11681
11682 Py_INCREF(Py_None); resultobj = Py_None;
11683 return resultobj;
11684 fail:
11685 return NULL;
11686 }
11687
11688
11689 static PyObject *_wrap_BTexture_addTexture(PyObject *self, PyObject *args) {
11690 PyObject *resultobj;
11691 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11692 unsigned long arg2 ;
11693 PyObject * obj0 = 0 ;
11694 PyObject * obj1 = 0 ;
11695
11696 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_addTexture",&obj0,&obj1)) goto fail;
11697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11698 arg2 = (unsigned long) PyInt_AsLong(obj1);
11699 if (PyErr_Occurred()) SWIG_fail;
11700 (arg1)->addTexture(arg2);
11701
11702 Py_INCREF(Py_None); resultobj = Py_None;
11703 return resultobj;
11704 fail:
11705 return NULL;
11706 }
11707
11708
11709 static PyObject *_wrap_BTexture_equals(PyObject *self, PyObject *args) {
11710 PyObject *resultobj;
11711 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11712 otk::BTexture *arg2 = 0 ;
11713 bool result;
11714 PyObject * obj0 = 0 ;
11715 PyObject * obj1 = 0 ;
11716
11717 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_equals",&obj0,&obj1)) goto fail;
11718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11719 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11720 if (arg2 == NULL) {
11721 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11722 }
11723 result = (bool)(arg1)->operator ==((otk::BTexture const &)*arg2);
11724
11725 resultobj = PyInt_FromLong((long)result);
11726 return resultobj;
11727 fail:
11728 return NULL;
11729 }
11730
11731
11732 static PyObject *_wrap_BTexture_screen(PyObject *self, PyObject *args) {
11733 PyObject *resultobj;
11734 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11735 unsigned int result;
11736 PyObject * obj0 = 0 ;
11737
11738 if(!PyArg_ParseTuple(args,(char *)"O:BTexture_screen",&obj0)) goto fail;
11739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11740 result = (unsigned int)((otk::BTexture const *)arg1)->screen();
11741
11742 resultobj = PyInt_FromLong((long)result);
11743 return resultobj;
11744 fail:
11745 return NULL;
11746 }
11747
11748
11749 static PyObject *_wrap_BTexture_setScreen(PyObject *self, PyObject *args) {
11750 PyObject *resultobj;
11751 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11752 unsigned int arg2 ;
11753 PyObject * obj0 = 0 ;
11754 PyObject * obj1 = 0 ;
11755
11756 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setScreen",&obj0,&obj1)) goto fail;
11757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11758 arg2 = (unsigned int) PyInt_AsLong(obj1);
11759 if (PyErr_Occurred()) SWIG_fail;
11760 (arg1)->setScreen(arg2);
11761
11762 Py_INCREF(Py_None); resultobj = Py_None;
11763 return resultobj;
11764 fail:
11765 return NULL;
11766 }
11767
11768
11769 static PyObject *_wrap_BTexture_setImageControl(PyObject *self, PyObject *args) {
11770 PyObject *resultobj;
11771 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11772 otk::BImageControl *arg2 = (otk::BImageControl *) 0 ;
11773 PyObject * obj0 = 0 ;
11774 PyObject * obj1 = 0 ;
11775
11776 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setImageControl",&obj0,&obj1)) goto fail;
11777 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11778 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11779 (arg1)->setImageControl(arg2);
11780
11781 Py_INCREF(Py_None); resultobj = Py_None;
11782 return resultobj;
11783 fail:
11784 return NULL;
11785 }
11786
11787
11788 static PyObject *_wrap_BTexture_description(PyObject *self, PyObject *args) {
11789 PyObject *resultobj;
11790 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11791 std::string *result;
11792 PyObject * obj0 = 0 ;
11793
11794 if(!PyArg_ParseTuple(args,(char *)"O:BTexture_description",&obj0)) goto fail;
11795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11796 {
11797 std::string const &_result_ref = ((otk::BTexture const *)arg1)->description();
11798 result = (std::string *) &_result_ref;
11799 }
11800
11801 {
11802 resultobj = PyString_FromString(result->c_str());
11803 }
11804 return resultobj;
11805 fail:
11806 return NULL;
11807 }
11808
11809
11810 static PyObject *_wrap_BTexture_setDescription(PyObject *self, PyObject *args) {
11811 PyObject *resultobj;
11812 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11813 std::string *arg2 = 0 ;
11814 std::string temp2 ;
11815 PyObject * obj0 = 0 ;
11816 PyObject * obj1 = 0 ;
11817
11818 if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setDescription",&obj0,&obj1)) goto fail;
11819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11820 {
11821 if (PyString_Check(obj1)) {
11822 temp2 = std::string(PyString_AsString(obj1));
11823 arg2 = &temp2;
11824 }else {
11825 SWIG_exception(SWIG_TypeError, "string expected");
11826 }
11827 }
11828 (arg1)->setDescription((std::string const &)*arg2);
11829
11830 Py_INCREF(Py_None); resultobj = Py_None;
11831 return resultobj;
11832 fail:
11833 return NULL;
11834 }
11835
11836
11837 static PyObject *_wrap_BTexture_render(PyObject *self, PyObject *args) {
11838 PyObject *resultobj;
11839 otk::BTexture *arg1 = (otk::BTexture *) 0 ;
11840 unsigned int arg2 ;
11841 unsigned int arg3 ;
11842 Pixmap arg4 = (Pixmap) (Pixmap)0 ;
11843 Pixmap result;
11844 Pixmap *argp4 ;
11845 PyObject * obj0 = 0 ;
11846 PyObject * obj1 = 0 ;
11847 PyObject * obj2 = 0 ;
11848 PyObject * obj3 = 0 ;
11849
11850 if(!PyArg_ParseTuple(args,(char *)"OOO|O:BTexture_render",&obj0,&obj1,&obj2,&obj3)) goto fail;
11851 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11852 arg2 = (unsigned int) PyInt_AsLong(obj1);
11853 if (PyErr_Occurred()) SWIG_fail;
11854 arg3 = (unsigned int) PyInt_AsLong(obj2);
11855 if (PyErr_Occurred()) SWIG_fail;
11856 if (obj3) {
11857 if ((SWIG_ConvertPtr(obj3,(void **) &argp4, SWIGTYPE_p_Pixmap,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
11858 arg4 = *argp4;
11859 }
11860 result = (arg1)->render(arg2,arg3,arg4);
11861
11862 {
11863 Pixmap * resultptr;
11864 resultptr = new Pixmap((Pixmap &) result);
11865 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_Pixmap, 1);
11866 }
11867 return resultobj;
11868 fail:
11869 return NULL;
11870 }
11871
11872
11873 static PyObject * BTexture_swigregister(PyObject *self, PyObject *args) {
11874 PyObject *obj;
11875 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11876 SWIG_TypeClientData(SWIGTYPE_p_otk__BTexture, obj);
11877 Py_INCREF(obj);
11878 return Py_BuildValue((char *)"");
11879 }
11880 static PyObject *_wrap_new_OBTimer(PyObject *self, PyObject *args) {
11881 PyObject *resultobj;
11882 otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
11883 otk::OBTimeoutHandler arg2 = (otk::OBTimeoutHandler) 0 ;
11884 otk::OBTimeoutData arg3 = (otk::OBTimeoutData) 0 ;
11885 otk::OBTimer *result;
11886 PyObject * obj0 = 0 ;
11887 PyObject * obj1 = 0 ;
11888 PyObject * obj2 = 0 ;
11889
11890 if(!PyArg_ParseTuple(args,(char *)"OOO:new_OBTimer",&obj0,&obj1,&obj2)) goto fail;
11891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11892 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_otk__OBTimeoutHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11893 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11894 result = (otk::OBTimer *)new otk::OBTimer(arg1,arg2,arg3);
11895
11896 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimer, 1);
11897 return resultobj;
11898 fail:
11899 return NULL;
11900 }
11901
11902
11903 static PyObject *_wrap_delete_OBTimer(PyObject *self, PyObject *args) {
11904 PyObject *resultobj;
11905 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
11906 PyObject * obj0 = 0 ;
11907
11908 if(!PyArg_ParseTuple(args,(char *)"O:delete_OBTimer",&obj0)) goto fail;
11909 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11910 delete arg1;
11911
11912 Py_INCREF(Py_None); resultobj = Py_None;
11913 return resultobj;
11914 fail:
11915 return NULL;
11916 }
11917
11918
11919 static PyObject *_wrap_OBTimer_fire(PyObject *self, PyObject *args) {
11920 PyObject *resultobj;
11921 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
11922 PyObject * obj0 = 0 ;
11923
11924 if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_fire",&obj0)) goto fail;
11925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11926 (arg1)->fire();
11927
11928 Py_INCREF(Py_None); resultobj = Py_None;
11929 return resultobj;
11930 fail:
11931 return NULL;
11932 }
11933
11934
11935 static PyObject *_wrap_OBTimer_timing(PyObject *self, PyObject *args) {
11936 PyObject *resultobj;
11937 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
11938 bool result;
11939 PyObject * obj0 = 0 ;
11940
11941 if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_timing",&obj0)) goto fail;
11942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11943 result = (bool)((otk::OBTimer const *)arg1)->timing();
11944
11945 resultobj = PyInt_FromLong((long)result);
11946 return resultobj;
11947 fail:
11948 return NULL;
11949 }
11950
11951
11952 static PyObject *_wrap_OBTimer_recurring(PyObject *self, PyObject *args) {
11953 PyObject *resultobj;
11954 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
11955 bool result;
11956 PyObject * obj0 = 0 ;
11957
11958 if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_recurring",&obj0)) goto fail;
11959 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11960 result = (bool)((otk::OBTimer const *)arg1)->recurring();
11961
11962 resultobj = PyInt_FromLong((long)result);
11963 return resultobj;
11964 fail:
11965 return NULL;
11966 }
11967
11968
11969 static PyObject *_wrap_OBTimer_timeout(PyObject *self, PyObject *args) {
11970 PyObject *resultobj;
11971 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
11972 timeval *result;
11973 PyObject * obj0 = 0 ;
11974
11975 if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_timeout",&obj0)) goto fail;
11976 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11977 {
11978 timeval const &_result_ref = ((otk::OBTimer const *)arg1)->timeout();
11979 result = (timeval *) &_result_ref;
11980 }
11981
11982 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_timeval, 0);
11983 return resultobj;
11984 fail:
11985 return NULL;
11986 }
11987
11988
11989 static PyObject *_wrap_OBTimer_startTime(PyObject *self, PyObject *args) {
11990 PyObject *resultobj;
11991 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
11992 timeval *result;
11993 PyObject * obj0 = 0 ;
11994
11995 if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_startTime",&obj0)) goto fail;
11996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11997 {
11998 timeval const &_result_ref = ((otk::OBTimer const *)arg1)->startTime();
11999 result = (timeval *) &_result_ref;
12000 }
12001
12002 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_timeval, 0);
12003 return resultobj;
12004 fail:
12005 return NULL;
12006 }
12007
12008
12009 static PyObject *_wrap_OBTimer_remainingTime(PyObject *self, PyObject *args) {
12010 PyObject *resultobj;
12011 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12012 timeval *arg2 = 0 ;
12013 timeval result;
12014 PyObject * obj0 = 0 ;
12015 PyObject * obj1 = 0 ;
12016
12017 if(!PyArg_ParseTuple(args,(char *)"OO:OBTimer_remainingTime",&obj0,&obj1)) goto fail;
12018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12019 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_timeval,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12020 if (arg2 == NULL) {
12021 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12022 }
12023 result = ((otk::OBTimer const *)arg1)->remainingTime((timeval const &)*arg2);
12024
12025 {
12026 timeval * resultptr;
12027 resultptr = new timeval((timeval &) result);
12028 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_timeval, 1);
12029 }
12030 return resultobj;
12031 fail:
12032 return NULL;
12033 }
12034
12035
12036 static PyObject *_wrap_OBTimer_shouldFire(PyObject *self, PyObject *args) {
12037 PyObject *resultobj;
12038 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12039 timeval *arg2 = 0 ;
12040 bool result;
12041 PyObject * obj0 = 0 ;
12042 PyObject * obj1 = 0 ;
12043
12044 if(!PyArg_ParseTuple(args,(char *)"OO:OBTimer_shouldFire",&obj0,&obj1)) goto fail;
12045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12046 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_timeval,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12047 if (arg2 == NULL) {
12048 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12049 }
12050 result = (bool)((otk::OBTimer const *)arg1)->shouldFire((timeval const &)*arg2);
12051
12052 resultobj = PyInt_FromLong((long)result);
12053 return resultobj;
12054 fail:
12055 return NULL;
12056 }
12057
12058
12059 static PyObject *_wrap_OBTimer_endTime(PyObject *self, PyObject *args) {
12060 PyObject *resultobj;
12061 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12062 timeval result;
12063 PyObject * obj0 = 0 ;
12064
12065 if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_endTime",&obj0)) goto fail;
12066 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12067 result = ((otk::OBTimer const *)arg1)->endTime();
12068
12069 {
12070 timeval * resultptr;
12071 resultptr = new timeval((timeval &) result);
12072 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_timeval, 1);
12073 }
12074 return resultobj;
12075 fail:
12076 return NULL;
12077 }
12078
12079
12080 static PyObject *_wrap_OBTimer_setRecurring(PyObject *self, PyObject *args) {
12081 PyObject *resultobj;
12082 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12083 bool arg2 ;
12084 PyObject * obj0 = 0 ;
12085 PyObject * obj1 = 0 ;
12086
12087 if(!PyArg_ParseTuple(args,(char *)"OO:OBTimer_setRecurring",&obj0,&obj1)) goto fail;
12088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12089 arg2 = (bool) PyInt_AsLong(obj1);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 (arg1)->setRecurring(arg2);
12092
12093 Py_INCREF(Py_None); resultobj = Py_None;
12094 return resultobj;
12095 fail:
12096 return NULL;
12097 }
12098
12099
12100 static PyObject *_wrap_OBTimer_setTimeout__SWIG_0(PyObject *self, PyObject *args) {
12101 PyObject *resultobj;
12102 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12103 long arg2 ;
12104 PyObject * obj0 = 0 ;
12105
12106 if(!PyArg_ParseTuple(args,(char *)"Ol:OBTimer_setTimeout",&obj0,&arg2)) goto fail;
12107 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12108 (arg1)->setTimeout(arg2);
12109
12110 Py_INCREF(Py_None); resultobj = Py_None;
12111 return resultobj;
12112 fail:
12113 return NULL;
12114 }
12115
12116
12117 static PyObject *_wrap_OBTimer_setTimeout__SWIG_1(PyObject *self, PyObject *args) {
12118 PyObject *resultobj;
12119 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12120 timeval *arg2 = 0 ;
12121 PyObject * obj0 = 0 ;
12122 PyObject * obj1 = 0 ;
12123
12124 if(!PyArg_ParseTuple(args,(char *)"OO:OBTimer_setTimeout",&obj0,&obj1)) goto fail;
12125 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12126 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_timeval,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12127 if (arg2 == NULL) {
12128 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12129 }
12130 (arg1)->setTimeout((timeval const &)*arg2);
12131
12132 Py_INCREF(Py_None); resultobj = Py_None;
12133 return resultobj;
12134 fail:
12135 return NULL;
12136 }
12137
12138
12139 static PyObject *_wrap_OBTimer_setTimeout(PyObject *self, PyObject *args) {
12140 int argc;
12141 PyObject *argv[3];
12142 int ii;
12143
12144 argc = PyObject_Length(args);
12145 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
12146 argv[ii] = PyTuple_GetItem(args,ii);
12147 }
12148 if (argc == 2) {
12149 int _v;
12150 {
12151 void *ptr;
12152 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBTimer, 0) == -1) {
12153 _v = 0;
12154 PyErr_Clear();
12155 }else {
12156 _v = 1;
12157 }
12158 }
12159 if (_v) {
12160 {
12161 void *ptr;
12162 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_timeval, 0) == -1) {
12163 _v = 0;
12164 PyErr_Clear();
12165 }else {
12166 _v = 1;
12167 }
12168 }
12169 if (_v) {
12170 return _wrap_OBTimer_setTimeout__SWIG_1(self,args);
12171 }
12172 }
12173 }
12174 if (argc == 2) {
12175 int _v;
12176 {
12177 void *ptr;
12178 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBTimer, 0) == -1) {
12179 _v = 0;
12180 PyErr_Clear();
12181 }else {
12182 _v = 1;
12183 }
12184 }
12185 if (_v) {
12186 {
12187 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
12188 }
12189 if (_v) {
12190 return _wrap_OBTimer_setTimeout__SWIG_0(self,args);
12191 }
12192 }
12193 }
12194
12195 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OBTimer_setTimeout'");
12196 return NULL;
12197 }
12198
12199
12200 static PyObject *_wrap_OBTimer_start(PyObject *self, PyObject *args) {
12201 PyObject *resultobj;
12202 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12203 PyObject * obj0 = 0 ;
12204
12205 if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_start",&obj0)) goto fail;
12206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12207 (arg1)->start();
12208
12209 Py_INCREF(Py_None); resultobj = Py_None;
12210 return resultobj;
12211 fail:
12212 return NULL;
12213 }
12214
12215
12216 static PyObject *_wrap_OBTimer_stop(PyObject *self, PyObject *args) {
12217 PyObject *resultobj;
12218 otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
12219 PyObject * obj0 = 0 ;
12220
12221 if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_stop",&obj0)) goto fail;
12222 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12223 (arg1)->stop();
12224
12225 Py_INCREF(Py_None); resultobj = Py_None;
12226 return resultobj;
12227 fail:
12228 return NULL;
12229 }
12230
12231
12232 static PyObject * OBTimer_swigregister(PyObject *self, PyObject *args) {
12233 PyObject *obj;
12234 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12235 SWIG_TypeClientData(SWIGTYPE_p_otk__OBTimer, obj);
12236 Py_INCREF(obj);
12237 return Py_BuildValue((char *)"");
12238 }
12239 static PyObject *_wrap_new_OBTimerQueueManager(PyObject *self, PyObject *args) {
12240 PyObject *resultobj;
12241 otk::OBTimerQueueManager *result;
12242
12243 if(!PyArg_ParseTuple(args,(char *)":new_OBTimerQueueManager")) goto fail;
12244 result = (otk::OBTimerQueueManager *)new otk::OBTimerQueueManager();
12245
12246 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimerQueueManager, 1);
12247 return resultobj;
12248 fail:
12249 return NULL;
12250 }
12251
12252
12253 static PyObject *_wrap_delete_OBTimerQueueManager(PyObject *self, PyObject *args) {
12254 PyObject *resultobj;
12255 otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
12256 PyObject * obj0 = 0 ;
12257
12258 if(!PyArg_ParseTuple(args,(char *)"O:delete_OBTimerQueueManager",&obj0)) goto fail;
12259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12260 delete arg1;
12261
12262 Py_INCREF(Py_None); resultobj = Py_None;
12263 return resultobj;
12264 fail:
12265 return NULL;
12266 }
12267
12268
12269 static PyObject *_wrap_OBTimerQueueManager_fire(PyObject *self, PyObject *args) {
12270 PyObject *resultobj;
12271 otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
12272 PyObject * obj0 = 0 ;
12273
12274 if(!PyArg_ParseTuple(args,(char *)"O:OBTimerQueueManager_fire",&obj0)) goto fail;
12275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12276 (arg1)->fire();
12277
12278 Py_INCREF(Py_None); resultobj = Py_None;
12279 return resultobj;
12280 fail:
12281 return NULL;
12282 }
12283
12284
12285 static PyObject *_wrap_OBTimerQueueManager_addTimer(PyObject *self, PyObject *args) {
12286 PyObject *resultobj;
12287 otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
12288 otk::OBTimer *arg2 = (otk::OBTimer *) 0 ;
12289 PyObject * obj0 = 0 ;
12290 PyObject * obj1 = 0 ;
12291
12292 if(!PyArg_ParseTuple(args,(char *)"OO:OBTimerQueueManager_addTimer",&obj0,&obj1)) goto fail;
12293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12294 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12295 (arg1)->addTimer(arg2);
12296
12297 Py_INCREF(Py_None); resultobj = Py_None;
12298 return resultobj;
12299 fail:
12300 return NULL;
12301 }
12302
12303
12304 static PyObject *_wrap_OBTimerQueueManager_removeTimer(PyObject *self, PyObject *args) {
12305 PyObject *resultobj;
12306 otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
12307 otk::OBTimer *arg2 = (otk::OBTimer *) 0 ;
12308 PyObject * obj0 = 0 ;
12309 PyObject * obj1 = 0 ;
12310
12311 if(!PyArg_ParseTuple(args,(char *)"OO:OBTimerQueueManager_removeTimer",&obj0,&obj1)) goto fail;
12312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12313 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12314 (arg1)->removeTimer(arg2);
12315
12316 Py_INCREF(Py_None); resultobj = Py_None;
12317 return resultobj;
12318 fail:
12319 return NULL;
12320 }
12321
12322
12323 static PyObject * OBTimerQueueManager_swigregister(PyObject *self, PyObject *args) {
12324 PyObject *obj;
12325 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12326 SWIG_TypeClientData(SWIGTYPE_p_otk__OBTimerQueueManager, obj);
12327 Py_INCREF(obj);
12328 return Py_BuildValue((char *)"");
12329 }
12330 static int _wrap_BSENTINEL_set(PyObject *_val) {
12331 PyErr_SetString(PyExc_TypeError,"Variable BSENTINEL is read-only.");
12332 return 1;
12333 }
12334
12335
12336 static PyObject *_wrap_BSENTINEL_get() {
12337 PyObject *pyobj;
12338
12339 pyobj = PyInt_FromLong((long)otk::BSENTINEL);
12340 return pyobj;
12341 }
12342
12343
12344 static PyObject *_wrap_expandTilde(PyObject *self, PyObject *args) {
12345 PyObject *resultobj;
12346 std::string *arg1 = 0 ;
12347 std::string result;
12348 std::string temp1 ;
12349 PyObject * obj0 = 0 ;
12350
12351 if(!PyArg_ParseTuple(args,(char *)"O:expandTilde",&obj0)) goto fail;
12352 {
12353 if (PyString_Check(obj0)) {
12354 temp1 = std::string(PyString_AsString(obj0));
12355 arg1 = &temp1;
12356 }else {
12357 SWIG_exception(SWIG_TypeError, "string expected");
12358 }
12359 }
12360 result = otk::expandTilde((std::string const &)*arg1);
12361
12362 {
12363 resultobj = PyString_FromString((&result)->c_str());
12364 }
12365 return resultobj;
12366 fail:
12367 return NULL;
12368 }
12369
12370
12371 static PyObject *_wrap_bexec(PyObject *self, PyObject *args) {
12372 PyObject *resultobj;
12373 std::string *arg1 = 0 ;
12374 std::string *arg2 = 0 ;
12375 std::string temp1 ;
12376 std::string temp2 ;
12377 PyObject * obj0 = 0 ;
12378 PyObject * obj1 = 0 ;
12379
12380 if(!PyArg_ParseTuple(args,(char *)"OO:bexec",&obj0,&obj1)) goto fail;
12381 {
12382 if (PyString_Check(obj0)) {
12383 temp1 = std::string(PyString_AsString(obj0));
12384 arg1 = &temp1;
12385 }else {
12386 SWIG_exception(SWIG_TypeError, "string expected");
12387 }
12388 }
12389 {
12390 if (PyString_Check(obj1)) {
12391 temp2 = std::string(PyString_AsString(obj1));
12392 arg2 = &temp2;
12393 }else {
12394 SWIG_exception(SWIG_TypeError, "string expected");
12395 }
12396 }
12397 otk::bexec((std::string const &)*arg1,(std::string const &)*arg2);
12398
12399 Py_INCREF(Py_None); resultobj = Py_None;
12400 return resultobj;
12401 fail:
12402 return NULL;
12403 }
12404
12405
12406 static PyObject *_wrap_textPropertyToString(PyObject *self, PyObject *args) {
12407 PyObject *resultobj;
12408 Display *arg1 = (Display *) 0 ;
12409 XTextProperty *arg2 = 0 ;
12410 std::string result;
12411 PyObject * obj0 = 0 ;
12412 PyObject * obj1 = 0 ;
12413
12414 if(!PyArg_ParseTuple(args,(char *)"OO:textPropertyToString",&obj0,&obj1)) goto fail;
12415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12416 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XTextProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12417 if (arg2 == NULL) {
12418 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12419 }
12420 result = otk::textPropertyToString(arg1,*arg2);
12421
12422 {
12423 resultobj = PyString_FromString((&result)->c_str());
12424 }
12425 return resultobj;
12426 fail:
12427 return NULL;
12428 }
12429
12430
12431 static PyObject *_wrap_itostring_unsigned_long(PyObject *self, PyObject *args) {
12432 PyObject *resultobj;
12433 unsigned long arg1 ;
12434 std::string result;
12435 PyObject * obj0 = 0 ;
12436
12437 if(!PyArg_ParseTuple(args,(char *)"O:itostring_unsigned_long",&obj0)) goto fail;
12438 arg1 = (unsigned long) PyInt_AsLong(obj0);
12439 if (PyErr_Occurred()) SWIG_fail;
12440 result = otk::itostring(arg1);
12441
12442 {
12443 resultobj = PyString_FromString((&result)->c_str());
12444 }
12445 return resultobj;
12446 fail:
12447 return NULL;
12448 }
12449
12450
12451 static PyObject *_wrap_itostring_long(PyObject *self, PyObject *args) {
12452 PyObject *resultobj;
12453 long arg1 ;
12454 std::string result;
12455
12456 if(!PyArg_ParseTuple(args,(char *)"l:itostring_long",&arg1)) goto fail;
12457 result = otk::itostring(arg1);
12458
12459 {
12460 resultobj = PyString_FromString((&result)->c_str());
12461 }
12462 return resultobj;
12463 fail:
12464 return NULL;
12465 }
12466
12467
12468 static PyObject *_wrap_itostring_unsigned(PyObject *self, PyObject *args) {
12469 PyObject *resultobj;
12470 unsigned int arg1 ;
12471 std::string result;
12472 PyObject * obj0 = 0 ;
12473
12474 if(!PyArg_ParseTuple(args,(char *)"O:itostring_unsigned",&obj0)) goto fail;
12475 arg1 = (unsigned int) PyInt_AsLong(obj0);
12476 if (PyErr_Occurred()) SWIG_fail;
12477 result = otk::itostring(arg1);
12478
12479 {
12480 resultobj = PyString_FromString((&result)->c_str());
12481 }
12482 return resultobj;
12483 fail:
12484 return NULL;
12485 }
12486
12487
12488 static PyObject *_wrap_itostring(PyObject *self, PyObject *args) {
12489 PyObject *resultobj;
12490 int arg1 ;
12491 std::string result;
12492
12493 if(!PyArg_ParseTuple(args,(char *)"i:itostring",&arg1)) goto fail;
12494 result = otk::itostring(arg1);
12495
12496 {
12497 resultobj = PyString_FromString((&result)->c_str());
12498 }
12499 return resultobj;
12500 fail:
12501 return NULL;
12502 }
12503
12504
12505 static PyObject *_wrap_basename(PyObject *self, PyObject *args) {
12506 PyObject *resultobj;
12507 std::string *arg1 = 0 ;
12508 std::string result;
12509 std::string temp1 ;
12510 PyObject * obj0 = 0 ;
12511
12512 if(!PyArg_ParseTuple(args,(char *)"O:basename",&obj0)) goto fail;
12513 {
12514 if (PyString_Check(obj0)) {
12515 temp1 = std::string(PyString_AsString(obj0));
12516 arg1 = &temp1;
12517 }else {
12518 SWIG_exception(SWIG_TypeError, "string expected");
12519 }
12520 }
12521 result = basename((std::string const &)*arg1);
12522
12523 {
12524 resultobj = PyString_FromString((&result)->c_str());
12525 }
12526 return resultobj;
12527 fail:
12528 return NULL;
12529 }
12530
12531
12532 static PyMethodDef SwigMethods[] = {
12533 { (char *)"new_OtkEventDispatcher", _wrap_new_OtkEventDispatcher, METH_VARARGS },
12534 { (char *)"delete_OtkEventDispatcher", _wrap_delete_OtkEventDispatcher, METH_VARARGS },
12535 { (char *)"OtkEventDispatcher_clearAllHandlers", _wrap_OtkEventDispatcher_clearAllHandlers, METH_VARARGS },
12536 { (char *)"OtkEventDispatcher_registerHandler", _wrap_OtkEventDispatcher_registerHandler, METH_VARARGS },
12537 { (char *)"OtkEventDispatcher_clearHandler", _wrap_OtkEventDispatcher_clearHandler, METH_VARARGS },
12538 { (char *)"OtkEventDispatcher_dispatchEvents", _wrap_OtkEventDispatcher_dispatchEvents, METH_VARARGS },
12539 { (char *)"OtkEventDispatcher_setFallbackHandler", _wrap_OtkEventDispatcher_setFallbackHandler, METH_VARARGS },
12540 { (char *)"OtkEventDispatcher_getFallbackHandler", _wrap_OtkEventDispatcher_getFallbackHandler, METH_VARARGS },
12541 { (char *)"OtkEventDispatcher_setMasterHandler", _wrap_OtkEventDispatcher_setMasterHandler, METH_VARARGS },
12542 { (char *)"OtkEventDispatcher_getMasterHandler", _wrap_OtkEventDispatcher_getMasterHandler, METH_VARARGS },
12543 { (char *)"OtkEventDispatcher_findHandler", _wrap_OtkEventDispatcher_findHandler, METH_VARARGS },
12544 { (char *)"OtkEventDispatcher_swigregister", OtkEventDispatcher_swigregister, METH_VARARGS },
12545 { (char *)"OtkEventHandler_handle", _wrap_OtkEventHandler_handle, METH_VARARGS },
12546 { (char *)"OtkEventHandler_keyPressHandler", _wrap_OtkEventHandler_keyPressHandler, METH_VARARGS },
12547 { (char *)"OtkEventHandler_keyReleaseHandler", _wrap_OtkEventHandler_keyReleaseHandler, METH_VARARGS },
12548 { (char *)"OtkEventHandler_buttonPressHandler", _wrap_OtkEventHandler_buttonPressHandler, METH_VARARGS },
12549 { (char *)"OtkEventHandler_buttonReleaseHandler", _wrap_OtkEventHandler_buttonReleaseHandler, METH_VARARGS },
12550 { (char *)"OtkEventHandler_motionHandler", _wrap_OtkEventHandler_motionHandler, METH_VARARGS },
12551 { (char *)"OtkEventHandler_enterHandler", _wrap_OtkEventHandler_enterHandler, METH_VARARGS },
12552 { (char *)"OtkEventHandler_leaveHandler", _wrap_OtkEventHandler_leaveHandler, METH_VARARGS },
12553 { (char *)"OtkEventHandler_focusHandler", _wrap_OtkEventHandler_focusHandler, METH_VARARGS },
12554 { (char *)"OtkEventHandler_unfocusHandler", _wrap_OtkEventHandler_unfocusHandler, METH_VARARGS },
12555 { (char *)"OtkEventHandler_exposeHandler", _wrap_OtkEventHandler_exposeHandler, METH_VARARGS },
12556 { (char *)"OtkEventHandler_graphicsExposeHandler", _wrap_OtkEventHandler_graphicsExposeHandler, METH_VARARGS },
12557 { (char *)"OtkEventHandler_noExposeEventHandler", _wrap_OtkEventHandler_noExposeEventHandler, METH_VARARGS },
12558 { (char *)"OtkEventHandler_circulateRequestHandler", _wrap_OtkEventHandler_circulateRequestHandler, METH_VARARGS },
12559 { (char *)"OtkEventHandler_configureRequestHandler", _wrap_OtkEventHandler_configureRequestHandler, METH_VARARGS },
12560 { (char *)"OtkEventHandler_mapRequestHandler", _wrap_OtkEventHandler_mapRequestHandler, METH_VARARGS },
12561 { (char *)"OtkEventHandler_resizeRequestHandler", _wrap_OtkEventHandler_resizeRequestHandler, METH_VARARGS },
12562 { (char *)"OtkEventHandler_circulateHandler", _wrap_OtkEventHandler_circulateHandler, METH_VARARGS },
12563 { (char *)"OtkEventHandler_configureHandler", _wrap_OtkEventHandler_configureHandler, METH_VARARGS },
12564 { (char *)"OtkEventHandler_createHandler", _wrap_OtkEventHandler_createHandler, METH_VARARGS },
12565 { (char *)"OtkEventHandler_destroyHandler", _wrap_OtkEventHandler_destroyHandler, METH_VARARGS },
12566 { (char *)"OtkEventHandler_gravityHandler", _wrap_OtkEventHandler_gravityHandler, METH_VARARGS },
12567 { (char *)"OtkEventHandler_mapHandler", _wrap_OtkEventHandler_mapHandler, METH_VARARGS },
12568 { (char *)"OtkEventHandler_mappingHandler", _wrap_OtkEventHandler_mappingHandler, METH_VARARGS },
12569 { (char *)"OtkEventHandler_reparentHandler", _wrap_OtkEventHandler_reparentHandler, METH_VARARGS },
12570 { (char *)"OtkEventHandler_unmapHandler", _wrap_OtkEventHandler_unmapHandler, METH_VARARGS },
12571 { (char *)"OtkEventHandler_visibilityHandler", _wrap_OtkEventHandler_visibilityHandler, METH_VARARGS },
12572 { (char *)"OtkEventHandler_colorMapHandler", _wrap_OtkEventHandler_colorMapHandler, METH_VARARGS },
12573 { (char *)"OtkEventHandler_propertyHandler", _wrap_OtkEventHandler_propertyHandler, METH_VARARGS },
12574 { (char *)"OtkEventHandler_selectionClearHandler", _wrap_OtkEventHandler_selectionClearHandler, METH_VARARGS },
12575 { (char *)"OtkEventHandler_selectionHandler", _wrap_OtkEventHandler_selectionHandler, METH_VARARGS },
12576 { (char *)"OtkEventHandler_selectionRequestHandler", _wrap_OtkEventHandler_selectionRequestHandler, METH_VARARGS },
12577 { (char *)"OtkEventHandler_clientMessageHandler", _wrap_OtkEventHandler_clientMessageHandler, METH_VARARGS },
12578 { (char *)"delete_OtkEventHandler", _wrap_delete_OtkEventHandler, METH_VARARGS },
12579 { (char *)"OtkEventHandler_swigregister", OtkEventHandler_swigregister, METH_VARARGS },
12580 { (char *)"new_OtkWidget", _wrap_new_OtkWidget, METH_VARARGS },
12581 { (char *)"delete_OtkWidget", _wrap_delete_OtkWidget, METH_VARARGS },
12582 { (char *)"OtkWidget_update", _wrap_OtkWidget_update, METH_VARARGS },
12583 { (char *)"OtkWidget_exposeHandler", _wrap_OtkWidget_exposeHandler, METH_VARARGS },
12584 { (char *)"OtkWidget_configureHandler", _wrap_OtkWidget_configureHandler, METH_VARARGS },
12585 { (char *)"OtkWidget_window", _wrap_OtkWidget_window, METH_VARARGS },
12586 { (char *)"OtkWidget_parent", _wrap_OtkWidget_parent, METH_VARARGS },
12587 { (char *)"OtkWidget_children", _wrap_OtkWidget_children, METH_VARARGS },
12588 { (char *)"OtkWidget_screen", _wrap_OtkWidget_screen, METH_VARARGS },
12589 { (char *)"OtkWidget_rect", _wrap_OtkWidget_rect, METH_VARARGS },
12590 { (char *)"OtkWidget_move", _wrap_OtkWidget_move, METH_VARARGS },
12591 { (char *)"OtkWidget_setWidth", _wrap_OtkWidget_setWidth, METH_VARARGS },
12592 { (char *)"OtkWidget_setHeight", _wrap_OtkWidget_setHeight, METH_VARARGS },
12593 { (char *)"OtkWidget_width", _wrap_OtkWidget_width, METH_VARARGS },
12594 { (char *)"OtkWidget_height", _wrap_OtkWidget_height, METH_VARARGS },
12595 { (char *)"OtkWidget_resize", _wrap_OtkWidget_resize, METH_VARARGS },
12596 { (char *)"OtkWidget_setGeometry", _wrap_OtkWidget_setGeometry, METH_VARARGS },
12597 { (char *)"OtkWidget_isVisible", _wrap_OtkWidget_isVisible, METH_VARARGS },
12598 { (char *)"OtkWidget_show", _wrap_OtkWidget_show, METH_VARARGS },
12599 { (char *)"OtkWidget_hide", _wrap_OtkWidget_hide, METH_VARARGS },
12600 { (char *)"OtkWidget_isFocused", _wrap_OtkWidget_isFocused, METH_VARARGS },
12601 { (char *)"OtkWidget_focus", _wrap_OtkWidget_focus, METH_VARARGS },
12602 { (char *)"OtkWidget_unfocus", _wrap_OtkWidget_unfocus, METH_VARARGS },
12603 { (char *)"OtkWidget_hasGrabbedMouse", _wrap_OtkWidget_hasGrabbedMouse, METH_VARARGS },
12604 { (char *)"OtkWidget_grabMouse", _wrap_OtkWidget_grabMouse, METH_VARARGS },
12605 { (char *)"OtkWidget_ungrabMouse", _wrap_OtkWidget_ungrabMouse, METH_VARARGS },
12606 { (char *)"OtkWidget_hasGrabbedKeyboard", _wrap_OtkWidget_hasGrabbedKeyboard, METH_VARARGS },
12607 { (char *)"OtkWidget_grabKeyboard", _wrap_OtkWidget_grabKeyboard, METH_VARARGS },
12608 { (char *)"OtkWidget_ungrabKeyboard", _wrap_OtkWidget_ungrabKeyboard, METH_VARARGS },
12609 { (char *)"OtkWidget_texture", _wrap_OtkWidget_texture, METH_VARARGS },
12610 { (char *)"OtkWidget_setTexture", _wrap_OtkWidget_setTexture, METH_VARARGS },
12611 { (char *)"OtkWidget_borderColor", _wrap_OtkWidget_borderColor, METH_VARARGS },
12612 { (char *)"OtkWidget_setBorderColor", _wrap_OtkWidget_setBorderColor, METH_VARARGS },
12613 { (char *)"OtkWidget_borderWidth", _wrap_OtkWidget_borderWidth, METH_VARARGS },
12614 { (char *)"OtkWidget_setBorderWidth", _wrap_OtkWidget_setBorderWidth, METH_VARARGS },
12615 { (char *)"OtkWidget_addChild", _wrap_OtkWidget_addChild, METH_VARARGS },
12616 { (char *)"OtkWidget_removeChild", _wrap_OtkWidget_removeChild, METH_VARARGS },
12617 { (char *)"OtkWidget_isStretchableHorz", _wrap_OtkWidget_isStretchableHorz, METH_VARARGS },
12618 { (char *)"OtkWidget_setStretchableHorz", _wrap_OtkWidget_setStretchableHorz, METH_VARARGS },
12619 { (char *)"OtkWidget_isStretchableVert", _wrap_OtkWidget_isStretchableVert, METH_VARARGS },
12620 { (char *)"OtkWidget_setStretchableVert", _wrap_OtkWidget_setStretchableVert, METH_VARARGS },
12621 { (char *)"OtkWidget_cursor", _wrap_OtkWidget_cursor, METH_VARARGS },
12622 { (char *)"OtkWidget_setCursor", _wrap_OtkWidget_setCursor, METH_VARARGS },
12623 { (char *)"OtkWidget_bevelWidth", _wrap_OtkWidget_bevelWidth, METH_VARARGS },
12624 { (char *)"OtkWidget_setBevelWidth", _wrap_OtkWidget_setBevelWidth, METH_VARARGS },
12625 { (char *)"OtkWidget_direction", _wrap_OtkWidget_direction, METH_VARARGS },
12626 { (char *)"OtkWidget_setDirection", _wrap_OtkWidget_setDirection, METH_VARARGS },
12627 { (char *)"OtkWidget_style", _wrap_OtkWidget_style, METH_VARARGS },
12628 { (char *)"OtkWidget_setStyle", _wrap_OtkWidget_setStyle, METH_VARARGS },
12629 { (char *)"OtkWidget_eventDispatcher", _wrap_OtkWidget_eventDispatcher, METH_VARARGS },
12630 { (char *)"OtkWidget_setEventDispatcher", _wrap_OtkWidget_setEventDispatcher, METH_VARARGS },
12631 { (char *)"OtkWidget_unmanaged", _wrap_OtkWidget_unmanaged, METH_VARARGS },
12632 { (char *)"OtkWidget_swigregister", OtkWidget_swigregister, METH_VARARGS },
12633 { (char *)"new_OtkFocusWidget", _wrap_new_OtkFocusWidget, METH_VARARGS },
12634 { (char *)"delete_OtkFocusWidget", _wrap_delete_OtkFocusWidget, METH_VARARGS },
12635 { (char *)"OtkFocusWidget_focus", _wrap_OtkFocusWidget_focus, METH_VARARGS },
12636 { (char *)"OtkFocusWidget_unfocus", _wrap_OtkFocusWidget_unfocus, METH_VARARGS },
12637 { (char *)"OtkFocusWidget_setTexture", _wrap_OtkFocusWidget_setTexture, METH_VARARGS },
12638 { (char *)"OtkFocusWidget_setBorderColor", _wrap_OtkFocusWidget_setBorderColor, METH_VARARGS },
12639 { (char *)"OtkFocusWidget_setUnfocusTexture", _wrap_OtkFocusWidget_setUnfocusTexture, METH_VARARGS },
12640 { (char *)"OtkFocusWidget_getUnfocusTexture", _wrap_OtkFocusWidget_getUnfocusTexture, METH_VARARGS },
12641 { (char *)"OtkFocusWidget_setUnfocusBorderColor", _wrap_OtkFocusWidget_setUnfocusBorderColor, METH_VARARGS },
12642 { (char *)"OtkFocusWidget_getUnfocusBorderColor", _wrap_OtkFocusWidget_getUnfocusBorderColor, METH_VARARGS },
12643 { (char *)"OtkFocusWidget_isFocused", _wrap_OtkFocusWidget_isFocused, METH_VARARGS },
12644 { (char *)"OtkFocusWidget_isUnfocused", _wrap_OtkFocusWidget_isUnfocused, METH_VARARGS },
12645 { (char *)"OtkFocusWidget_swigregister", OtkFocusWidget_swigregister, METH_VARARGS },
12646 { (char *)"new_OtkFocusLabel", _wrap_new_OtkFocusLabel, METH_VARARGS },
12647 { (char *)"delete_OtkFocusLabel", _wrap_delete_OtkFocusLabel, METH_VARARGS },
12648 { (char *)"OtkFocusLabel_getText", _wrap_OtkFocusLabel_getText, METH_VARARGS },
12649 { (char *)"OtkFocusLabel_setText", _wrap_OtkFocusLabel_setText, METH_VARARGS },
12650 { (char *)"OtkFocusLabel_update", _wrap_OtkFocusLabel_update, METH_VARARGS },
12651 { (char *)"OtkFocusLabel_setStyle", _wrap_OtkFocusLabel_setStyle, METH_VARARGS },
12652 { (char *)"OtkFocusLabel_swigregister", OtkFocusLabel_swigregister, METH_VARARGS },
12653 { (char *)"new_OtkAppWidget", _wrap_new_OtkAppWidget, METH_VARARGS },
12654 { (char *)"delete_OtkAppWidget", _wrap_delete_OtkAppWidget, METH_VARARGS },
12655 { (char *)"OtkAppWidget_show", _wrap_OtkAppWidget_show, METH_VARARGS },
12656 { (char *)"OtkAppWidget_hide", _wrap_OtkAppWidget_hide, METH_VARARGS },
12657 { (char *)"OtkAppWidget_clientMessageHandler", _wrap_OtkAppWidget_clientMessageHandler, METH_VARARGS },
12658 { (char *)"OtkAppWidget_swigregister", OtkAppWidget_swigregister, METH_VARARGS },
12659 { (char *)"new_OtkApplication", _wrap_new_OtkApplication, METH_VARARGS },
12660 { (char *)"delete_OtkApplication", _wrap_delete_OtkApplication, METH_VARARGS },
12661 { (char *)"OtkApplication_run", _wrap_OtkApplication_run, METH_VARARGS },
12662 { (char *)"OtkApplication_setDockable", _wrap_OtkApplication_setDockable, METH_VARARGS },
12663 { (char *)"OtkApplication_isDockable", _wrap_OtkApplication_isDockable, METH_VARARGS },
12664 { (char *)"OtkApplication_getStyle", _wrap_OtkApplication_getStyle, METH_VARARGS },
12665 { (char *)"OtkApplication_swigregister", OtkApplication_swigregister, METH_VARARGS },
12666 { (char *)"PointerAssassin_swigregister", PointerAssassin_swigregister, METH_VARARGS },
12667 { (char *)"new_OtkButton", _wrap_new_OtkButton, METH_VARARGS },
12668 { (char *)"delete_OtkButton", _wrap_delete_OtkButton, METH_VARARGS },
12669 { (char *)"OtkButton_getPressedFocusTexture", _wrap_OtkButton_getPressedFocusTexture, METH_VARARGS },
12670 { (char *)"OtkButton_setPressedFocusTexture", _wrap_OtkButton_setPressedFocusTexture, METH_VARARGS },
12671 { (char *)"OtkButton_getPressedUnfocusTexture", _wrap_OtkButton_getPressedUnfocusTexture, METH_VARARGS },
12672 { (char *)"OtkButton_setPressedUnfocusTexture", _wrap_OtkButton_setPressedUnfocusTexture, METH_VARARGS },
12673 { (char *)"OtkButton_setTexture", _wrap_OtkButton_setTexture, METH_VARARGS },
12674 { (char *)"OtkButton_setUnfocusTexture", _wrap_OtkButton_setUnfocusTexture, METH_VARARGS },
12675 { (char *)"OtkButton_isPressed", _wrap_OtkButton_isPressed, METH_VARARGS },
12676 { (char *)"OtkButton_press", _wrap_OtkButton_press, METH_VARARGS },
12677 { (char *)"OtkButton_release", _wrap_OtkButton_release, METH_VARARGS },
12678 { (char *)"OtkButton_buttonPressHandler", _wrap_OtkButton_buttonPressHandler, METH_VARARGS },
12679 { (char *)"OtkButton_buttonReleaseHandler", _wrap_OtkButton_buttonReleaseHandler, METH_VARARGS },
12680 { (char *)"OtkButton_setStyle", _wrap_OtkButton_setStyle, METH_VARARGS },
12681 { (char *)"OtkButton_swigregister", OtkButton_swigregister, METH_VARARGS },
12682 { (char *)"new_BColor", _wrap_new_BColor, METH_VARARGS },
12683 { (char *)"delete_BColor", _wrap_delete_BColor, METH_VARARGS },
12684 { (char *)"BColor_name", _wrap_BColor_name, METH_VARARGS },
12685 { (char *)"BColor_red", _wrap_BColor_red, METH_VARARGS },
12686 { (char *)"BColor_green", _wrap_BColor_green, METH_VARARGS },
12687 { (char *)"BColor_blue", _wrap_BColor_blue, METH_VARARGS },
12688 { (char *)"BColor_setRGB", _wrap_BColor_setRGB, METH_VARARGS },
12689 { (char *)"BColor_screen", _wrap_BColor_screen, METH_VARARGS },
12690 { (char *)"BColor_setScreen", _wrap_BColor_setScreen, METH_VARARGS },
12691 { (char *)"BColor_isAllocated", _wrap_BColor_isAllocated, METH_VARARGS },
12692 { (char *)"BColor_isValid", _wrap_BColor_isValid, METH_VARARGS },
12693 { (char *)"BColor_pixel", _wrap_BColor_pixel, METH_VARARGS },
12694 { (char *)"BColor_equals", _wrap_BColor_equals, METH_VARARGS },
12695 { (char *)"BColor_cleanupColorCache", _wrap_BColor_cleanupColorCache, METH_VARARGS },
12696 { (char *)"BColor_swigregister", BColor_swigregister, METH_VARARGS },
12697 { (char *)"new_Configuration", _wrap_new_Configuration, METH_VARARGS },
12698 { (char *)"delete_Configuration", _wrap_delete_Configuration, METH_VARARGS },
12699 { (char *)"Configuration_file", _wrap_Configuration_file, METH_VARARGS },
12700 { (char *)"Configuration_setFile", _wrap_Configuration_setFile, METH_VARARGS },
12701 { (char *)"Configuration_autoSave", _wrap_Configuration_autoSave, METH_VARARGS },
12702 { (char *)"Configuration_setAutoSave", _wrap_Configuration_setAutoSave, METH_VARARGS },
12703 { (char *)"Configuration_isModified", _wrap_Configuration_isModified, METH_VARARGS },
12704 { (char *)"Configuration_save", _wrap_Configuration_save, METH_VARARGS },
12705 { (char *)"Configuration_load", _wrap_Configuration_load, METH_VARARGS },
12706 { (char *)"Configuration_merge", _wrap_Configuration_merge, METH_VARARGS },
12707 { (char *)"Configuration_create", _wrap_Configuration_create, METH_VARARGS },
12708 { (char *)"Configuration_setValue_bool", _wrap_Configuration_setValue_bool, METH_VARARGS },
12709 { (char *)"Configuration_setValue", _wrap_Configuration_setValue, METH_VARARGS },
12710 { (char *)"Configuration_setValue_unsigned", _wrap_Configuration_setValue_unsigned, METH_VARARGS },
12711 { (char *)"Configuration_setValue_long", _wrap_Configuration_setValue_long, METH_VARARGS },
12712 { (char *)"Configuration_setValue_unsignedlong", _wrap_Configuration_setValue_unsignedlong, METH_VARARGS },
12713 { (char *)"Configuration_setValue_string", _wrap_Configuration_setValue_string, METH_VARARGS },
12714 { (char *)"Configuration_setValue_charptr", _wrap_Configuration_setValue_charptr, METH_VARARGS },
12715 { (char *)"Configuration_getValue", _wrap_Configuration_getValue, METH_VARARGS },
12716 { (char *)"Configuration_swigregister", Configuration_swigregister, METH_VARARGS },
12717 { (char *)"OBDisplay_initialize", _wrap_OBDisplay_initialize, METH_VARARGS },
12718 { (char *)"OBDisplay_destroy", _wrap_OBDisplay_destroy, METH_VARARGS },
12719 { (char *)"OBDisplay_gcCache", _wrap_OBDisplay_gcCache, METH_VARARGS },
12720 { (char *)"OBDisplay_screenInfo", _wrap_OBDisplay_screenInfo, METH_VARARGS },
12721 { (char *)"OBDisplay_shape", _wrap_OBDisplay_shape, METH_VARARGS },
12722 { (char *)"OBDisplay_shapeEventBase", _wrap_OBDisplay_shapeEventBase, METH_VARARGS },
12723 { (char *)"OBDisplay_xinerama", _wrap_OBDisplay_xinerama, METH_VARARGS },
12724 { (char *)"OBDisplay_grab", _wrap_OBDisplay_grab, METH_VARARGS },
12725 { (char *)"OBDisplay_ungrab", _wrap_OBDisplay_ungrab, METH_VARARGS },
12726 { (char *)"OBDisplay_grabButton", _wrap_OBDisplay_grabButton, METH_VARARGS },
12727 { (char *)"OBDisplay_ungrabButton", _wrap_OBDisplay_ungrabButton, METH_VARARGS },
12728 { (char *)"OBDisplay_swigregister", OBDisplay_swigregister, METH_VARARGS },
12729 { (char *)"BFont_fallbackFont", _wrap_BFont_fallbackFont, METH_VARARGS },
12730 { (char *)"BFont_setFallbackFont", _wrap_BFont_setFallbackFont, METH_VARARGS },
12731 { (char *)"new_BFont", _wrap_new_BFont, METH_VARARGS },
12732 { (char *)"delete_BFont", _wrap_delete_BFont, METH_VARARGS },
12733 { (char *)"BFont_fontstring", _wrap_BFont_fontstring, METH_VARARGS },
12734 { (char *)"BFont_height", _wrap_BFont_height, METH_VARARGS },
12735 { (char *)"BFont_maxCharWidth", _wrap_BFont_maxCharWidth, METH_VARARGS },
12736 { (char *)"BFont_measureString", _wrap_BFont_measureString, METH_VARARGS },
12737 { (char *)"BFont_drawString", _wrap_BFont_drawString, METH_VARARGS },
12738 { (char *)"BFont_swigregister", BFont_swigregister, METH_VARARGS },
12739 { (char *)"BGCCacheContext_set", _wrap_BGCCacheContext_set, METH_VARARGS },
12740 { (char *)"delete_BGCCacheContext", _wrap_delete_BGCCacheContext, METH_VARARGS },
12741 { (char *)"BGCCacheContext_swigregister", BGCCacheContext_swigregister, METH_VARARGS },
12742 { (char *)"BGCCacheItem_gc", _wrap_BGCCacheItem_gc, METH_VARARGS },
12743 { (char *)"BGCCacheItem_swigregister", BGCCacheItem_swigregister, METH_VARARGS },
12744 { (char *)"new_BGCCache", _wrap_new_BGCCache, METH_VARARGS },
12745 { (char *)"delete_BGCCache", _wrap_delete_BGCCache, METH_VARARGS },
12746 { (char *)"BGCCache_purge", _wrap_BGCCache_purge, METH_VARARGS },
12747 { (char *)"BGCCache_find", _wrap_BGCCache_find, METH_VARARGS },
12748 { (char *)"BGCCache_release", _wrap_BGCCache_release, METH_VARARGS },
12749 { (char *)"BGCCache_swigregister", BGCCache_swigregister, METH_VARARGS },
12750 { (char *)"new_BPen", _wrap_new_BPen, METH_VARARGS },
12751 { (char *)"delete_BPen", _wrap_delete_BPen, METH_VARARGS },
12752 { (char *)"BPen_gc", _wrap_BPen_gc, METH_VARARGS },
12753 { (char *)"BPen_swigregister", BPen_swigregister, METH_VARARGS },
12754 { (char *)"new_BImage", _wrap_new_BImage, METH_VARARGS },
12755 { (char *)"delete_BImage", _wrap_delete_BImage, METH_VARARGS },
12756 { (char *)"BImage_render", _wrap_BImage_render, METH_VARARGS },
12757 { (char *)"BImage_swigregister", BImage_swigregister, METH_VARARGS },
12758 { (char *)"new_BImageControl", _wrap_new_BImageControl, METH_VARARGS },
12759 { (char *)"delete_BImageControl", _wrap_delete_BImageControl, METH_VARARGS },
12760 { (char *)"BImageControl_doDither", _wrap_BImageControl_doDither, METH_VARARGS },
12761 { (char *)"BImageControl_getScreenInfo", _wrap_BImageControl_getScreenInfo, METH_VARARGS },
12762 { (char *)"BImageControl_getDrawable", _wrap_BImageControl_getDrawable, METH_VARARGS },
12763 { (char *)"BImageControl_getVisual", _wrap_BImageControl_getVisual, METH_VARARGS },
12764 { (char *)"BImageControl_getBitsPerPixel", _wrap_BImageControl_getBitsPerPixel, METH_VARARGS },
12765 { (char *)"BImageControl_getDepth", _wrap_BImageControl_getDepth, METH_VARARGS },
12766 { (char *)"BImageControl_getColorsPerChannel", _wrap_BImageControl_getColorsPerChannel, METH_VARARGS },
12767 { (char *)"BImageControl_getSqrt", _wrap_BImageControl_getSqrt, METH_VARARGS },
12768 { (char *)"BImageControl_renderImage", _wrap_BImageControl_renderImage, METH_VARARGS },
12769 { (char *)"BImageControl_installRootColormap", _wrap_BImageControl_installRootColormap, METH_VARARGS },
12770 { (char *)"BImageControl_removeImage", _wrap_BImageControl_removeImage, METH_VARARGS },
12771 { (char *)"BImageControl_getColorTables", _wrap_BImageControl_getColorTables, METH_VARARGS },
12772 { (char *)"BImageControl_getXColorTable", _wrap_BImageControl_getXColorTable, METH_VARARGS },
12773 { (char *)"BImageControl_getGradientBuffers", _wrap_BImageControl_getGradientBuffers, METH_VARARGS },
12774 { (char *)"BImageControl_setDither", _wrap_BImageControl_setDither, METH_VARARGS },
12775 { (char *)"BImageControl_setColorsPerChannel", _wrap_BImageControl_setColorsPerChannel, METH_VARARGS },
12776 { (char *)"BImageControl_timeout", _wrap_BImageControl_timeout, METH_VARARGS },
12777 { (char *)"BImageControl_swigregister", BImageControl_swigregister, METH_VARARGS },
12778 { (char *)"new_Point", _wrap_new_Point, METH_VARARGS },
12779 { (char *)"Point_setX", _wrap_Point_setX, METH_VARARGS },
12780 { (char *)"Point_x", _wrap_Point_x, METH_VARARGS },
12781 { (char *)"Point_setY", _wrap_Point_setY, METH_VARARGS },
12782 { (char *)"Point_y", _wrap_Point_y, METH_VARARGS },
12783 { (char *)"Point_setPoint", _wrap_Point_setPoint, METH_VARARGS },
12784 { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS },
12785 { (char *)"new_OBProperty", _wrap_new_OBProperty, METH_VARARGS },
12786 { (char *)"delete_OBProperty", _wrap_delete_OBProperty, METH_VARARGS },
12787 { (char *)"OBProperty_set", _wrap_OBProperty_set, METH_VARARGS },
12788 { (char *)"OBProperty_get", _wrap_OBProperty_get, METH_VARARGS },
12789 { (char *)"OBProperty_erase", _wrap_OBProperty_erase, METH_VARARGS },
12790 { (char *)"OBProperty_atom", _wrap_OBProperty_atom, METH_VARARGS },
12791 { (char *)"OBProperty_swigregister", OBProperty_swigregister, METH_VARARGS },
12792 { (char *)"new_Rect", _wrap_new_Rect, METH_VARARGS },
12793 { (char *)"Rect_left", _wrap_Rect_left, METH_VARARGS },
12794 { (char *)"Rect_top", _wrap_Rect_top, METH_VARARGS },
12795 { (char *)"Rect_right", _wrap_Rect_right, METH_VARARGS },
12796 { (char *)"Rect_bottom", _wrap_Rect_bottom, METH_VARARGS },
12797 { (char *)"Rect_x", _wrap_Rect_x, METH_VARARGS },
12798 { (char *)"Rect_y", _wrap_Rect_y, METH_VARARGS },
12799 { (char *)"Rect_location", _wrap_Rect_location, METH_VARARGS },
12800 { (char *)"Rect_setX", _wrap_Rect_setX, METH_VARARGS },
12801 { (char *)"Rect_setY", _wrap_Rect_setY, METH_VARARGS },
12802 { (char *)"Rect_setPos", _wrap_Rect_setPos, METH_VARARGS },
12803 { (char *)"Rect_width", _wrap_Rect_width, METH_VARARGS },
12804 { (char *)"Rect_height", _wrap_Rect_height, METH_VARARGS },
12805 { (char *)"Rect_size", _wrap_Rect_size, METH_VARARGS },
12806 { (char *)"Rect_setWidth", _wrap_Rect_setWidth, METH_VARARGS },
12807 { (char *)"Rect_setHeight", _wrap_Rect_setHeight, METH_VARARGS },
12808 { (char *)"Rect_setSize", _wrap_Rect_setSize, METH_VARARGS },
12809 { (char *)"Rect_setRect", _wrap_Rect_setRect, METH_VARARGS },
12810 { (char *)"Rect_setCoords", _wrap_Rect_setCoords, METH_VARARGS },
12811 { (char *)"Rect_equals", _wrap_Rect_equals, METH_VARARGS },
12812 { (char *)"Rect_valid", _wrap_Rect_valid, METH_VARARGS },
12813 { (char *)"Rect_intersects", _wrap_Rect_intersects, METH_VARARGS },
12814 { (char *)"Rect_contains", _wrap_Rect_contains, METH_VARARGS },
12815 { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS },
12816 { (char *)"new_ScreenInfo", _wrap_new_ScreenInfo, METH_VARARGS },
12817 { (char *)"ScreenInfo_visual", _wrap_ScreenInfo_visual, METH_VARARGS },
12818 { (char *)"ScreenInfo_rootWindow", _wrap_ScreenInfo_rootWindow, METH_VARARGS },
12819 { (char *)"ScreenInfo_colormap", _wrap_ScreenInfo_colormap, METH_VARARGS },
12820 { (char *)"ScreenInfo_depth", _wrap_ScreenInfo_depth, METH_VARARGS },
12821 { (char *)"ScreenInfo_screen", _wrap_ScreenInfo_screen, METH_VARARGS },
12822 { (char *)"ScreenInfo_rect", _wrap_ScreenInfo_rect, METH_VARARGS },
12823 { (char *)"ScreenInfo_width", _wrap_ScreenInfo_width, METH_VARARGS },
12824 { (char *)"ScreenInfo_height", _wrap_ScreenInfo_height, METH_VARARGS },
12825 { (char *)"ScreenInfo_displayString", _wrap_ScreenInfo_displayString, METH_VARARGS },
12826 { (char *)"ScreenInfo_swigregister", ScreenInfo_swigregister, METH_VARARGS },
12827 { (char *)"Strut_top_set", _wrap_Strut_top_set, METH_VARARGS },
12828 { (char *)"Strut_top_get", _wrap_Strut_top_get, METH_VARARGS },
12829 { (char *)"Strut_bottom_set", _wrap_Strut_bottom_set, METH_VARARGS },
12830 { (char *)"Strut_bottom_get", _wrap_Strut_bottom_get, METH_VARARGS },
12831 { (char *)"Strut_left_set", _wrap_Strut_left_set, METH_VARARGS },
12832 { (char *)"Strut_left_get", _wrap_Strut_left_get, METH_VARARGS },
12833 { (char *)"Strut_right_set", _wrap_Strut_right_set, METH_VARARGS },
12834 { (char *)"Strut_right_get", _wrap_Strut_right_get, METH_VARARGS },
12835 { (char *)"new_Strut", _wrap_new_Strut, METH_VARARGS },
12836 { (char *)"Strut_swigregister", Strut_swigregister, METH_VARARGS },
12837 { (char *)"PixmapMask_mask_set", _wrap_PixmapMask_mask_set, METH_VARARGS },
12838 { (char *)"PixmapMask_mask_get", _wrap_PixmapMask_mask_get, METH_VARARGS },
12839 { (char *)"PixmapMask_w_set", _wrap_PixmapMask_w_set, METH_VARARGS },
12840 { (char *)"PixmapMask_w_get", _wrap_PixmapMask_w_get, METH_VARARGS },
12841 { (char *)"PixmapMask_h_set", _wrap_PixmapMask_h_set, METH_VARARGS },
12842 { (char *)"PixmapMask_h_get", _wrap_PixmapMask_h_get, METH_VARARGS },
12843 { (char *)"PixmapMask_swigregister", PixmapMask_swigregister, METH_VARARGS },
12844 { (char *)"Style_image_control_set", _wrap_Style_image_control_set, METH_VARARGS },
12845 { (char *)"Style_image_control_get", _wrap_Style_image_control_get, METH_VARARGS },
12846 { (char *)"Style_l_text_focus_set", _wrap_Style_l_text_focus_set, METH_VARARGS },
12847 { (char *)"Style_l_text_focus_get", _wrap_Style_l_text_focus_get, METH_VARARGS },
12848 { (char *)"Style_l_text_unfocus_set", _wrap_Style_l_text_unfocus_set, METH_VARARGS },
12849 { (char *)"Style_l_text_unfocus_get", _wrap_Style_l_text_unfocus_get, METH_VARARGS },
12850 { (char *)"Style_b_pic_focus_set", _wrap_Style_b_pic_focus_set, METH_VARARGS },
12851 { (char *)"Style_b_pic_focus_get", _wrap_Style_b_pic_focus_get, METH_VARARGS },
12852 { (char *)"Style_b_pic_unfocus_set", _wrap_Style_b_pic_unfocus_set, METH_VARARGS },
12853 { (char *)"Style_b_pic_unfocus_get", _wrap_Style_b_pic_unfocus_get, METH_VARARGS },
12854 { (char *)"Style_border_color_set", _wrap_Style_border_color_set, METH_VARARGS },
12855 { (char *)"Style_border_color_get", _wrap_Style_border_color_get, METH_VARARGS },
12856 { (char *)"Style_font_set", _wrap_Style_font_set, METH_VARARGS },
12857 { (char *)"Style_font_get", _wrap_Style_font_get, METH_VARARGS },
12858 { (char *)"Style_f_focus_set", _wrap_Style_f_focus_set, METH_VARARGS },
12859 { (char *)"Style_f_focus_get", _wrap_Style_f_focus_get, METH_VARARGS },
12860 { (char *)"Style_f_unfocus_set", _wrap_Style_f_unfocus_set, METH_VARARGS },
12861 { (char *)"Style_f_unfocus_get", _wrap_Style_f_unfocus_get, METH_VARARGS },
12862 { (char *)"Style_t_focus_set", _wrap_Style_t_focus_set, METH_VARARGS },
12863 { (char *)"Style_t_focus_get", _wrap_Style_t_focus_get, METH_VARARGS },
12864 { (char *)"Style_t_unfocus_set", _wrap_Style_t_unfocus_set, METH_VARARGS },
12865 { (char *)"Style_t_unfocus_get", _wrap_Style_t_unfocus_get, METH_VARARGS },
12866 { (char *)"Style_l_focus_set", _wrap_Style_l_focus_set, METH_VARARGS },
12867 { (char *)"Style_l_focus_get", _wrap_Style_l_focus_get, METH_VARARGS },
12868 { (char *)"Style_l_unfocus_set", _wrap_Style_l_unfocus_set, METH_VARARGS },
12869 { (char *)"Style_l_unfocus_get", _wrap_Style_l_unfocus_get, METH_VARARGS },
12870 { (char *)"Style_h_focus_set", _wrap_Style_h_focus_set, METH_VARARGS },
12871 { (char *)"Style_h_focus_get", _wrap_Style_h_focus_get, METH_VARARGS },
12872 { (char *)"Style_h_unfocus_set", _wrap_Style_h_unfocus_set, METH_VARARGS },
12873 { (char *)"Style_h_unfocus_get", _wrap_Style_h_unfocus_get, METH_VARARGS },
12874 { (char *)"Style_b_focus_set", _wrap_Style_b_focus_set, METH_VARARGS },
12875 { (char *)"Style_b_focus_get", _wrap_Style_b_focus_get, METH_VARARGS },
12876 { (char *)"Style_b_unfocus_set", _wrap_Style_b_unfocus_set, METH_VARARGS },
12877 { (char *)"Style_b_unfocus_get", _wrap_Style_b_unfocus_get, METH_VARARGS },
12878 { (char *)"Style_b_pressed_set", _wrap_Style_b_pressed_set, METH_VARARGS },
12879 { (char *)"Style_b_pressed_get", _wrap_Style_b_pressed_get, METH_VARARGS },
12880 { (char *)"Style_b_pressed_focus_set", _wrap_Style_b_pressed_focus_set, METH_VARARGS },
12881 { (char *)"Style_b_pressed_focus_get", _wrap_Style_b_pressed_focus_get, METH_VARARGS },
12882 { (char *)"Style_b_pressed_unfocus_set", _wrap_Style_b_pressed_unfocus_set, METH_VARARGS },
12883 { (char *)"Style_b_pressed_unfocus_get", _wrap_Style_b_pressed_unfocus_get, METH_VARARGS },
12884 { (char *)"Style_g_focus_set", _wrap_Style_g_focus_set, METH_VARARGS },
12885 { (char *)"Style_g_focus_get", _wrap_Style_g_focus_get, METH_VARARGS },
12886 { (char *)"Style_g_unfocus_set", _wrap_Style_g_unfocus_set, METH_VARARGS },
12887 { (char *)"Style_g_unfocus_get", _wrap_Style_g_unfocus_get, METH_VARARGS },
12888 { (char *)"Style_close_button_set", _wrap_Style_close_button_set, METH_VARARGS },
12889 { (char *)"Style_close_button_get", _wrap_Style_close_button_get, METH_VARARGS },
12890 { (char *)"Style_max_button_set", _wrap_Style_max_button_set, METH_VARARGS },
12891 { (char *)"Style_max_button_get", _wrap_Style_max_button_get, METH_VARARGS },
12892 { (char *)"Style_icon_button_set", _wrap_Style_icon_button_set, METH_VARARGS },
12893 { (char *)"Style_icon_button_get", _wrap_Style_icon_button_get, METH_VARARGS },
12894 { (char *)"Style_stick_button_set", _wrap_Style_stick_button_set, METH_VARARGS },
12895 { (char *)"Style_stick_button_get", _wrap_Style_stick_button_get, METH_VARARGS },
12896 { (char *)"Style_justify_set", _wrap_Style_justify_set, METH_VARARGS },
12897 { (char *)"Style_justify_get", _wrap_Style_justify_get, METH_VARARGS },
12898 { (char *)"Style_bullet_type_set", _wrap_Style_bullet_type_set, METH_VARARGS },
12899 { (char *)"Style_bullet_type_get", _wrap_Style_bullet_type_get, METH_VARARGS },
12900 { (char *)"Style_handle_width_set", _wrap_Style_handle_width_set, METH_VARARGS },
12901 { (char *)"Style_handle_width_get", _wrap_Style_handle_width_get, METH_VARARGS },
12902 { (char *)"Style_bevel_width_set", _wrap_Style_bevel_width_set, METH_VARARGS },
12903 { (char *)"Style_bevel_width_get", _wrap_Style_bevel_width_get, METH_VARARGS },
12904 { (char *)"Style_frame_width_set", _wrap_Style_frame_width_set, METH_VARARGS },
12905 { (char *)"Style_frame_width_get", _wrap_Style_frame_width_get, METH_VARARGS },
12906 { (char *)"Style_border_width_set", _wrap_Style_border_width_set, METH_VARARGS },
12907 { (char *)"Style_border_width_get", _wrap_Style_border_width_get, METH_VARARGS },
12908 { (char *)"Style_screen_number_set", _wrap_Style_screen_number_set, METH_VARARGS },
12909 { (char *)"Style_screen_number_get", _wrap_Style_screen_number_get, METH_VARARGS },
12910 { (char *)"Style_shadow_fonts_set", _wrap_Style_shadow_fonts_set, METH_VARARGS },
12911 { (char *)"Style_shadow_fonts_get", _wrap_Style_shadow_fonts_get, METH_VARARGS },
12912 { (char *)"Style_aa_fonts_set", _wrap_Style_aa_fonts_set, METH_VARARGS },
12913 { (char *)"Style_aa_fonts_get", _wrap_Style_aa_fonts_get, METH_VARARGS },
12914 { (char *)"new_Style", _wrap_new_Style, METH_VARARGS },
12915 { (char *)"delete_Style", _wrap_delete_Style, METH_VARARGS },
12916 { (char *)"Style_readDatabaseMask", _wrap_Style_readDatabaseMask, METH_VARARGS },
12917 { (char *)"Style_readDatabaseTexture", _wrap_Style_readDatabaseTexture, METH_VARARGS },
12918 { (char *)"Style_readDatabaseColor", _wrap_Style_readDatabaseColor, METH_VARARGS },
12919 { (char *)"Style_readDatabaseFont", _wrap_Style_readDatabaseFont, METH_VARARGS },
12920 { (char *)"Style_load", _wrap_Style_load, METH_VARARGS },
12921 { (char *)"Style_getTextFocus", _wrap_Style_getTextFocus, METH_VARARGS },
12922 { (char *)"Style_getTextUnfocus", _wrap_Style_getTextUnfocus, METH_VARARGS },
12923 { (char *)"Style_getButtonPicFocus", _wrap_Style_getButtonPicFocus, METH_VARARGS },
12924 { (char *)"Style_getButtonPicUnfocus", _wrap_Style_getButtonPicUnfocus, METH_VARARGS },
12925 { (char *)"Style_getTitleFocus", _wrap_Style_getTitleFocus, METH_VARARGS },
12926 { (char *)"Style_getTitleUnfocus", _wrap_Style_getTitleUnfocus, METH_VARARGS },
12927 { (char *)"Style_getLabelFocus", _wrap_Style_getLabelFocus, METH_VARARGS },
12928 { (char *)"Style_getLabelUnfocus", _wrap_Style_getLabelUnfocus, METH_VARARGS },
12929 { (char *)"Style_getHandleFocus", _wrap_Style_getHandleFocus, METH_VARARGS },
12930 { (char *)"Style_getHandleUnfocus", _wrap_Style_getHandleUnfocus, METH_VARARGS },
12931 { (char *)"Style_getButtonFocus", _wrap_Style_getButtonFocus, METH_VARARGS },
12932 { (char *)"Style_getButtonUnfocus", _wrap_Style_getButtonUnfocus, METH_VARARGS },
12933 { (char *)"Style_getButtonPressedFocus", _wrap_Style_getButtonPressedFocus, METH_VARARGS },
12934 { (char *)"Style_getButtonPressedUnfocus", _wrap_Style_getButtonPressedUnfocus, METH_VARARGS },
12935 { (char *)"Style_getGripFocus", _wrap_Style_getGripFocus, METH_VARARGS },
12936 { (char *)"Style_getGripUnfocus", _wrap_Style_getGripUnfocus, METH_VARARGS },
12937 { (char *)"Style_getHandleWidth", _wrap_Style_getHandleWidth, METH_VARARGS },
12938 { (char *)"Style_getBevelWidth", _wrap_Style_getBevelWidth, METH_VARARGS },
12939 { (char *)"Style_getFrameWidth", _wrap_Style_getFrameWidth, METH_VARARGS },
12940 { (char *)"Style_getBorderWidth", _wrap_Style_getBorderWidth, METH_VARARGS },
12941 { (char *)"Style_getFont", _wrap_Style_getFont, METH_VARARGS },
12942 { (char *)"Style_setShadowFonts", _wrap_Style_setShadowFonts, METH_VARARGS },
12943 { (char *)"Style_hasShadowFonts", _wrap_Style_hasShadowFonts, METH_VARARGS },
12944 { (char *)"Style_setAAFonts", _wrap_Style_setAAFonts, METH_VARARGS },
12945 { (char *)"Style_hasAAFonts", _wrap_Style_hasAAFonts, METH_VARARGS },
12946 { (char *)"Style_textJustify", _wrap_Style_textJustify, METH_VARARGS },
12947 { (char *)"Style_bulletType", _wrap_Style_bulletType, METH_VARARGS },
12948 { (char *)"Style_getBorderColor", _wrap_Style_getBorderColor, METH_VARARGS },
12949 { (char *)"Style_getFrameFocus", _wrap_Style_getFrameFocus, METH_VARARGS },
12950 { (char *)"Style_getFrameUnfocus", _wrap_Style_getFrameUnfocus, METH_VARARGS },
12951 { (char *)"Style_setImageControl", _wrap_Style_setImageControl, METH_VARARGS },
12952 { (char *)"Style_getScreen", _wrap_Style_getScreen, METH_VARARGS },
12953 { (char *)"Style_swigregister", Style_swigregister, METH_VARARGS },
12954 { (char *)"new_BTexture", _wrap_new_BTexture, METH_VARARGS },
12955 { (char *)"BTexture_setColor", _wrap_BTexture_setColor, METH_VARARGS },
12956 { (char *)"BTexture_setColorTo", _wrap_BTexture_setColorTo, METH_VARARGS },
12957 { (char *)"BTexture_setBorderColor", _wrap_BTexture_setBorderColor, METH_VARARGS },
12958 { (char *)"BTexture_color", _wrap_BTexture_color, METH_VARARGS },
12959 { (char *)"BTexture_colorTo", _wrap_BTexture_colorTo, METH_VARARGS },
12960 { (char *)"BTexture_lightColor", _wrap_BTexture_lightColor, METH_VARARGS },
12961 { (char *)"BTexture_shadowColor", _wrap_BTexture_shadowColor, METH_VARARGS },
12962 { (char *)"BTexture_borderColor", _wrap_BTexture_borderColor, METH_VARARGS },
12963 { (char *)"BTexture_texture", _wrap_BTexture_texture, METH_VARARGS },
12964 { (char *)"BTexture_setTexture", _wrap_BTexture_setTexture, METH_VARARGS },
12965 { (char *)"BTexture_addTexture", _wrap_BTexture_addTexture, METH_VARARGS },
12966 { (char *)"BTexture_equals", _wrap_BTexture_equals, METH_VARARGS },
12967 { (char *)"BTexture_screen", _wrap_BTexture_screen, METH_VARARGS },
12968 { (char *)"BTexture_setScreen", _wrap_BTexture_setScreen, METH_VARARGS },
12969 { (char *)"BTexture_setImageControl", _wrap_BTexture_setImageControl, METH_VARARGS },
12970 { (char *)"BTexture_description", _wrap_BTexture_description, METH_VARARGS },
12971 { (char *)"BTexture_setDescription", _wrap_BTexture_setDescription, METH_VARARGS },
12972 { (char *)"BTexture_render", _wrap_BTexture_render, METH_VARARGS },
12973 { (char *)"BTexture_swigregister", BTexture_swigregister, METH_VARARGS },
12974 { (char *)"new_OBTimer", _wrap_new_OBTimer, METH_VARARGS },
12975 { (char *)"delete_OBTimer", _wrap_delete_OBTimer, METH_VARARGS },
12976 { (char *)"OBTimer_fire", _wrap_OBTimer_fire, METH_VARARGS },
12977 { (char *)"OBTimer_timing", _wrap_OBTimer_timing, METH_VARARGS },
12978 { (char *)"OBTimer_recurring", _wrap_OBTimer_recurring, METH_VARARGS },
12979 { (char *)"OBTimer_timeout", _wrap_OBTimer_timeout, METH_VARARGS },
12980 { (char *)"OBTimer_startTime", _wrap_OBTimer_startTime, METH_VARARGS },
12981 { (char *)"OBTimer_remainingTime", _wrap_OBTimer_remainingTime, METH_VARARGS },
12982 { (char *)"OBTimer_shouldFire", _wrap_OBTimer_shouldFire, METH_VARARGS },
12983 { (char *)"OBTimer_endTime", _wrap_OBTimer_endTime, METH_VARARGS },
12984 { (char *)"OBTimer_setRecurring", _wrap_OBTimer_setRecurring, METH_VARARGS },
12985 { (char *)"OBTimer_setTimeout", _wrap_OBTimer_setTimeout, METH_VARARGS },
12986 { (char *)"OBTimer_start", _wrap_OBTimer_start, METH_VARARGS },
12987 { (char *)"OBTimer_stop", _wrap_OBTimer_stop, METH_VARARGS },
12988 { (char *)"OBTimer_swigregister", OBTimer_swigregister, METH_VARARGS },
12989 { (char *)"new_OBTimerQueueManager", _wrap_new_OBTimerQueueManager, METH_VARARGS },
12990 { (char *)"delete_OBTimerQueueManager", _wrap_delete_OBTimerQueueManager, METH_VARARGS },
12991 { (char *)"OBTimerQueueManager_fire", _wrap_OBTimerQueueManager_fire, METH_VARARGS },
12992 { (char *)"OBTimerQueueManager_addTimer", _wrap_OBTimerQueueManager_addTimer, METH_VARARGS },
12993 { (char *)"OBTimerQueueManager_removeTimer", _wrap_OBTimerQueueManager_removeTimer, METH_VARARGS },
12994 { (char *)"OBTimerQueueManager_swigregister", OBTimerQueueManager_swigregister, METH_VARARGS },
12995 { (char *)"expandTilde", _wrap_expandTilde, METH_VARARGS },
12996 { (char *)"bexec", _wrap_bexec, METH_VARARGS },
12997 { (char *)"textPropertyToString", _wrap_textPropertyToString, METH_VARARGS },
12998 { (char *)"itostring_unsigned_long", _wrap_itostring_unsigned_long, METH_VARARGS },
12999 { (char *)"itostring_long", _wrap_itostring_long, METH_VARARGS },
13000 { (char *)"itostring_unsigned", _wrap_itostring_unsigned, METH_VARARGS },
13001 { (char *)"itostring", _wrap_itostring, METH_VARARGS },
13002 { (char *)"basename", _wrap_basename, METH_VARARGS },
13003 { NULL, NULL }
13004 };
13005
13006
13007 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
13008
13009 static void *_p_otk__OtkButtonTo_p_otk__OtkFocusWidget(void *x) {
13010 return (void *)((otk::OtkFocusWidget *) (otk::OtkFocusLabel *) ((otk::OtkButton *) x));
13011 }
13012 static void *_p_otk__OtkFocusLabelTo_p_otk__OtkFocusWidget(void *x) {
13013 return (void *)((otk::OtkFocusWidget *) ((otk::OtkFocusLabel *) x));
13014 }
13015 static void *_p_otk__OtkButtonTo_p_otk__OtkWidget(void *x) {
13016 return (void *)((otk::OtkWidget *) (otk::OtkFocusWidget *)(otk::OtkFocusLabel *) ((otk::OtkButton *) x));
13017 }
13018 static void *_p_otk__OtkAppWidgetTo_p_otk__OtkWidget(void *x) {
13019 return (void *)((otk::OtkWidget *) ((otk::OtkAppWidget *) x));
13020 }
13021 static void *_p_otk__OtkFocusWidgetTo_p_otk__OtkWidget(void *x) {
13022 return (void *)((otk::OtkWidget *) ((otk::OtkFocusWidget *) x));
13023 }
13024 static void *_p_otk__OtkFocusLabelTo_p_otk__OtkWidget(void *x) {
13025 return (void *)((otk::OtkWidget *) (otk::OtkFocusWidget *) ((otk::OtkFocusLabel *) x));
13026 }
13027 static void *_p_otk__OtkButtonTo_p_otk__OtkEventHandler(void *x) {
13028 return (void *)((otk::OtkEventHandler *) (otk::OtkWidget *)(otk::OtkFocusWidget *)(otk::OtkFocusLabel *) ((otk::OtkButton *) x));
13029 }
13030 static void *_p_otk__OtkAppWidgetTo_p_otk__OtkEventHandler(void *x) {
13031 return (void *)((otk::OtkEventHandler *) (otk::OtkWidget *) ((otk::OtkAppWidget *) x));
13032 }
13033 static void *_p_otk__OtkWidgetTo_p_otk__OtkEventHandler(void *x) {
13034 return (void *)((otk::OtkEventHandler *) ((otk::OtkWidget *) x));
13035 }
13036 static void *_p_otk__OtkFocusWidgetTo_p_otk__OtkEventHandler(void *x) {
13037 return (void *)((otk::OtkEventHandler *) (otk::OtkWidget *) ((otk::OtkFocusWidget *) x));
13038 }
13039 static void *_p_otk__OtkFocusLabelTo_p_otk__OtkEventHandler(void *x) {
13040 return (void *)((otk::OtkEventHandler *) (otk::OtkWidget *)(otk::OtkFocusWidget *) ((otk::OtkFocusLabel *) x));
13041 }
13042 static void *_p_otk__OtkButtonTo_p_otk__OtkFocusLabel(void *x) {
13043 return (void *)((otk::OtkFocusLabel *) ((otk::OtkButton *) x));
13044 }
13045 static void *_p_otk__OtkApplicationTo_p_otk__OtkEventDispatcher(void *x) {
13046 return (void *)((otk::OtkEventDispatcher *) ((otk::OtkApplication *) x));
13047 }
13048 static swig_type_info _swigt__p_otk__BGCCache[] = {{"_p_otk__BGCCache", 0, "otk::BGCCache *", 0},{"_p_otk__BGCCache"},{0}};
13049 static swig_type_info _swigt__p_otk__BColor[] = {{"_p_otk__BColor", 0, "otk::BColor *", 0},{"_p_otk__BColor"},{0}};
13050 static swig_type_info _swigt__p_otk__OBProperty__StringVect[] = {{"_p_otk__OBProperty__StringVect", 0, "otk::OBProperty::StringVect *", 0},{"_p_otk__OBProperty__StringVect"},{0}};
13051 static swig_type_info _swigt__p_XFontStruct[] = {{"_p_XFontStruct", 0, "XFontStruct *", 0},{"_p_XFontStruct"},{0}};
13052 static swig_type_info _swigt__p_otk__Configuration[] = {{"_p_otk__Configuration", 0, "otk::Configuration *", 0},{"_p_otk__Configuration"},{0}};
13053 static swig_type_info _swigt__p_otk__PixmapMask[] = {{"_p_otk__PixmapMask", 0, "otk::PixmapMask *", 0},{"_p_otk__PixmapMask"},{0}};
13054 static swig_type_info _swigt__p_Atom[] = {{"_p_Atom", 0, "Atom *", 0},{"_p_Atom"},{0}};
13055 static swig_type_info _swigt__p_otk__PointerAssassin[] = {{"_p_otk__PointerAssassin", 0, "otk::PointerAssassin *", 0},{"_p_otk__PointerAssassin"},{0}};
13056 static swig_type_info _swigt__p_otk__BImage[] = {{"_p_otk__BImage", 0, "otk::BImage *", 0},{"_p_otk__BImage"},{0}};
13057 static swig_type_info _swigt__p_otk__OBTimer[] = {{"_p_otk__OBTimer", 0, "otk::OBTimer *", 0},{"_p_otk__OBTimer"},{0}};
13058 static swig_type_info _swigt__p_otk__OtkWidget__OtkWidgetList[] = {{"_p_otk__OtkWidget__OtkWidgetList", 0, "otk::OtkWidget::OtkWidgetList const &", 0},{"_p_otk__OtkWidget__OtkWidgetList"},{0}};
13059 static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}};
13060 static swig_type_info _swigt__p_otk__OBDisplay[] = {{"_p_otk__OBDisplay", 0, "otk::OBDisplay *", 0},{"_p_otk__OBDisplay"},{0}};
13061 static swig_type_info _swigt__p_Display[] = {{"_p_Display", 0, "Display *", 0},{"_p_Display"},{0}};
13062 static swig_type_info _swigt__p_p_XColor[] = {{"_p_p_XColor", 0, "XColor **", 0},{"_p_p_XColor"},{0}};
13063 static swig_type_info _swigt__p_XReparentEvent[] = {{"_p_XReparentEvent", 0, "XReparentEvent *", 0},{"_p_XReparentEvent"},{0}};
13064 static swig_type_info _swigt__p_otk__BPen[] = {{"_p_otk__BPen", 0, "otk::BPen *", 0},{"_p_otk__BPen"},{0}};
13065 static swig_type_info _swigt__p_otk__BImageControl[] = {{"_p_otk__BImageControl", 0, "otk::BImageControl *", 0},{"_p_otk__BImageControl"},{0}};
13066 static swig_type_info _swigt__p_otk__OtkButton[] = {{"_p_otk__OtkButton", 0, "otk::OtkButton *", 0},{"_p_otk__OtkButton"},{0}};
13067 static swig_type_info _swigt__p_otk__Rect[] = {{"_p_otk__Rect", 0, "otk::Rect *", 0},{"_p_otk__Rect"},{0}};
13068 static swig_type_info _swigt__p_otk__Style[] = {{"_p_otk__Style", 0, "otk::Style *", 0},{"_p_otk__Style"},{0}};
13069 static swig_type_info _swigt__p_XSelectionClearEvent[] = {{"_p_XSelectionClearEvent", 0, "XSelectionClearEvent *", 0},{"_p_XSelectionClearEvent"},{0}};
13070 static swig_type_info _swigt__p_Visual[] = {{"_p_Visual", 0, "Visual *", 0},{"_p_Visual"},{0}};
13071 static swig_type_info _swigt__p_timeval[] = {{"_p_timeval", 0, "timeval *", 0},{"_p_timeval"},{0}};
13072 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
13073 static swig_type_info _swigt__p_otk__Strut[] = {{"_p_otk__Strut", 0, "otk::Strut *", 0},{"_p_otk__Strut"},{0}};
13074 static swig_type_info _swigt__p_otk__OtkApplication[] = {{"_p_otk__OtkApplication", 0, "otk::OtkApplication *", 0},{"_p_otk__OtkApplication"},{0}};
13075 static swig_type_info _swigt__p_XRectangle[] = {{"_p_XRectangle", 0, "XRectangle *", 0},{"_p_XRectangle"},{0}};
13076 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}};
13077 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}};
13078 static swig_type_info _swigt__p_Cursor[] = {{"_p_Cursor", 0, "Cursor *", 0},{"_p_Cursor"},{0}};
13079 static swig_type_info _swigt__p_Colormap[] = {{"_p_Colormap", 0, "Colormap *", 0},{"_p_Colormap"},{0}};
13080 static swig_type_info _swigt__p_XGravityEvent[] = {{"_p_XGravityEvent", 0, "XGravityEvent *", 0},{"_p_XGravityEvent"},{0}};
13081 static swig_type_info _swigt__p_XVisibilityEvent[] = {{"_p_XVisibilityEvent", 0, "XVisibilityEvent *", 0},{"_p_XVisibilityEvent"},{0}};
13082 static swig_type_info _swigt__p_XPropertyEvent[] = {{"_p_XPropertyEvent", 0, "XPropertyEvent *", 0},{"_p_XPropertyEvent"},{0}};
13083 static swig_type_info _swigt__p_Window[] = {{"_p_Window", 0, "Window *", 0},{"_p_Window"},{0}};
13084 static swig_type_info _swigt__p_otk__BGCCacheContext[] = {{"_p_otk__BGCCacheContext", 0, "otk::BGCCacheContext *", 0},{"_p_otk__BGCCacheContext"},{0}};
13085 static swig_type_info _swigt__p_XCreateWindowEvent[] = {{"_p_XCreateWindowEvent", 0, "XCreateWindowEvent *", 0},{"_p_XCreateWindowEvent"},{0}};
13086 static swig_type_info _swigt__p_XDestroyWindowEvent[] = {{"_p_XDestroyWindowEvent", 0, "XDestroyWindowEvent *", 0},{"_p_XDestroyWindowEvent"},{0}};
13087 static swig_type_info _swigt__p_XCirculateEvent[] = {{"_p_XCirculateEvent", 0, "XCirculateEvent *", 0},{"_p_XCirculateEvent"},{0}};
13088 static swig_type_info _swigt__p_XConfigureEvent[] = {{"_p_XConfigureEvent", 0, "XConfigureEvent *", 0},{"_p_XConfigureEvent"},{0}};
13089 static swig_type_info _swigt__p_otk__OBProperty[] = {{"_p_otk__OBProperty", 0, "otk::OBProperty *", 0},{"_p_otk__OBProperty"},{0}};
13090 static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}};
13091 static swig_type_info _swigt__p_XTextProperty[] = {{"_p_XTextProperty", 0, "XTextProperty *", 0},{"_p_XTextProperty"},{0}};
13092 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}};
13093 static swig_type_info _swigt__p_XCirculateRequestEvent[] = {{"_p_XCirculateRequestEvent", 0, "XCirculateRequestEvent *", 0},{"_p_XCirculateRequestEvent"},{0}};
13094 static swig_type_info _swigt__p_XConfigureRequestEvent[] = {{"_p_XConfigureRequestEvent", 0, "XConfigureRequestEvent *", 0},{"_p_XConfigureRequestEvent"},{0}};
13095 static swig_type_info _swigt__p_XMapRequestEvent[] = {{"_p_XMapRequestEvent", 0, "XMapRequestEvent *", 0},{"_p_XMapRequestEvent"},{0}};
13096 static swig_type_info _swigt__p_XResizeRequestEvent[] = {{"_p_XResizeRequestEvent", 0, "XResizeRequestEvent *", 0},{"_p_XResizeRequestEvent"},{0}};
13097 static swig_type_info _swigt__p_XSelectionRequestEvent[] = {{"_p_XSelectionRequestEvent", 0, "XSelectionRequestEvent *", 0},{"_p_XSelectionRequestEvent"},{0}};
13098 static swig_type_info _swigt__otk__OBTimeoutHandler[] = {{"_otk__OBTimeoutHandler", 0, "otk::OBTimeoutHandler", 0},{"_otk__OBTimeoutHandler"},{0}};
13099 static swig_type_info _swigt__p_XftDraw[] = {{"_p_XftDraw", 0, "XftDraw *", 0},{"_p_XftDraw"},{0}};
13100 static swig_type_info _swigt__p_otk__ScreenInfo[] = {{"_p_otk__ScreenInfo", 0, "otk::ScreenInfo *", 0},{"_p_otk__ScreenInfo"},{0}};
13101 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}};
13102 static swig_type_info _swigt__p_otk__BTexture[] = {{"_p_otk__BTexture", 0, "otk::BTexture *", 0},{"_p_otk__BTexture"},{0}};
13103 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}};
13104 static swig_type_info _swigt__p_otk__BFont[] = {{"_p_otk__BFont", 0, "otk::BFont *", 0},{"_p_otk__BFont"},{0}};
13105 static swig_type_info _swigt__p_otk__Point[] = {{"_p_otk__Point", 0, "otk::Point *", 0},{"_p_otk__Point"},{0}};
13106 static swig_type_info _swigt__p_p_char[] = {{"_p_p_char", 0, "char **", 0},{"_p_p_char"},{0}};
13107 static swig_type_info _swigt__p_XMotionEvent[] = {{"_p_XMotionEvent", 0, "XMotionEvent *", 0},{"_p_XMotionEvent"},{0}};
13108 static swig_type_info _swigt__p_XButtonEvent[] = {{"_p_XButtonEvent", 0, "XButtonEvent *", 0},{"_p_XButtonEvent"},{0}};
13109 static swig_type_info _swigt__p_XSelectionEvent[] = {{"_p_XSelectionEvent", 0, "XSelectionEvent *", 0},{"_p_XSelectionEvent"},{0}};
13110 static swig_type_info _swigt__p_Pixmap[] = {{"_p_Pixmap", 0, "Pixmap *", 0},{"_p_Pixmap"},{0}};
13111 static swig_type_info _swigt__p_GC[] = {{"_p_GC", 0, "GC *", 0},{"_p_GC"},{0}};
13112 static swig_type_info _swigt__p_otk__OBTimerQueueManager[] = {{"_p_otk__OBTimerQueueManager", 0, "otk::OBTimerQueueManager *", 0},{"_p_otk__OBTimerQueueManager"},{0}};
13113 static swig_type_info _swigt__p_otk__OtkAppWidget[] = {{"_p_otk__OtkAppWidget", 0, "otk::OtkAppWidget *", 0},{"_p_otk__OtkAppWidget"},{0}};
13114 static swig_type_info _swigt__p_XKeyEvent[] = {{"_p_XKeyEvent", 0, "XKeyEvent *", 0},{"_p_XKeyEvent"},{0}};
13115 static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *", 0},{"_p_unsigned_long"},{0}};
13116 static swig_type_info _swigt__p_XEvent[] = {{"_p_XEvent", 0, "XEvent *", 0},{"_p_XEvent"},{0}};
13117 static swig_type_info _swigt__p_p_unsigned_long[] = {{"_p_p_unsigned_long", 0, "unsigned long **", 0},{"_p_p_unsigned_long"},{0}};
13118 static swig_type_info _swigt__p_std__string[] = {{"_p_std__string", 0, "std::string *", 0},{"_p_std__string"},{0}};
13119 static swig_type_info _swigt__p_XCrossingEvent[] = {{"_p_XCrossingEvent", 0, "XCrossingEvent *", 0},{"_p_XCrossingEvent"},{0}};
13120 static swig_type_info _swigt__p_XMappingEvent[] = {{"_p_XMappingEvent", 0, "XMappingEvent *", 0},{"_p_XMappingEvent"},{0}};
13121 static swig_type_info _swigt__p_otk__BGCCacheItem[] = {{"_p_otk__BGCCacheItem", 0, "otk::BGCCacheItem *", 0},{"_p_otk__BGCCacheItem"},{0}};
13122 static swig_type_info _swigt__p_p_unsigned_int[] = {{"_p_p_unsigned_int", 0, "unsigned int **", 0},{"_p_p_unsigned_int"},{0}};
13123 static swig_type_info _swigt__p_unsigned_int[] = {{"_p_unsigned_int", 0, "unsigned int *", 0},{"_p_unsigned_int"},{0}};
13124 static swig_type_info _swigt__p_p_unsigned_char[] = {{"_p_p_unsigned_char", 0, "unsigned char **", 0},{"_p_p_unsigned_char"},{0}};
13125 static swig_type_info _swigt__p_XClientMessageEvent[] = {{"_p_XClientMessageEvent", 0, "XClientMessageEvent *", 0},{"_p_XClientMessageEvent"},{0}};
13126 static swig_type_info _swigt__p_XGraphicsExposeEvent[] = {{"_p_XGraphicsExposeEvent", 0, "XGraphicsExposeEvent *", 0},{"_p_XGraphicsExposeEvent"},{0}};
13127 static swig_type_info _swigt__p_XExposeEvent[] = {{"_p_XExposeEvent", 0, "XExposeEvent *", 0},{"_p_XExposeEvent"},{0}};
13128 static swig_type_info _swigt__p_XFocusChangeEvent[] = {{"_p_XFocusChangeEvent", 0, "XFocusChangeEvent *", 0},{"_p_XFocusChangeEvent"},{0}};
13129 static swig_type_info _swigt__p_XNoExposeEvent[] = {{"_p_XNoExposeEvent", 0, "XNoExposeEvent *", 0},{"_p_XNoExposeEvent"},{0}};
13130 static swig_type_info _swigt__p_XMapEvent[] = {{"_p_XMapEvent", 0, "XMapEvent *", 0},{"_p_XMapEvent"},{0}};
13131 static swig_type_info _swigt__p_XUnmapEvent[] = {{"_p_XUnmapEvent", 0, "XUnmapEvent *", 0},{"_p_XUnmapEvent"},{0}};
13132 static swig_type_info _swigt__p_XColormapEvent[] = {{"_p_XColormapEvent", 0, "XColormapEvent *", 0},{"_p_XColormapEvent"},{0}};
13133
13134 static swig_type_info *swig_types_initial[] = {
13135 _swigt__p_otk__BGCCache,
13136 _swigt__p_otk__BColor,
13137 _swigt__p_otk__OBProperty__StringVect,
13138 _swigt__p_XFontStruct,
13139 _swigt__p_otk__Configuration,
13140 _swigt__p_otk__PixmapMask,
13141 _swigt__p_Atom,
13142 _swigt__p_otk__PointerAssassin,
13143 _swigt__p_otk__BImage,
13144 _swigt__p_otk__OBTimer,
13145 _swigt__p_otk__OtkWidget__OtkWidgetList,
13146 _swigt__p_bool,
13147 _swigt__p_otk__OBDisplay,
13148 _swigt__p_Display,
13149 _swigt__p_p_XColor,
13150 _swigt__p_XReparentEvent,
13151 _swigt__p_otk__BPen,
13152 _swigt__p_otk__BImageControl,
13153 _swigt__p_otk__OtkButton,
13154 _swigt__p_otk__Rect,
13155 _swigt__p_otk__Style,
13156 _swigt__p_XSelectionClearEvent,
13157 _swigt__p_Visual,
13158 _swigt__p_timeval,
13159 _swigt__p_int,
13160 _swigt__p_otk__Strut,
13161 _swigt__p_otk__OtkApplication,
13162 _swigt__p_XRectangle,
13163 _swigt__p_otk__OtkFocusWidget,
13164 _swigt__p_otk__OtkWidget,
13165 _swigt__p_Cursor,
13166 _swigt__p_Colormap,
13167 _swigt__p_XGravityEvent,
13168 _swigt__p_XVisibilityEvent,
13169 _swigt__p_XPropertyEvent,
13170 _swigt__p_Window,
13171 _swigt__p_otk__BGCCacheContext,
13172 _swigt__p_XCreateWindowEvent,
13173 _swigt__p_XDestroyWindowEvent,
13174 _swigt__p_XCirculateEvent,
13175 _swigt__p_XConfigureEvent,
13176 _swigt__p_otk__OBProperty,
13177 _swigt__p_long,
13178 _swigt__p_XTextProperty,
13179 _swigt__p_otk__OtkEventHandler,
13180 _swigt__p_XCirculateRequestEvent,
13181 _swigt__p_XConfigureRequestEvent,
13182 _swigt__p_XMapRequestEvent,
13183 _swigt__p_XResizeRequestEvent,
13184 _swigt__p_XSelectionRequestEvent,
13185 _swigt__otk__OBTimeoutHandler,
13186 _swigt__p_XftDraw,
13187 _swigt__p_otk__ScreenInfo,
13188 _swigt__p_otk__OtkFocusLabel,
13189 _swigt__p_otk__BTexture,
13190 _swigt__p_otk__OtkEventDispatcher,
13191 _swigt__p_otk__BFont,
13192 _swigt__p_otk__Point,
13193 _swigt__p_p_char,
13194 _swigt__p_XMotionEvent,
13195 _swigt__p_XButtonEvent,
13196 _swigt__p_XSelectionEvent,
13197 _swigt__p_Pixmap,
13198 _swigt__p_GC,
13199 _swigt__p_otk__OBTimerQueueManager,
13200 _swigt__p_otk__OtkAppWidget,
13201 _swigt__p_XKeyEvent,
13202 _swigt__p_unsigned_long,
13203 _swigt__p_XEvent,
13204 _swigt__p_p_unsigned_long,
13205 _swigt__p_std__string,
13206 _swigt__p_XCrossingEvent,
13207 _swigt__p_XMappingEvent,
13208 _swigt__p_otk__BGCCacheItem,
13209 _swigt__p_p_unsigned_int,
13210 _swigt__p_unsigned_int,
13211 _swigt__p_p_unsigned_char,
13212 _swigt__p_XClientMessageEvent,
13213 _swigt__p_XGraphicsExposeEvent,
13214 _swigt__p_XExposeEvent,
13215 _swigt__p_XFocusChangeEvent,
13216 _swigt__p_XNoExposeEvent,
13217 _swigt__p_XMapEvent,
13218 _swigt__p_XUnmapEvent,
13219 _swigt__p_XColormapEvent,
13220 0
13221 };
13222
13223
13224 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
13225
13226 static swig_const_info swig_const_table[] = {
13227 { SWIG_PY_INT, (char *)"OtkWidget_Horizontal", (long) otk::OtkWidget::Horizontal, 0, 0, 0},
13228 { SWIG_PY_INT, (char *)"OtkWidget_Vertical", (long) otk::OtkWidget::Vertical, 0, 0, 0},
13229 { SWIG_PY_INT, (char *)"OBProperty_Atom_Cardinal", (long) otk::OBProperty::Atom_Cardinal, 0, 0, 0},
13230 { SWIG_PY_INT, (char *)"OBProperty_Atom_Window", (long) otk::OBProperty::Atom_Window, 0, 0, 0},
13231 { SWIG_PY_INT, (char *)"OBProperty_Atom_Pixmap", (long) otk::OBProperty::Atom_Pixmap, 0, 0, 0},
13232 { SWIG_PY_INT, (char *)"OBProperty_Atom_Atom", (long) otk::OBProperty::Atom_Atom, 0, 0, 0},
13233 { SWIG_PY_INT, (char *)"OBProperty_Atom_String", (long) otk::OBProperty::Atom_String, 0, 0, 0},
13234 { SWIG_PY_INT, (char *)"OBProperty_Atom_Utf8", (long) otk::OBProperty::Atom_Utf8, 0, 0, 0},
13235 { SWIG_PY_INT, (char *)"OBProperty_openbox_pid", (long) otk::OBProperty::openbox_pid, 0, 0, 0},
13236 { SWIG_PY_INT, (char *)"OBProperty_wm_colormap_windows", (long) otk::OBProperty::wm_colormap_windows, 0, 0, 0},
13237 { SWIG_PY_INT, (char *)"OBProperty_wm_protocols", (long) otk::OBProperty::wm_protocols, 0, 0, 0},
13238 { SWIG_PY_INT, (char *)"OBProperty_wm_state", (long) otk::OBProperty::wm_state, 0, 0, 0},
13239 { SWIG_PY_INT, (char *)"OBProperty_wm_delete_window", (long) otk::OBProperty::wm_delete_window, 0, 0, 0},
13240 { SWIG_PY_INT, (char *)"OBProperty_wm_take_focus", (long) otk::OBProperty::wm_take_focus, 0, 0, 0},
13241 { SWIG_PY_INT, (char *)"OBProperty_wm_change_state", (long) otk::OBProperty::wm_change_state, 0, 0, 0},
13242 { SWIG_PY_INT, (char *)"OBProperty_wm_name", (long) otk::OBProperty::wm_name, 0, 0, 0},
13243 { SWIG_PY_INT, (char *)"OBProperty_wm_icon_name", (long) otk::OBProperty::wm_icon_name, 0, 0, 0},
13244 { SWIG_PY_INT, (char *)"OBProperty_wm_class", (long) otk::OBProperty::wm_class, 0, 0, 0},
13245 { SWIG_PY_INT, (char *)"OBProperty_motif_wm_hints", (long) otk::OBProperty::motif_wm_hints, 0, 0, 0},
13246 { SWIG_PY_INT, (char *)"OBProperty_blackbox_attributes", (long) otk::OBProperty::blackbox_attributes, 0, 0, 0},
13247 { SWIG_PY_INT, (char *)"OBProperty_blackbox_change_attributes", (long) otk::OBProperty::blackbox_change_attributes, 0, 0, 0},
13248 { SWIG_PY_INT, (char *)"OBProperty_blackbox_hints", (long) otk::OBProperty::blackbox_hints, 0, 0, 0},
13249 { SWIG_PY_INT, (char *)"OBProperty_blackbox_structure_messages", (long) otk::OBProperty::blackbox_structure_messages, 0, 0, 0},
13250 { SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_startup", (long) otk::OBProperty::blackbox_notify_startup, 0, 0, 0},
13251 { SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_window_add", (long) otk::OBProperty::blackbox_notify_window_add, 0, 0, 0},
13252 { SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_window_del", (long) otk::OBProperty::blackbox_notify_window_del, 0, 0, 0},
13253 { SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_window_focus", (long) otk::OBProperty::blackbox_notify_window_focus, 0, 0, 0},
13254 { SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_current_workspace", (long) otk::OBProperty::blackbox_notify_current_workspace, 0, 0, 0},
13255 { SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_workspace_count", (long) otk::OBProperty::blackbox_notify_workspace_count, 0, 0, 0},
13256 { SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_window_raise", (long) otk::OBProperty::blackbox_notify_window_raise, 0, 0, 0},
13257 { SWIG_PY_INT, (char *)"OBProperty_blackbox_notify_window_lower", (long) otk::OBProperty::blackbox_notify_window_lower, 0, 0, 0},
13258 { SWIG_PY_INT, (char *)"OBProperty_blackbox_change_workspace", (long) otk::OBProperty::blackbox_change_workspace, 0, 0, 0},
13259 { SWIG_PY_INT, (char *)"OBProperty_blackbox_change_window_focus", (long) otk::OBProperty::blackbox_change_window_focus, 0, 0, 0},
13260 { SWIG_PY_INT, (char *)"OBProperty_blackbox_cycle_window_focus", (long) otk::OBProperty::blackbox_cycle_window_focus, 0, 0, 0},
13261 { SWIG_PY_INT, (char *)"OBProperty_openbox_show_root_menu", (long) otk::OBProperty::openbox_show_root_menu, 0, 0, 0},
13262 { SWIG_PY_INT, (char *)"OBProperty_openbox_show_workspace_menu", (long) otk::OBProperty::openbox_show_workspace_menu, 0, 0, 0},
13263 { SWIG_PY_INT, (char *)"OBProperty_net_supported", (long) otk::OBProperty::net_supported, 0, 0, 0},
13264 { SWIG_PY_INT, (char *)"OBProperty_net_client_list", (long) otk::OBProperty::net_client_list, 0, 0, 0},
13265 { SWIG_PY_INT, (char *)"OBProperty_net_client_list_stacking", (long) otk::OBProperty::net_client_list_stacking, 0, 0, 0},
13266 { SWIG_PY_INT, (char *)"OBProperty_net_number_of_desktops", (long) otk::OBProperty::net_number_of_desktops, 0, 0, 0},
13267 { SWIG_PY_INT, (char *)"OBProperty_net_desktop_geometry", (long) otk::OBProperty::net_desktop_geometry, 0, 0, 0},
13268 { SWIG_PY_INT, (char *)"OBProperty_net_desktop_viewport", (long) otk::OBProperty::net_desktop_viewport, 0, 0, 0},
13269 { SWIG_PY_INT, (char *)"OBProperty_net_current_desktop", (long) otk::OBProperty::net_current_desktop, 0, 0, 0},
13270 { SWIG_PY_INT, (char *)"OBProperty_net_desktop_names", (long) otk::OBProperty::net_desktop_names, 0, 0, 0},
13271 { SWIG_PY_INT, (char *)"OBProperty_net_active_window", (long) otk::OBProperty::net_active_window, 0, 0, 0},
13272 { SWIG_PY_INT, (char *)"OBProperty_net_workarea", (long) otk::OBProperty::net_workarea, 0, 0, 0},
13273 { SWIG_PY_INT, (char *)"OBProperty_net_supporting_wm_check", (long) otk::OBProperty::net_supporting_wm_check, 0, 0, 0},
13274 { SWIG_PY_INT, (char *)"OBProperty_net_close_window", (long) otk::OBProperty::net_close_window, 0, 0, 0},
13275 { SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize", (long) otk::OBProperty::net_wm_moveresize, 0, 0, 0},
13276 { SWIG_PY_INT, (char *)"OBProperty_net_wm_name", (long) otk::OBProperty::net_wm_name, 0, 0, 0},
13277 { SWIG_PY_INT, (char *)"OBProperty_net_wm_visible_name", (long) otk::OBProperty::net_wm_visible_name, 0, 0, 0},
13278 { SWIG_PY_INT, (char *)"OBProperty_net_wm_icon_name", (long) otk::OBProperty::net_wm_icon_name, 0, 0, 0},
13279 { SWIG_PY_INT, (char *)"OBProperty_net_wm_visible_icon_name", (long) otk::OBProperty::net_wm_visible_icon_name, 0, 0, 0},
13280 { SWIG_PY_INT, (char *)"OBProperty_net_wm_desktop", (long) otk::OBProperty::net_wm_desktop, 0, 0, 0},
13281 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type", (long) otk::OBProperty::net_wm_window_type, 0, 0, 0},
13282 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state", (long) otk::OBProperty::net_wm_state, 0, 0, 0},
13283 { SWIG_PY_INT, (char *)"OBProperty_net_wm_strut", (long) otk::OBProperty::net_wm_strut, 0, 0, 0},
13284 { SWIG_PY_INT, (char *)"OBProperty_net_wm_allowed_actions", (long) otk::OBProperty::net_wm_allowed_actions, 0, 0, 0},
13285 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_desktop", (long) otk::OBProperty::net_wm_window_type_desktop, 0, 0, 0},
13286 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_dock", (long) otk::OBProperty::net_wm_window_type_dock, 0, 0, 0},
13287 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_toolbar", (long) otk::OBProperty::net_wm_window_type_toolbar, 0, 0, 0},
13288 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_menu", (long) otk::OBProperty::net_wm_window_type_menu, 0, 0, 0},
13289 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_utility", (long) otk::OBProperty::net_wm_window_type_utility, 0, 0, 0},
13290 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_splash", (long) otk::OBProperty::net_wm_window_type_splash, 0, 0, 0},
13291 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_dialog", (long) otk::OBProperty::net_wm_window_type_dialog, 0, 0, 0},
13292 { SWIG_PY_INT, (char *)"OBProperty_net_wm_window_type_normal", (long) otk::OBProperty::net_wm_window_type_normal, 0, 0, 0},
13293 { SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize_size_topleft", (long) otk::OBProperty::net_wm_moveresize_size_topleft, 0, 0, 0},
13294 { SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize_size_topright", (long) otk::OBProperty::net_wm_moveresize_size_topright, 0, 0, 0},
13295 { SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize_size_bottomleft", (long) otk::OBProperty::net_wm_moveresize_size_bottomleft, 0, 0, 0},
13296 { SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize_size_bottomright", (long) otk::OBProperty::net_wm_moveresize_size_bottomright, 0, 0, 0},
13297 { SWIG_PY_INT, (char *)"OBProperty_net_wm_moveresize_move", (long) otk::OBProperty::net_wm_moveresize_move, 0, 0, 0},
13298 { SWIG_PY_INT, (char *)"OBProperty_net_wm_action_move", (long) otk::OBProperty::net_wm_action_move, 0, 0, 0},
13299 { SWIG_PY_INT, (char *)"OBProperty_net_wm_action_resize", (long) otk::OBProperty::net_wm_action_resize, 0, 0, 0},
13300 { SWIG_PY_INT, (char *)"OBProperty_net_wm_action_shade", (long) otk::OBProperty::net_wm_action_shade, 0, 0, 0},
13301 { SWIG_PY_INT, (char *)"OBProperty_net_wm_action_maximize_horz", (long) otk::OBProperty::net_wm_action_maximize_horz, 0, 0, 0},
13302 { SWIG_PY_INT, (char *)"OBProperty_net_wm_action_maximize_vert", (long) otk::OBProperty::net_wm_action_maximize_vert, 0, 0, 0},
13303 { SWIG_PY_INT, (char *)"OBProperty_net_wm_action_change_desktop", (long) otk::OBProperty::net_wm_action_change_desktop, 0, 0, 0},
13304 { SWIG_PY_INT, (char *)"OBProperty_net_wm_action_close", (long) otk::OBProperty::net_wm_action_close, 0, 0, 0},
13305 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_modal", (long) otk::OBProperty::net_wm_state_modal, 0, 0, 0},
13306 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_maximized_vert", (long) otk::OBProperty::net_wm_state_maximized_vert, 0, 0, 0},
13307 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_maximized_horz", (long) otk::OBProperty::net_wm_state_maximized_horz, 0, 0, 0},
13308 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_shaded", (long) otk::OBProperty::net_wm_state_shaded, 0, 0, 0},
13309 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_skip_taskbar", (long) otk::OBProperty::net_wm_state_skip_taskbar, 0, 0, 0},
13310 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_skip_pager", (long) otk::OBProperty::net_wm_state_skip_pager, 0, 0, 0},
13311 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_hidden", (long) otk::OBProperty::net_wm_state_hidden, 0, 0, 0},
13312 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_fullscreen", (long) otk::OBProperty::net_wm_state_fullscreen, 0, 0, 0},
13313 { SWIG_PY_INT, (char *)"OBProperty_net_wm_state_floating", (long) otk::OBProperty::net_wm_state_floating, 0, 0, 0},
13314 { SWIG_PY_INT, (char *)"OBProperty_kde_net_system_tray_windows", (long) otk::OBProperty::kde_net_system_tray_windows, 0, 0, 0},
13315 { 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},
13316 { SWIG_PY_INT, (char *)"OBProperty_kde_net_wm_window_type_override", (long) otk::OBProperty::kde_net_wm_window_type_override, 0, 0, 0},
13317 { SWIG_PY_INT, (char *)"OBProperty_NUM_ATOMS", (long) otk::OBProperty::NUM_ATOMS, 0, 0, 0},
13318 { SWIG_PY_INT, (char *)"OBProperty_ascii", (long) otk::OBProperty::ascii, 0, 0, 0},
13319 { SWIG_PY_INT, (char *)"OBProperty_utf8", (long) otk::OBProperty::utf8, 0, 0, 0},
13320 { SWIG_PY_INT, (char *)"OBProperty_NUM_STRING_TYPE", (long) otk::OBProperty::NUM_STRING_TYPE, 0, 0, 0},
13321 { SWIG_PY_INT, (char *)"Style_ButtonFocus", (long) otk::Style::ButtonFocus, 0, 0, 0},
13322 { SWIG_PY_INT, (char *)"Style_ButtonUnfocus", (long) otk::Style::ButtonUnfocus, 0, 0, 0},
13323 { SWIG_PY_INT, (char *)"Style_TitleFocus", (long) otk::Style::TitleFocus, 0, 0, 0},
13324 { SWIG_PY_INT, (char *)"Style_TitleUnfocus", (long) otk::Style::TitleUnfocus, 0, 0, 0},
13325 { SWIG_PY_INT, (char *)"Style_LabelFocus", (long) otk::Style::LabelFocus, 0, 0, 0},
13326 { SWIG_PY_INT, (char *)"Style_LabelUnfocus", (long) otk::Style::LabelUnfocus, 0, 0, 0},
13327 { SWIG_PY_INT, (char *)"Style_HandleFocus", (long) otk::Style::HandleFocus, 0, 0, 0},
13328 { SWIG_PY_INT, (char *)"Style_HandleUnfocus", (long) otk::Style::HandleUnfocus, 0, 0, 0},
13329 { SWIG_PY_INT, (char *)"Style_GripFocus", (long) otk::Style::GripFocus, 0, 0, 0},
13330 { SWIG_PY_INT, (char *)"Style_GripUnfocus", (long) otk::Style::GripUnfocus, 0, 0, 0},
13331 { SWIG_PY_INT, (char *)"Style_LeftJustify", (long) otk::Style::LeftJustify, 0, 0, 0},
13332 { SWIG_PY_INT, (char *)"Style_RightJustify", (long) otk::Style::RightJustify, 0, 0, 0},
13333 { SWIG_PY_INT, (char *)"Style_CenterJustify", (long) otk::Style::CenterJustify, 0, 0, 0},
13334 { SWIG_PY_INT, (char *)"Style_RoundBullet", (long) otk::Style::RoundBullet, 0, 0, 0},
13335 { SWIG_PY_INT, (char *)"Style_TriangleBullet", (long) otk::Style::TriangleBullet, 0, 0, 0},
13336 { SWIG_PY_INT, (char *)"Style_SquareBullet", (long) otk::Style::SquareBullet, 0, 0, 0},
13337 { SWIG_PY_INT, (char *)"Style_NoBullet", (long) otk::Style::NoBullet, 0, 0, 0},
13338 { SWIG_PY_INT, (char *)"BTexture_NoTexture", (long) otk::BTexture::NoTexture, 0, 0, 0},
13339 { SWIG_PY_INT, (char *)"BTexture_Flat", (long) otk::BTexture::Flat, 0, 0, 0},
13340 { SWIG_PY_INT, (char *)"BTexture_Sunken", (long) otk::BTexture::Sunken, 0, 0, 0},
13341 { SWIG_PY_INT, (char *)"BTexture_Raised", (long) otk::BTexture::Raised, 0, 0, 0},
13342 { SWIG_PY_INT, (char *)"BTexture_Solid", (long) otk::BTexture::Solid, 0, 0, 0},
13343 { SWIG_PY_INT, (char *)"BTexture_Gradient", (long) otk::BTexture::Gradient, 0, 0, 0},
13344 { SWIG_PY_INT, (char *)"BTexture_Horizontal", (long) otk::BTexture::Horizontal, 0, 0, 0},
13345 { SWIG_PY_INT, (char *)"BTexture_Vertical", (long) otk::BTexture::Vertical, 0, 0, 0},
13346 { SWIG_PY_INT, (char *)"BTexture_Diagonal", (long) otk::BTexture::Diagonal, 0, 0, 0},
13347 { SWIG_PY_INT, (char *)"BTexture_CrossDiagonal", (long) otk::BTexture::CrossDiagonal, 0, 0, 0},
13348 { SWIG_PY_INT, (char *)"BTexture_Rectangle", (long) otk::BTexture::Rectangle, 0, 0, 0},
13349 { SWIG_PY_INT, (char *)"BTexture_Pyramid", (long) otk::BTexture::Pyramid, 0, 0, 0},
13350 { SWIG_PY_INT, (char *)"BTexture_PipeCross", (long) otk::BTexture::PipeCross, 0, 0, 0},
13351 { SWIG_PY_INT, (char *)"BTexture_Elliptic", (long) otk::BTexture::Elliptic, 0, 0, 0},
13352 { SWIG_PY_INT, (char *)"BTexture_Bevel1", (long) otk::BTexture::Bevel1, 0, 0, 0},
13353 { SWIG_PY_INT, (char *)"BTexture_Bevel2", (long) otk::BTexture::Bevel2, 0, 0, 0},
13354 { SWIG_PY_INT, (char *)"BTexture_Border", (long) otk::BTexture::Border, 0, 0, 0},
13355 { SWIG_PY_INT, (char *)"BTexture_Invert", (long) otk::BTexture::Invert, 0, 0, 0},
13356 { SWIG_PY_INT, (char *)"BTexture_Parent_Relative", (long) otk::BTexture::Parent_Relative, 0, 0, 0},
13357 { SWIG_PY_INT, (char *)"BTexture_Interlaced", (long) otk::BTexture::Interlaced, 0, 0, 0},
13358 {0}};
13359
13360 #ifdef __cplusplus
13361 }
13362 #endif
13363
13364 #ifdef __cplusplus
13365 extern "C"
13366 #endif
13367 SWIGEXPORT(void) SWIG_init(void) {
13368 static PyObject *SWIG_globals = 0;
13369 static int typeinit = 0;
13370 PyObject *m, *d;
13371 int i;
13372 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
13373 m = Py_InitModule((char *) SWIG_name, SwigMethods);
13374 d = PyModule_GetDict(m);
13375
13376 if (!typeinit) {
13377 for (i = 0; swig_types_initial[i]; i++) {
13378 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
13379 }
13380 typeinit = 1;
13381 }
13382 SWIG_InstallConstants(d,swig_const_table);
13383
13384 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
13385 SWIG_addvarlink(SWIG_globals,(char*)"OBDisplay_display",_wrap_OBDisplay_display_get, _wrap_OBDisplay_display_set);
13386 SWIG_addvarlink(SWIG_globals,(char*)"BSENTINEL",_wrap_BSENTINEL_get, _wrap_BSENTINEL_set);
13387 }
13388
This page took 0.705202 seconds and 4 git commands to generate.