]> Dogcows Code - chaz/openbox/commitdiff
rm prefixes for all elements in the otk namepsace
authorDana Jansens <danakj@orodu.net>
Sat, 11 Jan 2003 19:17:13 +0000 (19:17 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 11 Jan 2003 19:17:13 +0000 (19:17 +0000)
49 files changed:
otk/application.cc
otk/application.hh
otk/appwidget.cc
otk/appwidget.hh
otk/assassin.hh
otk/button.cc
otk/button.hh
otk/color.cc
otk/color.hh
otk/display.cc
otk/display.hh
otk/eventdispatcher.cc
otk/eventdispatcher.hh
otk/eventhandler.cc
otk/eventhandler.hh
otk/focuslabel.cc
otk/focuslabel.hh
otk/focuswidget.cc
otk/focuswidget.hh
otk/font.cc
otk/font.hh
otk/gccache.cc
otk/gccache.hh
otk/image.cc
otk/image.hh
otk/imagecontrol.cc
otk/label.cc
otk/label.hh
otk/otk.hh
otk/otk.py [deleted file]
otk/otk_test.cc
otk/otk_wrap.cc [deleted file]
otk/property.cc
otk/property.hh
otk/rect.hh
otk/screeninfo.cc
otk/screeninfo.hh
otk/style.cc
otk/style.hh
otk/texture.cc
otk/texture.hh
otk/timer.cc
otk/timer.hh
otk/timerqueue.hh
otk/timerqueuemanager.cc
otk/timerqueuemanager.hh
otk/util.hh
otk/widget.cc
otk/widget.hh

index dedefaef4b527a4fb9930a377fc229e0b09633a8..fda65dc1fd0ec84a8881564cb0cdc5172a31cd42 100644 (file)
@@ -18,37 +18,37 @@ extern "C" {
 
 namespace otk {
 
-OtkApplication::OtkApplication(int argc, char **argv)
-  : OtkEventDispatcher(),
+Application::Application(int argc, char **argv)
+  : EventDispatcher(),
     _dockable(false),
     _appwidget_count(0)
 {
-  argc = argc;
-  argv = argv;
+  (void)argc;
+  (void)argv;
 
-  OBDisplay::initialize(0);
+  Display::initialize(0);
   const ScreenInfo *s_info =
-    OBDisplay::screenInfo(DefaultScreen(OBDisplay::display));
+    Display::screenInfo(DefaultScreen(Display::display));
 
-  _timer_manager = new OBTimerQueueManager();
-  _img_ctrl = new BImageControl(_timer_manager, s_info, True, 4, 5, 200);
+  _timer_manager = new TimerQueueManager();
+  _img_ctrl = new ImageControl(_timer_manager, s_info, True, 4, 5, 200);
   _style_conf = new Configuration(False);
   _style = new Style(_img_ctrl);
 
   loadStyle();
 }
 
-OtkApplication::~OtkApplication()
+Application::~Application()
 {
   delete _style_conf;
   delete _img_ctrl;
   delete _timer_manager;
   delete _style;
   
-  OBDisplay::destroy();
+  Display::destroy();
 }
 
-void OtkApplication::loadStyle(void)
+void Application::loadStyle(void)
 {
   // find the style name as a property
   std::string style = "/usr/local/share/openbox/styles/artwiz";
@@ -60,12 +60,12 @@ void OtkApplication::loadStyle(void)
   _style->load(*_style_conf);
 }
 
-void OtkApplication::run(void)
+void Application::run(void)
 {
   if (_appwidget_count <= 0) {
     std::cerr << "ERROR: No main widgets exist. You must create and show() " <<
-      "an OtkAppWidget for the OtkApplication before calling " <<
-      "OtkApplication::run().\n";
+      "an AppWidget for the Application before calling " <<
+      "Application::run().\n";
     ::exit(1);
   }
 
index 63fb4195a5286c0d6ec4d4f0c8ddc0d30de97e3e..220185ad49198a0d2dfb0d50f83c86699b843992 100644 (file)
@@ -1,3 +1,4 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef __application_hh
 #define __application_hh
 
 
 namespace otk {
 
-class OtkAppWidget;
+class AppWidget;
 
-class OtkApplication : public OtkEventDispatcher {
+class Application : public EventDispatcher {
 
 public:
 
-  OtkApplication(int argc, char **argv);
-  virtual ~OtkApplication();
+  Application(int argc, char **argv);
+  virtual ~Application();
 
   virtual void run(void);
   // more bummy cool functionality
@@ -25,21 +26,21 @@ public:
   void setDockable(bool dockable) { _dockable = dockable; }
   inline bool isDockable(void) const { return _dockable; }
 
-  inline otk::Style *getStyle(void) const { return _style; }
+  inline Style *getStyle(void) const { return _style; }
   // more accessors
 
 private:
   void loadStyle(void);
 
-  OBTimerQueueManager *_timer_manager;
-  BImageControl *_img_ctrl;
+  TimerQueueManager *_timer_manager;
+  ImageControl *_img_ctrl;
   Configuration *_style_conf;
   Style *_style;
   bool _dockable;
 
   int _appwidget_count;
 
-  friend class OtkAppWidget;
+  friend class AppWidget;
 };
 
 }
index fd25f16145e02b5c02c1fe72f70fe8b3f539e906..7541d427b8c389bfa8a35a8c601b84c807938594 100644 (file)
@@ -13,44 +13,44 @@ extern "C" {
 
 namespace otk {
 
-OtkAppWidget::OtkAppWidget(OtkApplication *app, Direction direction,
+AppWidget::AppWidget(Application *app, Direction direction,
                            Cursor cursor, int bevel_width)
-  : OtkWidget(app, app->getStyle(), direction, cursor, bevel_width),
+  : Widget(app, app->getStyle(), direction, cursor, bevel_width),
     _application(app)
 {
   assert(app);
 
-  _wm_protocols = XInternAtom(OBDisplay::display, "WM_PROTOCOLS", false);
-  _wm_delete = XInternAtom(OBDisplay::display, "WM_DELETE_WINDOW", false);
+  _wm_protocols = XInternAtom(Display::display, "WM_PROTOCOLS", false);
+  _wm_delete = XInternAtom(Display::display, "WM_DELETE_WINDOW", false);
 
   // set WM Protocols on the window
   Atom protocols[2];
   protocols[0] = _wm_protocols;
   protocols[1] = _wm_delete;
-  XSetWMProtocols(OBDisplay::display, window(), protocols, 2);
+  XSetWMProtocols(Display::display, window(), protocols, 2);
 }
 
-OtkAppWidget::~OtkAppWidget()
+AppWidget::~AppWidget()
 {
 }
 
-void OtkAppWidget::show(void)
+void AppWidget::show(void)
 {
-  OtkWidget::show(true);
+  Widget::show(true);
 
   _application->_appwidget_count++;
 }
 
-void OtkAppWidget::hide(void)
+void AppWidget::hide(void)
 {
-  OtkWidget::hide();
+  Widget::hide();
 
   _application->_appwidget_count--;
 }
 
-void OtkAppWidget::clientMessageHandler(const XClientMessageEvent &e)
+void AppWidget::clientMessageHandler(const XClientMessageEvent &e)
 {
-  OtkEventHandler::clientMessageHandler(e);
+  EventHandler::clientMessageHandler(e);
   if (e.message_type == _wm_protocols &&
       static_cast<Atom>(e.data.l[0]) == _wm_delete)
     hide();
index d33f2caa331ab1bc2408711becca99293e994646..7a5cf74ded68b457a2eed1274356ca58e1e10a20 100644 (file)
@@ -1,3 +1,4 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef __appwidget_hh
 #define __appwidget_hh
 
@@ -5,14 +6,14 @@
 
 namespace otk {
 
-class OtkApplication;
+class Application;
 
-class OtkAppWidget : public OtkWidget {
+class AppWidget : public Widget {
 
 public:
-  OtkAppWidget(OtkApplication *app, Direction direction = Horizontal,
-               Cursor cursor = 0, int bevel_width = 1);
-  virtual ~OtkAppWidget();
+  AppWidget(Application *app, Direction direction = Horizontal,
+            Cursor cursor = 0, int bevel_width = 1);
+  virtual ~AppWidget();
 
   virtual void show(void);
   virtual void hide(void);
@@ -21,7 +22,7 @@ public:
   
 private:
 
-  OtkApplication *_application;
+  Application *_application;
   Atom _wm_protocols;
   Atom _wm_delete;
 };
index 89e98153c20f92b45054edc28c5331b237945f53..5caf17f0a2f3279d10c94dade15cc9154ce53117 100644 (file)
@@ -1,3 +1,4 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef __assassin_hh
 #define __assassin_hh
 
index 9f3930873e20453bc50969c26ed474a28039de7b..bc994b2fc0a4b5f3c3ea47f4a63bed24e3932fd5 100644 (file)
@@ -8,20 +8,20 @@
 
 namespace otk {
 
-OtkButton::OtkButton(OtkWidget *parent)
-  : OtkFocusLabel(parent), _pressed(false), _pressed_focus_tx(0),
+Button::Button(Widget *parent)
+  : FocusLabel(parent), _pressed(false), _pressed_focus_tx(0),
     _pressed_unfocus_tx(0), _unpr_focus_tx(0), _unpr_unfocus_tx(0)
 {
 }
 
-OtkButton::~OtkButton()
+Button::~Button()
 {
 }
 
 
-void OtkButton::setStyle(Style *style)
+void Button::setStyle(Style *style)
 {
-  OtkFocusLabel::setStyle(style);
+  FocusLabel::setStyle(style);
   
   setTexture(style->getButtonFocus());
   setUnfocusTexture(style->getButtonUnfocus());
@@ -30,51 +30,51 @@ void OtkButton::setStyle(Style *style)
 }
 
 
-void OtkButton::press(unsigned int mouse_button)
+void Button::press(unsigned int mouse_button)
 {
   if (_pressed) return;
 
   if (_pressed_focus_tx)
-    OtkFocusWidget::setTexture(_pressed_focus_tx);
+    FocusWidget::setTexture(_pressed_focus_tx);
   if (_pressed_unfocus_tx)
-    OtkFocusWidget::setUnfocusTexture(_pressed_unfocus_tx);
+    FocusWidget::setUnfocusTexture(_pressed_unfocus_tx);
   _pressed = true;
   _mouse_button = mouse_button;
 }
 
-void OtkButton::release(unsigned int mouse_button)
+void Button::release(unsigned int mouse_button)
 {
   if (_mouse_button != mouse_button) return; // wrong button
 
-  OtkFocusWidget::setTexture(_unpr_focus_tx);
-  OtkFocusWidget::setUnfocusTexture(_unpr_unfocus_tx);
+  FocusWidget::setTexture(_unpr_focus_tx);
+  FocusWidget::setUnfocusTexture(_unpr_unfocus_tx);
   _pressed = false;
 }
 
-void OtkButton::setTexture(BTexture *texture)
+void Button::setTexture(Texture *texture)
 {
-  OtkFocusWidget::setTexture(texture);
+  FocusWidget::setTexture(texture);
   _unpr_focus_tx = texture;
 }
 
-void OtkButton::setUnfocusTexture(BTexture *texture)
+void Button::setUnfocusTexture(Texture *texture)
 {
-  OtkFocusWidget::setUnfocusTexture(texture);
+  FocusWidget::setUnfocusTexture(texture);
   _unpr_unfocus_tx = texture;
 }
 
-void OtkButton::buttonPressHandler(const XButtonEvent &e)
+void Button::buttonPressHandler(const XButtonEvent &e)
 {
   press(e.button);
   update();
-  OtkFocusWidget::buttonPressHandler(e);
+  FocusWidget::buttonPressHandler(e);
 }
 
-void OtkButton::buttonReleaseHandler(const XButtonEvent &e)
+void Button::buttonReleaseHandler(const XButtonEvent &e)
 {
   release(e.button);
   update();
-  OtkFocusWidget::buttonReleaseHandler(e);
+  FocusWidget::buttonReleaseHandler(e);
 }
 
 }
index 17ddce03befae988effdbbfabd130a2164ed5be2..fd2e5e4494f8fb91f75d3777d04b84ebe5236821 100644 (file)
@@ -1,3 +1,4 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef __button_hh
 #define __button_hh
 
@@ -5,25 +6,25 @@
 
 namespace otk {
 
-class OtkButton : public OtkFocusLabel {
+class Button : public FocusLabel {
 
 public:
 
-  OtkButton(OtkWidget *parent);
-  ~OtkButton();
+  Button(Widget *parent);
+  ~Button();
 
-  inline const otk::BTexture *getPressedFocusTexture(void) const
+  inline const Texture *getPressedFocusTexture(void) const
   { return _pressed_focus_tx; }
-  void setPressedFocusTexture(otk::BTexture *texture)
+  void setPressedFocusTexture(Texture *texture)
   { _pressed_focus_tx = texture; }
 
-  inline const otk::BTexture *getPressedUnfocusTexture(void) const
+  inline const Texture *getPressedUnfocusTexture(void) const
   { return _pressed_unfocus_tx; }
-  void setPressedUnfocusTexture(otk::BTexture *texture)
+  void setPressedUnfocusTexture(Texture *texture)
   { _pressed_unfocus_tx = texture; }
 
-  void setTexture(otk::BTexture *texture);
-  void setUnfocusTexture(otk::BTexture *texture);
+  void setTexture(Texture *texture);
+  void setUnfocusTexture(Texture *texture);
 
   inline bool isPressed(void) const { return _pressed; }
   void press(unsigned int mouse_button);
@@ -32,18 +33,18 @@ public:
   void buttonPressHandler(const XButtonEvent &e);
   void buttonReleaseHandler(const XButtonEvent &e);
 
-  virtual void setStyle(otk::Style *style);
+  virtual void setStyle(Style *style);
   
 private:
 
   bool _pressed;
   unsigned int _mouse_button;
 
-  BTexture *_pressed_focus_tx;
-  BTexture *_pressed_unfocus_tx;
+  Texture *_pressed_focus_tx;
+  Texture *_pressed_unfocus_tx;
 
-  BTexture *_unpr_focus_tx;
-  BTexture *_unpr_unfocus_tx;
+  Texture *_unpr_focus_tx;
+  Texture *_unpr_unfocus_tx;
 };
 
 }
index f150082c00333f131fcbc786b7954411ab0015a7..d8c8f1d1543a191d2a3e6a897efe7b5d7e52a215 100644 (file)
@@ -16,31 +16,31 @@ extern "C" {
 
 namespace otk {
 
-BColor::ColorCache BColor::colorcache;
-bool BColor::cleancache = false;
+Color::ColorCache Color::colorcache;
+bool Color::cleancache = false;
 
-BColor::BColor(unsigned int _screen)
+Color::Color(unsigned int _screen)
   : allocated(false), r(-1), g(-1), b(-1), p(0), scrn(_screen)
 {}
 
-BColor::BColor(int _r, int _g, int _b, unsigned int _screen)
+Color::Color(int _r, int _g, int _b, unsigned int _screen)
   : allocated(false), r(_r), g(_g), b(_b), p(0), scrn(_screen)
 {}
 
 
-BColor::BColor(const std::string &_name, unsigned int _screen)
+Color::Color(const std::string &_name, unsigned int _screen)
   : allocated(false), r(-1), g(-1), b(-1), p(0), scrn(_screen),
     colorname(_name) {
   parseColorName();
 }
 
 
-BColor::~BColor(void) {
+Color::~Color(void) {
   deallocate();
 }
 
 
-void BColor::setScreen(unsigned int _screen) {
+void Color::setScreen(unsigned int _screen) {
   if (_screen == screen()) {
     // nothing to do
     return;
@@ -56,10 +56,10 @@ void BColor::setScreen(unsigned int _screen) {
 }
 
 
-unsigned long BColor::pixel(void) const {
+unsigned long Color::pixel(void) const {
   if (! allocated) {
     // mutable
-    BColor *that = (BColor *) this;
+    Color *that = (Color *) this;
     that->allocate();
   }
 
@@ -67,15 +67,15 @@ unsigned long BColor::pixel(void) const {
 }
 
 
-void BColor::parseColorName(void) {
+void Color::parseColorName(void) {
   if (colorname.empty()) {
-    fprintf(stderr, "BColor: empty colorname, cannot parse (using black)\n");
+    fprintf(stderr, "Color: empty colorname, cannot parse (using black)\n");
     setRGB(0, 0, 0);
   }
 
   if (scrn == ~(0u))
-    scrn = DefaultScreen(OBDisplay::display);
-  Colormap colormap = OBDisplay::screenInfo(scrn)->colormap();
+    scrn = DefaultScreen(Display::display);
+  Colormap colormap = Display::screenInfo(scrn)->colormap();
 
   // get rgb values from colorname
   XColor xcol;
@@ -84,9 +84,9 @@ void BColor::parseColorName(void) {
   xcol.blue = 0;
   xcol.pixel = 0;
 
-  if (! XParseColor(OBDisplay::display, colormap,
+  if (! XParseColor(Display::display, colormap,
                     colorname.c_str(), &xcol)) {
-    fprintf(stderr, "BColor::allocate: color parse error: \"%s\"\n",
+    fprintf(stderr, "Color::allocate: color parse error: \"%s\"\n",
             colorname.c_str());
     setRGB(0, 0, 0);
     return;
@@ -96,13 +96,13 @@ void BColor::parseColorName(void) {
 }
 
 
-void BColor::allocate(void) {
-  if (scrn == ~(0u)) scrn = DefaultScreen(OBDisplay::display);
-  Colormap colormap = OBDisplay::screenInfo(scrn)->colormap();
+void Color::allocate(void) {
+  if (scrn == ~(0u)) scrn = DefaultScreen(Display::display);
+  Colormap colormap = Display::screenInfo(scrn)->colormap();
 
   if (! isValid()) {
     if (colorname.empty()) {
-      fprintf(stderr, "BColor: cannot allocate invalid color (using black)\n");
+      fprintf(stderr, "Color: cannot allocate invalid color (using black)\n");
       setRGB(0, 0, 0);
     } else {
       parseColorName();
@@ -127,8 +127,8 @@ void BColor::allocate(void) {
   xcol.blue =  b | b << 8;
   xcol.pixel = 0;
 
-  if (! XAllocColor(OBDisplay::display, colormap, &xcol)) {
-    fprintf(stderr, "BColor::allocate: color alloc error: rgb:%x/%x/%x\n",
+  if (! XAllocColor(Display::display, colormap, &xcol)) {
+    fprintf(stderr, "Color::allocate: color alloc error: rgb:%x/%x/%x\n",
             r, g, b);
     xcol.pixel = 0;
   }
@@ -143,7 +143,7 @@ void BColor::allocate(void) {
 }
 
 
-void BColor::deallocate(void) {
+void Color::deallocate(void) {
   if (! allocated)
     return;
 
@@ -160,7 +160,7 @@ void BColor::deallocate(void) {
 }
 
 
-BColor &BColor::operator=(const BColor &c) {
+Color &Color::operator=(const Color &c) {
   deallocate();
 
   setRGB(c.r, c.g, c.b);
@@ -170,12 +170,12 @@ BColor &BColor::operator=(const BColor &c) {
 }
 
 
-void BColor::cleanupColorCache(void) {
+void Color::cleanupColorCache(void) {
   cleancache = true;
 }
 
 
-void BColor::doCacheCleanup(void) {
+void Color::doCacheCleanup(void) {
   // ### TODO - support multiple displays!
   ColorCache::iterator it = colorcache.begin();
   if (it == colorcache.end()) {
@@ -187,7 +187,7 @@ void BColor::doCacheCleanup(void) {
   int i;
   unsigned count;
 
-  for (i = 0; i < ScreenCount(OBDisplay::display); i++) {
+  for (i = 0; i < ScreenCount(Display::display); i++) {
     count = 0;
     it = colorcache.begin();
 
@@ -204,8 +204,8 @@ void BColor::doCacheCleanup(void) {
     }
 
     if (count > 0)
-      XFreeColors(OBDisplay::display,
-                  OBDisplay::screenInfo(i)->colormap(),
+      XFreeColors(Display::display,
+                  Display::screenInfo(i)->colormap(),
                   pixels, count, 0);
   }
 
index cbbff6468e95e7f75ab37d7de8d5b591306d322b..7fe281b475c2733f2c81e68a8d209d5b522523f0 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
-#ifndef COLOR_HH
-#define COLOR_HH
+#ifndef __color_hh
+#define __color_hh
 
 extern "C" {
 #include <X11/Xlib.h>
@@ -11,12 +11,12 @@ extern "C" {
 
 namespace otk {
 
-class BColor {
+class Color {
 public:
-  BColor(unsigned int _screen = ~(0u));
-  BColor(int _r, int _g, int _b, unsigned int _screen = ~(0u));
-  BColor(const std::string &_name, unsigned int _screen = ~(0u));
-  ~BColor(void);
+  Color(unsigned int _screen = ~(0u));
+  Color(int _r, int _g, int _b, unsigned int _screen = ~(0u));
+  Color(const std::string &_name, unsigned int _screen = ~(0u));
+  ~Color(void);
 
   inline const std::string &name(void) const { return colorname; }
 
@@ -41,11 +41,11 @@ public:
 
   // operators
 #ifndef SWIG
-  BColor &operator=(const BColor &c);
+  Color &operator=(const Color &c);
 #endif
-  inline bool operator==(const BColor &c) const
+  inline bool operator==(const Color &c) const
   { return (r == c.r && b == c.b && b == c.b); }
-  inline bool operator!=(const BColor &c) const
+  inline bool operator!=(const Color &c) const
   { return (! operator==(c)); }
 
   static void cleanupColorCache(void);
@@ -99,4 +99,4 @@ private:
 
 }
 
-#endif // COLOR_HH
+#endif // __color_hh
index 98288bd02dcdf54990437673a55fb1e9d14264f4..05a937e0cf937097f6a87c887f17568dc0729c4c 100644 (file)
@@ -48,22 +48,22 @@ extern "C" {
 namespace otk {
 
 
-Display *OBDisplay::display = (Display*) 0;
-bool OBDisplay::_xkb = false;
-int  OBDisplay::_xkb_event_basep = 0;
-bool OBDisplay::_shape = false;
-int  OBDisplay::_shape_event_basep = 0;
-bool OBDisplay::_xinerama = false;
-int  OBDisplay::_xinerama_event_basep = 0;
-unsigned int OBDisplay::_mask_list[8];
-unsigned int OBDisplay::_scrollLockMask = 0;
-unsigned int OBDisplay::_numLockMask = 0;
-OBDisplay::ScreenInfoList OBDisplay::_screenInfoList;
-BGCCache *OBDisplay::_gccache = (BGCCache*) 0;
-int OBDisplay::_grab_count = 0;
-
-
-int OBDisplay::xerrorHandler(Display *d, XErrorEvent *e)
+::Display *Display::display = (::Display*) 0;
+bool Display::_xkb = false;
+int  Display::_xkb_event_basep = 0;
+bool Display::_shape = false;
+int  Display::_shape_event_basep = 0;
+bool Display::_xinerama = false;
+int  Display::_xinerama_event_basep = 0;
+unsigned int Display::_mask_list[8];
+unsigned int Display::_scrollLockMask = 0;
+unsigned int Display::_numLockMask = 0;
+Display::ScreenInfoList Display::_screenInfoList;
+GCCache *Display::_gccache = (GCCache*) 0;
+int Display::_grab_count = 0;
+
+
+int Display::xerrorHandler(::Display *d, XErrorEvent *e)
 {
 #ifdef DEBUG
   char errtxt[128];
@@ -84,7 +84,7 @@ int OBDisplay::xerrorHandler(Display *d, XErrorEvent *e)
 }
 
 
-void OBDisplay::initialize(char *name)
+void Display::initialize(char *name)
 {
   int junk;
   (void)junk;
@@ -166,11 +166,11 @@ line argument.\n\n"));
   for (int i = 0; i < ScreenCount(display); ++i)
     _screenInfoList.push_back(ScreenInfo(i));
 
-  _gccache = new BGCCache(_screenInfoList.size());
+  _gccache = new GCCache(_screenInfoList.size());
 }
 
 
-void OBDisplay::destroy()
+void Display::destroy()
 {
   delete _gccache;
   while (_grab_count > 0)
@@ -179,14 +179,14 @@ void OBDisplay::destroy()
 }
 
 
-const ScreenInfo* OBDisplay::screenInfo(int snum) {
+const ScreenInfo* Display::screenInfo(int snum) {
   assert(snum >= 0);
   assert(snum < static_cast<int>(_screenInfoList.size()));
   return &_screenInfoList[snum];
 }
 
 
-const ScreenInfo* OBDisplay::findScreen(Window root)
+const ScreenInfo* Display::findScreen(Window root)
 {
   ScreenInfoList::iterator it, end = _screenInfoList.end();
   for (it = _screenInfoList.begin(); it != end; ++it)
@@ -196,7 +196,7 @@ const ScreenInfo* OBDisplay::findScreen(Window root)
 }
 
 
-void OBDisplay::grab()
+void Display::grab()
 {
   if (_grab_count == 0)
     XGrabServer(display);
@@ -204,7 +204,7 @@ void OBDisplay::grab()
 }
 
 
-void OBDisplay::ungrab()
+void Display::ungrab()
 {
   if (_grab_count == 0) return;
   _grab_count--;
@@ -225,7 +225,7 @@ void OBDisplay::ungrab()
  * if allow_scroll_lock is true then only the top half of the lock mask
  * table is used and scroll lock is ignored.  This value defaults to false.
  */
-void OBDisplay::grabButton(unsigned int button, unsigned int modifiers,
+void Display::grabButton(unsigned int button, unsigned int modifiers,
                          Window grab_window, bool owner_events,
                          unsigned int event_mask, int pointer_mode,
                          int keyboard_mode, Window confine_to,
@@ -233,7 +233,7 @@ void OBDisplay::grabButton(unsigned int button, unsigned int modifiers,
   unsigned int length = (allow_scroll_lock) ? 8 / 2:
                                               8;
   for (size_t cnt = 0; cnt < length; ++cnt)
-    XGrabButton(otk::OBDisplay::display, button, modifiers | _mask_list[cnt],
+    XGrabButton(Display::display, button, modifiers | _mask_list[cnt],
                 grab_window, owner_events, event_mask, pointer_mode,
                 keyboard_mode, confine_to, cursor);
 }
@@ -243,14 +243,14 @@ void OBDisplay::grabButton(unsigned int button, unsigned int modifiers,
  * Releases the grab on a button, and ungrabs all possible combinations of the
  * keyboard lock keys.
  */
-void OBDisplay::ungrabButton(unsigned int button, unsigned int modifiers,
+void Display::ungrabButton(unsigned int button, unsigned int modifiers,
                            Window grab_window) {
   for (size_t cnt = 0; cnt < 8; ++cnt)
-    XUngrabButton(otk::OBDisplay::display, button, modifiers | _mask_list[cnt],
+    XUngrabButton(Display::display, button, modifiers | _mask_list[cnt],
                   grab_window);
 }
 
-void OBDisplay::grabKey(unsigned int keycode, unsigned int modifiers,
+void Display::grabKey(unsigned int keycode, unsigned int modifiers,
                         Window grab_window, bool owner_events,
                         int pointer_mode, int keyboard_mode,
                         bool allow_scroll_lock)
@@ -258,15 +258,15 @@ void OBDisplay::grabKey(unsigned int keycode, unsigned int modifiers,
   unsigned int length = (allow_scroll_lock) ? 8 / 2:
                                               8;
   for (size_t cnt = 0; cnt < length; ++cnt)
-    XGrabKey(otk::OBDisplay::display, keycode, modifiers | _mask_list[cnt],
+    XGrabKey(Display::display, keycode, modifiers | _mask_list[cnt],
                 grab_window, owner_events, pointer_mode, keyboard_mode);
 }
 
-void OBDisplay::ungrabKey(unsigned int keycode, unsigned int modifiers,
+void Display::ungrabKey(unsigned int keycode, unsigned int modifiers,
                           Window grab_window)
 {
   for (size_t cnt = 0; cnt < 8; ++cnt)
-    XUngrabKey(otk::OBDisplay::display, keycode, modifiers | _mask_list[cnt],
+    XUngrabKey(Display::display, keycode, modifiers | _mask_list[cnt],
                grab_window);
 }
 
index 0b5d5844315ccb4e024a83032f1dea36d0a7c2d7..7f08bc51fbf5b9a04da63ab6014a0f518ca8727f 100644 (file)
@@ -1,4 +1,4 @@
-// -*- mode: C++; indent-tabs-mode: nil; -*-
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef   __display_hh
 #define   __display_hh
 
@@ -11,7 +11,7 @@ extern "C" {
 namespace otk {
 
 class ScreenInfo;
-class BGCCache;
+class GCCache;
 
 //! Manages a single X11 display.
 /*!
@@ -19,11 +19,11 @@ class BGCCache;
   Use the initialize() method to open the display and ready it for use.
   Use the destroy() method to close it and clean up the class' data.
 */
-class OBDisplay
+class Display
 {
 public:
   //! The X display
-  static Display *display;
+  static ::Display *display;
   
   //! A List of ScreenInfo instances
   typedef std::vector<ScreenInfo> ScreenInfoList;
@@ -61,27 +61,27 @@ private:
 
   //! A cache for re-using GCs, used by the drawing objects
   /*!
-    @see BPen
-    @see BFont
-    @see BImage
-    @see BImageControl
-    @see BTexture
+    @see Pen
+    @see Font
+    @see Image
+    @see ImageControl
+    @see Texture
   */
-  static BGCCache *_gccache;
+  static GCCache *_gccache;
 
   //! Handles X errors on the display
   /*!
     Displays the error if compiled for debugging.
   */
-  static int xerrorHandler(Display *d, XErrorEvent *e);
+  static int xerrorHandler(::Display *d, XErrorEvent *e);
 
   //! Prevents instantiation of the class
-  OBDisplay();
+  Display();
 
 public:
   //! Initializes the class, opens the X display
   /*!
-    @see OBDisplay::display
+    @see Display::display
     @param name The name of the X display to open. If it is null, the DISPLAY
                 environment variable is used instead.
   */
@@ -90,7 +90,7 @@ public:
   static void destroy();
 
   //! Returns the GC cache for the application
-  inline static BGCCache *gcCache() { return _gccache; }
+  inline static GCCache *gcCache() { return _gccache; }
 
   //! Gets information on a specific screen
   /*!
index 6c15a60bcf8d0aa9be411a517971eaf42b24630b..d8bd539ce67ef31b134ce944e82c3807b048c3cd 100644 (file)
 
 namespace otk {
 
-OtkEventDispatcher::OtkEventDispatcher()
+EventDispatcher::EventDispatcher()
   : _fallback(0), _master(0)
 {
 }
 
-OtkEventDispatcher::~OtkEventDispatcher()
+EventDispatcher::~EventDispatcher()
 {
 }
 
-void OtkEventDispatcher::clearAllHandlers(void)
+void EventDispatcher::clearAllHandlers(void)
 {
   _map.clear();
 }
 
-void OtkEventDispatcher::registerHandler(Window id, OtkEventHandler *handler)
+void EventDispatcher::registerHandler(Window id, EventHandler *handler)
 {
-  _map.insert(std::pair<Window, OtkEventHandler*>(id, handler));
+  _map.insert(std::pair<Window, EventHandler*>(id, handler));
 }
 
-void OtkEventDispatcher::clearHandler(Window id)
+void EventDispatcher::clearHandler(Window id)
 {
   _map.erase(id);
 }
 
-void OtkEventDispatcher::dispatchEvents(void)
+void EventDispatcher::dispatchEvents(void)
 {
   XEvent e;
 
-  while (XPending(OBDisplay::display)) {
-    XNextEvent(OBDisplay::display, &e);
+  while (XPending(Display::display)) {
+    XNextEvent(Display::display, &e);
 
 #if 0//defined(DEBUG)
     printf("Event %d window %lx\n", e.type, e.xany.window);
@@ -71,17 +71,17 @@ void OtkEventDispatcher::dispatchEvents(void)
       case ButtonPress:
       case ButtonRelease:
         _lasttime = e.xbutton.time;
-        e.xbutton.state &= ~(LockMask | OBDisplay::numLockMask() |
-                             OBDisplay::scrollLockMask());
+        e.xbutton.state &= ~(LockMask | Display::numLockMask() |
+                             Display::scrollLockMask());
         break;
       case KeyPress:
-        e.xkey.state &= ~(LockMask | OBDisplay::numLockMask() |
-                          OBDisplay::scrollLockMask());
+        e.xkey.state &= ~(LockMask | Display::numLockMask() |
+                          Display::scrollLockMask());
         break;
       case MotionNotify:
         _lasttime = e.xmotion.time;
-        e.xmotion.state &= ~(LockMask | OBDisplay::numLockMask() |
-                             OBDisplay::scrollLockMask());
+        e.xmotion.state &= ~(LockMask | Display::numLockMask() |
+                             Display::scrollLockMask());
         break;
       case PropertyNotify:
         _lasttime = e.xproperty.time;
@@ -97,7 +97,7 @@ void OtkEventDispatcher::dispatchEvents(void)
   }
 }
 
-void OtkEventDispatcher::dispatchFocus(const XEvent &e)
+void EventDispatcher::dispatchFocus(const XEvent &e)
 {
   if (e.type == FocusIn) {
     //printf("Got FocusIn!\n");
@@ -116,7 +116,7 @@ void OtkEventDispatcher::dispatchFocus(const XEvent &e)
     // FocusOut events just make us look for FocusIn events. They are ignored
     // otherwise.
     XEvent fi;
-    if (XCheckTypedEvent(OBDisplay::display, FocusIn, &fi)) {
+    if (XCheckTypedEvent(Display::display, FocusIn, &fi)) {
       //printf("Found FocusIn\n");
       dispatchFocus(fi);
       // dont unfocus the window we just focused!
@@ -129,10 +129,10 @@ void OtkEventDispatcher::dispatchFocus(const XEvent &e)
   }
 }
 
-void OtkEventDispatcher::dispatch(Window win, const XEvent &e)
+void EventDispatcher::dispatch(Window win, const XEvent &e)
 {
-  OtkEventHandler *handler = 0;
-  OtkEventMap::iterator it;
+  EventHandler *handler = 0;
+  EventMap::iterator it;
 
   // master gets everything first
   if (_master)
@@ -157,7 +157,7 @@ void OtkEventDispatcher::dispatch(Window win, const XEvent &e)
     xwc.sibling = e.xconfigurerequest.above;
     xwc.stack_mode = e.xconfigurerequest.detail;
       
-    XConfigureWindow(otk::OBDisplay::display, e.xconfigurerequest.window,
+    XConfigureWindow(otk::Display::display, e.xconfigurerequest.window,
                      e.xconfigurerequest.value_mask, &xwc);
   } else {
     // grab a falback if it exists
@@ -168,9 +168,9 @@ void OtkEventDispatcher::dispatch(Window win, const XEvent &e)
     handler->handle(e);
 }
 
-OtkEventHandler *OtkEventDispatcher::findHandler(Window win)
+EventHandler *EventDispatcher::findHandler(Window win)
 {
-  OtkEventMap::iterator it = _map.find(win);
+  EventMap::iterator it = _map.find(win);
   if (it != _map.end())
     return it->second;
   return 0;
index c62e24b925c19e3d6a19ea48b3c5c54e446cca33..03f362993628cd7ed4367b68d1248b358d251e8b 100644 (file)
@@ -1,3 +1,4 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef __eventdispatcher
 #define __eventdispatcher
 
@@ -7,37 +8,37 @@
 
 namespace otk {
 
-typedef std::map<unsigned int, OtkEventHandler *> OtkEventMap;
+typedef std::map<unsigned int, EventHandler *> EventMap;
 
-class OtkEventDispatcher {
+class EventDispatcher {
 public:
 
-  OtkEventDispatcher();
-  virtual ~OtkEventDispatcher();
+  EventDispatcher();
+  virtual ~EventDispatcher();
 
   virtual void clearAllHandlers(void);
-  virtual void registerHandler(Window id, otk::OtkEventHandler *handler);
+  virtual void registerHandler(Window id, EventHandler *handler);
   virtual void clearHandler(Window id);
   virtual void dispatchEvents(void);
 
-  inline void setFallbackHandler(otk::OtkEventHandler *fallback)
+  inline void setFallbackHandler(EventHandler *fallback)
   { _fallback = fallback; }
-  otk::OtkEventHandler *getFallbackHandler(void) const { return _fallback; }
+  EventHandler *getFallbackHandler(void) const { return _fallback; }
 
   //! Sets an event handler that gets all events for all handlers after
   //! any specific handlers have received them
-  inline void setMasterHandler(otk::OtkEventHandler *master)
+  inline void setMasterHandler(EventHandler *master)
   { _master = master; }
-  otk::OtkEventHandler *getMasterHandler(void) const { return _master; }
+  EventHandler *getMasterHandler(void) const { return _master; }
 
-  otk::OtkEventHandler *findHandler(Window win);
+  EventHandler *findHandler(Window win);
 
   inline Time lastTime() const { return _lasttime; }
   
 private:
-  OtkEventMap _map;
-  OtkEventHandler *_fallback;
-  OtkEventHandler *_master;
+  EventMap _map;
+  EventHandler *_fallback;
+  EventHandler *_master;
 
   //! The time at which the last XEvent with a time was received
   Time _lasttime;
index 7e1ad745c2ad37ef1726ee6716164496f0b78dca..e4a24df81782e87d38d54bb220d9897f62de61f6 100644 (file)
@@ -9,17 +9,17 @@
 
 namespace otk {
 
-OtkEventHandler::OtkEventHandler()
+EventHandler::EventHandler()
 {
 }
 
 
-OtkEventHandler::~OtkEventHandler()
+EventHandler::~EventHandler()
 {
 }
 
 
-void OtkEventHandler::handle(const XEvent &e)
+void EventHandler::handle(const XEvent &e)
 {
   switch(e.type){
   case KeyPress:
@@ -88,11 +88,11 @@ void OtkEventHandler::handle(const XEvent &e)
     return selectionRequestHandler(e.xselectionrequest);
   default:
 #ifdef    SHAPE
-    if (e.type == otk::OBDisplay::shapeEventBase())
+    if (e.type == Display::shapeEventBase())
       return shapeHandler((*(XShapeEvent*)&e));
 #endif // SHAPE
 #ifdef    XKB
-    if (e.type == otk::OBDisplay::xkbEventBase())
+    if (e.type == Display::xkbEventBase())
       return xkbHandler((*(XkbEvent*)&e));
 #endif // XKB
     ;
@@ -100,7 +100,7 @@ void OtkEventHandler::handle(const XEvent &e)
 }
 
 
-void OtkEventHandler::clientMessageHandler(const XClientMessageEvent &)
+void EventHandler::clientMessageHandler(const XClientMessageEvent &)
 {
   
 }
index 96bdff94432f2721f5eadef258848d2c7f5fda34..f2457568d81ada4fd9e46cde254948e2fd5f320c 100644 (file)
@@ -1,3 +1,4 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef __eventhandler__hh
 #define __eventhandler__hh
 
@@ -16,7 +17,7 @@ extern "C" {
 
 namespace otk {
 
-class OtkEventHandler {
+class EventHandler {
 public:
   //! Dispatches events to one of the other handlers based on their type.
   virtual void handle(const XEvent &e);
@@ -134,14 +135,14 @@ public:
   virtual void xkbHandler(const XkbEvent &) {}
 #endif // XKB
 
-  virtual ~OtkEventHandler();
+  virtual ~EventHandler();
 
 protected:
-  /*! Constructor for the OtkEventHandler class.
-    This is protected so that OtkEventHandlers can't be instantiated on their
+  /*! Constructor for the EventHandler class.
+    This is protected so that EventHandlers can't be instantiated on their
     own.
   */
-  OtkEventHandler();
+  EventHandler();
 
 private:
 };
index a5c851273adb49c6ca171bc3d0bdeaf0fc4232cb..397a2cac8928b0e113b37fb2b159c8a47980e644 100644 (file)
 
 namespace otk {
 
-OtkFocusLabel::OtkFocusLabel(OtkWidget *parent)
-  : OtkFocusWidget(parent), _text("")
+FocusLabel::FocusLabel(Widget *parent)
+  : FocusWidget(parent), _text("")
 {
-  const ScreenInfo *info = OBDisplay::screenInfo(screen());
-  _xftdraw = XftDrawCreate(OBDisplay::display, window(), info->visual(),
+  const ScreenInfo *info = Display::screenInfo(screen());
+  _xftdraw = XftDrawCreate(Display::display, window(), info->visual(),
                            info->colormap());
 }
 
-OtkFocusLabel::~OtkFocusLabel()
+FocusLabel::~FocusLabel()
 {
   XftDrawDestroy(_xftdraw);
 }
 
 
-void OtkFocusLabel::setStyle(Style *style)
+void FocusLabel::setStyle(Style *style)
 {
-  OtkFocusWidget::setStyle(style);
+  FocusWidget::setStyle(style);
   
   setTexture(style->getLabelFocus());
   setUnfocusTexture(style->getLabelUnfocus());
 }
 
 
-void OtkFocusLabel::update(void)
+void FocusLabel::update(void)
 {
   if (_dirty) {
-    const BFont *ft = style()->getFont();
-    BColor *text_color = (isFocused() ? style()->getTextFocus()
+    const Font *ft = style()->getFont();
+    Color *text_color = (isFocused() ? style()->getTextFocus()
                           : style()->getTextUnfocus());
     unsigned int sidemargin = style()->getBevelWidth() * 2;
 
@@ -70,11 +70,11 @@ void OtkFocusLabel::update(void)
       }
     }
 
-    OtkFocusWidget::update();
+    FocusWidget::update();
 
     ft->drawString(_xftdraw, x, 0, *text_color, t);
   } else
-    OtkFocusWidget::update();
+    FocusWidget::update();
 }
 
 }
index 64b8189a3dc4d20200d30424f6dd91c20076c8d1..54a7f06f078ba177e6291c6fab17db95b26ba6d3 100644 (file)
@@ -1,3 +1,4 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef __label_hh
 #define __label_hh
 
@@ -6,19 +7,19 @@
 
 namespace otk {
 
-class OtkFocusLabel : public OtkFocusWidget {
+class FocusLabel : public FocusWidget {
 
 public:
 
-  OtkFocusLabel(OtkWidget *parent);
-  ~OtkFocusLabel();
+  FocusLabel(Widget *parent);
+  ~FocusLabel();
 
   inline const std::string &getText(void) const { return _text; }
   void setText(const std::string &text) { _text = text; _dirty = true; }
 
   void update(void);
 
-  virtual void setStyle(otk::Style *style);
+  virtual void setStyle(Style *style);
   
 private:
   //! Object used by Xft to render to the drawable
index e2eef1eecabfa3449440b57ca576b385edfeab89..c3629bbbc348fa849f6c9672c80a635533581439 100644 (file)
@@ -8,56 +8,56 @@
 
 namespace otk {
 
-OtkFocusWidget::OtkFocusWidget(OtkWidget *parent, Direction direction)
-  : OtkWidget(parent, direction), _unfocus_texture(0), _unfocus_bcolor(0)
+FocusWidget::FocusWidget(Widget *parent, Direction direction)
+  : Widget(parent, direction), _unfocus_texture(0), _unfocus_bcolor(0)
 {
   _focused = true;
   _focus_texture = parent->texture();
   _focus_bcolor = parent->borderColor();
 }
 
-OtkFocusWidget::~OtkFocusWidget()
+FocusWidget::~FocusWidget()
 {
 }
 
 #include <stdio.h>
-void OtkFocusWidget::focus(void)
+void FocusWidget::focus(void)
 {
   if (_focused)
     return;
 
-  OtkWidget::focus();
+  Widget::focus();
 
   if (_focus_bcolor)
-    OtkWidget::setBorderColor(_focus_bcolor);
+    Widget::setBorderColor(_focus_bcolor);
 
-  OtkWidget::setTexture(_focus_texture);
+  Widget::setTexture(_focus_texture);
   update();
 }
 
-void OtkFocusWidget::unfocus(void)
+void FocusWidget::unfocus(void)
 {
   if (!_focused)
     return;
 
-  OtkWidget::unfocus();
+  Widget::unfocus();
 
   if (_unfocus_bcolor)
-    OtkWidget::setBorderColor(_unfocus_bcolor);
+    Widget::setBorderColor(_unfocus_bcolor);
 
-  OtkWidget::setTexture(_unfocus_texture);
+  Widget::setTexture(_unfocus_texture);
   update();
 }
 
-void OtkFocusWidget::setTexture(BTexture *texture)
+void FocusWidget::setTexture(Texture *texture)
 {
-  OtkWidget::setTexture(texture);
+  Widget::setTexture(texture);
   _focus_texture = texture;
 }
 
-void OtkFocusWidget::setBorderColor(const BColor *color)
+void FocusWidget::setBorderColor(const Color *color)
 {
-  OtkWidget::setBorderColor(color);
+  Widget::setBorderColor(color);
   _focus_bcolor = color;
 }
 
index bc69ad6b6ae866e54526c16dd45799566b368eaf..a73bcfb70de508c9f20680917c524475365abd75 100644 (file)
@@ -1,3 +1,4 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef __focuswidget_hh
 #define __focuswidget_hh
 
@@ -6,27 +7,27 @@
 
 namespace otk {
 
-class OtkFocusWidget : public OtkWidget {
+class FocusWidget : public Widget {
 
 public:
 
-  OtkFocusWidget(otk::OtkWidget *parent, Direction = Horizontal);
-  virtual ~OtkFocusWidget();
+  FocusWidget(Widget *parent, Direction = Horizontal);
+  virtual ~FocusWidget();
 
   virtual void focus(void);
   virtual void unfocus(void);
 
-  virtual void setTexture(otk::BTexture *texture);
-  virtual void setBorderColor(const otk::BColor *color);
+  virtual void setTexture(Texture *texture);
+  virtual void setBorderColor(const Color *color);
 
-  inline void setUnfocusTexture(otk::BTexture *texture)
+  inline void setUnfocusTexture(Texture *texture)
   { _unfocus_texture = texture; }
-  inline otk::BTexture *getUnfocusTexture(void) const
+  inline Texture *getUnfocusTexture(void) const
   { return _unfocus_texture; }
 
-  inline void setUnfocusBorderColor(const otk::BColor *color)
+  inline void setUnfocusBorderColor(const Color *color)
   { _unfocus_bcolor = color; }
-  inline const otk::BColor *getUnfocusBorderColor(void) const
+  inline const Color *getUnfocusBorderColor(void) const
   { return _unfocus_bcolor; }
 
   inline bool isFocused(void) const { return _focused; }
@@ -34,11 +35,11 @@ public:
 
 private:
 
-  BTexture *_unfocus_texture;
-  BTexture *_focus_texture;
+  Texture *_unfocus_texture;
+  Texture *_focus_texture;
 
-  const BColor *_unfocus_bcolor;
-  const BColor *_focus_bcolor;
+  const Color *_unfocus_bcolor;
+  const Color *_focus_bcolor;
 };
 
 }
index df4823fb300279402652f8882c591a6780597b49..0f1ad8c1cb5559d20647e21df54db7c4dead0ef8 100644 (file)
@@ -34,10 +34,10 @@ extern "C" {
 
 namespace otk {
 
-string      BFont::_fallback_font = "fixed";
-bool        BFont::_xft_init      = false;
+string      Font::_fallback_font = "fixed";
+bool        Font::_xft_init      = false;
 
-BFont::BFont(int screen_num, const string &fontstring,
+Font::Font(int screen_num, const string &fontstring,
              bool shadow, unsigned char offset, unsigned char tint)
   : _screen_num(screen_num),
     _fontstring(fontstring),
@@ -60,14 +60,14 @@ BFont::BFont(int screen_num, const string &fontstring,
     _xft_init = true;
   }
 
-  if ((_xftfont = XftFontOpenName(OBDisplay::display, _screen_num,
+  if ((_xftfont = XftFontOpenName(Display::display, _screen_num,
                                   _fontstring.c_str())))
     return;
 
   printf(_("Unable to load font: %s\n"), _fontstring.c_str());
   printf(_("Trying fallback font: %s\n"), _fallback_font.c_str());
 
-  if ((_xftfont = XftFontOpenName(OBDisplay::display, _screen_num,
+  if ((_xftfont = XftFontOpenName(Display::display, _screen_num,
                                   _fallback_font.c_str())))
     return;
 
@@ -78,14 +78,14 @@ BFont::BFont(int screen_num, const string &fontstring,
 }
 
 
-BFont::~BFont(void)
+Font::~Font(void)
 {
   if (_xftfont)
-    XftFontClose(OBDisplay::display, _xftfont);
+    XftFontClose(Display::display, _xftfont);
 }
 
 
-void BFont::drawString(XftDraw *d, int x, int y, const BColor &color,
+void Font::drawString(XftDraw *d, int x, int y, const Color &color,
                        const string &string, bool utf8) const
 {
   assert(d);
@@ -96,7 +96,7 @@ void BFont::drawString(XftDraw *d, int x, int y, const BColor &color,
     c.color.green = 0;
     c.color.blue = 0;
     c.color.alpha = _tint | _tint << 8; // transparent shadow
-    c.pixel = BlackPixel(OBDisplay::display, _screen_num);
+    c.pixel = BlackPixel(Display::display, _screen_num);
 
     if (utf8)
       XftDrawStringUtf8(d, &c, _xftfont, x + _offset,
@@ -113,7 +113,7 @@ void BFont::drawString(XftDraw *d, int x, int y, const BColor &color,
   c.color.green = color.green() | color.green() << 8;
   c.color.blue = color.blue() | color.blue() << 8;
   c.pixel = color.pixel();
-  c.color.alpha = 0xff | 0xff << 8; // no transparency in BColor yet
+  c.color.alpha = 0xff | 0xff << 8; // no transparency in Color yet
 
   if (utf8)
     XftDrawStringUtf8(d, &c, _xftfont, x, _xftfont->ascent + y,
@@ -126,28 +126,28 @@ void BFont::drawString(XftDraw *d, int x, int y, const BColor &color,
 }
 
 
-unsigned int BFont::measureString(const string &string, bool utf8) const
+unsigned int Font::measureString(const string &string, bool utf8) const
 {
   XGlyphInfo info;
 
   if (utf8)
-    XftTextExtentsUtf8(OBDisplay::display, _xftfont,
+    XftTextExtentsUtf8(Display::display, _xftfont,
                        (FcChar8*)string.c_str(), string.size(), &info);
   else
-    XftTextExtents8(OBDisplay::display, _xftfont,
+    XftTextExtents8(Display::display, _xftfont,
                     (FcChar8*)string.c_str(), string.size(), &info);
 
   return info.xOff + (_shadow ? _offset : 0);
 }
 
 
-unsigned int BFont::height(void) const
+unsigned int Font::height(void) const
 {
   return _xftfont->height + (_shadow ? _offset : 0);
 }
 
 
-unsigned int BFont::maxCharWidth(void) const
+unsigned int Font::maxCharWidth(void) const
 {
   return _xftfont->max_advance_width;
 }
index 8ff1f67dfd528e11d06d57bfab9fcb250da13938..9091b9bcf857638ba9f3bbfb65147000fcfd7eac 100644 (file)
@@ -1,6 +1,6 @@
-// -*- mode: C++; indent-tabs-mode: nil; -*-
-#ifndef   __Font_hh
-#define   __Font_hh
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
+#ifndef   __font_hh
+#define   __font_hh
 
 extern "C" {
 #include <X11/Xlib.h>
@@ -13,12 +13,9 @@ extern "C" {
 
 namespace otk {
 
-class BGCCache;
-class BGCCacheItem;
-class BColor;
-class ScreenInfo;
+class Color;
 
-class BFont {
+class Font {
   /*
    * static members
    */
@@ -51,9 +48,9 @@ private:
   
 public:
   // loads an Xft font
-  BFont(int screen_num, const std::string &fontstring, bool shadow,
+  Font(int screen_num, const std::string &fontstring, bool shadow,
         unsigned char offset, unsigned char tint);
-  virtual ~BFont();
+  virtual ~Font();
 
   inline const std::string &fontstring() const { return _fontstring; }
 
@@ -68,10 +65,10 @@ public:
     Be Warned: If you use an XftDraw object and a color, or a font from
     different screens, you WILL have unpredictable results! :)
   */
-  void drawString(XftDraw *d, int x, int y, const BColor &color,
+  void drawString(XftDraw *d, int x, int y, const Color &color,
                   const std::string &string, bool utf8 = false) const;
 };
 
 }
 
-#endif // __Font_hh
+#endif // __font_hh
index e7f58756d5bc51ebc1bf992d14f94641b1d9fd3c..02d3b80b06c849cf1928be73818f4e8d3b4aecf0 100644 (file)
@@ -17,16 +17,16 @@ extern "C" {
 
 namespace otk {
 
-BGCCacheContext::~BGCCacheContext(void) {
+GCCacheContext::~GCCacheContext(void) {
   if (gc)
-    XFreeGC(OBDisplay::display, gc);
+    XFreeGC(Display::display, gc);
 }
 
 
-void BGCCacheContext::set(const BColor &_color,
-                          const XFontStruct * const _font,
-                          const int _function, const int _subwindow,
-                          int _linewidth) {
+void GCCacheContext::set(const Color &_color,
+                         const XFontStruct * const _font,
+                         const int _function, const int _subwindow,
+                         int _linewidth) {
   XGCValues gcv;
   pixel = gcv.foreground = _color.pixel();
   function = gcv.function = _function;
@@ -44,11 +44,11 @@ void BGCCacheContext::set(const BColor &_color,
     fontid = 0;
   }
 
-  XChangeGC(OBDisplay::display, gc, mask, &gcv);
+  XChangeGC(Display::display, gc, mask, &gcv);
 }
 
 
-void BGCCacheContext::set(const XFontStruct * const _font) {
+void GCCacheContext::set(const XFontStruct * const _font) {
   if (! _font) {
     fontid = 0;
     return;
@@ -56,28 +56,28 @@ void BGCCacheContext::set(const XFontStruct * const _font) {
 
   XGCValues gcv;
   fontid = gcv.font = _font->fid;
-  XChangeGC(OBDisplay::display, gc, GCFont, &gcv);
+  XChangeGC(Display::display, gc, GCFont, &gcv);
 }
 
 
-BGCCache::BGCCache(unsigned int screen_count)
+GCCache::GCCache(unsigned int screen_count)
   : context_count(128u), cache_size(16u), cache_buckets(8u * screen_count),
     cache_total_size(cache_size * cache_buckets) {
 
-  contexts = new BGCCacheContext*[context_count];
+  contexts = new GCCacheContext*[context_count];
   unsigned int i;
   for (i = 0; i < context_count; i++) {
-    contexts[i] = new BGCCacheContext();
+    contexts[i] = new GCCacheContext();
   }
 
-  cache = new BGCCacheItem*[cache_total_size];
+  cache = new GCCacheItem*[cache_total_size];
   for (i = 0; i < cache_total_size; ++i) {
-    cache[i] = new BGCCacheItem;
+    cache[i] = new GCCacheItem;
   }
 }
 
 
-BGCCache::~BGCCache(void) {
+GCCache::~GCCache(void) {
   std::for_each(contexts, contexts + context_count, PointerAssassin());
   std::for_each(cache, cache + cache_total_size, PointerAssassin());
   delete [] cache;
@@ -85,16 +85,16 @@ BGCCache::~BGCCache(void) {
 }
 
 
-BGCCacheContext *BGCCache::nextContext(unsigned int scr) {
-  Window hd = OBDisplay::screenInfo(scr)->rootWindow();
+GCCacheContext *GCCache::nextContext(unsigned int scr) {
+  Window hd = Display::screenInfo(scr)->rootWindow();
 
-  BGCCacheContext *c;
+  GCCacheContext *c;
 
   for (unsigned int i = 0; i < context_count; ++i) {
     c = contexts[i];
 
     if (! c->gc) {
-      c->gc = XCreateGC(OBDisplay::display, hd, 0, 0);
+      c->gc = XCreateGC(Display::display, hd, 0, 0);
       c->used = false;
       c->screen = scr;
     }
@@ -102,26 +102,26 @@ BGCCacheContext *BGCCache::nextContext(unsigned int scr) {
       return c;
   }
 
-  fprintf(stderr, "BGCCache: context fault!\n");
+  fprintf(stderr, "GCCache: context fault!\n");
   abort();
-  return (BGCCacheContext*) 0; // not reached
+  return (GCCacheContext*) 0; // not reached
 }
 
 
-void BGCCache::release(BGCCacheContext *ctx) {
+void GCCache::release(GCCacheContext *ctx) {
   ctx->used = false;
 }
 
 
-BGCCacheItem *BGCCache::find(const BColor &_color,
-                             const XFontStruct * const _font,
-                             int _function, int _subwindow, int _linewidth) {
+GCCacheItem *GCCache::find(const Color &_color,
+                           const XFontStruct * const _font,
+                           int _function, int _subwindow, int _linewidth) {
   const unsigned long pixel = _color.pixel();
   const unsigned int screen = _color.screen();
   const int key = _color.red() ^ _color.green() ^ _color.blue();
   int k = (key % cache_size) * cache_buckets;
   unsigned int i = 0; // loop variable
-  BGCCacheItem *c = cache[ k ], *prev = 0;
+  GCCacheItem *c = cache[ k ], *prev = 0;
 
   /*
     this will either loop cache_buckets times then return/abort or
@@ -146,7 +146,7 @@ BGCCacheItem *BGCCache::find(const BColor &_color,
       return c;
     }
     // cache fault!
-    fprintf(stderr, "BGCCache: cache fault, count: %d, screen: %d, item screen: %d\n", c->count, screen, c->ctx->screen);
+    fprintf(stderr, "GCCache: cache fault, count: %d, screen: %d, item screen: %d\n", c->count, screen, c->ctx->screen);
     abort();
   }
 
@@ -172,14 +172,14 @@ BGCCacheItem *BGCCache::find(const BColor &_color,
 }
 
 
-void BGCCache::release(BGCCacheItem *_item) {
+void GCCache::release(GCCacheItem *_item) {
   _item->count--;
 }
 
 
-void BGCCache::purge(void) {
+void GCCache::purge(void) {
   for (unsigned int i = 0; i < cache_total_size; ++i) {
-    BGCCacheItem *d = cache[ i ];
+    GCCacheItem *d = cache[ i ];
 
     if (d->ctx && d->count == 0) {
       release(d->ctx);
index f0b316aaaae70c537be5c9ba98279066af522588..86daff0e0f620531c237dcd28e61f83ad21f2976 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
-#ifndef GCCACHE_HH
-#define GCCACHE_HH
+#ifndef __gccache_hh
+#define __gccache_hh
 
 extern "C" {
 #include <X11/Xlib.h>
@@ -11,18 +11,18 @@ extern "C" {
 
 namespace otk {
 
-class BGCCacheItem;
+class GCCacheItem;
 
-class BGCCacheContext {
+class GCCacheContext {
 public:
-  void set(const BColor &_color, const XFontStruct * const _font,
+  void set(const Color &_color, const XFontStruct * const _font,
            const int _function, const int _subwindow, const int _linewidth);
   void set(const XFontStruct * const _font);
 
-  ~BGCCacheContext(void);
+  ~GCCacheContext(void);
 
 private:
-  BGCCacheContext()
+  GCCacheContext()
     : gc(0), pixel(0ul), fontid(0ul),
       function(0), subwindow(0), used(false), screen(~(0u)), linewidth(0) {}
 
@@ -35,47 +35,47 @@ private:
   unsigned int screen;
   int linewidth;
 
-  BGCCacheContext(const BGCCacheContext &_nocopy);
-  BGCCacheContext &operator=(const BGCCacheContext &_nocopy);
+  GCCacheContext(const GCCacheContext &_nocopy);
+  GCCacheContext &operator=(const GCCacheContext &_nocopy);
 
-  friend class BGCCache;
-  friend class BGCCacheItem;
+  friend class GCCache;
+  friend class GCCacheItem;
 };
 
-class BGCCacheItem {
+class GCCacheItem {
 public:
   inline const GC &gc(void) const { return ctx->gc; }
 
 private:
-  BGCCacheItem(void) : ctx(0), count(0), hits(0), fault(false) { }
+  GCCacheItem(void) : ctx(0), count(0), hits(0), fault(false) { }
 
-  BGCCacheContext *ctx;
+  GCCacheContext *ctx;
   unsigned int count;
   unsigned int hits;
   bool fault;
 
-  BGCCacheItem(const BGCCacheItem &_nocopy);
-  BGCCacheItem &operator=(const BGCCacheItem &_nocopy);
+  GCCacheItem(const GCCacheItem &_nocopy);
+  GCCacheItem &operator=(const GCCacheItem &_nocopy);
 
-  friend class BGCCache;
+  friend class GCCache;
 };
 
-class BGCCache {
+class GCCache {
 public:
-  BGCCache(unsigned int screen_count);
-  ~BGCCache(void);
+  GCCache(unsigned int screen_count);
+  ~GCCache(void);
 
   // cleans up the cache
   void purge(void);
 
-  BGCCacheItem *find(const BColor &_color, const XFontStruct * const _font = 0,
+  GCCacheItem *find(const Color &_color, const XFontStruct * const _font = 0,
                      int _function = GXcopy, int _subwindow = ClipByChildren,
                      int _linewidth = 0);
-  void release(BGCCacheItem *_item);
+  void release(GCCacheItem *_item);
 
 private:
-  BGCCacheContext *nextContext(unsigned int _screen);
-  void release(BGCCacheContext *ctx);
+  GCCacheContext *nextContext(unsigned int _screen);
+  void release(GCCacheContext *ctx);
 
   // this is closely modelled after the Qt GC cache, but with some of the
   // complexity stripped out
@@ -83,19 +83,19 @@ private:
   const unsigned int cache_size;
   const unsigned int cache_buckets;
   const unsigned int cache_total_size;
-  BGCCacheContext **contexts;
-  BGCCacheItem **cache;
+  GCCacheContext **contexts;
+  GCCacheItem **cache;
 };
 
-class BPen {
+class Pen {
 public:
-  inline BPen(const BColor &_color,  const XFontStruct * const _font = 0,
+  inline Pen(const Color &_color,  const XFontStruct * const _font = 0,
               int _linewidth = 0, int _function = GXcopy,
               int _subwindow = ClipByChildren)
     : color(_color), font(_font), linewidth(_linewidth), function(_function),
-      subwindow(_subwindow), cache(OBDisplay::gcCache()), item(0) { }
+      subwindow(_subwindow), cache(Display::gcCache()), item(0) { }
 
-  inline ~BPen(void) { if (item) cache->release(item); }
+  inline ~Pen(void) { if (item) cache->release(item); }
 
   inline const GC &gc(void) const {
     if (! item) item = cache->find(color, font, function, subwindow,
@@ -104,16 +104,16 @@ public:
   }
 
 private:
-  const BColor &color;
+  const Color &color;
   const XFontStruct *font;
   int linewidth;
   int function;
   int subwindow;
 
-  mutable BGCCache *cache;
-  mutable BGCCacheItem *item;
+  mutable GCCache *cache;
+  mutable GCCacheItem *item;
 };
 
 }
 
-#endif // GCCACHE_HH
+#endif // __gccache_hh
index bd8d0ea78af217714835ed3eb07731c5fc5678db..0d1c57a231bd829cae2917e819266a6c12987e73 100644 (file)
@@ -19,7 +19,7 @@ using std::min;
 
 namespace otk {
 
-BImage::BImage(BImageControl *c, int w, int h) {
+Image::Image(ImageControl *c, int w, int h) {
   control = c;
 
   width = (w > 0) ? w : 1;
@@ -43,95 +43,95 @@ BImage::BImage(BImageControl *c, int w, int h) {
 }
 
 
-BImage::~BImage(void) {
+Image::~Image(void) {
   delete [] red;
   delete [] green;
   delete [] blue;
 }
 
 
-Pixmap BImage::render(const BTexture &texture) {
-  if (texture.texture() & BTexture::Parent_Relative)
+Pixmap Image::render(const Texture &texture) {
+  if (texture.texture() & Texture::Parent_Relative)
     return ParentRelative;
-  else if (texture.texture() & BTexture::Solid)
+  else if (texture.texture() & Texture::Solid)
     return render_solid(texture);
-  else if (texture.texture() & BTexture::Gradient)
+  else if (texture.texture() & Texture::Gradient)
     return render_gradient(texture);
   return None;
 }
 
 
-Pixmap BImage::render_solid(const BTexture &texture) {
-  Pixmap pixmap = XCreatePixmap(OBDisplay::display,
+Pixmap Image::render_solid(const Texture &texture) {
+  Pixmap pixmap = XCreatePixmap(Display::display,
                                control->getDrawable(), width,
                                height, control->getDepth());
   if (pixmap == None) {
-    fprintf(stderr, "BImage::render_solid: error creating pixmap\n");
+    fprintf(stderr, "Image::render_solid: error creating pixmap\n");
     return None;
   }
 
-  BPen pen(texture.color());
-  BPen penlight(texture.lightColor());
-  BPen penshadow(texture.shadowColor());
+  Pen pen(texture.color());
+  Pen penlight(texture.lightColor());
+  Pen penshadow(texture.shadowColor());
 
-  XFillRectangle(OBDisplay::display, pixmap, pen.gc(), 0, 0, width, height);
+  XFillRectangle(Display::display, pixmap, pen.gc(), 0, 0, width, height);
 
-  if (texture.texture() & BTexture::Interlaced) {
-    BPen peninterlace(texture.colorTo());
+  if (texture.texture() & Texture::Interlaced) {
+    Pen peninterlace(texture.colorTo());
     for (unsigned int i = 0; i < height; i += 2)
-      XDrawLine(OBDisplay::display, pixmap, peninterlace.gc(), 0, i, width, i);
+      XDrawLine(Display::display, pixmap, peninterlace.gc(), 0, i, width, i);
   }
 
   int left = 0, top = 0, right = width - 1, bottom = height - 1;
 
-  if (texture.texture() & BTexture::Border) {
-    BPen penborder(texture.borderColor());
-    XDrawRectangle(OBDisplay::display, pixmap, penborder.gc(),
+  if (texture.texture() & Texture::Border) {
+    Pen penborder(texture.borderColor());
+    XDrawRectangle(Display::display, pixmap, penborder.gc(),
                    left, top, right, bottom);
   }
 
-  if (texture.texture() & BTexture::Bevel1) {
-    if (texture.texture() & BTexture::Raised) {
-      XDrawLine(OBDisplay::display, pixmap, penshadow.gc(),
+  if (texture.texture() & Texture::Bevel1) {
+    if (texture.texture() & Texture::Raised) {
+      XDrawLine(Display::display, pixmap, penshadow.gc(),
                 left, bottom, right, bottom);
-      XDrawLine(OBDisplay::display, pixmap, penshadow.gc(),
+      XDrawLine(Display::display, pixmap, penshadow.gc(),
                 right, bottom, right, top);
 
-      XDrawLine(OBDisplay::display, pixmap, penlight.gc(),
+      XDrawLine(Display::display, pixmap, penlight.gc(),
                 left, top, right, top);
-      XDrawLine(OBDisplay::display, pixmap, penlight.gc(),
+      XDrawLine(Display::display, pixmap, penlight.gc(),
                 left, bottom, left, top);
-    } else if (texture.texture() & BTexture::Sunken) {
-      XDrawLine(OBDisplay::display, pixmap, penlight.gc(),
+    } else if (texture.texture() & Texture::Sunken) {
+      XDrawLine(Display::display, pixmap, penlight.gc(),
                 left, bottom, right, bottom);
-      XDrawLine(OBDisplay::display, pixmap, penlight.gc(),
+      XDrawLine(Display::display, pixmap, penlight.gc(),
                 right, bottom, right, top);
 
-      XDrawLine(OBDisplay::display, pixmap, penshadow.gc(),
+      XDrawLine(Display::display, pixmap, penshadow.gc(),
                 left, top, right, top);
-      XDrawLine(OBDisplay::display, pixmap, penshadow.gc(),
+      XDrawLine(Display::display, pixmap, penshadow.gc(),
                 left, bottom, left, top);
     }
-  } else if (texture.texture() & BTexture::Bevel2) {
-    if (texture.texture() & BTexture::Raised) {
-      XDrawLine(OBDisplay::display, pixmap, penshadow.gc(),
+  } else if (texture.texture() & Texture::Bevel2) {
+    if (texture.texture() & Texture::Raised) {
+      XDrawLine(Display::display, pixmap, penshadow.gc(),
                 left + 1, bottom - 2, right - 2, bottom - 2);
-      XDrawLine(OBDisplay::display, pixmap, penshadow.gc(),
+      XDrawLine(Display::display, pixmap, penshadow.gc(),
                 right - 2, bottom - 2, right - 2, top + 1);
 
-      XDrawLine(OBDisplay::display, pixmap, penlight.gc(),
+      XDrawLine(Display::display, pixmap, penlight.gc(),
                 left + 1, top + 1, right - 2, top + 1);
-      XDrawLine(OBDisplay::display, pixmap, penlight.gc(),
+      XDrawLine(Display::display, pixmap, penlight.gc(),
                 left + 1, bottom - 2, left + 1, top + 1);
-    } else if (texture.texture() & BTexture::Sunken) {
-      XDrawLine(OBDisplay::display, pixmap, penlight.gc(),
+    } else if (texture.texture() & Texture::Sunken) {
+      XDrawLine(Display::display, pixmap, penlight.gc(),
                 left + 1, bottom - 2, right - 2, bottom - 2);
-      XDrawLine(OBDisplay::display, pixmap, penlight.gc(),
+      XDrawLine(Display::display, pixmap, penlight.gc(),
                 right - 2, bottom - 2, right - 2, top + 1);
 
-      XDrawLine(OBDisplay::display, pixmap, penshadow.gc(),
+      XDrawLine(Display::display, pixmap, penshadow.gc(),
                 left + 1, top + 1, right - 2, top + 1);
-      XDrawLine(OBDisplay::display, pixmap, penshadow.gc(),
+      XDrawLine(Display::display, pixmap, penshadow.gc(),
                 left + 1, bottom - 2, left + 1, top + 1);
     }
   }
@@ -140,38 +140,38 @@ Pixmap BImage::render_solid(const BTexture &texture) {
 }
 
 
-Pixmap BImage::render_gradient(const BTexture &texture) {
+Pixmap Image::render_gradient(const Texture &texture) {
   bool inverted = False;
 
-  interlaced = texture.texture() & BTexture::Interlaced;
+  interlaced = texture.texture() & Texture::Interlaced;
 
-  if (texture.texture() & BTexture::Sunken) {
+  if (texture.texture() & Texture::Sunken) {
     from = texture.colorTo();
     to = texture.color();
 
-    if (! (texture.texture() & BTexture::Invert)) inverted = True;
+    if (! (texture.texture() & Texture::Invert)) inverted = True;
   } else {
     from = texture.color();
     to = texture.colorTo();
 
-    if (texture.texture() & BTexture::Invert) inverted = True;
+    if (texture.texture() & Texture::Invert) inverted = True;
   }
 
   control->getGradientBuffers(width, height, &xtable, &ytable);
 
-  if (texture.texture() & BTexture::Diagonal) dgradient();
-  else if (texture.texture() & BTexture::Elliptic) egradient();
-  else if (texture.texture() & BTexture::Horizontal) hgradient();
-  else if (texture.texture() & BTexture::Pyramid) pgradient();
-  else if (texture.texture() & BTexture::Rectangle) rgradient();
-  else if (texture.texture() & BTexture::Vertical) vgradient();
-  else if (texture.texture() & BTexture::CrossDiagonal) cdgradient();
-  else if (texture.texture() & BTexture::PipeCross) pcgradient();
+  if (texture.texture() & Texture::Diagonal) dgradient();
+  else if (texture.texture() & Texture::Elliptic) egradient();
+  else if (texture.texture() & Texture::Horizontal) hgradient();
+  else if (texture.texture() & Texture::Pyramid) pgradient();
+  else if (texture.texture() & Texture::Rectangle) rgradient();
+  else if (texture.texture() & Texture::Vertical) vgradient();
+  else if (texture.texture() & Texture::CrossDiagonal) cdgradient();
+  else if (texture.texture() & Texture::PipeCross) pcgradient();
 
-  if (texture.texture() & BTexture::Bevel1) bevel1();
-  else if (texture.texture() & BTexture::Bevel2) bevel2();
+  if (texture.texture() & Texture::Bevel1) bevel1();
+  else if (texture.texture() & Texture::Bevel2) bevel2();
 
-  if (texture.texture() & BTexture::Border) border(texture);
+  if (texture.texture() & Texture::Border) border(texture);
 
   if (inverted) invert();
 
@@ -246,7 +246,7 @@ void assignPixelData(unsigned int bit_depth, unsigned char **data,
 // algorithm: ordered dithering... many many thanks to rasterman
 // (raster@rasterman.com) for telling me about this... portions of this
 // code is based off of his code in Imlib
-void BImage::TrueColorDither(unsigned int bit_depth, int bytes_per_line,
+void Image::TrueColorDither(unsigned int bit_depth, int bytes_per_line,
                             unsigned char *pixel_data) {
   unsigned int x, y, dithx, dithy, r, g, b, er, eg, eb, offset;
   unsigned char *ppixel_data = pixel_data;
@@ -293,7 +293,7 @@ const static unsigned char dither8[8][8] = {
   { 63, 31, 55, 23, 61, 29, 53, 21}
 };
 
-void BImage::OrderedPseudoColorDither(int bytes_per_line,
+void Image::OrderedPseudoColorDither(int bytes_per_line,
                                      unsigned char *pixel_data) {
   unsigned int x, y, dithx, dithy, r, g, b, er, eg, eb, offset;
   unsigned long pixel;
@@ -330,7 +330,7 @@ void BImage::OrderedPseudoColorDither(int bytes_per_line,
 }
 #endif
 
-void BImage::PseudoColorDither(int bytes_per_line, unsigned char *pixel_data) {
+void Image::PseudoColorDither(int bytes_per_line, unsigned char *pixel_data) {
   short *terr,
     *rerr = new short[width + 2],
     *gerr = new short[width + 2],
@@ -423,14 +423,14 @@ void BImage::PseudoColorDither(int bytes_per_line, unsigned char *pixel_data) {
   delete [] nberr;
 }
 
-XImage *BImage::renderXImage(void) {
+XImage *Image::renderXImage(void) {
   XImage *image =
-    XCreateImage(OBDisplay::display,
+    XCreateImage(Display::display,
                  control->getVisual(), control->getDepth(), ZPixmap, 0, 0,
                  width, height, 32, 0);
 
   if (! image) {
-    fprintf(stderr, "BImage::renderXImage: error creating XImage\n");
+    fprintf(stderr, "Image::renderXImage: error creating XImage\n");
     return (XImage *) 0;
   }
 
@@ -525,7 +525,7 @@ XImage *BImage::renderXImage(void) {
   }
 
   if (unsupported) {
-    fprintf(stderr, "BImage::renderXImage: unsupported visual\n");
+    fprintf(stderr, "Image::renderXImage: unsupported visual\n");
     delete [] d;
     XDestroyImage(image);
     return (XImage *) 0;
@@ -537,31 +537,31 @@ XImage *BImage::renderXImage(void) {
 }
 
 
-Pixmap BImage::renderPixmap(void) {
+Pixmap Image::renderPixmap(void) {
   Pixmap pixmap =
-    XCreatePixmap(OBDisplay::display,
+    XCreatePixmap(Display::display,
                   control->getDrawable(), width, height, control->getDepth());
 
   if (pixmap == None) {
-    fprintf(stderr, "BImage::renderPixmap: error creating pixmap\n");
+    fprintf(stderr, "Image::renderPixmap: error creating pixmap\n");
     return None;
   }
 
   XImage *image = renderXImage();
 
   if (! image) {
-    XFreePixmap(OBDisplay::display, pixmap);
+    XFreePixmap(Display::display, pixmap);
     return None;
   }
 
   if (! image->data) {
     XDestroyImage(image);
-    XFreePixmap(OBDisplay::display, pixmap);
+    XFreePixmap(Display::display, pixmap);
     return None;
   }
 
-  XPutImage(OBDisplay::display, pixmap,
-           DefaultGC(OBDisplay::display,
+  XPutImage(Display::display, pixmap,
+           DefaultGC(Display::display,
                      control->getScreenInfo()->screen()),
             image, 0, 0, 0, 0, width, height);
 
@@ -576,7 +576,7 @@ Pixmap BImage::renderPixmap(void) {
 }
 
 
-void BImage::bevel1(void) {
+void Image::bevel1(void) {
   if (width > 2 && height > 2) {
     unsigned char *pr = red, *pg = green, *pb = blue;
 
@@ -714,7 +714,7 @@ void BImage::bevel1(void) {
 }
 
 
-void BImage::bevel2(void) {
+void Image::bevel2(void) {
   if (width > 4 && height > 4) {
     unsigned char r, g, b, rr ,gg ,bb, *pr = red + width + 1,
       *pg = green + width + 1, *pb = blue + width + 1;
@@ -793,7 +793,7 @@ void BImage::bevel2(void) {
 }
 
 
-void BImage::border(const BTexture &texture) {
+void Image::border(const Texture &texture) {
   if (width < 2 || height < 2) return;
   
   register unsigned int i;
@@ -837,7 +837,7 @@ void BImage::border(const BTexture &texture) {
 }
 
 
-void BImage::invert(void) {
+void Image::invert(void) {
   register unsigned int i, j, wh = (width * height) - 1;
   unsigned char tmp;
 
@@ -857,7 +857,7 @@ void BImage::invert(void) {
 }
 
 
-void BImage::dgradient(void) {
+void Image::dgradient(void) {
   // diagonal gradient code was written by Mike Cole <mike@mydot.com>
   // modified for interlacing by Brad Hughes
 
@@ -958,7 +958,7 @@ void BImage::dgradient(void) {
 }
 
 
-void BImage::hgradient(void) {
+void Image::hgradient(void) {
   float drx, dgx, dbx,
     xr = (float) from.red(),
     xg = (float) from.green(),
@@ -1050,7 +1050,7 @@ void BImage::hgradient(void) {
 }
 
 
-void BImage::vgradient(void) {
+void Image::vgradient(void) {
   float dry, dgy, dby,
     yr = (float) from.red(),
     yg = (float) from.green(),
@@ -1123,7 +1123,7 @@ void BImage::vgradient(void) {
 }
 
 
-void BImage::pgradient(void) {
+void Image::pgradient(void) {
   // pyramid gradient -  based on original dgradient, written by
   // Mosfet (mosfet@kde.org)
   // adapted from kde sources for Blackbox by Brad Hughes
@@ -1233,7 +1233,7 @@ void BImage::pgradient(void) {
 }
 
 
-void BImage::rgradient(void) {
+void Image::rgradient(void) {
   // rectangle gradient -  based on original dgradient, written by
   // Mosfet (mosfet@kde.org)
   // adapted from kde sources for Blackbox by Brad Hughes
@@ -1342,7 +1342,7 @@ void BImage::rgradient(void) {
 }
 
 
-void BImage::egradient(void) {
+void Image::egradient(void) {
   // elliptic gradient -  based on original dgradient, written by
   // Mosfet (mosfet@kde.org)
   // adapted from kde sources for Blackbox by Brad Hughes
@@ -1462,7 +1462,7 @@ void BImage::egradient(void) {
 }
 
 
-void BImage::pcgradient(void) {
+void Image::pcgradient(void) {
   // pipe cross gradient -  based on original dgradient, written by
   // Mosfet (mosfet@kde.org)
   // adapted from kde sources for Blackbox by Brad Hughes
@@ -1573,7 +1573,7 @@ void BImage::pcgradient(void) {
 }
 
 
-void BImage::cdgradient(void) {
+void Image::cdgradient(void) {
   // cross diagonal gradient -  based on original dgradient, written by
   // Mosfet (mosfet@kde.org)
   // adapted from kde sources for Blackbox by Brad Hughes
index da489323af7e7d1112511d9dbf70d965b0a0a89e..d172a21e2ecb392fc4469f375653a37c9ae2370e 100644 (file)
@@ -1,6 +1,6 @@
-// -*- mode: C++; indent-tabs-mode: nil; -*-
-#ifndef   __Image_hh
-#define   __Image_hh
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
+#ifndef __image_hh
+#define __image_hh
 
 extern "C" {
 #include <X11/Xlib.h>
@@ -15,17 +15,17 @@ extern "C" {
 
 namespace otk {
 
-class BImageControl;
-class BTexture;
+class ImageControl;
+class Texture;
 class ScreenInfo;
 
-class BImage {
+class Image {
 private:
-  BImageControl *control;
+  ImageControl *control;
   bool interlaced;
   XColor *colors;
 
-  BColor from, to;
+  Color from, to;
   int red_offset, green_offset, blue_offset, red_bits, green_bits, blue_bits,
     ncolors, cpc, cpccpc;
   unsigned char *red, *green, *blue, *red_table, *green_table, *blue_table;
@@ -39,15 +39,15 @@ private:
 #endif
 
   Pixmap renderPixmap(void);
-  Pixmap render_solid(const BTexture &texture);
-  Pixmap render_gradient(const BTexture &texture);
+  Pixmap render_solid(const Texture &texture);
+  Pixmap render_gradient(const Texture &texture);
 
   XImage *renderXImage(void);
 
   void invert(void);
   void bevel1(void);
   void bevel2(void);
-  void border(const BTexture &texture);
+  void border(const Texture &texture);
   void dgradient(void);
   void egradient(void);
   void hgradient(void);
@@ -59,14 +59,14 @@ private:
 
 
 public:
-  BImage(BImageControl *c, int w, int h);
-  ~BImage(void);
+  Image(ImageControl *c, int w, int h);
+  ~Image(void);
 
-  Pixmap render(const BTexture &texture);
+  Pixmap render(const Texture &texture);
 };
 
 
-class BImageControl {
+class ImageControl {
 public:
 #ifndef SWIG
   struct CachedImage {
@@ -77,12 +77,12 @@ public:
   };
 #endif
 
-  BImageControl(otk::OBTimerQueueManager *timermanager,
+  ImageControl(otk::TimerQueueManager *timermanager,
                 const otk::ScreenInfo *scrn,
                 bool _dither= False, int _cpc = 4,
                 unsigned long cache_timeout = 300000l,
                 unsigned long cmax = 200l);
-  virtual ~BImageControl(void);
+  virtual ~ImageControl(void);
 
   inline bool doDither(void) { return dither; }
 
@@ -100,7 +100,7 @@ public:
   unsigned long getSqrt(unsigned int x);
 
   Pixmap renderImage(unsigned int width, unsigned int height,
-                     const otk::BTexture &texture);
+                     const Texture &texture);
 
   void installRootColormap(void);
   void removeImage(Pixmap pixmap);
@@ -114,12 +114,12 @@ public:
   void setDither(bool d) { dither = d; }
   void setColorsPerChannel(int cpc);
 
-  static void timeout(BImageControl *t);
+  static void timeout(ImageControl *t);
 
 private:
   bool dither;
   const ScreenInfo *screeninfo;
-  OBTimer *timer;
+  Timer *timer;
 
   Colormap colormap;
 
@@ -139,10 +139,10 @@ private:
 
   Pixmap searchCache(const unsigned int width, const unsigned int height,
                      const unsigned long texture,
-                     const BColor &c1, const BColor &c2);
+                     const Color &c1, const Color &c2);
 };
 
 }
 
-#endif // __Image_hh
+#endif // __image_hh
 
index 09823b8e2499e8f30ed8ee0d3dead765727de8b3..4496c0d5a9326579d67471d115d1b6bd68a0c96a 100644 (file)
@@ -39,9 +39,9 @@ static unsigned long bsqrt(unsigned long x) {
   }
 }
 
-BImageControl *ctrl = 0;
+ImageControl *ctrl = 0;
 
-BImageControl::BImageControl(OBTimerQueueManager *timermanager,
+ImageControl::ImageControl(TimerQueueManager *timermanager,
                              const ScreenInfo *scrn,
                              bool _dither, int _cpc,
                              unsigned long cache_timeout,
@@ -54,11 +54,11 @@ BImageControl::BImageControl(OBTimerQueueManager *timermanager,
 
   cache_max = cmax;
   if (cache_timeout) {
-    timer = new OBTimer(timermanager, (OBTimeoutHandler)timeout, this);
+    timer = new Timer(timermanager, (TimeoutHandler)timeout, this);
     timer->setTimeout(cache_timeout);
     timer->start();
   } else {
-    timer = (OBTimer *) 0;
+    timer = (Timer *) 0;
   }
 
   colors = (XColor *) 0;
@@ -75,7 +75,7 @@ BImageControl::BImageControl(OBTimerQueueManager *timermanager,
   colormap = screeninfo->colormap();
 
   int count;
-  XPixmapFormatValues *pmv = XListPixmapFormats(OBDisplay::display,
+  XPixmapFormatValues *pmv = XListPixmapFormats(Display::display,
                                                 &count);
   if (pmv) {
     bits_per_pixel = 0;
@@ -129,7 +129,7 @@ BImageControl::BImageControl(OBTimerQueueManager *timermanager,
 
     if (colors_per_channel < 2 || ncolors > (1 << screen_depth)) {
       fprintf(stderr,
-             "BImageControl::BImageControl: invalid colormap size %d "
+             "ImageControl::ImageControl: invalid colormap size %d "
               "(%d/%d/%d) - reducing",
              ncolors, colors_per_channel, colors_per_channel,
              colors_per_channel);
@@ -139,7 +139,7 @@ BImageControl::BImageControl(OBTimerQueueManager *timermanager,
 
     colors = new XColor[ncolors];
     if (! colors) {
-      fprintf(stderr, "BImageControl::BImageControl: error allocating "
+      fprintf(stderr, "ImageControl::ImageControl: error allocating "
               "colormap\n");
       exit(1);
     }
@@ -168,7 +168,7 @@ BImageControl::BImageControl(OBTimerQueueManager *timermanager,
        }
 
     for (i = 0; i < ncolors; i++) {
-      if (! XAllocColor(OBDisplay::display, colormap, &colors[i])) {
+      if (! XAllocColor(Display::display, colormap, &colors[i])) {
        fprintf(stderr, "couldn't alloc color %i %i %i\n",
                colors[i].red, colors[i].green, colors[i].blue);
        colors[i].flags = 0;
@@ -183,7 +183,7 @@ BImageControl::BImageControl(OBTimerQueueManager *timermanager,
     for (i = 0; i < incolors; i++)
       icolors[i].pixel = i;
 
-    XQueryColors(OBDisplay::display, colormap, icolors, incolors);
+    XQueryColors(Display::display, colormap, icolors, incolors);
     for (i = 0; i < ncolors; i++) {
       if (! colors[i].flags) {
        unsigned long chk = 0xffffffff, pixel, close = 0;
@@ -205,7 +205,7 @@ BImageControl::BImageControl(OBTimerQueueManager *timermanager,
            colors[i].green = icolors[close].green;
            colors[i].blue = icolors[close].blue;
 
-           if (XAllocColor(OBDisplay::display, colormap,
+           if (XAllocColor(Display::display, colormap,
                            &colors[i])) {
              colors[i].flags = DoRed|DoGreen|DoBlue;
              break;
@@ -234,7 +234,7 @@ BImageControl::BImageControl(OBTimerQueueManager *timermanager,
 
     if (colors_per_channel < 2 || ncolors > (1 << screen_depth)) {
       fprintf(stderr,
-              "BImageControl::BImageControl: invalid colormap size %d "
+              "ImageControl::ImageControl: invalid colormap size %d "
               "(%d/%d/%d) - reducing",
              ncolors, colors_per_channel, colors_per_channel,
              colors_per_channel);
@@ -245,7 +245,7 @@ BImageControl::BImageControl(OBTimerQueueManager *timermanager,
     colors = new XColor[ncolors];
     if (! colors) {
       fprintf(stderr,
-              "BImageControl::BImageControl: error allocating colormap\n");
+              "ImageControl::ImageControl: error allocating colormap\n");
       exit(1);
     }
 
@@ -262,7 +262,7 @@ BImageControl::BImageControl(OBTimerQueueManager *timermanager,
       colors[i].blue = (i * 0xffff) / (colors_per_channel - 1);;
       colors[i].flags = DoRed|DoGreen|DoBlue;
 
-      if (! XAllocColor(OBDisplay::display, colormap,
+      if (! XAllocColor(Display::display, colormap,
                        &colors[i])) {
        fprintf(stderr, "couldn't alloc color %i %i %i\n",
                colors[i].red, colors[i].green, colors[i].blue);
@@ -279,7 +279,7 @@ BImageControl::BImageControl(OBTimerQueueManager *timermanager,
     for (i = 0; i < incolors; i++)
       icolors[i].pixel = i;
 
-    XQueryColors(OBDisplay::display, colormap, icolors, incolors);
+    XQueryColors(Display::display, colormap, icolors, incolors);
     for (i = 0; i < ncolors; i++) {
       if (! colors[i].flags) {
        unsigned long chk = 0xffffffff, pixel, close = 0;
@@ -301,7 +301,7 @@ BImageControl::BImageControl(OBTimerQueueManager *timermanager,
            colors[i].green = icolors[close].green;
            colors[i].blue = icolors[close].blue;
 
-           if (XAllocColor(OBDisplay::display, colormap,
+           if (XAllocColor(Display::display, colormap,
                            &colors[i])) {
              colors[i].flags = DoRed|DoGreen|DoBlue;
              break;
@@ -315,14 +315,14 @@ BImageControl::BImageControl(OBTimerQueueManager *timermanager,
   }
 
   default:
-    fprintf(stderr, "BImageControl::BImageControl: unsupported visual %d\n",
+    fprintf(stderr, "ImageControl::ImageControl: unsupported visual %d\n",
            getVisual()->c_class);
     exit(1);
   }
 }
 
 
-BImageControl::~BImageControl(void) {
+ImageControl::~ImageControl(void) {
   delete [] sqrt_table;
 
   delete [] grad_xbuffer;
@@ -335,20 +335,20 @@ BImageControl::~BImageControl(void) {
     for (int i = 0; i < ncolors; i++)
       *(pixels + i) = (*(colors + i)).pixel;
 
-    XFreeColors(OBDisplay::display, colormap, pixels, ncolors, 0);
+    XFreeColors(Display::display, colormap, pixels, ncolors, 0);
 
     delete [] colors;
   }
 
   if (! cache.empty()) {
     //#ifdef DEBUG
-    fprintf(stderr, "BImageContol::~BImageControl: pixmap cache - "
+    fprintf(stderr, "ImageContol::~ImageControl: pixmap cache - "
             "releasing %d pixmaps\n", cache.size());
     //#endif
     CacheContainer::iterator it = cache.begin();
     const CacheContainer::iterator end = cache.end();
     for (; it != end; ++it)
-      XFreePixmap(OBDisplay::display, it->pixmap);
+      XFreePixmap(Display::display, it->pixmap);
   }
   if (timer) {
     timer->stop();
@@ -357,10 +357,10 @@ BImageControl::~BImageControl(void) {
 }
 
 
-Pixmap BImageControl::searchCache(const unsigned int width,
+Pixmap ImageControl::searchCache(const unsigned int width,
                                   const unsigned int height,
                                   const unsigned long texture,
-                                  const BColor &c1, const BColor &c2) {
+                                  const Color &c1, const Color &c2) {
   if (cache.empty())
     return None;
 
@@ -370,7 +370,7 @@ Pixmap BImageControl::searchCache(const unsigned int width,
     CachedImage& tmp = *it;
     if (tmp.width == width && tmp.height == height &&
         tmp.texture == texture && tmp.pixel1 == c1.pixel())
-      if (texture & BTexture::Gradient) {
+      if (texture & Texture::Gradient) {
         if (tmp.pixel2 == c2.pixel()) {
           tmp.count++;
           return tmp.pixmap;
@@ -384,15 +384,15 @@ Pixmap BImageControl::searchCache(const unsigned int width,
 }
 
 
-Pixmap BImageControl::renderImage(unsigned int width, unsigned int height,
-                                  const BTexture &texture) {
-  if (texture.texture() & BTexture::Parent_Relative) return ParentRelative;
+Pixmap ImageControl::renderImage(unsigned int width, unsigned int height,
+                                  const Texture &texture) {
+  if (texture.texture() & Texture::Parent_Relative) return ParentRelative;
 
   Pixmap pixmap = searchCache(width, height, texture.texture(),
                              texture.color(), texture.colorTo());
   if (pixmap) return pixmap;
 
-  BImage image(this, width, height);
+  Image image(this, width, height);
   pixmap = image.render(texture);
 
   if (! pixmap)
@@ -407,7 +407,7 @@ Pixmap BImageControl::renderImage(unsigned int width, unsigned int height,
   tmp.texture = texture.texture();
   tmp.pixel1 = texture.color().pixel();
 
-  if (texture.texture() & BTexture::Gradient)
+  if (texture.texture() & Texture::Gradient)
     tmp.pixel2 = texture.colorTo().pixel();
   else
     tmp.pixel2 = 0l;
@@ -416,7 +416,7 @@ Pixmap BImageControl::renderImage(unsigned int width, unsigned int height,
 
   if (cache.size() > cache_max) {
 #ifdef    DEBUG
-    fprintf(stderr, "BImageControl::renderImage: cache is large, "
+    fprintf(stderr, "ImageControl::renderImage: cache is large, "
       "forcing cleanout\n");
 #endif // DEBUG
 
@@ -427,7 +427,7 @@ Pixmap BImageControl::renderImage(unsigned int width, unsigned int height,
 }
 
 
-void BImageControl::removeImage(Pixmap pixmap) {
+void ImageControl::removeImage(Pixmap pixmap) {
   if (! pixmap)
     return;
 
@@ -444,7 +444,7 @@ void BImageControl::removeImage(Pixmap pixmap) {
 }
 
 
-void BImageControl::getColorTables(unsigned char **rmt, unsigned char **gmt,
+void ImageControl::getColorTables(unsigned char **rmt, unsigned char **gmt,
                                   unsigned char **bmt,
                                   int *roff, int *goff, int *boff,
                                    int *rbit, int *gbit, int *bbit) {
@@ -462,13 +462,13 @@ void BImageControl::getColorTables(unsigned char **rmt, unsigned char **gmt,
 }
 
 
-void BImageControl::getXColorTable(XColor **c, int *n) {
+void ImageControl::getXColorTable(XColor **c, int *n) {
   if (c) *c = colors;
   if (n) *n = ncolors;
 }
 
 
-void BImageControl::getGradientBuffers(unsigned int w,
+void ImageControl::getGradientBuffers(unsigned int w,
                                       unsigned int h,
                                       unsigned int **xbuf,
                                       unsigned int **ybuf)
@@ -496,10 +496,10 @@ void BImageControl::getGradientBuffers(unsigned int w,
 }
 
 
-void BImageControl::installRootColormap(void) {
+void ImageControl::installRootColormap(void) {
   int ncmap = 0;
   Colormap *cmaps =
-    XListInstalledColormaps(OBDisplay::display, window, &ncmap);
+    XListInstalledColormaps(Display::display, window, &ncmap);
 
   if (cmaps) {
     bool install = True;
@@ -508,14 +508,14 @@ void BImageControl::installRootColormap(void) {
        install = False;
 
     if (install)
-      XInstallColormap(OBDisplay::display, colormap);
+      XInstallColormap(Display::display, colormap);
 
     XFree(cmaps);
   }
 }
 
 
-void BImageControl::setColorsPerChannel(int cpc) {
+void ImageControl::setColorsPerChannel(int cpc) {
   if (cpc < 2) cpc = 2;
   if (cpc > 6) cpc = 6;
 
@@ -523,7 +523,7 @@ void BImageControl::setColorsPerChannel(int cpc) {
 }
 
 
-unsigned long BImageControl::getSqrt(unsigned int x) {
+unsigned long ImageControl::getSqrt(unsigned int x) {
   if (! sqrt_table) {
     // build sqrt table for use with elliptic gradient
 
@@ -538,7 +538,7 @@ unsigned long BImageControl::getSqrt(unsigned int x) {
 
 
 struct ZeroRefCheck {
-  inline bool operator()(const BImageControl::CachedImage &image) const {
+  inline bool operator()(const ImageControl::CachedImage &image) const {
     return (image.count == 0);
   }
 };
@@ -546,14 +546,14 @@ struct ZeroRefCheck {
 struct CacheCleaner {
   ZeroRefCheck ref_check;
   CacheCleaner() {}
-  inline void operator()(const BImageControl::CachedImage& image) const {
+  inline void operator()(const ImageControl::CachedImage& image) const {
     if (ref_check(image))
-      XFreePixmap(OBDisplay::display, image.pixmap);
+      XFreePixmap(Display::display, image.pixmap);
   }
 };
 
 
-void BImageControl::timeout(BImageControl *t) {
+void ImageControl::timeout(ImageControl *t) {
   CacheCleaner cleaner;
   std::for_each(t->cache.begin(), t->cache.end(), cleaner);
   t->cache.remove_if(cleaner.ref_check);
index 4a61efd078fca007c669a6c8b010b43da167c7a1..6b6a8e358424406a34a2ca95678f501cbfeeb1ad 100644 (file)
@@ -8,31 +8,31 @@
 
 namespace otk {
 
-OtkLabel::OtkLabel(OtkWidget *parent)
-  : OtkWidget(parent), _text("")
+Label::Label(Widget *parent)
+  : Widget(parent), _text("")
 {
-  const ScreenInfo *info = OBDisplay::screenInfo(screen());
-  _xftdraw = XftDrawCreate(OBDisplay::display, window(), info->visual(),
+  const ScreenInfo *info = Display::screenInfo(screen());
+  _xftdraw = XftDrawCreate(Display::display, window(), info->visual(),
                            info->colormap());
 }
 
-OtkLabel::~OtkLabel()
+Label::~Label()
 {
   XftDrawDestroy(_xftdraw);
 }
 
-void OtkLabel::setStyle(Style *style)
+void Label::setStyle(Style *style)
 {
-  OtkWidget::setStyle(style);
+  Widget::setStyle(style);
 
   setTexture(style->getLabelUnfocus());
 }
 
 
-void OtkLabel::update(void)
+void Label::update(void)
 {
   if (_dirty) {
-    const BFont *ft = style()->getFont();
+    const Font *ft = style()->getFont();
     unsigned int sidemargin = style()->getBevelWidth() * 2;
 
     std::string t = _text; // the actual text to draw
@@ -64,11 +64,11 @@ void OtkLabel::update(void)
       }
     }
 
-    OtkWidget::update();
+    Widget::update();
 
     ft->drawString(_xftdraw, x, 0, *style()->getTextUnfocus(), t);
   } else
-    OtkWidget::update();
+    Widget::update();
 }
 
 }
index f80f76c78ac9b54e2281ac3371e260434a82fd4d..0366c262c7195285abc1b6acc5090c331b061d65 100644 (file)
@@ -1,3 +1,4 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef __label_hh
 #define __label_hh
 
@@ -6,12 +7,12 @@
 
 namespace otk {
 
-class OtkLabel : public OtkWidget {
+class Label : public Widget {
 
 public:
 
-  OtkLabel(OtkWidget *parent);
-  ~OtkLabel();
+  Label(Widget *parent);
+  ~Label();
 
   inline const std::string &getText(void) const { return _text; }
   void setText(const std::string &text) { _text = text; _dirty = true; }
index 2ec4f2b080e38aa34814466538135547deb1aff4..b6e24a75f25d579a32d34eb2af35f647482cd6c0 100644 (file)
@@ -1,3 +1,4 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef __otk_hh
 #define __otk_hh
 
diff --git a/otk/otk.py b/otk/otk.py
deleted file mode 100644 (file)
index 8e4f8cb..0000000
+++ /dev/null
@@ -1,1675 +0,0 @@
-# This file was created automatically by SWIG.
-# Don't modify this file, modify the SWIG interface instead.
-# This file is compatible with both classic and new-style classes.
-import _otk
-def _swig_setattr(self,class_type,name,value):
-    if (name == "this"):
-        if isinstance(value, class_type):
-            self.__dict__[name] = value.this
-            if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
-            del value.thisown
-            return
-    method = class_type.__swig_setmethods__.get(name,None)
-    if method: return method(self,value)
-    self.__dict__[name] = value
-
-def _swig_getattr(self,class_type,name):
-    method = class_type.__swig_getmethods__.get(name,None)
-    if method: return method(self)
-    raise AttributeError,name
-
-import types
-try:
-    _object = types.ObjectType
-    _newclass = 1
-except AttributeError:
-    class _object : pass
-    _newclass = 0
-
-
-OBDisplay_display = _otk.OBDisplay_display
-
-class OtkEventDispatcher(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, OtkEventDispatcher, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, OtkEventDispatcher, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_OtkEventDispatcher,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_OtkEventDispatcher):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def clearAllHandlers(*args): return apply(_otk.OtkEventDispatcher_clearAllHandlers,args)
-    def registerHandler(*args): return apply(_otk.OtkEventDispatcher_registerHandler,args)
-    def clearHandler(*args): return apply(_otk.OtkEventDispatcher_clearHandler,args)
-    def dispatchEvents(*args): return apply(_otk.OtkEventDispatcher_dispatchEvents,args)
-    def setFallbackHandler(*args): return apply(_otk.OtkEventDispatcher_setFallbackHandler,args)
-    def getFallbackHandler(*args): return apply(_otk.OtkEventDispatcher_getFallbackHandler,args)
-    def setMasterHandler(*args): return apply(_otk.OtkEventDispatcher_setMasterHandler,args)
-    def getMasterHandler(*args): return apply(_otk.OtkEventDispatcher_getMasterHandler,args)
-    def findHandler(*args): return apply(_otk.OtkEventDispatcher_findHandler,args)
-    def lastTime(*args): return apply(_otk.OtkEventDispatcher_lastTime,args)
-    def __repr__(self):
-        return "<C OtkEventDispatcher instance at %s>" % (self.this,)
-
-class OtkEventDispatcherPtr(OtkEventDispatcher):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = OtkEventDispatcher
-_otk.OtkEventDispatcher_swigregister(OtkEventDispatcherPtr)
-
-class OtkEventHandler(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, OtkEventHandler, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, OtkEventHandler, name)
-    def handle(*args): return apply(_otk.OtkEventHandler_handle,args)
-    def keyPressHandler(*args): return apply(_otk.OtkEventHandler_keyPressHandler,args)
-    def keyReleaseHandler(*args): return apply(_otk.OtkEventHandler_keyReleaseHandler,args)
-    def buttonPressHandler(*args): return apply(_otk.OtkEventHandler_buttonPressHandler,args)
-    def buttonReleaseHandler(*args): return apply(_otk.OtkEventHandler_buttonReleaseHandler,args)
-    def motionHandler(*args): return apply(_otk.OtkEventHandler_motionHandler,args)
-    def enterHandler(*args): return apply(_otk.OtkEventHandler_enterHandler,args)
-    def leaveHandler(*args): return apply(_otk.OtkEventHandler_leaveHandler,args)
-    def focusHandler(*args): return apply(_otk.OtkEventHandler_focusHandler,args)
-    def unfocusHandler(*args): return apply(_otk.OtkEventHandler_unfocusHandler,args)
-    def exposeHandler(*args): return apply(_otk.OtkEventHandler_exposeHandler,args)
-    def graphicsExposeHandler(*args): return apply(_otk.OtkEventHandler_graphicsExposeHandler,args)
-    def noExposeEventHandler(*args): return apply(_otk.OtkEventHandler_noExposeEventHandler,args)
-    def circulateRequestHandler(*args): return apply(_otk.OtkEventHandler_circulateRequestHandler,args)
-    def configureRequestHandler(*args): return apply(_otk.OtkEventHandler_configureRequestHandler,args)
-    def mapRequestHandler(*args): return apply(_otk.OtkEventHandler_mapRequestHandler,args)
-    def resizeRequestHandler(*args): return apply(_otk.OtkEventHandler_resizeRequestHandler,args)
-    def circulateHandler(*args): return apply(_otk.OtkEventHandler_circulateHandler,args)
-    def configureHandler(*args): return apply(_otk.OtkEventHandler_configureHandler,args)
-    def createHandler(*args): return apply(_otk.OtkEventHandler_createHandler,args)
-    def destroyHandler(*args): return apply(_otk.OtkEventHandler_destroyHandler,args)
-    def gravityHandler(*args): return apply(_otk.OtkEventHandler_gravityHandler,args)
-    def mapHandler(*args): return apply(_otk.OtkEventHandler_mapHandler,args)
-    def mappingHandler(*args): return apply(_otk.OtkEventHandler_mappingHandler,args)
-    def reparentHandler(*args): return apply(_otk.OtkEventHandler_reparentHandler,args)
-    def unmapHandler(*args): return apply(_otk.OtkEventHandler_unmapHandler,args)
-    def visibilityHandler(*args): return apply(_otk.OtkEventHandler_visibilityHandler,args)
-    def colorMapHandler(*args): return apply(_otk.OtkEventHandler_colorMapHandler,args)
-    def propertyHandler(*args): return apply(_otk.OtkEventHandler_propertyHandler,args)
-    def selectionClearHandler(*args): return apply(_otk.OtkEventHandler_selectionClearHandler,args)
-    def selectionHandler(*args): return apply(_otk.OtkEventHandler_selectionHandler,args)
-    def selectionRequestHandler(*args): return apply(_otk.OtkEventHandler_selectionRequestHandler,args)
-    def clientMessageHandler(*args): return apply(_otk.OtkEventHandler_clientMessageHandler,args)
-    def __del__(self, destroy= _otk.delete_OtkEventHandler):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def __init__(self): raise RuntimeError, "No constructor defined"
-    def __repr__(self):
-        return "<C OtkEventHandler instance at %s>" % (self.this,)
-
-class OtkEventHandlerPtr(OtkEventHandler):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = OtkEventHandler
-_otk.OtkEventHandler_swigregister(OtkEventHandlerPtr)
-
-class OtkWidget(OtkEventHandler):
-    __swig_setmethods__ = {}
-    for _s in [OtkEventHandler]: __swig_setmethods__.update(_s.__swig_setmethods__)
-    __setattr__ = lambda self, name, value: _swig_setattr(self, OtkWidget, name, value)
-    __swig_getmethods__ = {}
-    for _s in [OtkEventHandler]: __swig_getmethods__.update(_s.__swig_getmethods__)
-    __getattr__ = lambda self, name: _swig_getattr(self, OtkWidget, name)
-    Horizontal = _otk.OtkWidget_Horizontal
-    Vertical = _otk.OtkWidget_Vertical
-    def __init__(self,*args):
-        self.this = apply(_otk.new_OtkWidget,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_OtkWidget):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def update(*args): return apply(_otk.OtkWidget_update,args)
-    def exposeHandler(*args): return apply(_otk.OtkWidget_exposeHandler,args)
-    def configureHandler(*args): return apply(_otk.OtkWidget_configureHandler,args)
-    def window(*args): return apply(_otk.OtkWidget_window,args)
-    def parent(*args): return apply(_otk.OtkWidget_parent,args)
-    def children(*args): return apply(_otk.OtkWidget_children,args)
-    def screen(*args): return apply(_otk.OtkWidget_screen,args)
-    def rect(*args): return apply(_otk.OtkWidget_rect,args)
-    def move(*args): return apply(_otk.OtkWidget_move,args)
-    def setWidth(*args): return apply(_otk.OtkWidget_setWidth,args)
-    def setHeight(*args): return apply(_otk.OtkWidget_setHeight,args)
-    def width(*args): return apply(_otk.OtkWidget_width,args)
-    def height(*args): return apply(_otk.OtkWidget_height,args)
-    def resize(*args): return apply(_otk.OtkWidget_resize,args)
-    def setGeometry(*args): return apply(_otk.OtkWidget_setGeometry,args)
-    def isVisible(*args): return apply(_otk.OtkWidget_isVisible,args)
-    def show(*args): return apply(_otk.OtkWidget_show,args)
-    def hide(*args): return apply(_otk.OtkWidget_hide,args)
-    def isFocused(*args): return apply(_otk.OtkWidget_isFocused,args)
-    def focus(*args): return apply(_otk.OtkWidget_focus,args)
-    def unfocus(*args): return apply(_otk.OtkWidget_unfocus,args)
-    def hasGrabbedMouse(*args): return apply(_otk.OtkWidget_hasGrabbedMouse,args)
-    def grabMouse(*args): return apply(_otk.OtkWidget_grabMouse,args)
-    def ungrabMouse(*args): return apply(_otk.OtkWidget_ungrabMouse,args)
-    def hasGrabbedKeyboard(*args): return apply(_otk.OtkWidget_hasGrabbedKeyboard,args)
-    def grabKeyboard(*args): return apply(_otk.OtkWidget_grabKeyboard,args)
-    def ungrabKeyboard(*args): return apply(_otk.OtkWidget_ungrabKeyboard,args)
-    def texture(*args): return apply(_otk.OtkWidget_texture,args)
-    def setTexture(*args): return apply(_otk.OtkWidget_setTexture,args)
-    def borderColor(*args): return apply(_otk.OtkWidget_borderColor,args)
-    def setBorderColor(*args): return apply(_otk.OtkWidget_setBorderColor,args)
-    def borderWidth(*args): return apply(_otk.OtkWidget_borderWidth,args)
-    def setBorderWidth(*args): return apply(_otk.OtkWidget_setBorderWidth,args)
-    def addChild(*args): return apply(_otk.OtkWidget_addChild,args)
-    def removeChild(*args): return apply(_otk.OtkWidget_removeChild,args)
-    def isStretchableHorz(*args): return apply(_otk.OtkWidget_isStretchableHorz,args)
-    def setStretchableHorz(*args): return apply(_otk.OtkWidget_setStretchableHorz,args)
-    def isStretchableVert(*args): return apply(_otk.OtkWidget_isStretchableVert,args)
-    def setStretchableVert(*args): return apply(_otk.OtkWidget_setStretchableVert,args)
-    def cursor(*args): return apply(_otk.OtkWidget_cursor,args)
-    def setCursor(*args): return apply(_otk.OtkWidget_setCursor,args)
-    def bevelWidth(*args): return apply(_otk.OtkWidget_bevelWidth,args)
-    def setBevelWidth(*args): return apply(_otk.OtkWidget_setBevelWidth,args)
-    def direction(*args): return apply(_otk.OtkWidget_direction,args)
-    def setDirection(*args): return apply(_otk.OtkWidget_setDirection,args)
-    def style(*args): return apply(_otk.OtkWidget_style,args)
-    def setStyle(*args): return apply(_otk.OtkWidget_setStyle,args)
-    def eventDispatcher(*args): return apply(_otk.OtkWidget_eventDispatcher,args)
-    def setEventDispatcher(*args): return apply(_otk.OtkWidget_setEventDispatcher,args)
-    def __repr__(self):
-        return "<C OtkWidget instance at %s>" % (self.this,)
-
-class OtkWidgetPtr(OtkWidget):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = OtkWidget
-_otk.OtkWidget_swigregister(OtkWidgetPtr)
-
-class OtkFocusWidget(OtkWidget):
-    __swig_setmethods__ = {}
-    for _s in [OtkWidget]: __swig_setmethods__.update(_s.__swig_setmethods__)
-    __setattr__ = lambda self, name, value: _swig_setattr(self, OtkFocusWidget, name, value)
-    __swig_getmethods__ = {}
-    for _s in [OtkWidget]: __swig_getmethods__.update(_s.__swig_getmethods__)
-    __getattr__ = lambda self, name: _swig_getattr(self, OtkFocusWidget, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_OtkFocusWidget,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_OtkFocusWidget):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def focus(*args): return apply(_otk.OtkFocusWidget_focus,args)
-    def unfocus(*args): return apply(_otk.OtkFocusWidget_unfocus,args)
-    def setTexture(*args): return apply(_otk.OtkFocusWidget_setTexture,args)
-    def setBorderColor(*args): return apply(_otk.OtkFocusWidget_setBorderColor,args)
-    def setUnfocusTexture(*args): return apply(_otk.OtkFocusWidget_setUnfocusTexture,args)
-    def getUnfocusTexture(*args): return apply(_otk.OtkFocusWidget_getUnfocusTexture,args)
-    def setUnfocusBorderColor(*args): return apply(_otk.OtkFocusWidget_setUnfocusBorderColor,args)
-    def getUnfocusBorderColor(*args): return apply(_otk.OtkFocusWidget_getUnfocusBorderColor,args)
-    def isFocused(*args): return apply(_otk.OtkFocusWidget_isFocused,args)
-    def isUnfocused(*args): return apply(_otk.OtkFocusWidget_isUnfocused,args)
-    def __repr__(self):
-        return "<C OtkFocusWidget instance at %s>" % (self.this,)
-
-class OtkFocusWidgetPtr(OtkFocusWidget):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = OtkFocusWidget
-_otk.OtkFocusWidget_swigregister(OtkFocusWidgetPtr)
-
-class OtkFocusLabel(OtkFocusWidget):
-    __swig_setmethods__ = {}
-    for _s in [OtkFocusWidget]: __swig_setmethods__.update(_s.__swig_setmethods__)
-    __setattr__ = lambda self, name, value: _swig_setattr(self, OtkFocusLabel, name, value)
-    __swig_getmethods__ = {}
-    for _s in [OtkFocusWidget]: __swig_getmethods__.update(_s.__swig_getmethods__)
-    __getattr__ = lambda self, name: _swig_getattr(self, OtkFocusLabel, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_OtkFocusLabel,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_OtkFocusLabel):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def getText(*args): return apply(_otk.OtkFocusLabel_getText,args)
-    def setText(*args): return apply(_otk.OtkFocusLabel_setText,args)
-    def update(*args): return apply(_otk.OtkFocusLabel_update,args)
-    def setStyle(*args): return apply(_otk.OtkFocusLabel_setStyle,args)
-    def __repr__(self):
-        return "<C OtkFocusLabel instance at %s>" % (self.this,)
-
-class OtkFocusLabelPtr(OtkFocusLabel):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = OtkFocusLabel
-_otk.OtkFocusLabel_swigregister(OtkFocusLabelPtr)
-
-class OtkAppWidget(OtkWidget):
-    __swig_setmethods__ = {}
-    for _s in [OtkWidget]: __swig_setmethods__.update(_s.__swig_setmethods__)
-    __setattr__ = lambda self, name, value: _swig_setattr(self, OtkAppWidget, name, value)
-    __swig_getmethods__ = {}
-    for _s in [OtkWidget]: __swig_getmethods__.update(_s.__swig_getmethods__)
-    __getattr__ = lambda self, name: _swig_getattr(self, OtkAppWidget, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_OtkAppWidget,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_OtkAppWidget):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def show(*args): return apply(_otk.OtkAppWidget_show,args)
-    def hide(*args): return apply(_otk.OtkAppWidget_hide,args)
-    def clientMessageHandler(*args): return apply(_otk.OtkAppWidget_clientMessageHandler,args)
-    def __repr__(self):
-        return "<C OtkAppWidget instance at %s>" % (self.this,)
-
-class OtkAppWidgetPtr(OtkAppWidget):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = OtkAppWidget
-_otk.OtkAppWidget_swigregister(OtkAppWidgetPtr)
-
-class OtkApplication(OtkEventDispatcher):
-    __swig_setmethods__ = {}
-    for _s in [OtkEventDispatcher]: __swig_setmethods__.update(_s.__swig_setmethods__)
-    __setattr__ = lambda self, name, value: _swig_setattr(self, OtkApplication, name, value)
-    __swig_getmethods__ = {}
-    for _s in [OtkEventDispatcher]: __swig_getmethods__.update(_s.__swig_getmethods__)
-    __getattr__ = lambda self, name: _swig_getattr(self, OtkApplication, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_OtkApplication,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_OtkApplication):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def run(*args): return apply(_otk.OtkApplication_run,args)
-    def setDockable(*args): return apply(_otk.OtkApplication_setDockable,args)
-    def isDockable(*args): return apply(_otk.OtkApplication_isDockable,args)
-    def getStyle(*args): return apply(_otk.OtkApplication_getStyle,args)
-    def __repr__(self):
-        return "<C OtkApplication instance at %s>" % (self.this,)
-
-class OtkApplicationPtr(OtkApplication):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = OtkApplication
-_otk.OtkApplication_swigregister(OtkApplicationPtr)
-
-class PointerAssassin(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, PointerAssassin, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, PointerAssassin, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_PointerAssassin,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_PointerAssassin):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def __repr__(self):
-        return "<C PointerAssassin instance at %s>" % (self.this,)
-
-class PointerAssassinPtr(PointerAssassin):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = PointerAssassin
-_otk.PointerAssassin_swigregister(PointerAssassinPtr)
-
-class OtkButton(OtkFocusLabel):
-    __swig_setmethods__ = {}
-    for _s in [OtkFocusLabel]: __swig_setmethods__.update(_s.__swig_setmethods__)
-    __setattr__ = lambda self, name, value: _swig_setattr(self, OtkButton, name, value)
-    __swig_getmethods__ = {}
-    for _s in [OtkFocusLabel]: __swig_getmethods__.update(_s.__swig_getmethods__)
-    __getattr__ = lambda self, name: _swig_getattr(self, OtkButton, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_OtkButton,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_OtkButton):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def getPressedFocusTexture(*args): return apply(_otk.OtkButton_getPressedFocusTexture,args)
-    def setPressedFocusTexture(*args): return apply(_otk.OtkButton_setPressedFocusTexture,args)
-    def getPressedUnfocusTexture(*args): return apply(_otk.OtkButton_getPressedUnfocusTexture,args)
-    def setPressedUnfocusTexture(*args): return apply(_otk.OtkButton_setPressedUnfocusTexture,args)
-    def setTexture(*args): return apply(_otk.OtkButton_setTexture,args)
-    def setUnfocusTexture(*args): return apply(_otk.OtkButton_setUnfocusTexture,args)
-    def isPressed(*args): return apply(_otk.OtkButton_isPressed,args)
-    def press(*args): return apply(_otk.OtkButton_press,args)
-    def release(*args): return apply(_otk.OtkButton_release,args)
-    def buttonPressHandler(*args): return apply(_otk.OtkButton_buttonPressHandler,args)
-    def buttonReleaseHandler(*args): return apply(_otk.OtkButton_buttonReleaseHandler,args)
-    def setStyle(*args): return apply(_otk.OtkButton_setStyle,args)
-    def __repr__(self):
-        return "<C OtkButton instance at %s>" % (self.this,)
-
-class OtkButtonPtr(OtkButton):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = OtkButton
-_otk.OtkButton_swigregister(OtkButtonPtr)
-
-class BColor(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, BColor, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, BColor, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_BColor,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_BColor):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def name(*args): return apply(_otk.BColor_name,args)
-    def red(*args): return apply(_otk.BColor_red,args)
-    def green(*args): return apply(_otk.BColor_green,args)
-    def blue(*args): return apply(_otk.BColor_blue,args)
-    def setRGB(*args): return apply(_otk.BColor_setRGB,args)
-    def screen(*args): return apply(_otk.BColor_screen,args)
-    def setScreen(*args): return apply(_otk.BColor_setScreen,args)
-    def isAllocated(*args): return apply(_otk.BColor_isAllocated,args)
-    def isValid(*args): return apply(_otk.BColor_isValid,args)
-    def pixel(*args): return apply(_otk.BColor_pixel,args)
-    def equals(*args): return apply(_otk.BColor_equals,args)
-    __swig_getmethods__["cleanupColorCache"] = lambda x: _otk.BColor_cleanupColorCache
-    if _newclass:cleanupColorCache = staticmethod(_otk.BColor_cleanupColorCache)
-    def __repr__(self):
-        return "<C BColor instance at %s>" % (self.this,)
-
-class BColorPtr(BColor):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = BColor
-_otk.BColor_swigregister(BColorPtr)
-BColor_cleanupColorCache = _otk.BColor_cleanupColorCache
-
-
-class Configuration(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, Configuration, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, Configuration, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_Configuration,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_Configuration):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def file(*args): return apply(_otk.Configuration_file,args)
-    def setFile(*args): return apply(_otk.Configuration_setFile,args)
-    def autoSave(*args): return apply(_otk.Configuration_autoSave,args)
-    def setAutoSave(*args): return apply(_otk.Configuration_setAutoSave,args)
-    def isModified(*args): return apply(_otk.Configuration_isModified,args)
-    def save(*args): return apply(_otk.Configuration_save,args)
-    def load(*args): return apply(_otk.Configuration_load,args)
-    def merge(*args): return apply(_otk.Configuration_merge,args)
-    def create(*args): return apply(_otk.Configuration_create,args)
-    def setValue_bool(*args): return apply(_otk.Configuration_setValue_bool,args)
-    def setValue(*args): return apply(_otk.Configuration_setValue,args)
-    def setValue_unsigned(*args): return apply(_otk.Configuration_setValue_unsigned,args)
-    def setValue_long(*args): return apply(_otk.Configuration_setValue_long,args)
-    def setValue_unsignedlong(*args): return apply(_otk.Configuration_setValue_unsignedlong,args)
-    def setValue_string(*args): return apply(_otk.Configuration_setValue_string,args)
-    def setValue_charptr(*args): return apply(_otk.Configuration_setValue_charptr,args)
-    def getValue(*args): return apply(_otk.Configuration_getValue,args)
-    def __repr__(self):
-        return "<C Configuration instance at %s>" % (self.this,)
-
-class ConfigurationPtr(Configuration):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = Configuration
-_otk.Configuration_swigregister(ConfigurationPtr)
-
-class OBDisplay(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, OBDisplay, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, OBDisplay, name)
-    __swig_getmethods__["initialize"] = lambda x: _otk.OBDisplay_initialize
-    if _newclass:initialize = staticmethod(_otk.OBDisplay_initialize)
-    __swig_getmethods__["destroy"] = lambda x: _otk.OBDisplay_destroy
-    if _newclass:destroy = staticmethod(_otk.OBDisplay_destroy)
-    __swig_getmethods__["gcCache"] = lambda x: _otk.OBDisplay_gcCache
-    if _newclass:gcCache = staticmethod(_otk.OBDisplay_gcCache)
-    __swig_getmethods__["screenInfo"] = lambda x: _otk.OBDisplay_screenInfo
-    if _newclass:screenInfo = staticmethod(_otk.OBDisplay_screenInfo)
-    __swig_getmethods__["findScreen"] = lambda x: _otk.OBDisplay_findScreen
-    if _newclass:findScreen = staticmethod(_otk.OBDisplay_findScreen)
-    __swig_getmethods__["xkb"] = lambda x: _otk.OBDisplay_xkb
-    if _newclass:xkb = staticmethod(_otk.OBDisplay_xkb)
-    __swig_getmethods__["xkbEventBase"] = lambda x: _otk.OBDisplay_xkbEventBase
-    if _newclass:xkbEventBase = staticmethod(_otk.OBDisplay_xkbEventBase)
-    __swig_getmethods__["shape"] = lambda x: _otk.OBDisplay_shape
-    if _newclass:shape = staticmethod(_otk.OBDisplay_shape)
-    __swig_getmethods__["shapeEventBase"] = lambda x: _otk.OBDisplay_shapeEventBase
-    if _newclass:shapeEventBase = staticmethod(_otk.OBDisplay_shapeEventBase)
-    __swig_getmethods__["xinerama"] = lambda x: _otk.OBDisplay_xinerama
-    if _newclass:xinerama = staticmethod(_otk.OBDisplay_xinerama)
-    __swig_getmethods__["numLockMask"] = lambda x: _otk.OBDisplay_numLockMask
-    if _newclass:numLockMask = staticmethod(_otk.OBDisplay_numLockMask)
-    __swig_getmethods__["scrollLockMask"] = lambda x: _otk.OBDisplay_scrollLockMask
-    if _newclass:scrollLockMask = staticmethod(_otk.OBDisplay_scrollLockMask)
-    __swig_getmethods__["grab"] = lambda x: _otk.OBDisplay_grab
-    if _newclass:grab = staticmethod(_otk.OBDisplay_grab)
-    __swig_getmethods__["ungrab"] = lambda x: _otk.OBDisplay_ungrab
-    if _newclass:ungrab = staticmethod(_otk.OBDisplay_ungrab)
-    __swig_getmethods__["grabButton"] = lambda x: _otk.OBDisplay_grabButton
-    if _newclass:grabButton = staticmethod(_otk.OBDisplay_grabButton)
-    __swig_getmethods__["ungrabButton"] = lambda x: _otk.OBDisplay_ungrabButton
-    if _newclass:ungrabButton = staticmethod(_otk.OBDisplay_ungrabButton)
-    __swig_getmethods__["grabKey"] = lambda x: _otk.OBDisplay_grabKey
-    if _newclass:grabKey = staticmethod(_otk.OBDisplay_grabKey)
-    __swig_getmethods__["ungrabKey"] = lambda x: _otk.OBDisplay_ungrabKey
-    if _newclass:ungrabKey = staticmethod(_otk.OBDisplay_ungrabKey)
-    def __del__(self, destroy= _otk.delete_OBDisplay):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def __init__(self): raise RuntimeError, "No constructor defined"
-    def __repr__(self):
-        return "<C OBDisplay instance at %s>" % (self.this,)
-
-class OBDisplayPtr(OBDisplay):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = OBDisplay
-_otk.OBDisplay_swigregister(OBDisplayPtr)
-OBDisplay_initialize = _otk.OBDisplay_initialize
-
-OBDisplay_destroy = _otk.OBDisplay_destroy
-
-OBDisplay_gcCache = _otk.OBDisplay_gcCache
-
-OBDisplay_screenInfo = _otk.OBDisplay_screenInfo
-
-OBDisplay_findScreen = _otk.OBDisplay_findScreen
-
-OBDisplay_xkb = _otk.OBDisplay_xkb
-
-OBDisplay_xkbEventBase = _otk.OBDisplay_xkbEventBase
-
-OBDisplay_shape = _otk.OBDisplay_shape
-
-OBDisplay_shapeEventBase = _otk.OBDisplay_shapeEventBase
-
-OBDisplay_xinerama = _otk.OBDisplay_xinerama
-
-OBDisplay_numLockMask = _otk.OBDisplay_numLockMask
-
-OBDisplay_scrollLockMask = _otk.OBDisplay_scrollLockMask
-
-OBDisplay_grab = _otk.OBDisplay_grab
-
-OBDisplay_ungrab = _otk.OBDisplay_ungrab
-
-OBDisplay_grabButton = _otk.OBDisplay_grabButton
-
-OBDisplay_ungrabButton = _otk.OBDisplay_ungrabButton
-
-OBDisplay_grabKey = _otk.OBDisplay_grabKey
-
-OBDisplay_ungrabKey = _otk.OBDisplay_ungrabKey
-
-
-class BFont(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, BFont, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, BFont, name)
-    __swig_getmethods__["fallbackFont"] = lambda x: _otk.BFont_fallbackFont
-    if _newclass:fallbackFont = staticmethod(_otk.BFont_fallbackFont)
-    __swig_getmethods__["setFallbackFont"] = lambda x: _otk.BFont_setFallbackFont
-    if _newclass:setFallbackFont = staticmethod(_otk.BFont_setFallbackFont)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_BFont,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_BFont):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def fontstring(*args): return apply(_otk.BFont_fontstring,args)
-    def height(*args): return apply(_otk.BFont_height,args)
-    def maxCharWidth(*args): return apply(_otk.BFont_maxCharWidth,args)
-    def measureString(*args): return apply(_otk.BFont_measureString,args)
-    def drawString(*args): return apply(_otk.BFont_drawString,args)
-    def __repr__(self):
-        return "<C BFont instance at %s>" % (self.this,)
-
-class BFontPtr(BFont):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = BFont
-_otk.BFont_swigregister(BFontPtr)
-BFont_fallbackFont = _otk.BFont_fallbackFont
-
-BFont_setFallbackFont = _otk.BFont_setFallbackFont
-
-
-class BGCCacheContext(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, BGCCacheContext, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, BGCCacheContext, name)
-    def set(*args): return apply(_otk.BGCCacheContext_set,args)
-    def __del__(self, destroy= _otk.delete_BGCCacheContext):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def __init__(self): raise RuntimeError, "No constructor defined"
-    def __repr__(self):
-        return "<C BGCCacheContext instance at %s>" % (self.this,)
-
-class BGCCacheContextPtr(BGCCacheContext):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = BGCCacheContext
-_otk.BGCCacheContext_swigregister(BGCCacheContextPtr)
-
-class BGCCacheItem(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, BGCCacheItem, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, BGCCacheItem, name)
-    def gc(*args): return apply(_otk.BGCCacheItem_gc,args)
-    def __del__(self, destroy= _otk.delete_BGCCacheItem):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def __init__(self): raise RuntimeError, "No constructor defined"
-    def __repr__(self):
-        return "<C BGCCacheItem instance at %s>" % (self.this,)
-
-class BGCCacheItemPtr(BGCCacheItem):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = BGCCacheItem
-_otk.BGCCacheItem_swigregister(BGCCacheItemPtr)
-
-class BGCCache(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, BGCCache, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, BGCCache, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_BGCCache,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_BGCCache):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def purge(*args): return apply(_otk.BGCCache_purge,args)
-    def find(*args): return apply(_otk.BGCCache_find,args)
-    def release(*args): return apply(_otk.BGCCache_release,args)
-    def __repr__(self):
-        return "<C BGCCache instance at %s>" % (self.this,)
-
-class BGCCachePtr(BGCCache):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = BGCCache
-_otk.BGCCache_swigregister(BGCCachePtr)
-
-class BPen(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, BPen, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, BPen, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_BPen,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_BPen):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def gc(*args): return apply(_otk.BPen_gc,args)
-    def __repr__(self):
-        return "<C BPen instance at %s>" % (self.this,)
-
-class BPenPtr(BPen):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = BPen
-_otk.BPen_swigregister(BPenPtr)
-
-class BImage(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, BImage, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, BImage, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_BImage,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_BImage):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def render(*args): return apply(_otk.BImage_render,args)
-    def __repr__(self):
-        return "<C BImage instance at %s>" % (self.this,)
-
-class BImagePtr(BImage):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = BImage
-_otk.BImage_swigregister(BImagePtr)
-
-class BImageControl(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, BImageControl, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, BImageControl, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_BImageControl,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_BImageControl):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def doDither(*args): return apply(_otk.BImageControl_doDither,args)
-    def getScreenInfo(*args): return apply(_otk.BImageControl_getScreenInfo,args)
-    def getDrawable(*args): return apply(_otk.BImageControl_getDrawable,args)
-    def getVisual(*args): return apply(_otk.BImageControl_getVisual,args)
-    def getBitsPerPixel(*args): return apply(_otk.BImageControl_getBitsPerPixel,args)
-    def getDepth(*args): return apply(_otk.BImageControl_getDepth,args)
-    def getColorsPerChannel(*args): return apply(_otk.BImageControl_getColorsPerChannel,args)
-    def getSqrt(*args): return apply(_otk.BImageControl_getSqrt,args)
-    def renderImage(*args): return apply(_otk.BImageControl_renderImage,args)
-    def installRootColormap(*args): return apply(_otk.BImageControl_installRootColormap,args)
-    def removeImage(*args): return apply(_otk.BImageControl_removeImage,args)
-    def getColorTables(*args): return apply(_otk.BImageControl_getColorTables,args)
-    def getXColorTable(*args): return apply(_otk.BImageControl_getXColorTable,args)
-    def getGradientBuffers(*args): return apply(_otk.BImageControl_getGradientBuffers,args)
-    def setDither(*args): return apply(_otk.BImageControl_setDither,args)
-    def setColorsPerChannel(*args): return apply(_otk.BImageControl_setColorsPerChannel,args)
-    __swig_getmethods__["timeout"] = lambda x: _otk.BImageControl_timeout
-    if _newclass:timeout = staticmethod(_otk.BImageControl_timeout)
-    def __repr__(self):
-        return "<C BImageControl instance at %s>" % (self.this,)
-
-class BImageControlPtr(BImageControl):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = BImageControl
-_otk.BImageControl_swigregister(BImageControlPtr)
-BImageControl_timeout = _otk.BImageControl_timeout
-
-
-class Point(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, Point, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, Point, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_Point,args)
-        self.thisown = 1
-    def setX(*args): return apply(_otk.Point_setX,args)
-    def x(*args): return apply(_otk.Point_x,args)
-    def setY(*args): return apply(_otk.Point_setY,args)
-    def y(*args): return apply(_otk.Point_y,args)
-    def setPoint(*args): return apply(_otk.Point_setPoint,args)
-    def __del__(self, destroy= _otk.delete_Point):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def __repr__(self):
-        return "<C Point instance at %s>" % (self.this,)
-
-class PointPtr(Point):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = Point
-_otk.Point_swigregister(PointPtr)
-
-class OBProperty(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, OBProperty, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, OBProperty, name)
-    Atom_Cardinal = _otk.OBProperty_Atom_Cardinal
-    Atom_Window = _otk.OBProperty_Atom_Window
-    Atom_Pixmap = _otk.OBProperty_Atom_Pixmap
-    Atom_Atom = _otk.OBProperty_Atom_Atom
-    Atom_String = _otk.OBProperty_Atom_String
-    Atom_Utf8 = _otk.OBProperty_Atom_Utf8
-    openbox_pid = _otk.OBProperty_openbox_pid
-    wm_colormap_windows = _otk.OBProperty_wm_colormap_windows
-    wm_protocols = _otk.OBProperty_wm_protocols
-    wm_state = _otk.OBProperty_wm_state
-    wm_delete_window = _otk.OBProperty_wm_delete_window
-    wm_take_focus = _otk.OBProperty_wm_take_focus
-    wm_change_state = _otk.OBProperty_wm_change_state
-    wm_name = _otk.OBProperty_wm_name
-    wm_icon_name = _otk.OBProperty_wm_icon_name
-    wm_class = _otk.OBProperty_wm_class
-    wm_window_role = _otk.OBProperty_wm_window_role
-    motif_wm_hints = _otk.OBProperty_motif_wm_hints
-    blackbox_attributes = _otk.OBProperty_blackbox_attributes
-    blackbox_change_attributes = _otk.OBProperty_blackbox_change_attributes
-    blackbox_hints = _otk.OBProperty_blackbox_hints
-    blackbox_structure_messages = _otk.OBProperty_blackbox_structure_messages
-    blackbox_notify_startup = _otk.OBProperty_blackbox_notify_startup
-    blackbox_notify_window_add = _otk.OBProperty_blackbox_notify_window_add
-    blackbox_notify_window_del = _otk.OBProperty_blackbox_notify_window_del
-    blackbox_notify_window_focus = _otk.OBProperty_blackbox_notify_window_focus
-    blackbox_notify_current_workspace = _otk.OBProperty_blackbox_notify_current_workspace
-    blackbox_notify_workspace_count = _otk.OBProperty_blackbox_notify_workspace_count
-    blackbox_notify_window_raise = _otk.OBProperty_blackbox_notify_window_raise
-    blackbox_notify_window_lower = _otk.OBProperty_blackbox_notify_window_lower
-    blackbox_change_workspace = _otk.OBProperty_blackbox_change_workspace
-    blackbox_change_window_focus = _otk.OBProperty_blackbox_change_window_focus
-    blackbox_cycle_window_focus = _otk.OBProperty_blackbox_cycle_window_focus
-    openbox_show_root_menu = _otk.OBProperty_openbox_show_root_menu
-    openbox_show_workspace_menu = _otk.OBProperty_openbox_show_workspace_menu
-    net_supported = _otk.OBProperty_net_supported
-    net_client_list = _otk.OBProperty_net_client_list
-    net_client_list_stacking = _otk.OBProperty_net_client_list_stacking
-    net_number_of_desktops = _otk.OBProperty_net_number_of_desktops
-    net_desktop_geometry = _otk.OBProperty_net_desktop_geometry
-    net_desktop_viewport = _otk.OBProperty_net_desktop_viewport
-    net_current_desktop = _otk.OBProperty_net_current_desktop
-    net_desktop_names = _otk.OBProperty_net_desktop_names
-    net_active_window = _otk.OBProperty_net_active_window
-    net_workarea = _otk.OBProperty_net_workarea
-    net_supporting_wm_check = _otk.OBProperty_net_supporting_wm_check
-    net_close_window = _otk.OBProperty_net_close_window
-    net_wm_moveresize = _otk.OBProperty_net_wm_moveresize
-    net_wm_name = _otk.OBProperty_net_wm_name
-    net_wm_visible_name = _otk.OBProperty_net_wm_visible_name
-    net_wm_icon_name = _otk.OBProperty_net_wm_icon_name
-    net_wm_visible_icon_name = _otk.OBProperty_net_wm_visible_icon_name
-    net_wm_desktop = _otk.OBProperty_net_wm_desktop
-    net_wm_window_type = _otk.OBProperty_net_wm_window_type
-    net_wm_state = _otk.OBProperty_net_wm_state
-    net_wm_strut = _otk.OBProperty_net_wm_strut
-    net_wm_allowed_actions = _otk.OBProperty_net_wm_allowed_actions
-    net_wm_window_type_desktop = _otk.OBProperty_net_wm_window_type_desktop
-    net_wm_window_type_dock = _otk.OBProperty_net_wm_window_type_dock
-    net_wm_window_type_toolbar = _otk.OBProperty_net_wm_window_type_toolbar
-    net_wm_window_type_menu = _otk.OBProperty_net_wm_window_type_menu
-    net_wm_window_type_utility = _otk.OBProperty_net_wm_window_type_utility
-    net_wm_window_type_splash = _otk.OBProperty_net_wm_window_type_splash
-    net_wm_window_type_dialog = _otk.OBProperty_net_wm_window_type_dialog
-    net_wm_window_type_normal = _otk.OBProperty_net_wm_window_type_normal
-    net_wm_moveresize_size_topleft = _otk.OBProperty_net_wm_moveresize_size_topleft
-    net_wm_moveresize_size_topright = _otk.OBProperty_net_wm_moveresize_size_topright
-    net_wm_moveresize_size_bottomleft = _otk.OBProperty_net_wm_moveresize_size_bottomleft
-    net_wm_moveresize_size_bottomright = _otk.OBProperty_net_wm_moveresize_size_bottomright
-    net_wm_moveresize_move = _otk.OBProperty_net_wm_moveresize_move
-    net_wm_action_move = _otk.OBProperty_net_wm_action_move
-    net_wm_action_resize = _otk.OBProperty_net_wm_action_resize
-    net_wm_action_shade = _otk.OBProperty_net_wm_action_shade
-    net_wm_action_maximize_horz = _otk.OBProperty_net_wm_action_maximize_horz
-    net_wm_action_maximize_vert = _otk.OBProperty_net_wm_action_maximize_vert
-    net_wm_action_change_desktop = _otk.OBProperty_net_wm_action_change_desktop
-    net_wm_action_close = _otk.OBProperty_net_wm_action_close
-    net_wm_state_modal = _otk.OBProperty_net_wm_state_modal
-    net_wm_state_sticky = _otk.OBProperty_net_wm_state_sticky
-    net_wm_state_maximized_vert = _otk.OBProperty_net_wm_state_maximized_vert
-    net_wm_state_maximized_horz = _otk.OBProperty_net_wm_state_maximized_horz
-    net_wm_state_shaded = _otk.OBProperty_net_wm_state_shaded
-    net_wm_state_skip_taskbar = _otk.OBProperty_net_wm_state_skip_taskbar
-    net_wm_state_skip_pager = _otk.OBProperty_net_wm_state_skip_pager
-    net_wm_state_hidden = _otk.OBProperty_net_wm_state_hidden
-    net_wm_state_fullscreen = _otk.OBProperty_net_wm_state_fullscreen
-    net_wm_state_above = _otk.OBProperty_net_wm_state_above
-    net_wm_state_below = _otk.OBProperty_net_wm_state_below
-    kde_net_system_tray_windows = _otk.OBProperty_kde_net_system_tray_windows
-    kde_net_wm_system_tray_window_for = _otk.OBProperty_kde_net_wm_system_tray_window_for
-    kde_net_wm_window_type_override = _otk.OBProperty_kde_net_wm_window_type_override
-    NUM_ATOMS = _otk.OBProperty_NUM_ATOMS
-    ascii = _otk.OBProperty_ascii
-    utf8 = _otk.OBProperty_utf8
-    NUM_STRING_TYPE = _otk.OBProperty_NUM_STRING_TYPE
-    def __init__(self,*args):
-        self.this = apply(_otk.new_OBProperty,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_OBProperty):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def set(*args): return apply(_otk.OBProperty_set,args)
-    def get(*args): return apply(_otk.OBProperty_get,args)
-    def erase(*args): return apply(_otk.OBProperty_erase,args)
-    def atom(*args): return apply(_otk.OBProperty_atom,args)
-    def __repr__(self):
-        return "<C OBProperty instance at %s>" % (self.this,)
-
-class OBPropertyPtr(OBProperty):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = OBProperty
-_otk.OBProperty_swigregister(OBPropertyPtr)
-
-class Rect(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, Rect, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, Rect, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_Rect,args)
-        self.thisown = 1
-    def left(*args): return apply(_otk.Rect_left,args)
-    def top(*args): return apply(_otk.Rect_top,args)
-    def right(*args): return apply(_otk.Rect_right,args)
-    def bottom(*args): return apply(_otk.Rect_bottom,args)
-    def x(*args): return apply(_otk.Rect_x,args)
-    def y(*args): return apply(_otk.Rect_y,args)
-    def location(*args): return apply(_otk.Rect_location,args)
-    def setX(*args): return apply(_otk.Rect_setX,args)
-    def setY(*args): return apply(_otk.Rect_setY,args)
-    def setPos(*args): return apply(_otk.Rect_setPos,args)
-    def width(*args): return apply(_otk.Rect_width,args)
-    def height(*args): return apply(_otk.Rect_height,args)
-    def size(*args): return apply(_otk.Rect_size,args)
-    def setWidth(*args): return apply(_otk.Rect_setWidth,args)
-    def setHeight(*args): return apply(_otk.Rect_setHeight,args)
-    def setSize(*args): return apply(_otk.Rect_setSize,args)
-    def setRect(*args): return apply(_otk.Rect_setRect,args)
-    def setCoords(*args): return apply(_otk.Rect_setCoords,args)
-    def equals(*args): return apply(_otk.Rect_equals,args)
-    def valid(*args): return apply(_otk.Rect_valid,args)
-    def intersects(*args): return apply(_otk.Rect_intersects,args)
-    def contains(*args): return apply(_otk.Rect_contains,args)
-    def __del__(self, destroy= _otk.delete_Rect):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def __repr__(self):
-        return "<C Rect instance at %s>" % (self.this,)
-
-class RectPtr(Rect):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = Rect
-_otk.Rect_swigregister(RectPtr)
-
-class ScreenInfo(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, ScreenInfo, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, ScreenInfo, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_ScreenInfo,args)
-        self.thisown = 1
-    def visual(*args): return apply(_otk.ScreenInfo_visual,args)
-    def rootWindow(*args): return apply(_otk.ScreenInfo_rootWindow,args)
-    def colormap(*args): return apply(_otk.ScreenInfo_colormap,args)
-    def depth(*args): return apply(_otk.ScreenInfo_depth,args)
-    def screen(*args): return apply(_otk.ScreenInfo_screen,args)
-    def rect(*args): return apply(_otk.ScreenInfo_rect,args)
-    def width(*args): return apply(_otk.ScreenInfo_width,args)
-    def height(*args): return apply(_otk.ScreenInfo_height,args)
-    def displayString(*args): return apply(_otk.ScreenInfo_displayString,args)
-    def __del__(self, destroy= _otk.delete_ScreenInfo):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def __repr__(self):
-        return "<C ScreenInfo instance at %s>" % (self.this,)
-
-class ScreenInfoPtr(ScreenInfo):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = ScreenInfo
-_otk.ScreenInfo_swigregister(ScreenInfoPtr)
-
-class Strut(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, Strut, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, Strut, name)
-    __swig_setmethods__["top"] = _otk.Strut_top_set
-    __swig_getmethods__["top"] = _otk.Strut_top_get
-    if _newclass:top = property(_otk.Strut_top_get,_otk.Strut_top_set)
-    __swig_setmethods__["bottom"] = _otk.Strut_bottom_set
-    __swig_getmethods__["bottom"] = _otk.Strut_bottom_get
-    if _newclass:bottom = property(_otk.Strut_bottom_get,_otk.Strut_bottom_set)
-    __swig_setmethods__["left"] = _otk.Strut_left_set
-    __swig_getmethods__["left"] = _otk.Strut_left_get
-    if _newclass:left = property(_otk.Strut_left_get,_otk.Strut_left_set)
-    __swig_setmethods__["right"] = _otk.Strut_right_set
-    __swig_getmethods__["right"] = _otk.Strut_right_get
-    if _newclass:right = property(_otk.Strut_right_get,_otk.Strut_right_set)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_Strut,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_Strut):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def __repr__(self):
-        return "<C Strut instance at %s>" % (self.this,)
-
-class StrutPtr(Strut):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = Strut
-_otk.Strut_swigregister(StrutPtr)
-
-class PixmapMask(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, PixmapMask, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, PixmapMask, name)
-    __swig_setmethods__["mask"] = _otk.PixmapMask_mask_set
-    __swig_getmethods__["mask"] = _otk.PixmapMask_mask_get
-    if _newclass:mask = property(_otk.PixmapMask_mask_get,_otk.PixmapMask_mask_set)
-    __swig_setmethods__["w"] = _otk.PixmapMask_w_set
-    __swig_getmethods__["w"] = _otk.PixmapMask_w_get
-    if _newclass:w = property(_otk.PixmapMask_w_get,_otk.PixmapMask_w_set)
-    __swig_setmethods__["h"] = _otk.PixmapMask_h_set
-    __swig_getmethods__["h"] = _otk.PixmapMask_h_get
-    if _newclass:h = property(_otk.PixmapMask_h_get,_otk.PixmapMask_h_set)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_PixmapMask,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_PixmapMask):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def __repr__(self):
-        return "<C PixmapMask instance at %s>" % (self.this,)
-
-class PixmapMaskPtr(PixmapMask):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = PixmapMask
-_otk.PixmapMask_swigregister(PixmapMaskPtr)
-
-class Style(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, Style, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, Style, name)
-    ButtonFocus = _otk.Style_ButtonFocus
-    ButtonUnfocus = _otk.Style_ButtonUnfocus
-    TitleFocus = _otk.Style_TitleFocus
-    TitleUnfocus = _otk.Style_TitleUnfocus
-    LabelFocus = _otk.Style_LabelFocus
-    LabelUnfocus = _otk.Style_LabelUnfocus
-    HandleFocus = _otk.Style_HandleFocus
-    HandleUnfocus = _otk.Style_HandleUnfocus
-    GripFocus = _otk.Style_GripFocus
-    GripUnfocus = _otk.Style_GripUnfocus
-    LeftJustify = _otk.Style_LeftJustify
-    RightJustify = _otk.Style_RightJustify
-    CenterJustify = _otk.Style_CenterJustify
-    RoundBullet = _otk.Style_RoundBullet
-    TriangleBullet = _otk.Style_TriangleBullet
-    SquareBullet = _otk.Style_SquareBullet
-    NoBullet = _otk.Style_NoBullet
-    __swig_setmethods__["image_control"] = _otk.Style_image_control_set
-    __swig_getmethods__["image_control"] = _otk.Style_image_control_get
-    if _newclass:image_control = property(_otk.Style_image_control_get,_otk.Style_image_control_set)
-    __swig_setmethods__["l_text_focus"] = _otk.Style_l_text_focus_set
-    __swig_getmethods__["l_text_focus"] = _otk.Style_l_text_focus_get
-    if _newclass:l_text_focus = property(_otk.Style_l_text_focus_get,_otk.Style_l_text_focus_set)
-    __swig_setmethods__["l_text_unfocus"] = _otk.Style_l_text_unfocus_set
-    __swig_getmethods__["l_text_unfocus"] = _otk.Style_l_text_unfocus_get
-    if _newclass:l_text_unfocus = property(_otk.Style_l_text_unfocus_get,_otk.Style_l_text_unfocus_set)
-    __swig_setmethods__["b_pic_focus"] = _otk.Style_b_pic_focus_set
-    __swig_getmethods__["b_pic_focus"] = _otk.Style_b_pic_focus_get
-    if _newclass:b_pic_focus = property(_otk.Style_b_pic_focus_get,_otk.Style_b_pic_focus_set)
-    __swig_setmethods__["b_pic_unfocus"] = _otk.Style_b_pic_unfocus_set
-    __swig_getmethods__["b_pic_unfocus"] = _otk.Style_b_pic_unfocus_get
-    if _newclass:b_pic_unfocus = property(_otk.Style_b_pic_unfocus_get,_otk.Style_b_pic_unfocus_set)
-    __swig_setmethods__["border_color"] = _otk.Style_border_color_set
-    __swig_getmethods__["border_color"] = _otk.Style_border_color_get
-    if _newclass:border_color = property(_otk.Style_border_color_get,_otk.Style_border_color_set)
-    __swig_setmethods__["font"] = _otk.Style_font_set
-    __swig_getmethods__["font"] = _otk.Style_font_get
-    if _newclass:font = property(_otk.Style_font_get,_otk.Style_font_set)
-    __swig_setmethods__["f_focus"] = _otk.Style_f_focus_set
-    __swig_getmethods__["f_focus"] = _otk.Style_f_focus_get
-    if _newclass:f_focus = property(_otk.Style_f_focus_get,_otk.Style_f_focus_set)
-    __swig_setmethods__["f_unfocus"] = _otk.Style_f_unfocus_set
-    __swig_getmethods__["f_unfocus"] = _otk.Style_f_unfocus_get
-    if _newclass:f_unfocus = property(_otk.Style_f_unfocus_get,_otk.Style_f_unfocus_set)
-    __swig_setmethods__["t_focus"] = _otk.Style_t_focus_set
-    __swig_getmethods__["t_focus"] = _otk.Style_t_focus_get
-    if _newclass:t_focus = property(_otk.Style_t_focus_get,_otk.Style_t_focus_set)
-    __swig_setmethods__["t_unfocus"] = _otk.Style_t_unfocus_set
-    __swig_getmethods__["t_unfocus"] = _otk.Style_t_unfocus_get
-    if _newclass:t_unfocus = property(_otk.Style_t_unfocus_get,_otk.Style_t_unfocus_set)
-    __swig_setmethods__["l_focus"] = _otk.Style_l_focus_set
-    __swig_getmethods__["l_focus"] = _otk.Style_l_focus_get
-    if _newclass:l_focus = property(_otk.Style_l_focus_get,_otk.Style_l_focus_set)
-    __swig_setmethods__["l_unfocus"] = _otk.Style_l_unfocus_set
-    __swig_getmethods__["l_unfocus"] = _otk.Style_l_unfocus_get
-    if _newclass:l_unfocus = property(_otk.Style_l_unfocus_get,_otk.Style_l_unfocus_set)
-    __swig_setmethods__["h_focus"] = _otk.Style_h_focus_set
-    __swig_getmethods__["h_focus"] = _otk.Style_h_focus_get
-    if _newclass:h_focus = property(_otk.Style_h_focus_get,_otk.Style_h_focus_set)
-    __swig_setmethods__["h_unfocus"] = _otk.Style_h_unfocus_set
-    __swig_getmethods__["h_unfocus"] = _otk.Style_h_unfocus_get
-    if _newclass:h_unfocus = property(_otk.Style_h_unfocus_get,_otk.Style_h_unfocus_set)
-    __swig_setmethods__["b_focus"] = _otk.Style_b_focus_set
-    __swig_getmethods__["b_focus"] = _otk.Style_b_focus_get
-    if _newclass:b_focus = property(_otk.Style_b_focus_get,_otk.Style_b_focus_set)
-    __swig_setmethods__["b_unfocus"] = _otk.Style_b_unfocus_set
-    __swig_getmethods__["b_unfocus"] = _otk.Style_b_unfocus_get
-    if _newclass:b_unfocus = property(_otk.Style_b_unfocus_get,_otk.Style_b_unfocus_set)
-    __swig_setmethods__["b_pressed_focus"] = _otk.Style_b_pressed_focus_set
-    __swig_getmethods__["b_pressed_focus"] = _otk.Style_b_pressed_focus_get
-    if _newclass:b_pressed_focus = property(_otk.Style_b_pressed_focus_get,_otk.Style_b_pressed_focus_set)
-    __swig_setmethods__["b_pressed_unfocus"] = _otk.Style_b_pressed_unfocus_set
-    __swig_getmethods__["b_pressed_unfocus"] = _otk.Style_b_pressed_unfocus_get
-    if _newclass:b_pressed_unfocus = property(_otk.Style_b_pressed_unfocus_get,_otk.Style_b_pressed_unfocus_set)
-    __swig_setmethods__["g_focus"] = _otk.Style_g_focus_set
-    __swig_getmethods__["g_focus"] = _otk.Style_g_focus_get
-    if _newclass:g_focus = property(_otk.Style_g_focus_get,_otk.Style_g_focus_set)
-    __swig_setmethods__["g_unfocus"] = _otk.Style_g_unfocus_set
-    __swig_getmethods__["g_unfocus"] = _otk.Style_g_unfocus_get
-    if _newclass:g_unfocus = property(_otk.Style_g_unfocus_get,_otk.Style_g_unfocus_set)
-    __swig_setmethods__["close_button"] = _otk.Style_close_button_set
-    __swig_getmethods__["close_button"] = _otk.Style_close_button_get
-    if _newclass:close_button = property(_otk.Style_close_button_get,_otk.Style_close_button_set)
-    __swig_setmethods__["max_button"] = _otk.Style_max_button_set
-    __swig_getmethods__["max_button"] = _otk.Style_max_button_get
-    if _newclass:max_button = property(_otk.Style_max_button_get,_otk.Style_max_button_set)
-    __swig_setmethods__["icon_button"] = _otk.Style_icon_button_set
-    __swig_getmethods__["icon_button"] = _otk.Style_icon_button_get
-    if _newclass:icon_button = property(_otk.Style_icon_button_get,_otk.Style_icon_button_set)
-    __swig_setmethods__["stick_button"] = _otk.Style_stick_button_set
-    __swig_getmethods__["stick_button"] = _otk.Style_stick_button_get
-    if _newclass:stick_button = property(_otk.Style_stick_button_get,_otk.Style_stick_button_set)
-    __swig_setmethods__["justify"] = _otk.Style_justify_set
-    __swig_getmethods__["justify"] = _otk.Style_justify_get
-    if _newclass:justify = property(_otk.Style_justify_get,_otk.Style_justify_set)
-    __swig_setmethods__["bullet_type"] = _otk.Style_bullet_type_set
-    __swig_getmethods__["bullet_type"] = _otk.Style_bullet_type_get
-    if _newclass:bullet_type = property(_otk.Style_bullet_type_get,_otk.Style_bullet_type_set)
-    __swig_setmethods__["handle_width"] = _otk.Style_handle_width_set
-    __swig_getmethods__["handle_width"] = _otk.Style_handle_width_get
-    if _newclass:handle_width = property(_otk.Style_handle_width_get,_otk.Style_handle_width_set)
-    __swig_setmethods__["bevel_width"] = _otk.Style_bevel_width_set
-    __swig_getmethods__["bevel_width"] = _otk.Style_bevel_width_get
-    if _newclass:bevel_width = property(_otk.Style_bevel_width_get,_otk.Style_bevel_width_set)
-    __swig_setmethods__["frame_width"] = _otk.Style_frame_width_set
-    __swig_getmethods__["frame_width"] = _otk.Style_frame_width_get
-    if _newclass:frame_width = property(_otk.Style_frame_width_get,_otk.Style_frame_width_set)
-    __swig_setmethods__["border_width"] = _otk.Style_border_width_set
-    __swig_getmethods__["border_width"] = _otk.Style_border_width_get
-    if _newclass:border_width = property(_otk.Style_border_width_get,_otk.Style_border_width_set)
-    __swig_setmethods__["screen_number"] = _otk.Style_screen_number_set
-    __swig_getmethods__["screen_number"] = _otk.Style_screen_number_get
-    if _newclass:screen_number = property(_otk.Style_screen_number_get,_otk.Style_screen_number_set)
-    __swig_setmethods__["shadow_fonts"] = _otk.Style_shadow_fonts_set
-    __swig_getmethods__["shadow_fonts"] = _otk.Style_shadow_fonts_get
-    if _newclass:shadow_fonts = property(_otk.Style_shadow_fonts_get,_otk.Style_shadow_fonts_set)
-    __swig_setmethods__["aa_fonts"] = _otk.Style_aa_fonts_set
-    __swig_getmethods__["aa_fonts"] = _otk.Style_aa_fonts_get
-    if _newclass:aa_fonts = property(_otk.Style_aa_fonts_get,_otk.Style_aa_fonts_set)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_Style,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_Style):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def readDatabaseMask(*args): return apply(_otk.Style_readDatabaseMask,args)
-    def readDatabaseTexture(*args): return apply(_otk.Style_readDatabaseTexture,args)
-    def readDatabaseColor(*args): return apply(_otk.Style_readDatabaseColor,args)
-    def readDatabaseFont(*args): return apply(_otk.Style_readDatabaseFont,args)
-    def load(*args): return apply(_otk.Style_load,args)
-    def getCloseButtonMask(*args): return apply(_otk.Style_getCloseButtonMask,args)
-    def getMaximizeButtonMask(*args): return apply(_otk.Style_getMaximizeButtonMask,args)
-    def getIconifyButtonMask(*args): return apply(_otk.Style_getIconifyButtonMask,args)
-    def getStickyButtonMask(*args): return apply(_otk.Style_getStickyButtonMask,args)
-    def getTextFocus(*args): return apply(_otk.Style_getTextFocus,args)
-    def getTextUnfocus(*args): return apply(_otk.Style_getTextUnfocus,args)
-    def getButtonPicFocus(*args): return apply(_otk.Style_getButtonPicFocus,args)
-    def getButtonPicUnfocus(*args): return apply(_otk.Style_getButtonPicUnfocus,args)
-    def getTitleFocus(*args): return apply(_otk.Style_getTitleFocus,args)
-    def getTitleUnfocus(*args): return apply(_otk.Style_getTitleUnfocus,args)
-    def getLabelFocus(*args): return apply(_otk.Style_getLabelFocus,args)
-    def getLabelUnfocus(*args): return apply(_otk.Style_getLabelUnfocus,args)
-    def getHandleFocus(*args): return apply(_otk.Style_getHandleFocus,args)
-    def getHandleUnfocus(*args): return apply(_otk.Style_getHandleUnfocus,args)
-    def getButtonFocus(*args): return apply(_otk.Style_getButtonFocus,args)
-    def getButtonUnfocus(*args): return apply(_otk.Style_getButtonUnfocus,args)
-    def getButtonPressedFocus(*args): return apply(_otk.Style_getButtonPressedFocus,args)
-    def getButtonPressedUnfocus(*args): return apply(_otk.Style_getButtonPressedUnfocus,args)
-    def getGripFocus(*args): return apply(_otk.Style_getGripFocus,args)
-    def getGripUnfocus(*args): return apply(_otk.Style_getGripUnfocus,args)
-    def getHandleWidth(*args): return apply(_otk.Style_getHandleWidth,args)
-    def getBevelWidth(*args): return apply(_otk.Style_getBevelWidth,args)
-    def getFrameWidth(*args): return apply(_otk.Style_getFrameWidth,args)
-    def getBorderWidth(*args): return apply(_otk.Style_getBorderWidth,args)
-    def getFont(*args): return apply(_otk.Style_getFont,args)
-    def setShadowFonts(*args): return apply(_otk.Style_setShadowFonts,args)
-    def hasShadowFonts(*args): return apply(_otk.Style_hasShadowFonts,args)
-    def setAAFonts(*args): return apply(_otk.Style_setAAFonts,args)
-    def hasAAFonts(*args): return apply(_otk.Style_hasAAFonts,args)
-    def textJustify(*args): return apply(_otk.Style_textJustify,args)
-    def bulletType(*args): return apply(_otk.Style_bulletType,args)
-    def getBorderColor(*args): return apply(_otk.Style_getBorderColor,args)
-    def getFrameFocus(*args): return apply(_otk.Style_getFrameFocus,args)
-    def getFrameUnfocus(*args): return apply(_otk.Style_getFrameUnfocus,args)
-    def setImageControl(*args): return apply(_otk.Style_setImageControl,args)
-    def getScreen(*args): return apply(_otk.Style_getScreen,args)
-    def __repr__(self):
-        return "<C Style instance at %s>" % (self.this,)
-
-class StylePtr(Style):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = Style
-_otk.Style_swigregister(StylePtr)
-
-class BTexture(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, BTexture, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, BTexture, name)
-    NoTexture = _otk.BTexture_NoTexture
-    Flat = _otk.BTexture_Flat
-    Sunken = _otk.BTexture_Sunken
-    Raised = _otk.BTexture_Raised
-    Solid = _otk.BTexture_Solid
-    Gradient = _otk.BTexture_Gradient
-    Horizontal = _otk.BTexture_Horizontal
-    Vertical = _otk.BTexture_Vertical
-    Diagonal = _otk.BTexture_Diagonal
-    CrossDiagonal = _otk.BTexture_CrossDiagonal
-    Rectangle = _otk.BTexture_Rectangle
-    Pyramid = _otk.BTexture_Pyramid
-    PipeCross = _otk.BTexture_PipeCross
-    Elliptic = _otk.BTexture_Elliptic
-    Bevel1 = _otk.BTexture_Bevel1
-    Bevel2 = _otk.BTexture_Bevel2
-    Border = _otk.BTexture_Border
-    Invert = _otk.BTexture_Invert
-    Parent_Relative = _otk.BTexture_Parent_Relative
-    Interlaced = _otk.BTexture_Interlaced
-    def __init__(self,*args):
-        self.this = apply(_otk.new_BTexture,args)
-        self.thisown = 1
-    def setColor(*args): return apply(_otk.BTexture_setColor,args)
-    def setColorTo(*args): return apply(_otk.BTexture_setColorTo,args)
-    def setBorderColor(*args): return apply(_otk.BTexture_setBorderColor,args)
-    def color(*args): return apply(_otk.BTexture_color,args)
-    def colorTo(*args): return apply(_otk.BTexture_colorTo,args)
-    def lightColor(*args): return apply(_otk.BTexture_lightColor,args)
-    def shadowColor(*args): return apply(_otk.BTexture_shadowColor,args)
-    def borderColor(*args): return apply(_otk.BTexture_borderColor,args)
-    def texture(*args): return apply(_otk.BTexture_texture,args)
-    def setTexture(*args): return apply(_otk.BTexture_setTexture,args)
-    def addTexture(*args): return apply(_otk.BTexture_addTexture,args)
-    def equals(*args): return apply(_otk.BTexture_equals,args)
-    def screen(*args): return apply(_otk.BTexture_screen,args)
-    def setScreen(*args): return apply(_otk.BTexture_setScreen,args)
-    def setImageControl(*args): return apply(_otk.BTexture_setImageControl,args)
-    def description(*args): return apply(_otk.BTexture_description,args)
-    def setDescription(*args): return apply(_otk.BTexture_setDescription,args)
-    def render(*args): return apply(_otk.BTexture_render,args)
-    def __del__(self, destroy= _otk.delete_BTexture):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def __repr__(self):
-        return "<C BTexture instance at %s>" % (self.this,)
-
-class BTexturePtr(BTexture):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = BTexture
-_otk.BTexture_swigregister(BTexturePtr)
-
-class OBTimer(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, OBTimer, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, OBTimer, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_OBTimer,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_OBTimer):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def fire(*args): return apply(_otk.OBTimer_fire,args)
-    def timing(*args): return apply(_otk.OBTimer_timing,args)
-    def recurring(*args): return apply(_otk.OBTimer_recurring,args)
-    def timeout(*args): return apply(_otk.OBTimer_timeout,args)
-    def startTime(*args): return apply(_otk.OBTimer_startTime,args)
-    def remainingTime(*args): return apply(_otk.OBTimer_remainingTime,args)
-    def shouldFire(*args): return apply(_otk.OBTimer_shouldFire,args)
-    def endTime(*args): return apply(_otk.OBTimer_endTime,args)
-    def setRecurring(*args): return apply(_otk.OBTimer_setRecurring,args)
-    def setTimeout(*args): return apply(_otk.OBTimer_setTimeout,args)
-    def start(*args): return apply(_otk.OBTimer_start,args)
-    def stop(*args): return apply(_otk.OBTimer_stop,args)
-    def __repr__(self):
-        return "<C OBTimer instance at %s>" % (self.this,)
-
-class OBTimerPtr(OBTimer):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = OBTimer
-_otk.OBTimer_swigregister(OBTimerPtr)
-
-class OBTimerQueueManager(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, OBTimerQueueManager, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, OBTimerQueueManager, name)
-    def __init__(self,*args):
-        self.this = apply(_otk.new_OBTimerQueueManager,args)
-        self.thisown = 1
-    def __del__(self, destroy= _otk.delete_OBTimerQueueManager):
-        try:
-            if self.thisown: destroy(self)
-        except: pass
-    def fire(*args): return apply(_otk.OBTimerQueueManager_fire,args)
-    def addTimer(*args): return apply(_otk.OBTimerQueueManager_addTimer,args)
-    def removeTimer(*args): return apply(_otk.OBTimerQueueManager_removeTimer,args)
-    def __repr__(self):
-        return "<C OBTimerQueueManager instance at %s>" % (self.this,)
-
-class OBTimerQueueManagerPtr(OBTimerQueueManager):
-    def __init__(self,this):
-        self.this = this
-        if not hasattr(self,"thisown"): self.thisown = 0
-        self.__class__ = OBTimerQueueManager
-_otk.OBTimerQueueManager_swigregister(OBTimerQueueManagerPtr)
-
-expandTilde = _otk.expandTilde
-
-bexec = _otk.bexec
-
-textPropertyToString = _otk.textPropertyToString
-
-itostring_unsigned_long = _otk.itostring_unsigned_long
-
-itostring_long = _otk.itostring_long
-
-itostring_unsigned = _otk.itostring_unsigned
-
-itostring = _otk.itostring
-
-basename = _otk.basename
-
-X_PROTOCOL = _otk.X_PROTOCOL
-X_PROTOCOL_REVISION = _otk.X_PROTOCOL_REVISION
-None = _otk.None
-ParentRelative = _otk.ParentRelative
-CopyFromParent = _otk.CopyFromParent
-PointerWindow = _otk.PointerWindow
-InputFocus = _otk.InputFocus
-PointerRoot = _otk.PointerRoot
-AnyPropertyType = _otk.AnyPropertyType
-AnyKey = _otk.AnyKey
-AnyButton = _otk.AnyButton
-AllTemporary = _otk.AllTemporary
-CurrentTime = _otk.CurrentTime
-NoSymbol = _otk.NoSymbol
-NoEventMask = _otk.NoEventMask
-KeyPressMask = _otk.KeyPressMask
-KeyReleaseMask = _otk.KeyReleaseMask
-ButtonPressMask = _otk.ButtonPressMask
-ButtonReleaseMask = _otk.ButtonReleaseMask
-EnterWindowMask = _otk.EnterWindowMask
-LeaveWindowMask = _otk.LeaveWindowMask
-PointerMotionMask = _otk.PointerMotionMask
-PointerMotionHintMask = _otk.PointerMotionHintMask
-Button1MotionMask = _otk.Button1MotionMask
-Button2MotionMask = _otk.Button2MotionMask
-Button3MotionMask = _otk.Button3MotionMask
-Button4MotionMask = _otk.Button4MotionMask
-Button5MotionMask = _otk.Button5MotionMask
-ButtonMotionMask = _otk.ButtonMotionMask
-KeymapStateMask = _otk.KeymapStateMask
-ExposureMask = _otk.ExposureMask
-VisibilityChangeMask = _otk.VisibilityChangeMask
-StructureNotifyMask = _otk.StructureNotifyMask
-ResizeRedirectMask = _otk.ResizeRedirectMask
-SubstructureNotifyMask = _otk.SubstructureNotifyMask
-SubstructureRedirectMask = _otk.SubstructureRedirectMask
-FocusChangeMask = _otk.FocusChangeMask
-PropertyChangeMask = _otk.PropertyChangeMask
-ColormapChangeMask = _otk.ColormapChangeMask
-OwnerGrabButtonMask = _otk.OwnerGrabButtonMask
-KeyPress = _otk.KeyPress
-KeyRelease = _otk.KeyRelease
-ButtonPress = _otk.ButtonPress
-ButtonRelease = _otk.ButtonRelease
-MotionNotify = _otk.MotionNotify
-EnterNotify = _otk.EnterNotify
-LeaveNotify = _otk.LeaveNotify
-FocusIn = _otk.FocusIn
-FocusOut = _otk.FocusOut
-KeymapNotify = _otk.KeymapNotify
-Expose = _otk.Expose
-GraphicsExpose = _otk.GraphicsExpose
-NoExpose = _otk.NoExpose
-VisibilityNotify = _otk.VisibilityNotify
-CreateNotify = _otk.CreateNotify
-DestroyNotify = _otk.DestroyNotify
-UnmapNotify = _otk.UnmapNotify
-MapNotify = _otk.MapNotify
-MapRequest = _otk.MapRequest
-ReparentNotify = _otk.ReparentNotify
-ConfigureNotify = _otk.ConfigureNotify
-ConfigureRequest = _otk.ConfigureRequest
-GravityNotify = _otk.GravityNotify
-ResizeRequest = _otk.ResizeRequest
-CirculateNotify = _otk.CirculateNotify
-CirculateRequest = _otk.CirculateRequest
-PropertyNotify = _otk.PropertyNotify
-SelectionClear = _otk.SelectionClear
-SelectionRequest = _otk.SelectionRequest
-SelectionNotify = _otk.SelectionNotify
-ColormapNotify = _otk.ColormapNotify
-ClientMessage = _otk.ClientMessage
-MappingNotify = _otk.MappingNotify
-LASTEvent = _otk.LASTEvent
-ShiftMask = _otk.ShiftMask
-LockMask = _otk.LockMask
-ControlMask = _otk.ControlMask
-Mod1Mask = _otk.Mod1Mask
-Mod2Mask = _otk.Mod2Mask
-Mod3Mask = _otk.Mod3Mask
-Mod4Mask = _otk.Mod4Mask
-Mod5Mask = _otk.Mod5Mask
-ShiftMapIndex = _otk.ShiftMapIndex
-LockMapIndex = _otk.LockMapIndex
-ControlMapIndex = _otk.ControlMapIndex
-Mod1MapIndex = _otk.Mod1MapIndex
-Mod2MapIndex = _otk.Mod2MapIndex
-Mod3MapIndex = _otk.Mod3MapIndex
-Mod4MapIndex = _otk.Mod4MapIndex
-Mod5MapIndex = _otk.Mod5MapIndex
-Button1Mask = _otk.Button1Mask
-Button2Mask = _otk.Button2Mask
-Button3Mask = _otk.Button3Mask
-Button4Mask = _otk.Button4Mask
-Button5Mask = _otk.Button5Mask
-AnyModifier = _otk.AnyModifier
-Button1 = _otk.Button1
-Button2 = _otk.Button2
-Button3 = _otk.Button3
-Button4 = _otk.Button4
-Button5 = _otk.Button5
-NotifyNormal = _otk.NotifyNormal
-NotifyGrab = _otk.NotifyGrab
-NotifyUngrab = _otk.NotifyUngrab
-NotifyWhileGrabbed = _otk.NotifyWhileGrabbed
-NotifyHint = _otk.NotifyHint
-NotifyAncestor = _otk.NotifyAncestor
-NotifyVirtual = _otk.NotifyVirtual
-NotifyInferior = _otk.NotifyInferior
-NotifyNonlinear = _otk.NotifyNonlinear
-NotifyNonlinearVirtual = _otk.NotifyNonlinearVirtual
-NotifyPointer = _otk.NotifyPointer
-NotifyPointerRoot = _otk.NotifyPointerRoot
-NotifyDetailNone = _otk.NotifyDetailNone
-VisibilityUnobscured = _otk.VisibilityUnobscured
-VisibilityPartiallyObscured = _otk.VisibilityPartiallyObscured
-VisibilityFullyObscured = _otk.VisibilityFullyObscured
-PlaceOnTop = _otk.PlaceOnTop
-PlaceOnBottom = _otk.PlaceOnBottom
-FamilyInternet = _otk.FamilyInternet
-FamilyDECnet = _otk.FamilyDECnet
-FamilyChaos = _otk.FamilyChaos
-PropertyNewValue = _otk.PropertyNewValue
-PropertyDelete = _otk.PropertyDelete
-ColormapUninstalled = _otk.ColormapUninstalled
-ColormapInstalled = _otk.ColormapInstalled
-GrabModeSync = _otk.GrabModeSync
-GrabModeAsync = _otk.GrabModeAsync
-GrabSuccess = _otk.GrabSuccess
-AlreadyGrabbed = _otk.AlreadyGrabbed
-GrabInvalidTime = _otk.GrabInvalidTime
-GrabNotViewable = _otk.GrabNotViewable
-GrabFrozen = _otk.GrabFrozen
-AsyncPointer = _otk.AsyncPointer
-SyncPointer = _otk.SyncPointer
-ReplayPointer = _otk.ReplayPointer
-AsyncKeyboard = _otk.AsyncKeyboard
-SyncKeyboard = _otk.SyncKeyboard
-ReplayKeyboard = _otk.ReplayKeyboard
-AsyncBoth = _otk.AsyncBoth
-SyncBoth = _otk.SyncBoth
-RevertToParent = _otk.RevertToParent
-Success = _otk.Success
-BadRequest = _otk.BadRequest
-BadValue = _otk.BadValue
-BadWindow = _otk.BadWindow
-BadPixmap = _otk.BadPixmap
-BadAtom = _otk.BadAtom
-BadCursor = _otk.BadCursor
-BadFont = _otk.BadFont
-BadMatch = _otk.BadMatch
-BadDrawable = _otk.BadDrawable
-BadAccess = _otk.BadAccess
-BadAlloc = _otk.BadAlloc
-BadColor = _otk.BadColor
-BadGC = _otk.BadGC
-BadIDChoice = _otk.BadIDChoice
-BadName = _otk.BadName
-BadLength = _otk.BadLength
-BadImplementation = _otk.BadImplementation
-FirstExtensionError = _otk.FirstExtensionError
-LastExtensionError = _otk.LastExtensionError
-InputOutput = _otk.InputOutput
-InputOnly = _otk.InputOnly
-CWBackPixmap = _otk.CWBackPixmap
-CWBackPixel = _otk.CWBackPixel
-CWBorderPixmap = _otk.CWBorderPixmap
-CWBorderPixel = _otk.CWBorderPixel
-CWBitGravity = _otk.CWBitGravity
-CWWinGravity = _otk.CWWinGravity
-CWBackingStore = _otk.CWBackingStore
-CWBackingPlanes = _otk.CWBackingPlanes
-CWBackingPixel = _otk.CWBackingPixel
-CWOverrideRedirect = _otk.CWOverrideRedirect
-CWSaveUnder = _otk.CWSaveUnder
-CWEventMask = _otk.CWEventMask
-CWDontPropagate = _otk.CWDontPropagate
-CWColormap = _otk.CWColormap
-CWCursor = _otk.CWCursor
-CWX = _otk.CWX
-CWY = _otk.CWY
-CWWidth = _otk.CWWidth
-CWHeight = _otk.CWHeight
-CWBorderWidth = _otk.CWBorderWidth
-CWSibling = _otk.CWSibling
-CWStackMode = _otk.CWStackMode
-ForgetGravity = _otk.ForgetGravity
-NorthWestGravity = _otk.NorthWestGravity
-NorthGravity = _otk.NorthGravity
-NorthEastGravity = _otk.NorthEastGravity
-WestGravity = _otk.WestGravity
-CenterGravity = _otk.CenterGravity
-EastGravity = _otk.EastGravity
-SouthWestGravity = _otk.SouthWestGravity
-SouthGravity = _otk.SouthGravity
-SouthEastGravity = _otk.SouthEastGravity
-StaticGravity = _otk.StaticGravity
-UnmapGravity = _otk.UnmapGravity
-NotUseful = _otk.NotUseful
-WhenMapped = _otk.WhenMapped
-Always = _otk.Always
-IsUnmapped = _otk.IsUnmapped
-IsUnviewable = _otk.IsUnviewable
-IsViewable = _otk.IsViewable
-SetModeInsert = _otk.SetModeInsert
-SetModeDelete = _otk.SetModeDelete
-DestroyAll = _otk.DestroyAll
-RetainPermanent = _otk.RetainPermanent
-RetainTemporary = _otk.RetainTemporary
-Above = _otk.Above
-Below = _otk.Below
-TopIf = _otk.TopIf
-BottomIf = _otk.BottomIf
-Opposite = _otk.Opposite
-RaiseLowest = _otk.RaiseLowest
-LowerHighest = _otk.LowerHighest
-PropModeReplace = _otk.PropModeReplace
-PropModePrepend = _otk.PropModePrepend
-PropModeAppend = _otk.PropModeAppend
-GXclear = _otk.GXclear
-GXand = _otk.GXand
-GXandReverse = _otk.GXandReverse
-GXcopy = _otk.GXcopy
-GXandInverted = _otk.GXandInverted
-GXnoop = _otk.GXnoop
-GXxor = _otk.GXxor
-GXor = _otk.GXor
-GXnor = _otk.GXnor
-GXequiv = _otk.GXequiv
-GXinvert = _otk.GXinvert
-GXorReverse = _otk.GXorReverse
-GXcopyInverted = _otk.GXcopyInverted
-GXorInverted = _otk.GXorInverted
-GXnand = _otk.GXnand
-GXset = _otk.GXset
-LineSolid = _otk.LineSolid
-LineOnOffDash = _otk.LineOnOffDash
-LineDoubleDash = _otk.LineDoubleDash
-CapNotLast = _otk.CapNotLast
-CapButt = _otk.CapButt
-CapRound = _otk.CapRound
-CapProjecting = _otk.CapProjecting
-JoinMiter = _otk.JoinMiter
-JoinRound = _otk.JoinRound
-JoinBevel = _otk.JoinBevel
-FillSolid = _otk.FillSolid
-FillTiled = _otk.FillTiled
-FillStippled = _otk.FillStippled
-FillOpaqueStippled = _otk.FillOpaqueStippled
-EvenOddRule = _otk.EvenOddRule
-WindingRule = _otk.WindingRule
-ClipByChildren = _otk.ClipByChildren
-IncludeInferiors = _otk.IncludeInferiors
-Unsorted = _otk.Unsorted
-YSorted = _otk.YSorted
-YXSorted = _otk.YXSorted
-YXBanded = _otk.YXBanded
-CoordModeOrigin = _otk.CoordModeOrigin
-CoordModePrevious = _otk.CoordModePrevious
-Complex = _otk.Complex
-Nonconvex = _otk.Nonconvex
-Convex = _otk.Convex
-ArcChord = _otk.ArcChord
-ArcPieSlice = _otk.ArcPieSlice
-GCFunction = _otk.GCFunction
-GCPlaneMask = _otk.GCPlaneMask
-GCForeground = _otk.GCForeground
-GCBackground = _otk.GCBackground
-GCLineWidth = _otk.GCLineWidth
-GCLineStyle = _otk.GCLineStyle
-GCCapStyle = _otk.GCCapStyle
-GCJoinStyle = _otk.GCJoinStyle
-GCFillStyle = _otk.GCFillStyle
-GCFillRule = _otk.GCFillRule
-GCTile = _otk.GCTile
-GCStipple = _otk.GCStipple
-GCTileStipXOrigin = _otk.GCTileStipXOrigin
-GCTileStipYOrigin = _otk.GCTileStipYOrigin
-GCFont = _otk.GCFont
-GCSubwindowMode = _otk.GCSubwindowMode
-GCGraphicsExposures = _otk.GCGraphicsExposures
-GCClipXOrigin = _otk.GCClipXOrigin
-GCClipYOrigin = _otk.GCClipYOrigin
-GCClipMask = _otk.GCClipMask
-GCDashOffset = _otk.GCDashOffset
-GCDashList = _otk.GCDashList
-GCArcMode = _otk.GCArcMode
-GCLastBit = _otk.GCLastBit
-FontLeftToRight = _otk.FontLeftToRight
-FontRightToLeft = _otk.FontRightToLeft
-FontChange = _otk.FontChange
-XYBitmap = _otk.XYBitmap
-XYPixmap = _otk.XYPixmap
-ZPixmap = _otk.ZPixmap
-AllocNone = _otk.AllocNone
-AllocAll = _otk.AllocAll
-DoRed = _otk.DoRed
-DoGreen = _otk.DoGreen
-DoBlue = _otk.DoBlue
-CursorShape = _otk.CursorShape
-TileShape = _otk.TileShape
-StippleShape = _otk.StippleShape
-AutoRepeatModeOff = _otk.AutoRepeatModeOff
-AutoRepeatModeOn = _otk.AutoRepeatModeOn
-AutoRepeatModeDefault = _otk.AutoRepeatModeDefault
-LedModeOff = _otk.LedModeOff
-LedModeOn = _otk.LedModeOn
-KBKeyClickPercent = _otk.KBKeyClickPercent
-KBBellPercent = _otk.KBBellPercent
-KBBellPitch = _otk.KBBellPitch
-KBBellDuration = _otk.KBBellDuration
-KBLed = _otk.KBLed
-KBLedMode = _otk.KBLedMode
-KBKey = _otk.KBKey
-KBAutoRepeatMode = _otk.KBAutoRepeatMode
-MappingSuccess = _otk.MappingSuccess
-MappingBusy = _otk.MappingBusy
-MappingFailed = _otk.MappingFailed
-MappingModifier = _otk.MappingModifier
-MappingKeyboard = _otk.MappingKeyboard
-MappingPointer = _otk.MappingPointer
-DontPreferBlanking = _otk.DontPreferBlanking
-PreferBlanking = _otk.PreferBlanking
-DefaultBlanking = _otk.DefaultBlanking
-DisableScreenSaver = _otk.DisableScreenSaver
-DisableScreenInterval = _otk.DisableScreenInterval
-DontAllowExposures = _otk.DontAllowExposures
-AllowExposures = _otk.AllowExposures
-DefaultExposures = _otk.DefaultExposures
-ScreenSaverReset = _otk.ScreenSaverReset
-ScreenSaverActive = _otk.ScreenSaverActive
-HostInsert = _otk.HostInsert
-HostDelete = _otk.HostDelete
-EnableAccess = _otk.EnableAccess
-DisableAccess = _otk.DisableAccess
-StaticGray = _otk.StaticGray
-GrayScale = _otk.GrayScale
-StaticColor = _otk.StaticColor
-PseudoColor = _otk.PseudoColor
-TrueColor = _otk.TrueColor
-DirectColor = _otk.DirectColor
-LSBFirst = _otk.LSBFirst
-MSBFirst = _otk.MSBFirst
-cvar = _otk.cvar
-BSENTINEL = cvar.BSENTINEL
-
index 495b81d59ff687c425f3c7f748d9be517e936b83..778f0f8f8140719dd134a5312f5c4b373944b176 100644 (file)
 #include "button.hh"
 
 int main(int argc, char **argv) {
-  otk::OtkApplication app(argc, argv);
+  otk::Application app(argc, argv);
 
-  otk::OtkAppWidget foo(&app);
+  otk::AppWidget foo(&app);
 
   foo.resize(600, 500);
   foo.setTexture(app.getStyle()->getTitleFocus());
 //  foo.setUnfocusTexture(app.getStyle()->getTitleUnfocus());
 
   foo.setBevelWidth(2);
-  foo.setDirection(otk::OtkWidget::Horizontal);
+  foo.setDirection(otk::Widget::Horizontal);
 
-  otk::OtkFocusWidget left(&foo);
-  otk::OtkFocusWidget right(&foo);
+  otk::FocusWidget left(&foo);
+  otk::FocusWidget right(&foo);
 
-  left.setDirection(otk::OtkWidget::Horizontal);
+  left.setDirection(otk::Widget::Horizontal);
   left.setStretchableVert(true);
   left.setStretchableHorz(true);
   left.setTexture(app.getStyle()->getTitleFocus());
   left.setUnfocusTexture(app.getStyle()->getTitleUnfocus());
  
-  right.setDirection(otk::OtkWidget::Vertical);
+  right.setDirection(otk::Widget::Vertical);
   right.setBevelWidth(10);
   right.setStretchableVert(true);
   right.setWidth(300);
   right.setTexture(app.getStyle()->getTitleFocus());
   right.setUnfocusTexture(app.getStyle()->getTitleUnfocus());
 
-  otk::OtkButton iconb(&left);
+  otk::Button iconb(&left);
   iconb.resize(40,20);
-  otk::OtkFocusWidget label(&left);
-  otk::OtkButton maxb(&left);
-  otk::OtkButton closeb(&left);
+  otk::FocusWidget label(&left);
+  otk::Button maxb(&left);
+  otk::Button closeb(&left);
   
   // fixed size
   iconb.setText("foo");
@@ -60,9 +60,9 @@ int main(int argc, char **argv) {
   // fixed size
   closeb.setText("fuubar");
 
-  otk::OtkFocusWidget rblef(&right);
-  otk::OtkButton rbutt1(&right);
-  otk::OtkButton rbutt2(&right);
+  otk::FocusWidget rblef(&right);
+  otk::Button rbutt1(&right);
+  otk::Button rbutt2(&right);
 
   rblef.setStretchableHorz(true);
   rblef.setHeight(50);
diff --git a/otk/otk_wrap.cc b/otk/otk_wrap.cc
deleted file mode 100644 (file)
index 4788f23..0000000
+++ /dev/null
@@ -1,13984 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.17u-20021226-0459
- * 
- * This file is not intended to be easily readable and contains a number of 
- * coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG 
- * interface file instead. 
- * ----------------------------------------------------------------------------- */
-
-#define SWIGPYTHON
-
-#ifdef __cplusplus
-template<class T> class SwigValueWrapper {
-    T *tt;
-public:
-    inline SwigValueWrapper() : tt(0) { }
-    inline ~SwigValueWrapper() { if (tt) delete tt; } 
-    inline SwigValueWrapper& operator=(const T& t) { tt = new T(t); return *this; }
-    inline operator T&() const { return *tt; }
-    inline T *operator&() { return tt; }
-};                                                    
-#endif
-
-
-#include "Python.h"
-
-/***********************************************************************
- * common.swg
- *
- *     This file contains generic SWIG runtime support for pointer
- *     type checking as well as a few commonly used macros to control
- *     external linkage.
- *
- * Author : David Beazley (beazley@cs.uchicago.edu)
- *
- * Copyright (c) 1999-2000, The University of Chicago
- * 
- * This file may be freely redistributed without license or fee provided
- * this copyright message remains intact.
- ************************************************************************/
-
-#include <string.h>
-
-#if defined(_WIN32) || defined(__WIN32__)
-#       if defined(_MSC_VER)
-#               if defined(STATIC_LINKED)
-#                       define SWIGEXPORT(a) a
-#                       define SWIGIMPORT(a) extern a
-#               else
-#                       define SWIGEXPORT(a) __declspec(dllexport) a
-#                       define SWIGIMPORT(a) extern a
-#               endif
-#       else
-#               if defined(__BORLANDC__)
-#                       define SWIGEXPORT(a) a _export
-#                       define SWIGIMPORT(a) a _export
-#               else
-#                       define SWIGEXPORT(a) a
-#                       define SWIGIMPORT(a) a
-#               endif
-#       endif
-#else
-#       define SWIGEXPORT(a) a
-#       define SWIGIMPORT(a) a
-#endif
-
-#ifdef SWIG_GLOBAL
-#define SWIGRUNTIME(a) SWIGEXPORT(a)
-#else
-#define SWIGRUNTIME(a) static a
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef void *(*swig_converter_func)(void *);
-typedef struct swig_type_info *(*swig_dycast_func)(void **);
-
-typedef struct swig_type_info {
-  const char             *name;                 
-  swig_converter_func     converter;
-  const char             *str;
-  void                   *clientdata;  
-  swig_dycast_func        dcast;
-  struct swig_type_info  *next;
-  struct swig_type_info  *prev;
-} swig_type_info;
-
-#ifdef SWIG_NOINCLUDE
-
-SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
-SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
-SWIGIMPORT(void *)           SWIG_TypeCast(swig_type_info *, void *);
-SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
-SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
-SWIGIMPORT(void)             SWIG_TypeClientData(swig_type_info *, void *);
-
-#else
-
-static swig_type_info *swig_type_list = 0;
-
-/* Register a type mapping with the type-checking */
-SWIGRUNTIME(swig_type_info *)
-SWIG_TypeRegister(swig_type_info *ti)
-{
-  swig_type_info *tc, *head, *ret, *next;
-  /* Check to see if this type has already been registered */
-  tc = swig_type_list;
-  while (tc) {
-    if (strcmp(tc->name, ti->name) == 0) {
-      /* Already exists in the table.  Just add additional types to the list */
-      if (tc->clientdata) ti->clientdata = tc->clientdata;     
-      head = tc;
-      next = tc->next;
-      goto l1;
-    }
-    tc = tc->prev;
-  }
-  head = ti;
-  next = 0;
-
-  /* Place in list */
-  ti->prev = swig_type_list;
-  swig_type_list = ti;
-
-  /* Build linked lists */
- l1:
-  ret = head;
-  tc = ti + 1;
-  /* Patch up the rest of the links */
-  while (tc->name) {
-    head->next = tc;
-    tc->prev = head;
-    head = tc;
-    tc++;
-  }
-  head->next = next;
-  return ret;
-}
-
-/* Check the typename */
-SWIGRUNTIME(swig_type_info *) 
-SWIG_TypeCheck(char *c, swig_type_info *ty)
-{
-  swig_type_info *s;
-  if (!ty) return 0;        /* Void pointer */
-  s = ty->next;             /* First element always just a name */
-  do {
-    if (strcmp(s->name,c) == 0) {
-      if (s == ty->next) return s;
-      /* Move s to the top of the linked list */
-      s->prev->next = s->next;
-      if (s->next) {
-       s->next->prev = s->prev;
-      }
-      /* Insert s as second element in the list */
-      s->next = ty->next;
-      if (ty->next) ty->next->prev = s;
-      ty->next = s;
-      return s;
-    }
-    s = s->next;
-  } while (s && (s != ty->next));
-  return 0;
-}
-
-/* Cast a pointer up an inheritance hierarchy */
-SWIGRUNTIME(void *) 
-SWIG_TypeCast(swig_type_info *ty, void *ptr) 
-{
-  if ((!ty) || (!ty->converter)) return ptr;
-  return (*ty->converter)(ptr);
-}
-
-/* Dynamic pointer casting. Down an inheritance hierarchy */
-SWIGRUNTIME(swig_type_info *) 
-SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) 
-{
-  swig_type_info *lastty = ty;
-  if (!ty || !ty->dcast) return ty;
-  while (ty && (ty->dcast)) {
-     ty = (*ty->dcast)(ptr);
-     if (ty) lastty = ty;
-  }
-  return lastty;
-}
-
-/* Search for a swig_type_info structure */
-SWIGRUNTIME(swig_type_info *)
-SWIG_TypeQuery(const char *name) {
-  swig_type_info *ty = swig_type_list;
-  while (ty) {
-    if (ty->str && (strcmp(name,ty->str) == 0)) return ty;
-    if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
-    ty = ty->prev;
-  }
-  return 0;
-}
-
-/* Set the clientdata field for a type */
-SWIGRUNTIME(void)
-SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
-  swig_type_info *tc, *equiv;
-  if (ti->clientdata == clientdata) return;
-  ti->clientdata = clientdata;
-  equiv = ti->next;
-  while (equiv) {
-    if (!equiv->converter) {
-      tc = swig_type_list;
-      while (tc) {
-       if ((strcmp(tc->name, equiv->name) == 0))
-         SWIG_TypeClientData(tc,clientdata);
-       tc = tc->prev;
-      }
-    }
-    equiv = equiv->next;
-  }
-}
-#endif
-
-#ifdef __cplusplus
-}
-
-#endif
-
-/***********************************************************************
- * python.swg
- *
- *     This file contains the runtime support for Python modules
- *     and includes code for managing global variables and pointer
- *     type checking.
- *
- * Author : David Beazley (beazley@cs.uchicago.edu)
- ************************************************************************/
-
-#include "Python.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define SWIG_PY_INT     1
-#define SWIG_PY_FLOAT   2
-#define SWIG_PY_STRING  3
-#define SWIG_PY_POINTER 4
-#define SWIG_PY_BINARY  5
-
-/* Flags for pointer conversion */
-
-#define SWIG_POINTER_EXCEPTION     0x1
-#define SWIG_POINTER_DISOWN        0x2
-
-/* Exception handling in wrappers */
-#define SWIG_fail   goto fail
-
-/* Constant information structure */
-typedef struct swig_const_info {
-    int type;
-    char *name;
-    long lvalue;
-    double dvalue;
-    void   *pvalue;
-    swig_type_info **ptype;
-} swig_const_info;
-
-#ifdef SWIG_NOINCLUDE
-
-SWIGEXPORT(PyObject *)        SWIG_newvarlink();
-SWIGEXPORT(void)              SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
-SWIGEXPORT(int)               SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int);
-SWIGEXPORT(int)               SWIG_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
-SWIGEXPORT(char *)            SWIG_PackData(char *c, void *, int);
-SWIGEXPORT(char *)            SWIG_UnpackData(char *c, void *, int);
-SWIGEXPORT(PyObject *)        SWIG_NewPointerObj(void *, swig_type_info *,int own);
-SWIGEXPORT(PyObject *)        SWIG_NewPackedObj(void *, int sz, swig_type_info *);
-SWIGEXPORT(void)              SWIG_InstallConstants(PyObject *d, swig_const_info constants[]);
-#else
-
-/* -----------------------------------------------------------------------------
- * global variable support code.
- * ----------------------------------------------------------------------------- */
-
-typedef struct swig_globalvar {   
-  char       *name;                  /* Name of global variable */
-  PyObject *(*get_attr)(void);       /* Return the current value */
-  int       (*set_attr)(PyObject *); /* Set the value */
-  struct swig_globalvar *next;
-} swig_globalvar;
-
-typedef struct swig_varlinkobject {
-  PyObject_HEAD
-  swig_globalvar *vars;
-} swig_varlinkobject;
-
-static PyObject *
-swig_varlink_repr(swig_varlinkobject *v) {
-  v = v;
-  return PyString_FromString("<Global variables>");
-}
-
-static int
-swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
-  swig_globalvar  *var;
-  flags = flags;
-  fprintf(fp,"Global variables { ");
-  for (var = v->vars; var; var=var->next) {
-    fprintf(fp,"%s", var->name);
-    if (var->next) fprintf(fp,", ");
-  }
-  fprintf(fp," }\n");
-  return 0;
-}
-
-static PyObject *
-swig_varlink_getattr(swig_varlinkobject *v, char *n) {
-  swig_globalvar *var = v->vars;
-  while (var) {
-    if (strcmp(var->name,n) == 0) {
-      return (*var->get_attr)();
-    }
-    var = var->next;
-  }
-  PyErr_SetString(PyExc_NameError,"Unknown C global variable");
-  return NULL;
-}
-
-static int
-swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
-  swig_globalvar *var = v->vars;
-  while (var) {
-    if (strcmp(var->name,n) == 0) {
-      return (*var->set_attr)(p);
-    }
-    var = var->next;
-  }
-  PyErr_SetString(PyExc_NameError,"Unknown C global variable");
-  return 1;
-}
-
-statichere PyTypeObject varlinktype = {
-  PyObject_HEAD_INIT(0)              
-  0,
-  (char *)"swigvarlink",                      /* Type name    */
-  sizeof(swig_varlinkobject),         /* Basic size   */
-  0,                                  /* Itemsize     */
-  0,                                  /* Deallocator  */ 
-  (printfunc) swig_varlink_print,     /* Print        */
-  (getattrfunc) swig_varlink_getattr, /* get attr     */
-  (setattrfunc) swig_varlink_setattr, /* Set attr     */
-  0,                                  /* tp_compare   */
-  (reprfunc) swig_varlink_repr,       /* tp_repr      */    
-  0,                                  /* tp_as_number */
-  0,                                  /* tp_as_mapping*/
-  0,                                  /* tp_hash      */
-};
-
-/* Create a variable linking object for use later */
-SWIGRUNTIME(PyObject *)
-SWIG_newvarlink(void) {
-  swig_varlinkobject *result = 0;
-  result = PyMem_NEW(swig_varlinkobject,1);
-  varlinktype.ob_type = &PyType_Type;    /* Patch varlinktype into a PyType */
-  result->ob_type = &varlinktype;
-  result->vars = 0;
-  result->ob_refcnt = 0;
-  Py_XINCREF((PyObject *) result);
-  return ((PyObject*) result);
-}
-
-SWIGRUNTIME(void)
-SWIG_addvarlink(PyObject *p, char *name,
-          PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
-  swig_varlinkobject *v;
-  swig_globalvar *gv;
-  v= (swig_varlinkobject *) p;
-  gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
-  gv->name = (char *) malloc(strlen(name)+1);
-  strcpy(gv->name,name);
-  gv->get_attr = get_attr;
-  gv->set_attr = set_attr;
-  gv->next = v->vars;
-  v->vars = gv;
-}
-
-/* Pack binary data into a string */
-SWIGRUNTIME(char *)
-SWIG_PackData(char *c, void *ptr, int sz) {
-  static char hex[17] = "0123456789abcdef";
-  int i;
-  unsigned char *u = (unsigned char *) ptr;
-  register unsigned char uu;
-  for (i = 0; i < sz; i++,u++) {
-    uu = *u;
-    *(c++) = hex[(uu & 0xf0) >> 4];
-    *(c++) = hex[uu & 0xf];
-  }
-  return c;
-}
-
-/* Unpack binary data from a string */
-SWIGRUNTIME(char *)
-SWIG_UnpackData(char *c, void *ptr, int sz) {
-  register unsigned char uu = 0;
-  register int d;
-  unsigned char *u = (unsigned char *) ptr;
-  int i;
-  for (i = 0; i < sz; i++, u++) {
-    d = *(c++);
-    if ((d >= '0') && (d <= '9'))
-      uu = ((d - '0') << 4);
-    else if ((d >= 'a') && (d <= 'f'))
-      uu = ((d - ('a'-10)) << 4);
-    d = *(c++);
-    if ((d >= '0') && (d <= '9'))
-      uu |= (d - '0');
-    else if ((d >= 'a') && (d <= 'f'))
-      uu |= (d - ('a'-10));
-    *u = uu;
-  }
-  return c;
-}
-
-/* Convert a pointer value */
-SWIGRUNTIME(int)
-SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
-  swig_type_info *tc;
-  char  *c;
-  static PyObject *SWIG_this = 0;
-  int    newref = 0;
-  PyObject  *pyobj = 0;
-
-  if (!obj) return 0;
-  if (obj == Py_None) {
-    *ptr = 0;
-    return 0;
-  }
-#ifdef SWIG_COBJECT_TYPES
-  if (!(PyCObject_Check(obj))) {
-    if (!SWIG_this)
-      SWIG_this = PyString_FromString("this");
-    pyobj = obj;
-    obj = PyObject_GetAttr(obj,SWIG_this);
-    newref = 1;
-    if (!obj) goto type_error;
-    if (!PyCObject_Check(obj)) {
-      Py_DECREF(obj);
-      goto type_error;
-    }
-  }  
-  *ptr = PyCObject_AsVoidPtr(obj);
-  c = (char *) PyCObject_GetDesc(obj);
-  if (newref) Py_DECREF(obj);
-  goto cobject;
-#else
-  if (!(PyString_Check(obj))) {
-    if (!SWIG_this)
-      SWIG_this = PyString_FromString("this");
-    pyobj = obj;
-    obj = PyObject_GetAttr(obj,SWIG_this);
-    newref = 1;
-    if (!obj) goto type_error;
-    if (!PyString_Check(obj)) {
-      Py_DECREF(obj);
-      goto type_error;
-    }
-  } 
-  c = PyString_AsString(obj);
-  /* Pointer values must start with leading underscore */
-  if (*c != '_') {
-    *ptr = (void *) 0;
-    if (strcmp(c,"NULL") == 0) {
-      if (newref) { Py_DECREF(obj); }
-      return 0;
-    } else {
-      if (newref) { Py_DECREF(obj); }
-      goto type_error;
-    }
-  }
-  c++;
-  c = SWIG_UnpackData(c,ptr,sizeof(void *));
-  if (newref) { Py_DECREF(obj); }
-#endif
-
-#ifdef SWIG_COBJECT_TYPES
-cobject:
-#endif
-
-  if (ty) {
-    tc = SWIG_TypeCheck(c,ty);
-    if (!tc) goto type_error;
-    *ptr = SWIG_TypeCast(tc,(void*) *ptr);
-  }
-
-  if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
-      PyObject *zero = PyInt_FromLong(0);
-      PyObject_SetAttrString(pyobj,(char*)"thisown",zero);
-      Py_DECREF(zero);
-  }
-  return 0;
-
-type_error:
-  if (flags & SWIG_POINTER_EXCEPTION) {
-    if (ty) {
-      char *temp = (char *) malloc(64+strlen(ty->name));
-      sprintf(temp,"Type error. Expected %s", ty->name);
-      PyErr_SetString(PyExc_TypeError, temp);
-      free((char *) temp);
-    } else {
-      PyErr_SetString(PyExc_TypeError,"Expected a pointer");
-    }
-  }
-  return -1;
-}
-
-/* Convert a packed value value */
-SWIGRUNTIME(int)
-SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
-  swig_type_info *tc;
-  char  *c;
-
-  if ((!obj) || (!PyString_Check(obj))) goto type_error;
-  c = PyString_AsString(obj);
-  /* Pointer values must start with leading underscore */
-  if (*c != '_') goto type_error;
-  c++;
-  c = SWIG_UnpackData(c,ptr,sz);
-  if (ty) {
-    tc = SWIG_TypeCheck(c,ty);
-    if (!tc) goto type_error;
-  }
-  return 0;
-
-type_error:
-
-  if (flags) {
-    if (ty) {
-      char *temp = (char *) malloc(64+strlen(ty->name));
-      sprintf(temp,"Type error. Expected %s", ty->name);
-      PyErr_SetString(PyExc_TypeError, temp);
-      free((char *) temp);
-    } else {
-      PyErr_SetString(PyExc_TypeError,"Expected a pointer");
-    }
-  }
-  return -1;
-}
-
-/* Create a new pointer object */
-SWIGRUNTIME(PyObject *)
-SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
-  PyObject *robj;
-  if (!ptr) {
-    Py_INCREF(Py_None);
-    return Py_None;
-  }
-#ifdef SWIG_COBJECT_TYPES
-  robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) type->name, NULL);
-#else
-  {
-    char result[1024];
-    char *r = result;
-    *(r++) = '_';
-    r = SWIG_PackData(r,&ptr,sizeof(void *));
-    strcpy(r,type->name);
-    robj = PyString_FromString(result);
-  }
-#endif
-  if (!robj || (robj == Py_None)) return robj;
-  if (type->clientdata) {
-    PyObject *inst;
-    PyObject *args = Py_BuildValue((char*)"(O)", robj);
-    Py_DECREF(robj);
-    inst = PyObject_CallObject((PyObject *) type->clientdata, args);
-    Py_DECREF(args);
-    if (inst) {
-      if (own) {
-       PyObject *n = PyInt_FromLong(1);
-       PyObject_SetAttrString(inst,(char*)"thisown",n);
-       Py_DECREF(n);
-      }
-      robj = inst;
-    }
-  }
-  return robj;
-}
-
-SWIGRUNTIME(PyObject *)
-SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
-  char result[1024];
-  char *r = result;
-  if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
-  *(r++) = '_';
-  r = SWIG_PackData(r,ptr,sz);
-  strcpy(r,type->name);
-  return PyString_FromString(result);
-}
-
-/* Install Constants */
-SWIGRUNTIME(void)
-SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
-  int i;
-  PyObject *obj;
-  for (i = 0; constants[i].type; i++) {
-    switch(constants[i].type) {
-    case SWIG_PY_INT:
-      obj = PyInt_FromLong(constants[i].lvalue);
-      break;
-    case SWIG_PY_FLOAT:
-      obj = PyFloat_FromDouble(constants[i].dvalue);
-      break;
-    case SWIG_PY_STRING:
-      obj = PyString_FromString((char *) constants[i].pvalue);
-      break;
-    case SWIG_PY_POINTER:
-      obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
-      break;
-    case SWIG_PY_BINARY:
-      obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
-      break;
-    default:
-      obj = 0;
-      break;
-    }
-    if (obj) {
-      PyDict_SetItemString(d,constants[i].name,obj);
-      Py_DECREF(obj);
-    }
-  }
-}
-
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-
-
-
-
-
-
-
-/* -------- TYPES TABLE (BEGIN) -------- */
-
-#define  SWIGTYPE_p_otk__OBProperty__StringVect swig_types[0] 
-#define  SWIGTYPE_p_otk__BGCCache swig_types[1] 
-#define  SWIGTYPE_p_otk__BColor swig_types[2] 
-#define  SWIGTYPE_p_XFontStruct swig_types[3] 
-#define  SWIGTYPE_p_otk__Configuration swig_types[4] 
-#define  SWIGTYPE_p_otk__PixmapMask swig_types[5] 
-#define  SWIGTYPE_p_otk__PointerAssassin swig_types[6] 
-#define  SWIGTYPE_p_otk__BImage swig_types[7] 
-#define  SWIGTYPE_p_otk__OBTimer swig_types[8] 
-#define  SWIGTYPE_p_otk__OtkWidget__OtkWidgetList swig_types[9] 
-#define  SWIGTYPE_p_bool swig_types[10] 
-#define  SWIGTYPE_p_otk__OBDisplay swig_types[11] 
-#define  SWIGTYPE_p_Display swig_types[12] 
-#define  SWIGTYPE_p_p_XColor swig_types[13] 
-#define  SWIGTYPE_p_XReparentEvent swig_types[14] 
-#define  SWIGTYPE_p_otk__BPen swig_types[15] 
-#define  SWIGTYPE_p_otk__BImageControl swig_types[16] 
-#define  SWIGTYPE_p_otk__OtkButton swig_types[17] 
-#define  SWIGTYPE_p_otk__Rect swig_types[18] 
-#define  SWIGTYPE_p_otk__Style swig_types[19] 
-#define  SWIGTYPE_p_XSelectionClearEvent swig_types[20] 
-#define  SWIGTYPE_p_Visual swig_types[21] 
-#define  SWIGTYPE_p_timeval swig_types[22] 
-#define  SWIGTYPE_p_int swig_types[23] 
-#define  SWIGTYPE_p_otk__Strut swig_types[24] 
-#define  SWIGTYPE_p_otk__OtkApplication swig_types[25] 
-#define  SWIGTYPE_p_XRectangle swig_types[26] 
-#define  SWIGTYPE_p_otk__OtkFocusWidget swig_types[27] 
-#define  SWIGTYPE_p_otk__OtkWidget swig_types[28] 
-#define  SWIGTYPE_p_XGravityEvent swig_types[29] 
-#define  SWIGTYPE_p_XVisibilityEvent swig_types[30] 
-#define  SWIGTYPE_p_XPropertyEvent swig_types[31] 
-#define  SWIGTYPE_p_otk__BGCCacheContext swig_types[32] 
-#define  SWIGTYPE_p_XCreateWindowEvent swig_types[33] 
-#define  SWIGTYPE_p_XDestroyWindowEvent swig_types[34] 
-#define  SWIGTYPE_p_XCirculateEvent swig_types[35] 
-#define  SWIGTYPE_p_XConfigureEvent swig_types[36] 
-#define  SWIGTYPE_p_otk__OBProperty swig_types[37] 
-#define  SWIGTYPE_p_long swig_types[38] 
-#define  SWIGTYPE_p_XTextProperty swig_types[39] 
-#define  SWIGTYPE_p_otk__OtkEventHandler swig_types[40] 
-#define  SWIGTYPE_p_XCirculateRequestEvent swig_types[41] 
-#define  SWIGTYPE_p_XConfigureRequestEvent swig_types[42] 
-#define  SWIGTYPE_p_XMapRequestEvent swig_types[43] 
-#define  SWIGTYPE_p_XResizeRequestEvent swig_types[44] 
-#define  SWIGTYPE_p_XSelectionRequestEvent swig_types[45] 
-#define  SWIGTYPE_otk__OBTimeoutHandler swig_types[46] 
-#define  SWIGTYPE_p_XftDraw swig_types[47] 
-#define  SWIGTYPE_p_otk__ScreenInfo swig_types[48] 
-#define  SWIGTYPE_p_otk__OtkFocusLabel swig_types[49] 
-#define  SWIGTYPE_p_otk__BTexture swig_types[50] 
-#define  SWIGTYPE_p_otk__OtkEventDispatcher swig_types[51] 
-#define  SWIGTYPE_p_otk__BFont swig_types[52] 
-#define  SWIGTYPE_p_otk__Point swig_types[53] 
-#define  SWIGTYPE_p_p_char swig_types[54] 
-#define  SWIGTYPE_p_XMotionEvent swig_types[55] 
-#define  SWIGTYPE_p_XButtonEvent swig_types[56] 
-#define  SWIGTYPE_p_XSelectionEvent swig_types[57] 
-#define  SWIGTYPE_p_GC swig_types[58] 
-#define  SWIGTYPE_p_otk__OBTimerQueueManager swig_types[59] 
-#define  SWIGTYPE_p_otk__OtkAppWidget swig_types[60] 
-#define  SWIGTYPE_p_XKeyEvent swig_types[61] 
-#define  SWIGTYPE_p_p_unsigned_long swig_types[62] 
-#define  SWIGTYPE_p_unsigned_long swig_types[63] 
-#define  SWIGTYPE_p_XEvent swig_types[64] 
-#define  SWIGTYPE_p_std__string swig_types[65] 
-#define  SWIGTYPE_p_XCrossingEvent swig_types[66] 
-#define  SWIGTYPE_p_XMappingEvent swig_types[67] 
-#define  SWIGTYPE_p_otk__BGCCacheItem swig_types[68] 
-#define  SWIGTYPE_p_p_unsigned_int swig_types[69] 
-#define  SWIGTYPE_p_unsigned_int swig_types[70] 
-#define  SWIGTYPE_p_p_unsigned_char swig_types[71] 
-#define  SWIGTYPE_p_XClientMessageEvent swig_types[72] 
-#define  SWIGTYPE_p_XGraphicsExposeEvent swig_types[73] 
-#define  SWIGTYPE_p_XExposeEvent swig_types[74] 
-#define  SWIGTYPE_p_XFocusChangeEvent swig_types[75] 
-#define  SWIGTYPE_p_XNoExposeEvent swig_types[76] 
-#define  SWIGTYPE_p_XMapEvent swig_types[77] 
-#define  SWIGTYPE_p_XUnmapEvent swig_types[78] 
-#define  SWIGTYPE_p_XColormapEvent swig_types[79] 
-static swig_type_info *swig_types[81];
-
-/* -------- TYPES TABLE (END) -------- */
-
-
-/*-----------------------------------------------
-              @(target):= _otk.so
-  ------------------------------------------------*/
-#define SWIG_init    init_otk
-
-#define SWIG_name    "_otk"
-
-#ifdef HAVE_CONFIG_H
-#  include "../config.h"
-#endif
-
-#include "otk.hh"
-
-
-#define  SWIG_MemoryError    1
-#define  SWIG_IOError        2
-#define  SWIG_RuntimeError   3
-#define  SWIG_IndexError     4
-#define  SWIG_TypeError      5
-#define  SWIG_DivisionByZero 6
-#define  SWIG_OverflowError  7
-#define  SWIG_SyntaxError    8
-#define  SWIG_ValueError     9
-#define  SWIG_SystemError   10
-#define  SWIG_UnknownError  99
-
-
-static void _SWIG_exception(int code, const char *msg) {
-  switch(code) {
-  case SWIG_MemoryError:
-    PyErr_SetString(PyExc_MemoryError,msg);
-    break;
-  case SWIG_IOError:
-    PyErr_SetString(PyExc_IOError,msg);
-    break;
-  case SWIG_RuntimeError:
-    PyErr_SetString(PyExc_RuntimeError,msg);
-    break;
-  case SWIG_IndexError:
-    PyErr_SetString(PyExc_IndexError,msg);
-    break;
-  case SWIG_TypeError:
-    PyErr_SetString(PyExc_TypeError,msg);
-    break;
-  case SWIG_DivisionByZero:
-    PyErr_SetString(PyExc_ZeroDivisionError,msg);
-    break;
-  case SWIG_OverflowError:
-    PyErr_SetString(PyExc_OverflowError,msg);
-    break;
-  case SWIG_SyntaxError:
-    PyErr_SetString(PyExc_SyntaxError,msg);
-    break;
-  case SWIG_ValueError:
-    PyErr_SetString(PyExc_ValueError,msg);
-    break;
-  case SWIG_SystemError:
-    PyErr_SetString(PyExc_SystemError,msg);
-    break;
-  default:
-    PyErr_SetString(PyExc_RuntimeError,msg);
-    break;
-  }
-}
-
-#define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
-
-
-#include <string>
-
-
-#include <string>
-
-static PyObject* SwigInt_FromBool(bool b) {
-    return PyInt_FromLong(b ? 1L : 0L);
-}
-static double SwigNumber_Check(PyObject* o) {
-    return PyFloat_Check(o) || PyInt_Check(o);
-}
-static double SwigNumber_AsDouble(PyObject* o) {
-    return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o)));
-}
-static PyObject* SwigString_FromString(const std::string& s) {
-    return PyString_FromString(s.c_str());
-}
-static std::string SwigString_AsString(PyObject* o) {
-    return std::string(PyString_AsString(o));
-}
-
-
-#include <vector>
-#include <algorithm>
-#include <stdexcept>
-
-
-  Display *OBDisplay_display() { return otk::OBDisplay::display; }
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-static PyObject *_wrap_OBDisplay_display(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    Display *result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":OBDisplay_display")) goto fail;
-    result = (Display *)OBDisplay_display();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Display, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_OtkEventDispatcher(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventDispatcher *result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":new_OtkEventDispatcher")) goto fail;
-    result = (otk::OtkEventDispatcher *)new otk::OtkEventDispatcher();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventDispatcher, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_OtkEventDispatcher(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkEventDispatcher",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventDispatcher_clearAllHandlers(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_clearAllHandlers",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->clearAllHandlers();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventDispatcher_registerHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
-    Window arg2 ;
-    otk::OtkEventHandler *arg3 = (otk::OtkEventHandler *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:OtkEventDispatcher_registerHandler",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (Window) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->registerHandler(arg2,arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventDispatcher_clearHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
-    Window arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_clearHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (Window) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->clearHandler(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventDispatcher_dispatchEvents(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_dispatchEvents",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->dispatchEvents();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventDispatcher_setFallbackHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
-    otk::OtkEventHandler *arg2 = (otk::OtkEventHandler *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_setFallbackHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setFallbackHandler(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventDispatcher_getFallbackHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
-    otk::OtkEventHandler *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_getFallbackHandler",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::OtkEventHandler *)((otk::OtkEventDispatcher const *)arg1)->getFallbackHandler();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventHandler, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventDispatcher_setMasterHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
-    otk::OtkEventHandler *arg2 = (otk::OtkEventHandler *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_setMasterHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setMasterHandler(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventDispatcher_getMasterHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
-    otk::OtkEventHandler *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_getMasterHandler",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::OtkEventHandler *)((otk::OtkEventDispatcher const *)arg1)->getMasterHandler();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventHandler, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventDispatcher_findHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
-    Window arg2 ;
-    otk::OtkEventHandler *result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventDispatcher_findHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (Window) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    result = (otk::OtkEventHandler *)(arg1)->findHandler(arg2);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventHandler, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventDispatcher_lastTime(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
-    Time result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkEventDispatcher_lastTime",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (Time)((otk::OtkEventDispatcher const *)arg1)->lastTime();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * OtkEventDispatcher_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__OtkEventDispatcher, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_OtkEventHandler_handle(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_handle",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->handle((XEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_keyPressHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XKeyEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_keyPressHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->keyPressHandler((XKeyEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_keyReleaseHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XKeyEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_keyReleaseHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->keyReleaseHandler((XKeyEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_buttonPressHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XButtonEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_buttonPressHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->buttonPressHandler((XButtonEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_buttonReleaseHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XButtonEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_buttonReleaseHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->buttonReleaseHandler((XButtonEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_motionHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XMotionEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_motionHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMotionEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->motionHandler((XMotionEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_enterHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XCrossingEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_enterHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCrossingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->enterHandler((XCrossingEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_leaveHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XCrossingEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_leaveHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCrossingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->leaveHandler((XCrossingEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_focusHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XFocusChangeEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_focusHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->focusHandler((XFocusChangeEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_unfocusHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XFocusChangeEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_unfocusHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_exposeHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XExposeEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_exposeHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->exposeHandler((XExposeEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_graphicsExposeHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XGraphicsExposeEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_graphicsExposeHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XGraphicsExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->graphicsExposeHandler((XGraphicsExposeEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_noExposeEventHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XNoExposeEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_noExposeEventHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XNoExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->noExposeEventHandler((XNoExposeEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_circulateRequestHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XCirculateRequestEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_circulateRequestHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCirculateRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->circulateRequestHandler((XCirculateRequestEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_configureRequestHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XConfigureRequestEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_configureRequestHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_mapRequestHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XMapRequestEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_mapRequestHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->mapRequestHandler((XMapRequestEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_resizeRequestHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XResizeRequestEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_resizeRequestHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XResizeRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->resizeRequestHandler((XResizeRequestEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_circulateHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XCirculateEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_circulateHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCirculateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->circulateHandler((XCirculateEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_configureHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XConfigureEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_configureHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->configureHandler((XConfigureEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_createHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XCreateWindowEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_createHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XCreateWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->createHandler((XCreateWindowEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_destroyHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XDestroyWindowEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_destroyHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_gravityHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XGravityEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_gravityHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XGravityEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->gravityHandler((XGravityEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_mapHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XMapEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_mapHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->mapHandler((XMapEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_mappingHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XMappingEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_mappingHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMappingEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->mappingHandler((XMappingEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_reparentHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XReparentEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_reparentHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->reparentHandler((XReparentEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_unmapHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XUnmapEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_unmapHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->unmapHandler((XUnmapEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_visibilityHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XVisibilityEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_visibilityHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XVisibilityEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->visibilityHandler((XVisibilityEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_colorMapHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XColormapEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_colorMapHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XColormapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->colorMapHandler((XColormapEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_propertyHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XPropertyEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_propertyHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->propertyHandler((XPropertyEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_selectionClearHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XSelectionClearEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_selectionClearHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionClearEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->selectionClearHandler((XSelectionClearEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_selectionHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XSelectionEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_selectionHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->selectionHandler((XSelectionEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_selectionRequestHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XSelectionRequestEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_selectionRequestHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XSelectionRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->selectionRequestHandler((XSelectionRequestEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkEventHandler_clientMessageHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    XClientMessageEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkEventHandler_clientMessageHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_OtkEventHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventHandler *arg1 = (otk::OtkEventHandler *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkEventHandler",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * OtkEventHandler_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__OtkEventHandler, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_OtkWidget__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    int arg2 = (int) otk::OtkWidget::Horizontal ;
-    otk::OtkWidget *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O|i:new_OtkWidget",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::OtkWidget *)new otk::OtkWidget(arg1,(otk::OtkWidget::Direction )arg2);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkWidget, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_OtkWidget__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkEventDispatcher *arg1 = (otk::OtkEventDispatcher *) 0 ;
-    otk::Style *arg2 = (otk::Style *) 0 ;
-    int arg3 = (int) otk::OtkWidget::Horizontal ;
-    Cursor arg4 = (Cursor) 0 ;
-    int arg5 = (int) 1 ;
-    bool arg6 = (bool) false ;
-    otk::OtkWidget *result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj3  = 0 ;
-    PyObject * obj5  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO|iOiO:new_OtkWidget",&obj0,&obj1,&arg3,&obj3,&arg5,&obj5)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (obj3) {
-        arg4 = (Cursor) PyInt_AsLong(obj3);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    if (obj5) {
-        arg6 = (bool) PyInt_AsLong(obj5);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    result = (otk::OtkWidget *)new otk::OtkWidget(arg1,arg2,(otk::OtkWidget::Direction )arg3,arg4,arg5,arg6);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkWidget, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_OtkWidget(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[7];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 6); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if ((argc >= 1) && (argc <= 2)) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            if (argc <= 1) {
-                return _wrap_new_OtkWidget__SWIG_0(self,args);
-            }
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                return _wrap_new_OtkWidget__SWIG_0(self,args);
-            }
-        }
-    }
-    if ((argc >= 2) && (argc <= 6)) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkEventDispatcher, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                void *ptr;
-                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Style, 0) == -1) {
-                    _v = 0;
-                    PyErr_Clear();
-                }else {
-                    _v = 1;
-                }
-            }
-            if (_v) {
-                if (argc <= 2) {
-                    return _wrap_new_OtkWidget__SWIG_1(self,args);
-                }
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    if (argc <= 3) {
-                        return _wrap_new_OtkWidget__SWIG_1(self,args);
-                    }
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        if (argc <= 4) {
-                            return _wrap_new_OtkWidget__SWIG_1(self,args);
-                        }
-                        {
-                            _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
-                        }
-                        if (_v) {
-                            if (argc <= 5) {
-                                return _wrap_new_OtkWidget__SWIG_1(self,args);
-                            }
-                            {
-                                _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
-                            }
-                            if (_v) {
-                                return _wrap_new_OtkWidget__SWIG_1(self,args);
-                            }
-                        }
-                    }
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_OtkWidget'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_OtkWidget(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkWidget",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_update(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_update",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->update();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_exposeHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    XExposeEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_exposeHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XExposeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->exposeHandler((XExposeEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_configureHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    XConfigureEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_configureHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->configureHandler((XConfigureEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_window(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    Window result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_window",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (Window)((otk::OtkWidget const *)arg1)->window();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_parent(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::OtkWidget *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_parent",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::OtkWidget *)((otk::OtkWidget const *)arg1)->parent();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkWidget, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_children(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::OtkWidget::OtkWidgetList *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_children",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        otk::OtkWidget::OtkWidgetList const &_result_ref = ((otk::OtkWidget const *)arg1)->children();
-        result = (otk::OtkWidget::OtkWidgetList *) &_result_ref;
-    }
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkWidget__OtkWidgetList, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_screen(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_screen",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int)((otk::OtkWidget const *)arg1)->screen();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_rect(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::Rect *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_rect",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        otk::Rect const &_result_ref = ((otk::OtkWidget const *)arg1)->rect();
-        result = (otk::Rect *) &_result_ref;
-    }
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_move__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::Point *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_move",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->move((otk::Point const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_move__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    int arg2 ;
-    int arg3 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oii:OtkWidget_move",&obj0,&arg2,&arg3)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->move(arg2,arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_move(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[4];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 3); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 2) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                void *ptr;
-                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
-                    _v = 0;
-                    PyErr_Clear();
-                }else {
-                    _v = 1;
-                }
-            }
-            if (_v) {
-                return _wrap_OtkWidget_move__SWIG_0(self,args);
-            }
-        }
-    }
-    if (argc == 3) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    return _wrap_OtkWidget_move__SWIG_1(self,args);
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OtkWidget_move'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setWidth(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    int arg2 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setWidth",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setWidth(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setHeight(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    int arg2 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setHeight",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setHeight(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_width(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_width",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::OtkWidget const *)arg1)->width();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_height(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_height",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::OtkWidget const *)arg1)->height();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_resize__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::Point *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_resize",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->resize((otk::Point const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_resize__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    int arg2 ;
-    int arg3 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oii:OtkWidget_resize",&obj0,&arg2,&arg3)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->resize(arg2,arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_resize(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[4];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 3); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 2) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                void *ptr;
-                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
-                    _v = 0;
-                    PyErr_Clear();
-                }else {
-                    _v = 1;
-                }
-            }
-            if (_v) {
-                return _wrap_OtkWidget_resize__SWIG_0(self,args);
-            }
-        }
-    }
-    if (argc == 3) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    return _wrap_OtkWidget_resize__SWIG_1(self,args);
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OtkWidget_resize'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setGeometry__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::Rect *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setGeometry",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->setGeometry((otk::Rect const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setGeometry__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::Point *arg2 = 0 ;
-    int arg3 ;
-    int arg4 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOii:OtkWidget_setGeometry",&obj0,&obj1,&arg3,&arg4)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->setGeometry((otk::Point const &)*arg2,arg3,arg4);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setGeometry__SWIG_2(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    int arg2 ;
-    int arg3 ;
-    int arg4 ;
-    int arg5 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oiiii:OtkWidget_setGeometry",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setGeometry(arg2,arg3,arg4,arg5);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setGeometry(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[6];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 5); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 2) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                void *ptr;
-                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
-                    _v = 0;
-                    PyErr_Clear();
-                }else {
-                    _v = 1;
-                }
-            }
-            if (_v) {
-                return _wrap_OtkWidget_setGeometry__SWIG_0(self,args);
-            }
-        }
-    }
-    if (argc == 4) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                void *ptr;
-                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
-                    _v = 0;
-                    PyErr_Clear();
-                }else {
-                    _v = 1;
-                }
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        return _wrap_OtkWidget_setGeometry__SWIG_1(self,args);
-                    }
-                }
-            }
-        }
-    }
-    if (argc == 5) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OtkWidget, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        {
-                            _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
-                        }
-                        if (_v) {
-                            return _wrap_OtkWidget_setGeometry__SWIG_2(self,args);
-                        }
-                    }
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OtkWidget_setGeometry'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_isVisible(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_isVisible",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::OtkWidget const *)arg1)->isVisible();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_show(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    bool arg2 = (bool) false ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O|O:OtkWidget_show",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (obj1) {
-        arg2 = (bool) PyInt_AsLong(obj1);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    (arg1)->show(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_hide(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    bool arg2 = (bool) false ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O|O:OtkWidget_hide",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (obj1) {
-        arg2 = (bool) PyInt_AsLong(obj1);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    (arg1)->hide(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_isFocused(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_isFocused",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::OtkWidget const *)arg1)->isFocused();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_focus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_focus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->focus();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_unfocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_unfocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->unfocus();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_hasGrabbedMouse(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_hasGrabbedMouse",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::OtkWidget const *)arg1)->hasGrabbedMouse();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_grabMouse(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_grabMouse",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)(arg1)->grabMouse();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_ungrabMouse(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_ungrabMouse",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->ungrabMouse();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_hasGrabbedKeyboard(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_hasGrabbedKeyboard",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::OtkWidget const *)arg1)->hasGrabbedKeyboard();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_grabKeyboard(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_grabKeyboard",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)(arg1)->grabKeyboard();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_ungrabKeyboard(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_ungrabKeyboard",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->ungrabKeyboard();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_texture(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_texture",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)((otk::OtkWidget const *)arg1)->texture();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setTexture(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setTexture",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setTexture(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_borderColor(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_borderColor",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BColor *)((otk::OtkWidget const *)arg1)->borderColor();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setBorderColor(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::BColor *arg2 = (otk::BColor *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setBorderColor",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setBorderColor((otk::BColor const *)arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_borderWidth(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_borderWidth",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::OtkWidget const *)arg1)->borderWidth();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setBorderWidth(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    int arg2 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setBorderWidth",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setBorderWidth(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_addChild(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::OtkWidget *arg2 = (otk::OtkWidget *) 0 ;
-    bool arg3 = (bool) false ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO|O:OtkWidget_addChild",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (obj2) {
-        arg3 = (bool) PyInt_AsLong(obj2);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    (arg1)->addChild(arg2,arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_removeChild(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::OtkWidget *arg2 = (otk::OtkWidget *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_removeChild",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->removeChild(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_isStretchableHorz(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_isStretchableHorz",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::OtkWidget const *)arg1)->isStretchableHorz();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setStretchableHorz(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    bool arg2 = (bool) true ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O|O:OtkWidget_setStretchableHorz",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (obj1) {
-        arg2 = (bool) PyInt_AsLong(obj1);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    (arg1)->setStretchableHorz(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_isStretchableVert(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_isStretchableVert",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::OtkWidget const *)arg1)->isStretchableVert();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setStretchableVert(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    bool arg2 = (bool) true ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O|O:OtkWidget_setStretchableVert",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (obj1) {
-        arg2 = (bool) PyInt_AsLong(obj1);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    (arg1)->setStretchableVert(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_cursor(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    Cursor result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_cursor",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (Cursor)((otk::OtkWidget const *)arg1)->cursor();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setCursor(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    Cursor arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setCursor",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (Cursor) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->setCursor(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_bevelWidth(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_bevelWidth",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::OtkWidget const *)arg1)->bevelWidth();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setBevelWidth(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    int arg2 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setBevelWidth",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setBevelWidth(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_direction(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_direction",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::OtkWidget const *)arg1)->direction();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setDirection(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    int arg2 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oi:OtkWidget_setDirection",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setDirection((otk::OtkWidget::Direction )arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_style(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::Style *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_style",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::Style *)((otk::OtkWidget const *)arg1)->style();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setStyle(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::Style *arg2 = (otk::Style *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setStyle",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setStyle(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_eventDispatcher(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::OtkEventDispatcher *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkWidget_eventDispatcher",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::OtkEventDispatcher *)(arg1)->eventDispatcher();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkEventDispatcher, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkWidget_setEventDispatcher(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::OtkEventDispatcher *arg2 = (otk::OtkEventDispatcher *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkWidget_setEventDispatcher",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OtkEventDispatcher,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setEventDispatcher(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * OtkWidget_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__OtkWidget, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_OtkFocusWidget(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    int arg2 = (int) otk::OtkWidget::Horizontal ;
-    otk::OtkFocusWidget *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O|i:new_OtkFocusWidget",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::OtkFocusWidget *)new otk::OtkFocusWidget(arg1,(otk::OtkWidget::Direction )arg2);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkFocusWidget, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_OtkFocusWidget(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkFocusWidget",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_focus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_focus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->focus();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_unfocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_unfocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->unfocus();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_setTexture(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusWidget_setTexture",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setTexture(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_setBorderColor(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
-    otk::BColor *arg2 = (otk::BColor *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusWidget_setBorderColor",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setBorderColor((otk::BColor const *)arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_setUnfocusTexture(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusWidget_setUnfocusTexture",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setUnfocusTexture(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_getUnfocusTexture(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_getUnfocusTexture",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)((otk::OtkFocusWidget const *)arg1)->getUnfocusTexture();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_setUnfocusBorderColor(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
-    otk::BColor *arg2 = (otk::BColor *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusWidget_setUnfocusBorderColor",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setUnfocusBorderColor((otk::BColor const *)arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_getUnfocusBorderColor(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_getUnfocusBorderColor",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BColor *)((otk::OtkFocusWidget const *)arg1)->getUnfocusBorderColor();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_isFocused(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_isFocused",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::OtkFocusWidget const *)arg1)->isFocused();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusWidget_isUnfocused(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkFocusWidget *arg1 = (otk::OtkFocusWidget *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusWidget_isUnfocused",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::OtkFocusWidget const *)arg1)->isUnfocused();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * OtkFocusWidget_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__OtkFocusWidget, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_OtkFocusLabel(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::OtkFocusLabel *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:new_OtkFocusLabel",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::OtkFocusLabel *)new otk::OtkFocusLabel(arg1);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkFocusLabel, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_OtkFocusLabel(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkFocusLabel",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusLabel_getText(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
-    std::string *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusLabel_getText",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        std::string const &_result_ref = ((otk::OtkFocusLabel const *)arg1)->getText();
-        result = (std::string *) &_result_ref;
-    }
-    
-    {
-        resultobj = PyString_FromString(result->c_str());
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusLabel_setText(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
-    std::string *arg2 = 0 ;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusLabel_setText",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    (arg1)->setText((std::string const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusLabel_update(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkFocusLabel_update",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->update();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkFocusLabel_setStyle(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkFocusLabel *arg1 = (otk::OtkFocusLabel *) 0 ;
-    otk::Style *arg2 = (otk::Style *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkFocusLabel_setStyle",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkFocusLabel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setStyle(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * OtkFocusLabel_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__OtkFocusLabel, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_OtkAppWidget(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
-    int arg2 = (int) otk::OtkWidget::Horizontal ;
-    Cursor arg3 = (Cursor) 0 ;
-    int arg4 = (int) 1 ;
-    otk::OtkAppWidget *result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O|iOi:new_OtkAppWidget",&obj0,&arg2,&obj2,&arg4)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (obj2) {
-        arg3 = (Cursor) PyInt_AsLong(obj2);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    result = (otk::OtkAppWidget *)new otk::OtkAppWidget(arg1,(otk::OtkWidget::Direction )arg2,arg3,arg4);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkAppWidget, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_OtkAppWidget(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkAppWidget *arg1 = (otk::OtkAppWidget *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkAppWidget",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkAppWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkAppWidget_show(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkAppWidget *arg1 = (otk::OtkAppWidget *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkAppWidget_show",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkAppWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->show();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkAppWidget_hide(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkAppWidget *arg1 = (otk::OtkAppWidget *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkAppWidget_hide",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkAppWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->hide();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkAppWidget_clientMessageHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkAppWidget *arg1 = (otk::OtkAppWidget *) 0 ;
-    XClientMessageEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkAppWidget_clientMessageHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkAppWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * OtkAppWidget_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__OtkAppWidget, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_OtkApplication(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    int arg1 ;
-    char **arg2 = (char **) 0 ;
-    otk::OtkApplication *result;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"iO:new_OtkApplication",&arg1,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::OtkApplication *)new otk::OtkApplication(arg1,arg2);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkApplication, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_OtkApplication(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkApplication",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkApplication_run(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkApplication_run",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->run();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkApplication_setDockable(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
-    bool arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkApplication_setDockable",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (bool) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->setDockable(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkApplication_isDockable(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkApplication_isDockable",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::OtkApplication const *)arg1)->isDockable();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkApplication_getStyle(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkApplication *arg1 = (otk::OtkApplication *) 0 ;
-    otk::Style *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkApplication_getStyle",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkApplication,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::Style *)((otk::OtkApplication const *)arg1)->getStyle();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * OtkApplication_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__OtkApplication, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_PointerAssassin(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::PointerAssassin *result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":new_PointerAssassin")) goto fail;
-    result = (otk::PointerAssassin *)new otk::PointerAssassin();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PointerAssassin, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_PointerAssassin(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::PointerAssassin *arg1 = (otk::PointerAssassin *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_PointerAssassin",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PointerAssassin,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * PointerAssassin_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__PointerAssassin, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_OtkButton(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkWidget *arg1 = (otk::OtkWidget *) 0 ;
-    otk::OtkButton *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:new_OtkButton",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkWidget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::OtkButton *)new otk::OtkButton(arg1);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OtkButton, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_OtkButton(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_OtkButton",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_getPressedFocusTexture(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkButton_getPressedFocusTexture",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)((otk::OtkButton const *)arg1)->getPressedFocusTexture();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_setPressedFocusTexture(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setPressedFocusTexture",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setPressedFocusTexture(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_getPressedUnfocusTexture(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkButton_getPressedUnfocusTexture",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)((otk::OtkButton const *)arg1)->getPressedUnfocusTexture();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_setPressedUnfocusTexture(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setPressedUnfocusTexture",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setPressedUnfocusTexture(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_setTexture(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setTexture",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setTexture(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_setUnfocusTexture(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setUnfocusTexture",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setUnfocusTexture(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_isPressed(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OtkButton_isPressed",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::OtkButton const *)arg1)->isPressed();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_press(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
-    unsigned int arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_press",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->press(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_release(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
-    unsigned int arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_release",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->release(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_buttonPressHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
-    XButtonEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_buttonPressHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->buttonPressHandler((XButtonEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_buttonReleaseHandler(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
-    XButtonEvent *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_buttonReleaseHandler",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XButtonEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->buttonReleaseHandler((XButtonEvent const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OtkButton_setStyle(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OtkButton *arg1 = (otk::OtkButton *) 0 ;
-    otk::Style *arg2 = (otk::Style *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OtkButton_setStyle",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OtkButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setStyle(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * OtkButton_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__OtkButton, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_BColor__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    unsigned int arg1 = (unsigned int) ~(0u) ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"|O:new_BColor",&obj0)) goto fail;
-    if (obj0) {
-        arg1 = (unsigned int) PyInt_AsLong(obj0);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    result = (otk::BColor *)new otk::BColor(arg1);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_BColor__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    int arg1 ;
-    int arg2 ;
-    int arg3 ;
-    unsigned int arg4 = (unsigned int) ~(0u) ;
-    otk::BColor *result;
-    PyObject * obj3  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"iii|O:new_BColor",&arg1,&arg2,&arg3,&obj3)) goto fail;
-    if (obj3) {
-        arg4 = (unsigned int) PyInt_AsLong(obj3);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    result = (otk::BColor *)new otk::BColor(arg1,arg2,arg3,arg4);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_BColor__SWIG_2(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    std::string *arg1 = 0 ;
-    unsigned int arg2 = (unsigned int) ~(0u) ;
-    otk::BColor *result;
-    std::string temp1 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O|O:new_BColor",&obj0,&obj1)) goto fail;
-    {
-        if (PyString_Check(obj0)) {
-            temp1 = std::string(PyString_AsString(obj0));
-            arg1 = &temp1;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    if (obj1) {
-        arg2 = (unsigned int) PyInt_AsLong(obj1);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    result = (otk::BColor *)new otk::BColor((std::string const &)*arg1,arg2);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_BColor(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[5];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 4); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if ((argc >= 0) && (argc <= 1)) {
-        int _v;
-        if (argc <= 0) {
-            return _wrap_new_BColor__SWIG_0(self,args);
-        }
-        {
-            _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
-        }
-        if (_v) {
-            return _wrap_new_BColor__SWIG_0(self,args);
-        }
-    }
-    if ((argc >= 1) && (argc <= 2)) {
-        int _v;
-        {
-            _v = PyString_Check(argv[0]) ? 1 : 0;
-        }
-        if (_v) {
-            if (argc <= 1) {
-                return _wrap_new_BColor__SWIG_2(self,args);
-            }
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                return _wrap_new_BColor__SWIG_2(self,args);
-            }
-        }
-    }
-    if ((argc >= 3) && (argc <= 4)) {
-        int _v;
-        {
-            _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    if (argc <= 3) {
-                        return _wrap_new_BColor__SWIG_1(self,args);
-                    }
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        return _wrap_new_BColor__SWIG_1(self,args);
-                    }
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BColor'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_BColor(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BColor *arg1 = (otk::BColor *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_BColor",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BColor_name(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BColor *arg1 = (otk::BColor *) 0 ;
-    std::string *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BColor_name",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        std::string const &_result_ref = ((otk::BColor const *)arg1)->name();
-        result = (std::string *) &_result_ref;
-    }
-    
-    {
-        resultobj = PyString_FromString(result->c_str());
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BColor_red(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BColor *arg1 = (otk::BColor *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BColor_red",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::BColor const *)arg1)->red();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BColor_green(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BColor *arg1 = (otk::BColor *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BColor_green",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::BColor const *)arg1)->green();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BColor_blue(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BColor *arg1 = (otk::BColor *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BColor_blue",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::BColor const *)arg1)->blue();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BColor_setRGB(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BColor *arg1 = (otk::BColor *) 0 ;
-    int arg2 ;
-    int arg3 ;
-    int arg4 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oiii:BColor_setRGB",&obj0,&arg2,&arg3,&arg4)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setRGB(arg2,arg3,arg4);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BColor_screen(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BColor *arg1 = (otk::BColor *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BColor_screen",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int)((otk::BColor const *)arg1)->screen();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BColor_setScreen(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BColor *arg1 = (otk::BColor *) 0 ;
-    unsigned int arg2 = (unsigned int) ~(0u) ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O|O:BColor_setScreen",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (obj1) {
-        arg2 = (unsigned int) PyInt_AsLong(obj1);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    (arg1)->setScreen(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BColor_isAllocated(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BColor *arg1 = (otk::BColor *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BColor_isAllocated",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::BColor const *)arg1)->isAllocated();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BColor_isValid(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BColor *arg1 = (otk::BColor *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BColor_isValid",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::BColor const *)arg1)->isValid();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BColor_pixel(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BColor *arg1 = (otk::BColor *) 0 ;
-    unsigned long result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BColor_pixel",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned long)((otk::BColor const *)arg1)->pixel();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BColor_equals(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BColor *arg1 = (otk::BColor *) 0 ;
-    otk::BColor *arg2 = 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:BColor_equals",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (bool)((otk::BColor const *)arg1)->operator ==((otk::BColor const &)*arg2);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BColor_cleanupColorCache(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    
-    if(!PyArg_ParseTuple(args,(char *)":BColor_cleanupColorCache")) goto fail;
-    otk::BColor::cleanupColorCache();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * BColor_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__BColor, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_Configuration__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    std::string *arg1 = 0 ;
-    bool arg2 = (bool) True ;
-    otk::Configuration *result;
-    std::string temp1 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O|O:new_Configuration",&obj0,&obj1)) goto fail;
-    {
-        if (PyString_Check(obj0)) {
-            temp1 = std::string(PyString_AsString(obj0));
-            arg1 = &temp1;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    if (obj1) {
-        arg2 = (bool) PyInt_AsLong(obj1);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    result = (otk::Configuration *)new otk::Configuration((std::string const &)*arg1,arg2);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Configuration, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_Configuration__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    bool arg1 = (bool) True ;
-    otk::Configuration *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"|O:new_Configuration",&obj0)) goto fail;
-    if (obj0) {
-        arg1 = (bool) PyInt_AsLong(obj0);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    result = (otk::Configuration *)new otk::Configuration(arg1);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Configuration, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_Configuration(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[3];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 2); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if ((argc >= 0) && (argc <= 1)) {
-        int _v;
-        if (argc <= 0) {
-            return _wrap_new_Configuration__SWIG_1(self,args);
-        }
-        {
-            _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
-        }
-        if (_v) {
-            return _wrap_new_Configuration__SWIG_1(self,args);
-        }
-    }
-    if ((argc >= 1) && (argc <= 2)) {
-        int _v;
-        {
-            _v = PyString_Check(argv[0]) ? 1 : 0;
-        }
-        if (_v) {
-            if (argc <= 1) {
-                return _wrap_new_Configuration__SWIG_0(self,args);
-            }
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                return _wrap_new_Configuration__SWIG_0(self,args);
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Configuration'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_Configuration(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_Configuration",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_file(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    std::string *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Configuration_file",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        std::string const &_result_ref = ((otk::Configuration const *)arg1)->file();
-        result = (std::string *) &_result_ref;
-    }
-    
-    {
-        resultobj = PyString_FromString(result->c_str());
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setFile(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    std::string *arg2 = 0 ;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Configuration_setFile",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    (arg1)->setFile((std::string const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_autoSave(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Configuration_autoSave",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::Configuration const *)arg1)->autoSave();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setAutoSave(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    bool arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Configuration_setAutoSave",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (bool) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->setAutoSave(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_isModified(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Configuration_isModified",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::Configuration const *)arg1)->isModified();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_save(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Configuration_save",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->save();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_load(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Configuration_load",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)(arg1)->load();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_merge(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    std::string *arg2 = 0 ;
-    bool arg3 = (bool) False ;
-    bool result;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO|O:Configuration_merge",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    if (obj2) {
-        arg3 = (bool) PyInt_AsLong(obj2);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    result = (bool)(arg1)->merge((std::string const &)*arg2,arg3);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_create(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Configuration_create",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->create();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setValue_bool(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    std::string *arg2 = 0 ;
-    bool arg3 ;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_setValue_bool",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    arg3 = (bool) PyInt_AsLong(obj2);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->setValue((std::string const &)*arg2,arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setValue(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    std::string *arg2 = 0 ;
-    int arg3 ;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOi:Configuration_setValue",&obj0,&obj1,&arg3)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    (arg1)->setValue((std::string const &)*arg2,arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setValue_unsigned(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    std::string *arg2 = 0 ;
-    unsigned int arg3 ;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_setValue_unsigned",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    arg3 = (unsigned int) PyInt_AsLong(obj2);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->setValue((std::string const &)*arg2,arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setValue_long(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    std::string *arg2 = 0 ;
-    long arg3 ;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOl:Configuration_setValue_long",&obj0,&obj1,&arg3)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    (arg1)->setValue((std::string const &)*arg2,arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setValue_unsignedlong(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    std::string *arg2 = 0 ;
-    unsigned long arg3 ;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_setValue_unsignedlong",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    arg3 = (unsigned long) PyInt_AsLong(obj2);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->setValue((std::string const &)*arg2,arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setValue_string(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    std::string *arg2 = 0 ;
-    std::string *arg3 = 0 ;
-    std::string temp2 ;
-    std::string temp3 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_setValue_string",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    {
-        if (PyString_Check(obj2)) {
-            temp3 = std::string(PyString_AsString(obj2));
-            arg3 = &temp3;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    (arg1)->setValue((std::string const &)*arg2,(std::string const &)*arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_setValue_charptr(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    std::string *arg2 = 0 ;
-    char *arg3 ;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOs:Configuration_setValue_charptr",&obj0,&obj1,&arg3)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    (arg1)->setValue((std::string const &)*arg2,(char const *)arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_getValue__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    std::string *arg2 = 0 ;
-    bool *arg3 = 0 ;
-    bool result;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_bool,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg3 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_getValue__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    std::string *arg2 = 0 ;
-    int *arg3 = 0 ;
-    bool result;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg3 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_getValue__SWIG_2(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    std::string *arg2 = 0 ;
-    unsigned int *arg3 = 0 ;
-    bool result;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg3 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_getValue__SWIG_3(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    std::string *arg2 = 0 ;
-    long *arg3 = 0 ;
-    bool result;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg3 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_getValue__SWIG_4(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    std::string *arg2 = 0 ;
-    unsigned long *arg3 = 0 ;
-    bool result;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg3 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_getValue__SWIG_5(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Configuration *arg1 = (otk::Configuration *) 0 ;
-    std::string *arg2 = 0 ;
-    std::string *arg3 = 0 ;
-    bool result;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_getValue",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_std__string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg3 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (bool)((otk::Configuration const *)arg1)->getValue((std::string const &)*arg2,*arg3);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Configuration_getValue(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[4];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 3); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 3) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = PyString_Check(argv[1]) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    void *ptr;
-                    if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_bool, 0) == -1) {
-                        _v = 0;
-                        PyErr_Clear();
-                    }else {
-                        _v = 1;
-                    }
-                }
-                if (_v) {
-                    return _wrap_Configuration_getValue__SWIG_0(self,args);
-                }
-            }
-        }
-    }
-    if (argc == 3) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = PyString_Check(argv[1]) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    void *ptr;
-                    if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_int, 0) == -1) {
-                        _v = 0;
-                        PyErr_Clear();
-                    }else {
-                        _v = 1;
-                    }
-                }
-                if (_v) {
-                    return _wrap_Configuration_getValue__SWIG_1(self,args);
-                }
-            }
-        }
-    }
-    if (argc == 3) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = PyString_Check(argv[1]) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    void *ptr;
-                    if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_unsigned_int, 0) == -1) {
-                        _v = 0;
-                        PyErr_Clear();
-                    }else {
-                        _v = 1;
-                    }
-                }
-                if (_v) {
-                    return _wrap_Configuration_getValue__SWIG_2(self,args);
-                }
-            }
-        }
-    }
-    if (argc == 3) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = PyString_Check(argv[1]) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    void *ptr;
-                    if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_long, 0) == -1) {
-                        _v = 0;
-                        PyErr_Clear();
-                    }else {
-                        _v = 1;
-                    }
-                }
-                if (_v) {
-                    return _wrap_Configuration_getValue__SWIG_3(self,args);
-                }
-            }
-        }
-    }
-    if (argc == 3) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = PyString_Check(argv[1]) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    void *ptr;
-                    if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
-                        _v = 0;
-                        PyErr_Clear();
-                    }else {
-                        _v = 1;
-                    }
-                }
-                if (_v) {
-                    return _wrap_Configuration_getValue__SWIG_4(self,args);
-                }
-            }
-        }
-    }
-    if (argc == 3) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Configuration, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = PyString_Check(argv[1]) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    void *ptr;
-                    if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_std__string, 0) == -1) {
-                        _v = 0;
-                        PyErr_Clear();
-                    }else {
-                        _v = 1;
-                    }
-                }
-                if (_v) {
-                    return _wrap_Configuration_getValue__SWIG_5(self,args);
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Configuration_getValue'");
-    return NULL;
-}
-
-
-static PyObject * Configuration_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__Configuration, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_OBDisplay_initialize(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    char *arg1 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"s:OBDisplay_initialize",&arg1)) goto fail;
-    otk::OBDisplay::initialize(arg1);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_destroy(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    
-    if(!PyArg_ParseTuple(args,(char *)":OBDisplay_destroy")) goto fail;
-    otk::OBDisplay::destroy();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_gcCache(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BGCCache *result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":OBDisplay_gcCache")) goto fail;
-    result = (otk::BGCCache *)otk::OBDisplay::gcCache();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BGCCache, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_screenInfo(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    int arg1 ;
-    otk::ScreenInfo *result;
-    
-    if(!PyArg_ParseTuple(args,(char *)"i:OBDisplay_screenInfo",&arg1)) goto fail;
-    result = (otk::ScreenInfo *)otk::OBDisplay::screenInfo(arg1);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_findScreen(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    Window arg1 ;
-    otk::ScreenInfo *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OBDisplay_findScreen",&obj0)) goto fail;
-    arg1 = (Window) PyInt_AsLong(obj0);
-    if (PyErr_Occurred()) SWIG_fail;
-    result = (otk::ScreenInfo *)otk::OBDisplay::findScreen(arg1);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_xkb(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    bool result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":OBDisplay_xkb")) goto fail;
-    result = (bool)otk::OBDisplay::xkb();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_xkbEventBase(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    int result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":OBDisplay_xkbEventBase")) goto fail;
-    result = (int)otk::OBDisplay::xkbEventBase();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_shape(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    bool result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":OBDisplay_shape")) goto fail;
-    result = (bool)otk::OBDisplay::shape();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_shapeEventBase(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    int result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":OBDisplay_shapeEventBase")) goto fail;
-    result = (int)otk::OBDisplay::shapeEventBase();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_xinerama(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    bool result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":OBDisplay_xinerama")) goto fail;
-    result = (bool)otk::OBDisplay::xinerama();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_numLockMask(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    unsigned int result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":OBDisplay_numLockMask")) goto fail;
-    result = (unsigned int)otk::OBDisplay::numLockMask();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_scrollLockMask(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    unsigned int result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":OBDisplay_scrollLockMask")) goto fail;
-    result = (unsigned int)otk::OBDisplay::scrollLockMask();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_grab(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    
-    if(!PyArg_ParseTuple(args,(char *)":OBDisplay_grab")) goto fail;
-    otk::OBDisplay::grab();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_ungrab(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    
-    if(!PyArg_ParseTuple(args,(char *)":OBDisplay_ungrab")) goto fail;
-    otk::OBDisplay::ungrab();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_grabButton(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    unsigned int arg1 ;
-    unsigned int arg2 ;
-    Window arg3 ;
-    bool arg4 ;
-    unsigned int arg5 ;
-    int arg6 ;
-    int arg7 ;
-    Window arg8 ;
-    Cursor arg9 ;
-    bool arg10 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    PyObject * obj3  = 0 ;
-    PyObject * obj4  = 0 ;
-    PyObject * obj7  = 0 ;
-    PyObject * obj8  = 0 ;
-    PyObject * obj9  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOOOOiiOOO:OBDisplay_grabButton",&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7,&obj7,&obj8,&obj9)) goto fail;
-    arg1 = (unsigned int) PyInt_AsLong(obj0);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg3 = (Window) PyInt_AsLong(obj2);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg4 = (bool) PyInt_AsLong(obj3);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg5 = (unsigned int) PyInt_AsLong(obj4);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg8 = (Window) PyInt_AsLong(obj7);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg9 = (Cursor) PyInt_AsLong(obj8);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg10 = (bool) PyInt_AsLong(obj9);
-    if (PyErr_Occurred()) SWIG_fail;
-    otk::OBDisplay::grabButton(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_ungrabButton(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    unsigned int arg1 ;
-    unsigned int arg2 ;
-    Window arg3 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:OBDisplay_ungrabButton",&obj0,&obj1,&obj2)) goto fail;
-    arg1 = (unsigned int) PyInt_AsLong(obj0);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg3 = (Window) PyInt_AsLong(obj2);
-    if (PyErr_Occurred()) SWIG_fail;
-    otk::OBDisplay::ungrabButton(arg1,arg2,arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_grabKey(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    unsigned int arg1 ;
-    unsigned int arg2 ;
-    Window arg3 ;
-    bool arg4 ;
-    int arg5 ;
-    int arg6 ;
-    bool arg7 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    PyObject * obj3  = 0 ;
-    PyObject * obj6  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOOOiiO:OBDisplay_grabKey",&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail;
-    arg1 = (unsigned int) PyInt_AsLong(obj0);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg3 = (Window) PyInt_AsLong(obj2);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg4 = (bool) PyInt_AsLong(obj3);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg7 = (bool) PyInt_AsLong(obj6);
-    if (PyErr_Occurred()) SWIG_fail;
-    otk::OBDisplay::grabKey(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBDisplay_ungrabKey(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    unsigned int arg1 ;
-    unsigned int arg2 ;
-    Window arg3 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:OBDisplay_ungrabKey",&obj0,&obj1,&obj2)) goto fail;
-    arg1 = (unsigned int) PyInt_AsLong(obj0);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg3 = (Window) PyInt_AsLong(obj2);
-    if (PyErr_Occurred()) SWIG_fail;
-    otk::OBDisplay::ungrabKey(arg1,arg2,arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_OBDisplay(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBDisplay *arg1 = (otk::OBDisplay *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_OBDisplay",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBDisplay,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * OBDisplay_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__OBDisplay, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_BFont_fallbackFont(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    std::string result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":BFont_fallbackFont")) goto fail;
-    result = otk::BFont::fallbackFont();
-    
-    {
-        resultobj = PyString_FromString((&result)->c_str());
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BFont_setFallbackFont(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    std::string *arg1 = 0 ;
-    std::string temp1 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BFont_setFallbackFont",&obj0)) goto fail;
-    {
-        if (PyString_Check(obj0)) {
-            temp1 = std::string(PyString_AsString(obj0));
-            arg1 = &temp1;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    otk::BFont::setFallbackFont((std::string const &)*arg1);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_BFont(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    int arg1 ;
-    std::string *arg2 = 0 ;
-    bool arg3 ;
-    unsigned char arg4 ;
-    unsigned char arg5 ;
-    otk::BFont *result;
-    std::string temp2 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    PyObject * obj3  = 0 ;
-    PyObject * obj4  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"iOOOO:new_BFont",&arg1,&obj1,&obj2,&obj3,&obj4)) goto fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    arg3 = (bool) PyInt_AsLong(obj2);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg4 = (unsigned char) PyInt_AsLong(obj3);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg5 = (unsigned char) PyInt_AsLong(obj4);
-    if (PyErr_Occurred()) SWIG_fail;
-    result = (otk::BFont *)new otk::BFont(arg1,(std::string const &)*arg2,arg3,arg4,arg5);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BFont, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_BFont(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BFont *arg1 = (otk::BFont *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_BFont",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BFont_fontstring(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BFont *arg1 = (otk::BFont *) 0 ;
-    std::string *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BFont_fontstring",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        std::string const &_result_ref = ((otk::BFont const *)arg1)->fontstring();
-        result = (std::string *) &_result_ref;
-    }
-    
-    {
-        resultobj = PyString_FromString(result->c_str());
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BFont_height(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BFont *arg1 = (otk::BFont *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BFont_height",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int)((otk::BFont const *)arg1)->height();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BFont_maxCharWidth(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BFont *arg1 = (otk::BFont *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BFont_maxCharWidth",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int)((otk::BFont const *)arg1)->maxCharWidth();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BFont_measureString(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BFont *arg1 = (otk::BFont *) 0 ;
-    std::string *arg2 = 0 ;
-    bool arg3 = (bool) false ;
-    unsigned int result;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO|O:BFont_measureString",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    if (obj2) {
-        arg3 = (bool) PyInt_AsLong(obj2);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    result = (unsigned int)((otk::BFont const *)arg1)->measureString((std::string const &)*arg2,arg3);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BFont_drawString(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BFont *arg1 = (otk::BFont *) 0 ;
-    XftDraw *arg2 = (XftDraw *) 0 ;
-    int arg3 ;
-    int arg4 ;
-    otk::BColor *arg5 = 0 ;
-    std::string *arg6 = 0 ;
-    bool arg7 = (bool) false ;
-    std::string temp6 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj4  = 0 ;
-    PyObject * obj5  = 0 ;
-    PyObject * obj6  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOiiOO|O:BFont_drawString",&obj0,&obj1,&arg3,&arg4,&obj4,&obj5,&obj6)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XftDraw,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg5 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    {
-        if (PyString_Check(obj5)) {
-            temp6 = std::string(PyString_AsString(obj5));
-            arg6 = &temp6;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    if (obj6) {
-        arg7 = (bool) PyInt_AsLong(obj6);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    ((otk::BFont const *)arg1)->drawString(arg2,arg3,arg4,(otk::BColor const &)*arg5,(std::string const &)*arg6,arg7);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * BFont_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__BFont, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_BGCCacheContext_set__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BGCCacheContext *arg1 = (otk::BGCCacheContext *) 0 ;
-    otk::BColor *arg2 = 0 ;
-    XFontStruct *arg3 = (XFontStruct *) (XFontStruct *)0 ;
-    int arg4 ;
-    int arg5 ;
-    int arg6 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOOiii:BGCCacheContext_set",&obj0,&obj1,&obj2,&arg4,&arg5,&arg6)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_XFontStruct,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->set((otk::BColor const &)*arg2,(XFontStruct const *)arg3,arg4,arg5,arg6);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BGCCacheContext_set__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BGCCacheContext *arg1 = (otk::BGCCacheContext *) 0 ;
-    XFontStruct *arg2 = (XFontStruct *) (XFontStruct *)0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:BGCCacheContext_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFontStruct,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->set((XFontStruct const *)arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BGCCacheContext_set(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[7];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 6); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 2) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__BGCCacheContext, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                void *ptr;
-                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_XFontStruct, 0) == -1) {
-                    _v = 0;
-                    PyErr_Clear();
-                }else {
-                    _v = 1;
-                }
-            }
-            if (_v) {
-                return _wrap_BGCCacheContext_set__SWIG_1(self,args);
-            }
-        }
-    }
-    if (argc == 6) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__BGCCacheContext, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                void *ptr;
-                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__BColor, 0) == -1) {
-                    _v = 0;
-                    PyErr_Clear();
-                }else {
-                    _v = 1;
-                }
-            }
-            if (_v) {
-                {
-                    void *ptr;
-                    if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_XFontStruct, 0) == -1) {
-                        _v = 0;
-                        PyErr_Clear();
-                    }else {
-                        _v = 1;
-                    }
-                }
-                if (_v) {
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        {
-                            _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
-                        }
-                        if (_v) {
-                            {
-                                _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
-                            }
-                            if (_v) {
-                                return _wrap_BGCCacheContext_set__SWIG_0(self,args);
-                            }
-                        }
-                    }
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'BGCCacheContext_set'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_BGCCacheContext(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BGCCacheContext *arg1 = (otk::BGCCacheContext *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_BGCCacheContext",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * BGCCacheContext_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__BGCCacheContext, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_BGCCacheItem_gc(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BGCCacheItem *arg1 = (otk::BGCCacheItem *) 0 ;
-    GC *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BGCCacheItem_gc",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        GC const &_result_ref = ((otk::BGCCacheItem const *)arg1)->gc();
-        result = (GC *) &_result_ref;
-    }
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_GC, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_BGCCacheItem(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BGCCacheItem *arg1 = (otk::BGCCacheItem *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_BGCCacheItem",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCacheItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * BGCCacheItem_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__BGCCacheItem, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_BGCCache(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    unsigned int arg1 ;
-    otk::BGCCache *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:new_BGCCache",&obj0)) goto fail;
-    arg1 = (unsigned int) PyInt_AsLong(obj0);
-    if (PyErr_Occurred()) SWIG_fail;
-    result = (otk::BGCCache *)new otk::BGCCache(arg1);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BGCCache, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_BGCCache(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BGCCache *arg1 = (otk::BGCCache *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_BGCCache",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BGCCache_purge(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BGCCache *arg1 = (otk::BGCCache *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BGCCache_purge",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->purge();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BGCCache_find(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BGCCache *arg1 = (otk::BGCCache *) 0 ;
-    otk::BColor *arg2 = 0 ;
-    XFontStruct *arg3 = (XFontStruct *) (XFontStruct *)0 ;
-    int arg4 = (int) GXcopy ;
-    int arg5 = (int) ClipByChildren ;
-    int arg6 = (int) 0 ;
-    otk::BGCCacheItem *result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO|Oiii:BGCCache_find",&obj0,&obj1,&obj2,&arg4,&arg5,&arg6)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    if (obj2) {
-        if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_XFontStruct,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    }
-    result = (otk::BGCCacheItem *)(arg1)->find((otk::BColor const &)*arg2,(XFontStruct const *)arg3,arg4,arg5,arg6);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BGCCacheItem, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BGCCache_release(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BGCCache *arg1 = (otk::BGCCache *) 0 ;
-    otk::BGCCacheItem *arg2 = (otk::BGCCacheItem *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:BGCCache_release",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BGCCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BGCCacheItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->release(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * BGCCache_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__BGCCache, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_BPen(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BColor *arg1 = 0 ;
-    XFontStruct *arg2 = (XFontStruct *) (XFontStruct *)0 ;
-    int arg3 = (int) 0 ;
-    int arg4 = (int) GXcopy ;
-    int arg5 = (int) ClipByChildren ;
-    otk::BPen *result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O|Oiii:new_BPen",&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    if (obj1) {
-        if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFontStruct,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    }
-    result = (otk::BPen *)new otk::BPen((otk::BColor const &)*arg1,(XFontStruct const *)arg2,arg3,arg4,arg5);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BPen, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_BPen(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BPen *arg1 = (otk::BPen *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_BPen",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BPen_gc(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BPen *arg1 = (otk::BPen *) 0 ;
-    GC *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BPen_gc",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        GC const &_result_ref = ((otk::BPen const *)arg1)->gc();
-        result = (GC *) &_result_ref;
-    }
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_GC, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * BPen_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__BPen, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_BImage(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    int arg2 ;
-    int arg3 ;
-    otk::BImage *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oii:new_BImage",&obj0,&arg2,&arg3)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BImage *)new otk::BImage(arg1,arg2,arg3);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImage, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_BImage(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImage *arg1 = (otk::BImage *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_BImage",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImage_render(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImage *arg1 = (otk::BImage *) 0 ;
-    otk::BTexture *arg2 = 0 ;
-    Pixmap result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:BImage_render",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (Pixmap)(arg1)->render((otk::BTexture const &)*arg2);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * BImage_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__BImage, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_BImageControl(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
-    otk::ScreenInfo *arg2 = (otk::ScreenInfo *) 0 ;
-    bool arg3 = (bool) False ;
-    int arg4 = (int) 4 ;
-    unsigned long arg5 = (unsigned long) 300000l ;
-    unsigned long arg6 = (unsigned long) 200l ;
-    otk::BImageControl *result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    PyObject * obj4  = 0 ;
-    PyObject * obj5  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO|OiOO:new_BImageControl",&obj0,&obj1,&obj2,&arg4,&obj4,&obj5)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (obj2) {
-        arg3 = (bool) PyInt_AsLong(obj2);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    if (obj4) {
-        arg5 = (unsigned long) PyInt_AsLong(obj4);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    if (obj5) {
-        arg6 = (unsigned long) PyInt_AsLong(obj5);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    result = (otk::BImageControl *)new otk::BImageControl(arg1,(otk::ScreenInfo const *)arg2,arg3,arg4,arg5,arg6);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_BImageControl(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_BImageControl",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_doDither(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_doDither",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)(arg1)->doDither();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getScreenInfo(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    otk::ScreenInfo *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getScreenInfo",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::ScreenInfo *)((otk::BImageControl const *)arg1)->getScreenInfo();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getDrawable(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    Window result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getDrawable",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (Window)((otk::BImageControl const *)arg1)->getDrawable();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getVisual(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    Visual *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getVisual",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (Visual *)(arg1)->getVisual();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Visual, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getBitsPerPixel(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getBitsPerPixel",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::BImageControl const *)arg1)->getBitsPerPixel();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getDepth(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getDepth",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::BImageControl const *)arg1)->getDepth();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getColorsPerChannel(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_getColorsPerChannel",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::BImageControl const *)arg1)->getColorsPerChannel();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getSqrt(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    unsigned int arg2 ;
-    unsigned long result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:BImageControl_getSqrt",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    result = (unsigned long)(arg1)->getSqrt(arg2);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_renderImage(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    unsigned int arg2 ;
-    unsigned int arg3 ;
-    otk::BTexture *arg4 = 0 ;
-    Pixmap result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    PyObject * obj3  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOOO:BImageControl_renderImage",&obj0,&obj1,&obj2,&obj3)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg3 = (unsigned int) PyInt_AsLong(obj2);
-    if (PyErr_Occurred()) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg4 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (Pixmap)(arg1)->renderImage(arg2,arg3,(otk::BTexture const &)*arg4);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_installRootColormap(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_installRootColormap",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->installRootColormap();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_removeImage(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    Pixmap arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:BImageControl_removeImage",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (Pixmap) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->removeImage(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getColorTables(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    unsigned char **arg2 = (unsigned char **) 0 ;
-    unsigned char **arg3 = (unsigned char **) 0 ;
-    unsigned char **arg4 = (unsigned char **) 0 ;
-    int *arg5 = (int *) 0 ;
-    int *arg6 = (int *) 0 ;
-    int *arg7 = (int *) 0 ;
-    int *arg8 = (int *) 0 ;
-    int *arg9 = (int *) 0 ;
-    int *arg10 = (int *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    PyObject * obj3  = 0 ;
-    PyObject * obj4  = 0 ;
-    PyObject * obj5  = 0 ;
-    PyObject * obj6  = 0 ;
-    PyObject * obj7  = 0 ;
-    PyObject * obj8  = 0 ;
-    PyObject * obj9  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:BImageControl_getColorTables",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->getColorTables(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getXColorTable(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    XColor **arg2 = (XColor **) 0 ;
-    int *arg3 = (int *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:BImageControl_getXColorTable",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_XColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->getXColorTable(arg2,arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_getGradientBuffers(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    unsigned int arg2 ;
-    unsigned int arg3 ;
-    unsigned int **arg4 = (unsigned int **) 0 ;
-    unsigned int **arg5 = (unsigned int **) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    PyObject * obj3  = 0 ;
-    PyObject * obj4  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOOOO:BImageControl_getGradientBuffers",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg3 = (unsigned int) PyInt_AsLong(obj2);
-    if (PyErr_Occurred()) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_p_unsigned_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_p_unsigned_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->getGradientBuffers(arg2,arg3,arg4,arg5);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_setDither(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    bool arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:BImageControl_setDither",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (bool) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->setDither(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_setColorsPerChannel(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    int arg2 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oi:BImageControl_setColorsPerChannel",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setColorsPerChannel(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BImageControl_timeout(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BImageControl_timeout",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    otk::BImageControl::timeout(arg1);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * BImageControl_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__BImageControl, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_Point__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Point *result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":new_Point")) goto fail;
-    result = (otk::Point *)new otk::Point();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Point, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_Point__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    int arg1 ;
-    int arg2 ;
-    otk::Point *result;
-    
-    if(!PyArg_ParseTuple(args,(char *)"ii:new_Point",&arg1,&arg2)) goto fail;
-    result = (otk::Point *)new otk::Point(arg1,arg2);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Point, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_Point(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[3];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 2); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 0) {
-        return _wrap_new_Point__SWIG_0(self,args);
-    }
-    if (argc == 2) {
-        int _v;
-        {
-            _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                return _wrap_new_Point__SWIG_1(self,args);
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Point'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_Point_setX(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Point *arg1 = (otk::Point *) 0 ;
-    int arg2 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oi:Point_setX",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setX(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Point_x(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Point *arg1 = (otk::Point *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Point_x",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::Point const *)arg1)->x();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Point_setY(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Point *arg1 = (otk::Point *) 0 ;
-    int arg2 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oi:Point_setY",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setY(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Point_y(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Point *arg1 = (otk::Point *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Point_y",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::Point const *)arg1)->y();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Point_setPoint(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Point *arg1 = (otk::Point *) 0 ;
-    int arg2 ;
-    int arg3 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oii:Point_setPoint",&obj0,&arg2,&arg3)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setPoint(arg2,arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Point *arg1 = (otk::Point *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_Point",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * Point_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__Point, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_OBProperty(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBProperty *result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":new_OBProperty")) goto fail;
-    result = (otk::OBProperty *)new otk::OBProperty();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBProperty, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_OBProperty(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_OBProperty",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_set__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
-    Window arg2 ;
-    int arg3 ;
-    int arg4 ;
-    unsigned long arg5 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj4  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (Window) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg5 = (unsigned long) PyInt_AsLong(obj4);
-    if (PyErr_Occurred()) SWIG_fail;
-    ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_set__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
-    Window arg2 ;
-    int arg3 ;
-    int arg4 ;
-    unsigned long *arg5 ;
-    int arg6 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj4  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOiiOi:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4,&arg6)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (Window) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5,arg6);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_set__SWIG_2(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
-    Window arg2 ;
-    int arg3 ;
-    int arg4 ;
-    std::string *arg5 = 0 ;
-    std::string temp5 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj4  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (Window) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    {
-        if (PyString_Check(obj4)) {
-            temp5 = std::string(PyString_AsString(obj4));
-            arg5 = &temp5;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,(std::string const &)*arg5);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_set__SWIG_3(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
-    Window arg2 ;
-    int arg3 ;
-    int arg4 ;
-    otk::OBProperty::StringVect *arg5 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj4  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_set",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (Window) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_otk__OBProperty__StringVect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg5 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    ((otk::OBProperty const *)arg1)->set(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,(otk::OBProperty::StringVect const &)*arg5);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_set(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[7];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 6); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 5) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        {
-                            void *ptr;
-                            if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_otk__OBProperty__StringVect, 0) == -1) {
-                                _v = 0;
-                                PyErr_Clear();
-                            }else {
-                                _v = 1;
-                            }
-                        }
-                        if (_v) {
-                            return _wrap_OBProperty_set__SWIG_3(self,args);
-                        }
-                    }
-                }
-            }
-        }
-    }
-    if (argc == 5) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        {
-                            _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
-                        }
-                        if (_v) {
-                            return _wrap_OBProperty_set__SWIG_0(self,args);
-                        }
-                    }
-                }
-            }
-        }
-    }
-    if (argc == 5) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        {
-                            _v = PyString_Check(argv[4]) ? 1 : 0;
-                        }
-                        if (_v) {
-                            return _wrap_OBProperty_set__SWIG_2(self,args);
-                        }
-                    }
-                }
-            }
-        }
-    }
-    if (argc == 6) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        {
-                            void *ptr;
-                            if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
-                                _v = 0;
-                                PyErr_Clear();
-                            }else {
-                                _v = 1;
-                            }
-                        }
-                        if (_v) {
-                            {
-                                _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
-                            }
-                            if (_v) {
-                                return _wrap_OBProperty_set__SWIG_1(self,args);
-                            }
-                        }
-                    }
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OBProperty_set'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_get__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
-    Window arg2 ;
-    int arg3 ;
-    int arg4 ;
-    unsigned long *arg5 = (unsigned long *) 0 ;
-    unsigned long **arg6 = (unsigned long **) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj4  = 0 ;
-    PyObject * obj5  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOiiOO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4,&obj5)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (Window) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5,arg6);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_get__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
-    Window arg2 ;
-    int arg3 ;
-    int arg4 ;
-    unsigned long *arg5 = (unsigned long *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj4  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (Window) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::Atoms )arg4,arg5);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_get__SWIG_2(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
-    Window arg2 ;
-    int arg3 ;
-    int arg4 ;
-    std::string *arg5 = (std::string *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj4  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOiiO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (Window) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_std__string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,arg5);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_get__SWIG_3(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
-    Window arg2 ;
-    int arg3 ;
-    int arg4 ;
-    unsigned long *arg5 = (unsigned long *) 0 ;
-    otk::OBProperty::StringVect *arg6 = (otk::OBProperty::StringVect *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj4  = 0 ;
-    PyObject * obj5  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOiiOO:OBProperty_get",&obj0,&obj1,&arg3,&arg4,&obj4,&obj5)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (Window) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_otk__OBProperty__StringVect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::OBProperty const *)arg1)->get(arg2,(otk::OBProperty::Atoms )arg3,(otk::OBProperty::StringType )arg4,arg5,arg6);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_get(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[7];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 6); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 5) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        {
-                            void *ptr;
-                            if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
-                                _v = 0;
-                                PyErr_Clear();
-                            }else {
-                                _v = 1;
-                            }
-                        }
-                        if (_v) {
-                            return _wrap_OBProperty_get__SWIG_1(self,args);
-                        }
-                    }
-                }
-            }
-        }
-    }
-    if (argc == 5) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        {
-                            void *ptr;
-                            if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_std__string, 0) == -1) {
-                                _v = 0;
-                                PyErr_Clear();
-                            }else {
-                                _v = 1;
-                            }
-                        }
-                        if (_v) {
-                            return _wrap_OBProperty_get__SWIG_2(self,args);
-                        }
-                    }
-                }
-            }
-        }
-    }
-    if (argc == 6) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        {
-                            void *ptr;
-                            if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
-                                _v = 0;
-                                PyErr_Clear();
-                            }else {
-                                _v = 1;
-                            }
-                        }
-                        if (_v) {
-                            {
-                                void *ptr;
-                                if (SWIG_ConvertPtr(argv[5], (void **) &ptr, SWIGTYPE_p_p_unsigned_long, 0) == -1) {
-                                    _v = 0;
-                                    PyErr_Clear();
-                                }else {
-                                    _v = 1;
-                                }
-                            }
-                            if (_v) {
-                                return _wrap_OBProperty_get__SWIG_0(self,args);
-                            }
-                        }
-                    }
-                }
-            }
-        }
-    }
-    if (argc == 6) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBProperty, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        {
-                            void *ptr;
-                            if (SWIG_ConvertPtr(argv[4], (void **) &ptr, SWIGTYPE_p_unsigned_long, 0) == -1) {
-                                _v = 0;
-                                PyErr_Clear();
-                            }else {
-                                _v = 1;
-                            }
-                        }
-                        if (_v) {
-                            {
-                                void *ptr;
-                                if (SWIG_ConvertPtr(argv[5], (void **) &ptr, SWIGTYPE_p_otk__OBProperty__StringVect, 0) == -1) {
-                                    _v = 0;
-                                    PyErr_Clear();
-                                }else {
-                                    _v = 1;
-                                }
-                            }
-                            if (_v) {
-                                return _wrap_OBProperty_get__SWIG_3(self,args);
-                            }
-                        }
-                    }
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OBProperty_get'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_erase(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
-    Window arg2 ;
-    int arg3 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOi:OBProperty_erase",&obj0,&obj1,&arg3)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (Window) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    ((otk::OBProperty const *)arg1)->erase(arg2,(otk::OBProperty::Atoms )arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBProperty_atom(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBProperty *arg1 = (otk::OBProperty *) 0 ;
-    int arg2 ;
-    Atom result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oi:OBProperty_atom",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (Atom)((otk::OBProperty const *)arg1)->atom((otk::OBProperty::Atoms )arg2);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * OBProperty_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__OBProperty, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_Rect__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":new_Rect")) goto fail;
-    result = (otk::Rect *)new otk::Rect();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_Rect__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    int arg1 ;
-    int arg2 ;
-    int arg3 ;
-    int arg4 ;
-    otk::Rect *result;
-    
-    if(!PyArg_ParseTuple(args,(char *)"iiii:new_Rect",&arg1,&arg2,&arg3,&arg4)) goto fail;
-    result = (otk::Rect *)new otk::Rect(arg1,arg2,arg3,arg4);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_Rect__SWIG_2(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Point *arg1 = 0 ;
-    otk::Point *arg2 = 0 ;
-    otk::Rect *result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:new_Rect",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (otk::Rect *)new otk::Rect((otk::Point const &)*arg1,(otk::Point const &)*arg2);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_Rect__SWIG_3(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = 0 ;
-    otk::Rect *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:new_Rect",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (otk::Rect *)new otk::Rect((otk::Rect const &)*arg1);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_Rect__SWIG_4(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    XRectangle *arg1 = 0 ;
-    otk::Rect *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:new_Rect",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_XRectangle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (otk::Rect *)new otk::Rect((XRectangle const &)*arg1);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[5];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 4); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 0) {
-        return _wrap_new_Rect__SWIG_0(self,args);
-    }
-    if (argc == 1) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            return _wrap_new_Rect__SWIG_3(self,args);
-        }
-    }
-    if (argc == 1) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_XRectangle, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            return _wrap_new_Rect__SWIG_4(self,args);
-        }
-    }
-    if (argc == 2) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                void *ptr;
-                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
-                    _v = 0;
-                    PyErr_Clear();
-                }else {
-                    _v = 1;
-                }
-            }
-            if (_v) {
-                return _wrap_new_Rect__SWIG_2(self,args);
-            }
-        }
-    }
-    if (argc == 4) {
-        int _v;
-        {
-            _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        return _wrap_new_Rect__SWIG_1(self,args);
-                    }
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Rect'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_left(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Rect_left",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::Rect const *)arg1)->left();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_top(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Rect_top",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::Rect const *)arg1)->top();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_right(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Rect_right",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::Rect const *)arg1)->right();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_bottom(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Rect_bottom",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::Rect const *)arg1)->bottom();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_x(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Rect_x",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::Rect const *)arg1)->x();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_y(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Rect_y",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::Rect const *)arg1)->y();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_location(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    otk::Point result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Rect_location",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = ((otk::Rect const *)arg1)->location();
-    
-    {
-        otk::Point * resultptr;
-        resultptr = new otk::Point((otk::Point &) result);
-        resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Point, 1);
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setX(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int arg2 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setX",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setX(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setY(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int arg2 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setY",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setY(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setPos__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int arg2 ;
-    int arg3 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_setPos",&obj0,&arg2,&arg3)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setPos(arg2,arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setPos__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    otk::Point *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Rect_setPos",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->setPos((otk::Point const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setPos(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[4];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 3); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 2) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                void *ptr;
-                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
-                    _v = 0;
-                    PyErr_Clear();
-                }else {
-                    _v = 1;
-                }
-            }
-            if (_v) {
-                return _wrap_Rect_setPos__SWIG_1(self,args);
-            }
-        }
-    }
-    if (argc == 3) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    return _wrap_Rect_setPos__SWIG_0(self,args);
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setPos'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_width(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Rect_width",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::Rect const *)arg1)->width();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_height(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Rect_height",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::Rect const *)arg1)->height();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_size(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    otk::Point result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Rect_size",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = ((otk::Rect const *)arg1)->size();
-    
-    {
-        otk::Point * resultptr;
-        resultptr = new otk::Point((otk::Point &) result);
-        resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__Point, 1);
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setWidth(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int arg2 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setWidth",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setWidth(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setHeight(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int arg2 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oi:Rect_setHeight",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setHeight(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setSize__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int arg2 ;
-    int arg3 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_setSize",&obj0,&arg2,&arg3)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setSize(arg2,arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setSize__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    otk::Point *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Rect_setSize",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->setSize((otk::Point const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setSize(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[4];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 3); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 2) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                void *ptr;
-                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
-                    _v = 0;
-                    PyErr_Clear();
-                }else {
-                    _v = 1;
-                }
-            }
-            if (_v) {
-                return _wrap_Rect_setSize__SWIG_1(self,args);
-            }
-        }
-    }
-    if (argc == 3) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    return _wrap_Rect_setSize__SWIG_0(self,args);
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setSize'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setRect__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int arg2 ;
-    int arg3 ;
-    int arg4 ;
-    int arg5 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oiiii:Rect_setRect",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setRect(arg2,arg3,arg4,arg5);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setRect__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    otk::Point *arg2 = 0 ;
-    otk::Point *arg3 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:Rect_setRect",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg3 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->setRect((otk::Point const &)*arg2,(otk::Point const &)*arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setRect(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[6];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 5); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 3) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                void *ptr;
-                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
-                    _v = 0;
-                    PyErr_Clear();
-                }else {
-                    _v = 1;
-                }
-            }
-            if (_v) {
-                {
-                    void *ptr;
-                    if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
-                        _v = 0;
-                        PyErr_Clear();
-                    }else {
-                        _v = 1;
-                    }
-                }
-                if (_v) {
-                    return _wrap_Rect_setRect__SWIG_1(self,args);
-                }
-            }
-        }
-    }
-    if (argc == 5) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        {
-                            _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
-                        }
-                        if (_v) {
-                            return _wrap_Rect_setRect__SWIG_0(self,args);
-                        }
-                    }
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setRect'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setCoords__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int arg2 ;
-    int arg3 ;
-    int arg4 ;
-    int arg5 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oiiii:Rect_setCoords",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setCoords(arg2,arg3,arg4,arg5);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setCoords__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    otk::Point *arg2 = 0 ;
-    otk::Point *arg3 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:Rect_setCoords",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg3 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->setCoords((otk::Point const &)*arg2,(otk::Point const &)*arg3);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_setCoords(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[6];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 5); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 3) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                void *ptr;
-                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
-                    _v = 0;
-                    PyErr_Clear();
-                }else {
-                    _v = 1;
-                }
-            }
-            if (_v) {
-                {
-                    void *ptr;
-                    if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
-                        _v = 0;
-                        PyErr_Clear();
-                    }else {
-                        _v = 1;
-                    }
-                }
-                if (_v) {
-                    return _wrap_Rect_setCoords__SWIG_1(self,args);
-                }
-            }
-        }
-    }
-    if (argc == 5) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        {
-                            _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
-                        }
-                        if (_v) {
-                            return _wrap_Rect_setCoords__SWIG_0(self,args);
-                        }
-                    }
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_setCoords'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_equals(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    otk::Rect *arg2 = 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Rect_equals",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (bool)(arg1)->operator ==((otk::Rect const &)*arg2);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_valid(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Rect_valid",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::Rect const *)arg1)->valid();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_intersects(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    otk::Rect *arg2 = 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Rect_intersects",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (bool)((otk::Rect const *)arg1)->intersects((otk::Rect const &)*arg2);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_contains__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    int arg2 ;
-    int arg3 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oii:Rect_contains",&obj0,&arg2,&arg3)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::Rect const *)arg1)->contains(arg2,arg3);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_contains__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    otk::Point *arg2 = 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Rect_contains",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Point,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (bool)((otk::Rect const *)arg1)->contains((otk::Point const &)*arg2);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_contains__SWIG_2(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    otk::Rect *arg2 = 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Rect_contains",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (bool)((otk::Rect const *)arg1)->contains((otk::Rect const &)*arg2);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Rect_contains(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[4];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 3); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 2) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                void *ptr;
-                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Point, 0) == -1) {
-                    _v = 0;
-                    PyErr_Clear();
-                }else {
-                    _v = 1;
-                }
-            }
-            if (_v) {
-                return _wrap_Rect_contains__SWIG_1(self,args);
-            }
-        }
-    }
-    if (argc == 2) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                void *ptr;
-                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
-                    _v = 0;
-                    PyErr_Clear();
-                }else {
-                    _v = 1;
-                }
-            }
-            if (_v) {
-                return _wrap_Rect_contains__SWIG_2(self,args);
-            }
-        }
-    }
-    if (argc == 3) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__Rect, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    return _wrap_Rect_contains__SWIG_0(self,args);
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Rect_contains'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Rect *arg1 = (otk::Rect *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_Rect",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Rect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * Rect_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__Rect, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_ScreenInfo(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    unsigned int arg1 ;
-    otk::ScreenInfo *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:new_ScreenInfo",&obj0)) goto fail;
-    arg1 = (unsigned int) PyInt_AsLong(obj0);
-    if (PyErr_Occurred()) SWIG_fail;
-    result = (otk::ScreenInfo *)new otk::ScreenInfo(arg1);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__ScreenInfo, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_visual(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
-    Visual *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_visual",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (Visual *)((otk::ScreenInfo const *)arg1)->visual();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Visual, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_rootWindow(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
-    Window result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_rootWindow",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (Window)((otk::ScreenInfo const *)arg1)->rootWindow();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_colormap(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
-    Colormap result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_colormap",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (Colormap)((otk::ScreenInfo const *)arg1)->colormap();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_depth(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_depth",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)((otk::ScreenInfo const *)arg1)->depth();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_screen(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_screen",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int)((otk::ScreenInfo const *)arg1)->screen();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_rect(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
-    otk::Rect *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_rect",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        otk::Rect const &_result_ref = ((otk::ScreenInfo const *)arg1)->rect();
-        result = (otk::Rect *) &_result_ref;
-    }
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_width(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_width",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int)((otk::ScreenInfo const *)arg1)->width();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_height(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_height",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int)((otk::ScreenInfo const *)arg1)->height();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_ScreenInfo_displayString(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
-    std::string *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:ScreenInfo_displayString",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        std::string const &_result_ref = ((otk::ScreenInfo const *)arg1)->displayString();
-        result = (std::string *) &_result_ref;
-    }
-    
-    {
-        resultobj = PyString_FromString(result->c_str());
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_ScreenInfo(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::ScreenInfo *arg1 = (otk::ScreenInfo *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_ScreenInfo",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__ScreenInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * ScreenInfo_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__ScreenInfo, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_Strut_top_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Strut *arg1 = (otk::Strut *) 0 ;
-    unsigned int arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Strut_top_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if (arg1) (arg1)->top = arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Strut_top_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Strut *arg1 = (otk::Strut *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Strut_top_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int) ((arg1)->top);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Strut_bottom_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Strut *arg1 = (otk::Strut *) 0 ;
-    unsigned int arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Strut_bottom_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if (arg1) (arg1)->bottom = arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Strut_bottom_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Strut *arg1 = (otk::Strut *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Strut_bottom_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int) ((arg1)->bottom);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Strut_left_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Strut *arg1 = (otk::Strut *) 0 ;
-    unsigned int arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Strut_left_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if (arg1) (arg1)->left = arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Strut_left_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Strut *arg1 = (otk::Strut *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Strut_left_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int) ((arg1)->left);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Strut_right_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Strut *arg1 = (otk::Strut *) 0 ;
-    unsigned int arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Strut_right_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if (arg1) (arg1)->right = arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Strut_right_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Strut *arg1 = (otk::Strut *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Strut_right_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int) ((arg1)->right);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_Strut__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Strut *result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":new_Strut")) goto fail;
-    result = (otk::Strut *)new otk::Strut();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_Strut__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    int arg1 ;
-    int arg2 ;
-    int arg3 ;
-    int arg4 ;
-    otk::Strut *result;
-    
-    if(!PyArg_ParseTuple(args,(char *)"iiii:new_Strut",&arg1,&arg2,&arg3,&arg4)) goto fail;
-    result = (otk::Strut *)new otk::Strut(arg1,arg2,arg3,arg4);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Strut, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_Strut(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[5];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 4); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 0) {
-        return _wrap_new_Strut__SWIG_0(self,args);
-    }
-    if (argc == 4) {
-        int _v;
-        {
-            _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                {
-                    _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
-                }
-                if (_v) {
-                    {
-                        _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
-                    }
-                    if (_v) {
-                        return _wrap_new_Strut__SWIG_1(self,args);
-                    }
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Strut'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_Strut(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Strut *arg1 = (otk::Strut *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_Strut",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * Strut_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__Strut, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_PixmapMask_mask_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
-    Pixmap arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:PixmapMask_mask_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (Pixmap) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if (arg1) (arg1)->mask = arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_PixmapMask_mask_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
-    Pixmap result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:PixmapMask_mask_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (Pixmap) ((arg1)->mask);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_PixmapMask_w_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
-    unsigned int arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:PixmapMask_w_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if (arg1) (arg1)->w = arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_PixmapMask_w_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:PixmapMask_w_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int) ((arg1)->w);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_PixmapMask_h_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
-    unsigned int arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:PixmapMask_h_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if (arg1) (arg1)->h = arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_PixmapMask_h_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:PixmapMask_h_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int) ((arg1)->h);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_PixmapMask(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::PixmapMask *result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":new_PixmapMask")) goto fail;
-    result = (otk::PixmapMask *)new otk::PixmapMask();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_PixmapMask(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::PixmapMask *arg1 = (otk::PixmapMask *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_PixmapMask",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * PixmapMask_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__PixmapMask, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_Style_image_control_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BImageControl *arg2 = (otk::BImageControl *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_image_control_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
-    if (arg1) (arg1)->image_control = arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_image_control_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BImageControl *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_image_control_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BImageControl *) ((arg1)->image_control);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_l_text_focus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BColor *arg2 = (otk::BColor *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_l_text_focus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->l_text_focus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_l_text_focus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_l_text_focus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BColor *)& ((arg1)->l_text_focus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_l_text_unfocus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BColor *arg2 = (otk::BColor *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_l_text_unfocus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->l_text_unfocus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_l_text_unfocus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_l_text_unfocus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BColor *)& ((arg1)->l_text_unfocus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_pic_focus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BColor *arg2 = (otk::BColor *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pic_focus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->b_pic_focus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_pic_focus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pic_focus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BColor *)& ((arg1)->b_pic_focus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_pic_unfocus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BColor *arg2 = (otk::BColor *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pic_unfocus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->b_pic_unfocus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_pic_unfocus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pic_unfocus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BColor *)& ((arg1)->b_pic_unfocus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_border_color_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BColor *arg2 = (otk::BColor *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_border_color_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->border_color = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_border_color_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_border_color_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BColor *)& ((arg1)->border_color);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_font_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BFont *arg2 = (otk::BFont *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_font_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BFont,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
-    if (arg1) (arg1)->font = arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_font_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BFont *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_font_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BFont *) ((arg1)->font);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BFont, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_f_focus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_f_focus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->f_focus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_f_focus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_f_focus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)& ((arg1)->f_focus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_f_unfocus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_f_unfocus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->f_unfocus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_f_unfocus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_f_unfocus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)& ((arg1)->f_unfocus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_t_focus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_t_focus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->t_focus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_t_focus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_t_focus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)& ((arg1)->t_focus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_t_unfocus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_t_unfocus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->t_unfocus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_t_unfocus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_t_unfocus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)& ((arg1)->t_unfocus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_l_focus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_l_focus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->l_focus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_l_focus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_l_focus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)& ((arg1)->l_focus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_l_unfocus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_l_unfocus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->l_unfocus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_l_unfocus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_l_unfocus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)& ((arg1)->l_unfocus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_h_focus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_h_focus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->h_focus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_h_focus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_h_focus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)& ((arg1)->h_focus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_h_unfocus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_h_unfocus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->h_unfocus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_h_unfocus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_h_unfocus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)& ((arg1)->h_unfocus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_focus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_focus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->b_focus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_focus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_b_focus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)& ((arg1)->b_focus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_unfocus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_unfocus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->b_unfocus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_unfocus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_b_unfocus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)& ((arg1)->b_unfocus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_pressed_focus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pressed_focus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->b_pressed_focus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_pressed_focus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pressed_focus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)& ((arg1)->b_pressed_focus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_pressed_unfocus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_b_pressed_unfocus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->b_pressed_unfocus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_b_pressed_unfocus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_b_pressed_unfocus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)& ((arg1)->b_pressed_unfocus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_g_focus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_g_focus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->g_focus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_g_focus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_g_focus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)& ((arg1)->g_focus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_g_unfocus_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *arg2 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_g_unfocus_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->g_unfocus = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_g_unfocus_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_g_unfocus_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)& ((arg1)->g_unfocus);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_close_button_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::PixmapMask *arg2 = (otk::PixmapMask *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_close_button_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->close_button = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_close_button_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::PixmapMask *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_close_button_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::PixmapMask *)& ((arg1)->close_button);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_max_button_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::PixmapMask *arg2 = (otk::PixmapMask *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_max_button_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->max_button = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_max_button_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::PixmapMask *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_max_button_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::PixmapMask *)& ((arg1)->max_button);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_icon_button_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::PixmapMask *arg2 = (otk::PixmapMask *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_icon_button_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->icon_button = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_icon_button_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::PixmapMask *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_icon_button_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::PixmapMask *)& ((arg1)->icon_button);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_stick_button_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::PixmapMask *arg2 = (otk::PixmapMask *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_stick_button_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->stick_button = *arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_stick_button_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::PixmapMask *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_stick_button_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::PixmapMask *)& ((arg1)->stick_button);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_justify_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    int arg2 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oi:Style_justify_set",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->justify = (otk::Style::TextJustify )arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_justify_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_justify_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int) ((arg1)->justify);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_bullet_type_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    int arg2 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Oi:Style_bullet_type_set",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg1) (arg1)->bullet_type = (otk::Style::BulletType )arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_bullet_type_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_bullet_type_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int) ((arg1)->bullet_type);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_handle_width_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    unsigned int arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_handle_width_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if (arg1) (arg1)->handle_width = arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_handle_width_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_handle_width_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int) ((arg1)->handle_width);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_bevel_width_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    unsigned int arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_bevel_width_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if (arg1) (arg1)->bevel_width = arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_bevel_width_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_bevel_width_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int) ((arg1)->bevel_width);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_frame_width_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    unsigned int arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_frame_width_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if (arg1) (arg1)->frame_width = arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_frame_width_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_frame_width_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int) ((arg1)->frame_width);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_border_width_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    unsigned int arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_border_width_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if (arg1) (arg1)->border_width = arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_border_width_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_border_width_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int) ((arg1)->border_width);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_screen_number_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    unsigned int arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_screen_number_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if (arg1) (arg1)->screen_number = arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_screen_number_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_screen_number_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int) ((arg1)->screen_number);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_shadow_fonts_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    bool arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_shadow_fonts_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (bool) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if (arg1) (arg1)->shadow_fonts = arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_shadow_fonts_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_shadow_fonts_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool) ((arg1)->shadow_fonts);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_aa_fonts_set(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    bool arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_aa_fonts_set",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (bool) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    if (arg1) (arg1)->aa_fonts = arg2;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_aa_fonts_get(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_aa_fonts_get",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool) ((arg1)->aa_fonts);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_Style__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":new_Style")) goto fail;
-    result = (otk::Style *)new otk::Style();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_Style__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BImageControl *arg1 = (otk::BImageControl *) 0 ;
-    otk::Style *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:new_Style",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::Style *)new otk::Style(arg1);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_Style(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[2];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 1); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 0) {
-        return _wrap_new_Style__SWIG_0(self,args);
-    }
-    if (argc == 1) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__BImageControl, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            return _wrap_new_Style__SWIG_1(self,args);
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Style'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_Style(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_Style",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_readDatabaseMask(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    std::string *arg2 = 0 ;
-    otk::PixmapMask *arg3 = 0 ;
-    otk::Configuration *arg4 = 0 ;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    PyObject * obj3  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOOO:Style_readDatabaseMask",&obj0,&obj1,&obj2,&obj3)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__PixmapMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg3 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg4 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->readDatabaseMask((std::string const &)*arg2,*arg3,(otk::Configuration const &)*arg4);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_readDatabaseTexture(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    std::string *arg2 = 0 ;
-    std::string *arg3 = 0 ;
-    otk::Configuration *arg4 = 0 ;
-    bool arg5 = (bool) false ;
-    otk::BTexture result;
-    std::string temp2 ;
-    std::string temp3 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    PyObject * obj3  = 0 ;
-    PyObject * obj4  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOOO|O:Style_readDatabaseTexture",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    {
-        if (PyString_Check(obj2)) {
-            temp3 = std::string(PyString_AsString(obj2));
-            arg3 = &temp3;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg4 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    if (obj4) {
-        arg5 = (bool) PyInt_AsLong(obj4);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    result = (arg1)->readDatabaseTexture((std::string const &)*arg2,(std::string const &)*arg3,(otk::Configuration const &)*arg4,arg5);
-    
-    {
-        otk::BTexture * resultptr;
-        resultptr = new otk::BTexture((otk::BTexture &) result);
-        resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__BTexture, 1);
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_readDatabaseColor(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    std::string *arg2 = 0 ;
-    std::string *arg3 = 0 ;
-    otk::Configuration *arg4 = 0 ;
-    otk::BColor result;
-    std::string temp2 ;
-    std::string temp3 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    PyObject * obj3  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOOO:Style_readDatabaseColor",&obj0,&obj1,&obj2,&obj3)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    {
-        if (PyString_Check(obj2)) {
-            temp3 = std::string(PyString_AsString(obj2));
-            arg3 = &temp3;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg4 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (arg1)->readDatabaseColor((std::string const &)*arg2,(std::string const &)*arg3,(otk::Configuration const &)*arg4);
-    
-    {
-        otk::BColor * resultptr;
-        resultptr = new otk::BColor((otk::BColor &) result);
-        resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_otk__BColor, 1);
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_readDatabaseFont(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    std::string *arg2 = 0 ;
-    otk::Configuration *arg3 = 0 ;
-    otk::BFont *result;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:Style_readDatabaseFont",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg3 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (otk::BFont *)(arg1)->readDatabaseFont((std::string const &)*arg2,(otk::Configuration const &)*arg3);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BFont, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_load(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::Configuration *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_load",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->load((otk::Configuration const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getCloseButtonMask(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::PixmapMask *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getCloseButtonMask",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::PixmapMask *)(arg1)->getCloseButtonMask();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getMaximizeButtonMask(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::PixmapMask *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getMaximizeButtonMask",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::PixmapMask *)(arg1)->getMaximizeButtonMask();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getIconifyButtonMask(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::PixmapMask *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getIconifyButtonMask",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::PixmapMask *)(arg1)->getIconifyButtonMask();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getStickyButtonMask(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::PixmapMask *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getStickyButtonMask",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::PixmapMask *)(arg1)->getStickyButtonMask();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__PixmapMask, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getTextFocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getTextFocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BColor *)(arg1)->getTextFocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getTextUnfocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getTextUnfocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BColor *)(arg1)->getTextUnfocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getButtonPicFocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonPicFocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BColor *)(arg1)->getButtonPicFocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getButtonPicUnfocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonPicUnfocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BColor *)(arg1)->getButtonPicUnfocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getTitleFocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getTitleFocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)(arg1)->getTitleFocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getTitleUnfocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getTitleUnfocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)(arg1)->getTitleUnfocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getLabelFocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getLabelFocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)(arg1)->getLabelFocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getLabelUnfocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getLabelUnfocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)(arg1)->getLabelUnfocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getHandleFocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getHandleFocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)(arg1)->getHandleFocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getHandleUnfocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getHandleUnfocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)(arg1)->getHandleUnfocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getButtonFocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonFocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)(arg1)->getButtonFocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getButtonUnfocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonUnfocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)(arg1)->getButtonUnfocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getButtonPressedFocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonPressedFocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)(arg1)->getButtonPressedFocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getButtonPressedUnfocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getButtonPressedUnfocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)(arg1)->getButtonPressedUnfocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getGripFocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getGripFocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)(arg1)->getGripFocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getGripUnfocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getGripUnfocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)(arg1)->getGripUnfocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getHandleWidth(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getHandleWidth",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int)((otk::Style const *)arg1)->getHandleWidth();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getBevelWidth(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getBevelWidth",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int)((otk::Style const *)arg1)->getBevelWidth();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getFrameWidth(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getFrameWidth",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int)((otk::Style const *)arg1)->getFrameWidth();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getBorderWidth(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getBorderWidth",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int)((otk::Style const *)arg1)->getBorderWidth();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getFont(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BFont *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getFont",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BFont *)((otk::Style const *)arg1)->getFont();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BFont, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_setShadowFonts(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    bool arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_setShadowFonts",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (bool) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->setShadowFonts(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_hasShadowFonts(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_hasShadowFonts",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::Style const *)arg1)->hasShadowFonts();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_setAAFonts(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    bool arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_setAAFonts",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (bool) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->setAAFonts(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_hasAAFonts(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_hasAAFonts",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::Style const *)arg1)->hasAAFonts();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_textJustify(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_textJustify",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)(arg1)->textJustify();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_bulletType(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_bulletType",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (int)(arg1)->bulletType();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getBorderColor(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getBorderColor",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BColor *)((otk::Style const *)arg1)->getBorderColor();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getFrameFocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getFrameFocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)((otk::Style const *)arg1)->getFrameFocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getFrameUnfocus(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getFrameUnfocus",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::BTexture *)((otk::Style const *)arg1)->getFrameUnfocus();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_setImageControl(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    otk::BImageControl *arg2 = (otk::BImageControl *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:Style_setImageControl",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setImageControl(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_Style_getScreen(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::Style *arg1 = (otk::Style *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:Style_getScreen",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__Style,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int)(arg1)->getScreen();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * Style_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__Style, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_BTexture__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    unsigned int arg1 = (unsigned int) ~(0u) ;
-    otk::BImageControl *arg2 = (otk::BImageControl *) 0 ;
-    otk::BTexture *result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"|OO:new_BTexture",&obj0,&obj1)) goto fail;
-    if (obj0) {
-        arg1 = (unsigned int) PyInt_AsLong(obj0);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    if (obj1) {
-        if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    }
-    result = (otk::BTexture *)new otk::BTexture(arg1,arg2);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_BTexture__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    std::string *arg1 = 0 ;
-    unsigned int arg2 = (unsigned int) ~(0u) ;
-    otk::BImageControl *arg3 = (otk::BImageControl *) 0 ;
-    otk::BTexture *result;
-    std::string temp1 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O|OO:new_BTexture",&obj0,&obj1,&obj2)) goto fail;
-    {
-        if (PyString_Check(obj0)) {
-            temp1 = std::string(PyString_AsString(obj0));
-            arg1 = &temp1;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    if (obj1) {
-        arg2 = (unsigned int) PyInt_AsLong(obj1);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    if (obj2) {
-        if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    }
-    result = (otk::BTexture *)new otk::BTexture((std::string const &)*arg1,arg2,arg3);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BTexture, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_new_BTexture(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[4];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 3); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if ((argc >= 0) && (argc <= 2)) {
-        int _v;
-        if (argc <= 0) {
-            return _wrap_new_BTexture__SWIG_0(self,args);
-        }
-        {
-            _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
-        }
-        if (_v) {
-            if (argc <= 1) {
-                return _wrap_new_BTexture__SWIG_0(self,args);
-            }
-            {
-                void *ptr;
-                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_otk__BImageControl, 0) == -1) {
-                    _v = 0;
-                    PyErr_Clear();
-                }else {
-                    _v = 1;
-                }
-            }
-            if (_v) {
-                return _wrap_new_BTexture__SWIG_0(self,args);
-            }
-        }
-    }
-    if ((argc >= 1) && (argc <= 3)) {
-        int _v;
-        {
-            _v = PyString_Check(argv[0]) ? 1 : 0;
-        }
-        if (_v) {
-            if (argc <= 1) {
-                return _wrap_new_BTexture__SWIG_1(self,args);
-            }
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                if (argc <= 2) {
-                    return _wrap_new_BTexture__SWIG_1(self,args);
-                }
-                {
-                    void *ptr;
-                    if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_otk__BImageControl, 0) == -1) {
-                        _v = 0;
-                        PyErr_Clear();
-                    }else {
-                        _v = 1;
-                    }
-                }
-                if (_v) {
-                    return _wrap_new_BTexture__SWIG_1(self,args);
-                }
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BTexture'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_setColor(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    otk::BColor *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setColor",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->setColor((otk::BColor const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_setColorTo(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    otk::BColor *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setColorTo",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->setColorTo((otk::BColor const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_setBorderColor(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    otk::BColor *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setBorderColor",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BColor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->setBorderColor((otk::BColor const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_color(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BTexture_color",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        otk::BColor const &_result_ref = ((otk::BTexture const *)arg1)->color();
-        result = (otk::BColor *) &_result_ref;
-    }
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_colorTo(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BTexture_colorTo",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        otk::BColor const &_result_ref = ((otk::BTexture const *)arg1)->colorTo();
-        result = (otk::BColor *) &_result_ref;
-    }
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_lightColor(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BTexture_lightColor",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        otk::BColor const &_result_ref = ((otk::BTexture const *)arg1)->lightColor();
-        result = (otk::BColor *) &_result_ref;
-    }
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_shadowColor(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BTexture_shadowColor",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        otk::BColor const &_result_ref = ((otk::BTexture const *)arg1)->shadowColor();
-        result = (otk::BColor *) &_result_ref;
-    }
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_borderColor(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    otk::BColor *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BTexture_borderColor",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        otk::BColor const &_result_ref = ((otk::BTexture const *)arg1)->borderColor();
-        result = (otk::BColor *) &_result_ref;
-    }
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BColor, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_texture(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    unsigned long result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BTexture_texture",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned long)((otk::BTexture const *)arg1)->texture();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_setTexture(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    unsigned long arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setTexture",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned long) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->setTexture(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_addTexture(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    unsigned long arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_addTexture",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned long) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->addTexture(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_equals(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    otk::BTexture *arg2 = 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_equals",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (bool)(arg1)->operator ==((otk::BTexture const &)*arg2);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_screen(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    unsigned int result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BTexture_screen",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (unsigned int)((otk::BTexture const *)arg1)->screen();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_setScreen(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    unsigned int arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setScreen",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->setScreen(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_setImageControl(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    otk::BImageControl *arg2 = (otk::BImageControl *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setImageControl",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__BImageControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setImageControl(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_description(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    std::string *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:BTexture_description",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        std::string const &_result_ref = ((otk::BTexture const *)arg1)->description();
-        result = (std::string *) &_result_ref;
-    }
-    
-    {
-        resultobj = PyString_FromString(result->c_str());
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_setDescription(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    std::string *arg2 = 0 ;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:BTexture_setDescription",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    (arg1)->setDescription((std::string const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_BTexture_render(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    unsigned int arg2 ;
-    unsigned int arg3 ;
-    Pixmap arg4 = (Pixmap) (Pixmap)0 ;
-    Pixmap result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    PyObject * obj3  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO|O:BTexture_render",&obj0,&obj1,&obj2,&obj3)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (unsigned int) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    arg3 = (unsigned int) PyInt_AsLong(obj2);
-    if (PyErr_Occurred()) SWIG_fail;
-    if (obj3) {
-        arg4 = (Pixmap) PyInt_AsLong(obj3);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    result = (Pixmap)(arg1)->render(arg2,arg3,arg4);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_BTexture(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::BTexture *arg1 = (otk::BTexture *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_BTexture",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__BTexture,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * BTexture_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__BTexture, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_OBTimer(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
-    otk::OBTimeoutHandler arg2 = (otk::OBTimeoutHandler) 0 ;
-    otk::OBTimeoutData arg3 = (otk::OBTimeoutData) 0 ;
-    otk::OBTimer *result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    PyObject * obj2  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OOO:new_OBTimer",&obj0,&obj1,&obj2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_otk__OBTimeoutHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (otk::OBTimer *)new otk::OBTimer(arg1,arg2,arg3);
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimer, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_OBTimer(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_OBTimer",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimer_fire(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_fire",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->fire();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimer_timing(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_timing",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::OBTimer const *)arg1)->timing();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimer_recurring(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_recurring",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = (bool)((otk::OBTimer const *)arg1)->recurring();
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimer_timeout(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
-    timeval *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_timeout",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        timeval const &_result_ref = ((otk::OBTimer const *)arg1)->timeout();
-        result = (timeval *) &_result_ref;
-    }
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_timeval, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimer_startTime(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
-    timeval *result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_startTime",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    {
-        timeval const &_result_ref = ((otk::OBTimer const *)arg1)->startTime();
-        result = (timeval *) &_result_ref;
-    }
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_timeval, 0);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimer_remainingTime(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
-    timeval *arg2 = 0 ;
-    timeval result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OBTimer_remainingTime",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_timeval,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = ((otk::OBTimer const *)arg1)->remainingTime((timeval const &)*arg2);
-    
-    {
-        timeval * resultptr;
-        resultptr = new timeval((timeval &) result);
-        resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_timeval, 1);
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimer_shouldFire(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
-    timeval *arg2 = 0 ;
-    bool result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OBTimer_shouldFire",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_timeval,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = (bool)((otk::OBTimer const *)arg1)->shouldFire((timeval const &)*arg2);
-    
-    resultobj = PyInt_FromLong((long)result);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimer_endTime(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
-    timeval result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_endTime",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    result = ((otk::OBTimer const *)arg1)->endTime();
-    
-    {
-        timeval * resultptr;
-        resultptr = new timeval((timeval &) result);
-        resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_timeval, 1);
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimer_setRecurring(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
-    bool arg2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OBTimer_setRecurring",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    arg2 = (bool) PyInt_AsLong(obj1);
-    if (PyErr_Occurred()) SWIG_fail;
-    (arg1)->setRecurring(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimer_setTimeout__SWIG_0(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
-    long arg2 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"Ol:OBTimer_setTimeout",&obj0,&arg2)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->setTimeout(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimer_setTimeout__SWIG_1(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
-    timeval *arg2 = 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OBTimer_setTimeout",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_timeval,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    (arg1)->setTimeout((timeval const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimer_setTimeout(PyObject *self, PyObject *args) {
-    int argc;
-    PyObject *argv[3];
-    int ii;
-    
-    argc = PyObject_Length(args);
-    for (ii = 0; (ii < argc) && (ii < 2); ii++) {
-        argv[ii] = PyTuple_GetItem(args,ii);
-    }
-    if (argc == 2) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBTimer, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                void *ptr;
-                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_timeval, 0) == -1) {
-                    _v = 0;
-                    PyErr_Clear();
-                }else {
-                    _v = 1;
-                }
-            }
-            if (_v) {
-                return _wrap_OBTimer_setTimeout__SWIG_1(self,args);
-            }
-        }
-    }
-    if (argc == 2) {
-        int _v;
-        {
-            void *ptr;
-            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_otk__OBTimer, 0) == -1) {
-                _v = 0;
-                PyErr_Clear();
-            }else {
-                _v = 1;
-            }
-        }
-        if (_v) {
-            {
-                _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
-            }
-            if (_v) {
-                return _wrap_OBTimer_setTimeout__SWIG_0(self,args);
-            }
-        }
-    }
-    
-    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'OBTimer_setTimeout'");
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimer_start(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_start",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->start();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimer_stop(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimer *arg1 = (otk::OBTimer *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:OBTimer_stop",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->stop();
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * OBTimer_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__OBTimer, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_OBTimerQueueManager(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimerQueueManager *result;
-    
-    if(!PyArg_ParseTuple(args,(char *)":new_OBTimerQueueManager")) goto fail;
-    result = (otk::OBTimerQueueManager *)new otk::OBTimerQueueManager();
-    
-    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimerQueueManager, 1);
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_delete_OBTimerQueueManager(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:delete_OBTimerQueueManager",&obj0)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    delete arg1;
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimerQueueManager_fire(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
-    bool arg2 = (bool) true ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O|O:OBTimerQueueManager_fire",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (obj1) {
-        arg2 = (bool) PyInt_AsLong(obj1);
-        if (PyErr_Occurred()) SWIG_fail;
-    }
-    (arg1)->fire(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimerQueueManager_addTimer(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
-    otk::OBTimer *arg2 = (otk::OBTimer *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OBTimerQueueManager_addTimer",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->addTimer(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_OBTimerQueueManager_removeTimer(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ;
-    otk::OBTimer *arg2 = (otk::OBTimer *) 0 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:OBTimerQueueManager_removeTimer",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__OBTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    (arg1)->removeTimer(arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject * OBTimerQueueManager_swigregister(PyObject *self, PyObject *args) {
-    PyObject *obj;
-    if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
-    SWIG_TypeClientData(SWIGTYPE_p_otk__OBTimerQueueManager, obj);
-    Py_INCREF(obj);
-    return Py_BuildValue((char *)"");
-}
-static int _wrap_BSENTINEL_set(PyObject *_val) {
-    PyErr_SetString(PyExc_TypeError,"Variable BSENTINEL is read-only.");
-    return 1;
-}
-
-
-static PyObject *_wrap_BSENTINEL_get() {
-    PyObject *pyobj;
-    
-    pyobj = PyInt_FromLong((long)otk::BSENTINEL);
-    return pyobj;
-}
-
-
-static PyObject *_wrap_expandTilde(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    std::string *arg1 = 0 ;
-    std::string result;
-    std::string temp1 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:expandTilde",&obj0)) goto fail;
-    {
-        if (PyString_Check(obj0)) {
-            temp1 = std::string(PyString_AsString(obj0));
-            arg1 = &temp1;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    result = otk::expandTilde((std::string const &)*arg1);
-    
-    {
-        resultobj = PyString_FromString((&result)->c_str());
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_bexec(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    std::string *arg1 = 0 ;
-    std::string *arg2 = 0 ;
-    std::string temp1 ;
-    std::string temp2 ;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:bexec",&obj0,&obj1)) goto fail;
-    {
-        if (PyString_Check(obj0)) {
-            temp1 = std::string(PyString_AsString(obj0));
-            arg1 = &temp1;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    {
-        if (PyString_Check(obj1)) {
-            temp2 = std::string(PyString_AsString(obj1));
-            arg2 = &temp2;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    otk::bexec((std::string const &)*arg1,(std::string const &)*arg2);
-    
-    Py_INCREF(Py_None); resultobj = Py_None;
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_textPropertyToString(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    Display *arg1 = (Display *) 0 ;
-    XTextProperty *arg2 = 0 ;
-    std::string result;
-    PyObject * obj0  = 0 ;
-    PyObject * obj1  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"OO:textPropertyToString",&obj0,&obj1)) goto fail;
-    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Display,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XTextProperty,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
-    if (arg2 == NULL) {
-        PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; 
-    }
-    result = otk::textPropertyToString(arg1,*arg2);
-    
-    {
-        resultobj = PyString_FromString((&result)->c_str());
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_itostring_unsigned_long(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    unsigned long arg1 ;
-    std::string result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:itostring_unsigned_long",&obj0)) goto fail;
-    arg1 = (unsigned long) PyInt_AsLong(obj0);
-    if (PyErr_Occurred()) SWIG_fail;
-    result = otk::itostring(arg1);
-    
-    {
-        resultobj = PyString_FromString((&result)->c_str());
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_itostring_long(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    long arg1 ;
-    std::string result;
-    
-    if(!PyArg_ParseTuple(args,(char *)"l:itostring_long",&arg1)) goto fail;
-    result = otk::itostring(arg1);
-    
-    {
-        resultobj = PyString_FromString((&result)->c_str());
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_itostring_unsigned(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    unsigned int arg1 ;
-    std::string result;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:itostring_unsigned",&obj0)) goto fail;
-    arg1 = (unsigned int) PyInt_AsLong(obj0);
-    if (PyErr_Occurred()) SWIG_fail;
-    result = otk::itostring(arg1);
-    
-    {
-        resultobj = PyString_FromString((&result)->c_str());
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_itostring(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    int arg1 ;
-    std::string result;
-    
-    if(!PyArg_ParseTuple(args,(char *)"i:itostring",&arg1)) goto fail;
-    result = otk::itostring(arg1);
-    
-    {
-        resultobj = PyString_FromString((&result)->c_str());
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyObject *_wrap_basename(PyObject *self, PyObject *args) {
-    PyObject *resultobj;
-    std::string *arg1 = 0 ;
-    std::string result;
-    std::string temp1 ;
-    PyObject * obj0  = 0 ;
-    
-    if(!PyArg_ParseTuple(args,(char *)"O:basename",&obj0)) goto fail;
-    {
-        if (PyString_Check(obj0)) {
-            temp1 = std::string(PyString_AsString(obj0));
-            arg1 = &temp1;
-        }else {
-            SWIG_exception(SWIG_TypeError, "string expected");
-        }
-    }
-    result = otk::basename((std::string const &)*arg1);
-    
-    {
-        resultobj = PyString_FromString((&result)->c_str());
-    }
-    return resultobj;
-    fail:
-    return NULL;
-}
-
-
-static PyMethodDef SwigMethods[] = {
-        { (char *)"OBDisplay_display", _wrap_OBDisplay_display, METH_VARARGS },
-        { (char *)"new_OtkEventDispatcher", _wrap_new_OtkEventDispatcher, METH_VARARGS },
-        { (char *)"delete_OtkEventDispatcher", _wrap_delete_OtkEventDispatcher, METH_VARARGS },
-        { (char *)"OtkEventDispatcher_clearAllHandlers", _wrap_OtkEventDispatcher_clearAllHandlers, METH_VARARGS },
-        { (char *)"OtkEventDispatcher_registerHandler", _wrap_OtkEventDispatcher_registerHandler, METH_VARARGS },
-        { (char *)"OtkEventDispatcher_clearHandler", _wrap_OtkEventDispatcher_clearHandler, METH_VARARGS },
-        { (char *)"OtkEventDispatcher_dispatchEvents", _wrap_OtkEventDispatcher_dispatchEvents, METH_VARARGS },
-        { (char *)"OtkEventDispatcher_setFallbackHandler", _wrap_OtkEventDispatcher_setFallbackHandler, METH_VARARGS },
-        { (char *)"OtkEventDispatcher_getFallbackHandler", _wrap_OtkEventDispatcher_getFallbackHandler, METH_VARARGS },
-        { (char *)"OtkEventDispatcher_setMasterHandler", _wrap_OtkEventDispatcher_setMasterHandler, METH_VARARGS },
-        { (char *)"OtkEventDispatcher_getMasterHandler", _wrap_OtkEventDispatcher_getMasterHandler, METH_VARARGS },
-        { (char *)"OtkEventDispatcher_findHandler", _wrap_OtkEventDispatcher_findHandler, METH_VARARGS },
-        { (char *)"OtkEventDispatcher_lastTime", _wrap_OtkEventDispatcher_lastTime, METH_VARARGS },
-        { (char *)"OtkEventDispatcher_swigregister", OtkEventDispatcher_swigregister, METH_VARARGS },
-        { (char *)"OtkEventHandler_handle", _wrap_OtkEventHandler_handle, METH_VARARGS },
-        { (char *)"OtkEventHandler_keyPressHandler", _wrap_OtkEventHandler_keyPressHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_keyReleaseHandler", _wrap_OtkEventHandler_keyReleaseHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_buttonPressHandler", _wrap_OtkEventHandler_buttonPressHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_buttonReleaseHandler", _wrap_OtkEventHandler_buttonReleaseHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_motionHandler", _wrap_OtkEventHandler_motionHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_enterHandler", _wrap_OtkEventHandler_enterHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_leaveHandler", _wrap_OtkEventHandler_leaveHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_focusHandler", _wrap_OtkEventHandler_focusHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_unfocusHandler", _wrap_OtkEventHandler_unfocusHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_exposeHandler", _wrap_OtkEventHandler_exposeHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_graphicsExposeHandler", _wrap_OtkEventHandler_graphicsExposeHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_noExposeEventHandler", _wrap_OtkEventHandler_noExposeEventHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_circulateRequestHandler", _wrap_OtkEventHandler_circulateRequestHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_configureRequestHandler", _wrap_OtkEventHandler_configureRequestHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_mapRequestHandler", _wrap_OtkEventHandler_mapRequestHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_resizeRequestHandler", _wrap_OtkEventHandler_resizeRequestHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_circulateHandler", _wrap_OtkEventHandler_circulateHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_configureHandler", _wrap_OtkEventHandler_configureHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_createHandler", _wrap_OtkEventHandler_createHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_destroyHandler", _wrap_OtkEventHandler_destroyHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_gravityHandler", _wrap_OtkEventHandler_gravityHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_mapHandler", _wrap_OtkEventHandler_mapHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_mappingHandler", _wrap_OtkEventHandler_mappingHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_reparentHandler", _wrap_OtkEventHandler_reparentHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_unmapHandler", _wrap_OtkEventHandler_unmapHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_visibilityHandler", _wrap_OtkEventHandler_visibilityHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_colorMapHandler", _wrap_OtkEventHandler_colorMapHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_propertyHandler", _wrap_OtkEventHandler_propertyHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_selectionClearHandler", _wrap_OtkEventHandler_selectionClearHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_selectionHandler", _wrap_OtkEventHandler_selectionHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_selectionRequestHandler", _wrap_OtkEventHandler_selectionRequestHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_clientMessageHandler", _wrap_OtkEventHandler_clientMessageHandler, METH_VARARGS },
-        { (char *)"delete_OtkEventHandler", _wrap_delete_OtkEventHandler, METH_VARARGS },
-        { (char *)"OtkEventHandler_swigregister", OtkEventHandler_swigregister, METH_VARARGS },
-        { (char *)"new_OtkWidget", _wrap_new_OtkWidget, METH_VARARGS },
-        { (char *)"delete_OtkWidget", _wrap_delete_OtkWidget, METH_VARARGS },
-        { (char *)"OtkWidget_update", _wrap_OtkWidget_update, METH_VARARGS },
-        { (char *)"OtkWidget_exposeHandler", _wrap_OtkWidget_exposeHandler, METH_VARARGS },
-        { (char *)"OtkWidget_configureHandler", _wrap_OtkWidget_configureHandler, METH_VARARGS },
-        { (char *)"OtkWidget_window", _wrap_OtkWidget_window, METH_VARARGS },
-        { (char *)"OtkWidget_parent", _wrap_OtkWidget_parent, METH_VARARGS },
-        { (char *)"OtkWidget_children", _wrap_OtkWidget_children, METH_VARARGS },
-        { (char *)"OtkWidget_screen", _wrap_OtkWidget_screen, METH_VARARGS },
-        { (char *)"OtkWidget_rect", _wrap_OtkWidget_rect, METH_VARARGS },
-        { (char *)"OtkWidget_move", _wrap_OtkWidget_move, METH_VARARGS },
-        { (char *)"OtkWidget_setWidth", _wrap_OtkWidget_setWidth, METH_VARARGS },
-        { (char *)"OtkWidget_setHeight", _wrap_OtkWidget_setHeight, METH_VARARGS },
-        { (char *)"OtkWidget_width", _wrap_OtkWidget_width, METH_VARARGS },
-        { (char *)"OtkWidget_height", _wrap_OtkWidget_height, METH_VARARGS },
-        { (char *)"OtkWidget_resize", _wrap_OtkWidget_resize, METH_VARARGS },
-        { (char *)"OtkWidget_setGeometry", _wrap_OtkWidget_setGeometry, METH_VARARGS },
-        { (char *)"OtkWidget_isVisible", _wrap_OtkWidget_isVisible, METH_VARARGS },
-        { (char *)"OtkWidget_show", _wrap_OtkWidget_show, METH_VARARGS },
-        { (char *)"OtkWidget_hide", _wrap_OtkWidget_hide, METH_VARARGS },
-        { (char *)"OtkWidget_isFocused", _wrap_OtkWidget_isFocused, METH_VARARGS },
-        { (char *)"OtkWidget_focus", _wrap_OtkWidget_focus, METH_VARARGS },
-        { (char *)"OtkWidget_unfocus", _wrap_OtkWidget_unfocus, METH_VARARGS },
-        { (char *)"OtkWidget_hasGrabbedMouse", _wrap_OtkWidget_hasGrabbedMouse, METH_VARARGS },
-        { (char *)"OtkWidget_grabMouse", _wrap_OtkWidget_grabMouse, METH_VARARGS },
-        { (char *)"OtkWidget_ungrabMouse", _wrap_OtkWidget_ungrabMouse, METH_VARARGS },
-        { (char *)"OtkWidget_hasGrabbedKeyboard", _wrap_OtkWidget_hasGrabbedKeyboard, METH_VARARGS },
-        { (char *)"OtkWidget_grabKeyboard", _wrap_OtkWidget_grabKeyboard, METH_VARARGS },
-        { (char *)"OtkWidget_ungrabKeyboard", _wrap_OtkWidget_ungrabKeyboard, METH_VARARGS },
-        { (char *)"OtkWidget_texture", _wrap_OtkWidget_texture, METH_VARARGS },
-        { (char *)"OtkWidget_setTexture", _wrap_OtkWidget_setTexture, METH_VARARGS },
-        { (char *)"OtkWidget_borderColor", _wrap_OtkWidget_borderColor, METH_VARARGS },
-        { (char *)"OtkWidget_setBorderColor", _wrap_OtkWidget_setBorderColor, METH_VARARGS },
-        { (char *)"OtkWidget_borderWidth", _wrap_OtkWidget_borderWidth, METH_VARARGS },
-        { (char *)"OtkWidget_setBorderWidth", _wrap_OtkWidget_setBorderWidth, METH_VARARGS },
-        { (char *)"OtkWidget_addChild", _wrap_OtkWidget_addChild, METH_VARARGS },
-        { (char *)"OtkWidget_removeChild", _wrap_OtkWidget_removeChild, METH_VARARGS },
-        { (char *)"OtkWidget_isStretchableHorz", _wrap_OtkWidget_isStretchableHorz, METH_VARARGS },
-        { (char *)"OtkWidget_setStretchableHorz", _wrap_OtkWidget_setStretchableHorz, METH_VARARGS },
-        { (char *)"OtkWidget_isStretchableVert", _wrap_OtkWidget_isStretchableVert, METH_VARARGS },
-        { (char *)"OtkWidget_setStretchableVert", _wrap_OtkWidget_setStretchableVert, METH_VARARGS },
-        { (char *)"OtkWidget_cursor", _wrap_OtkWidget_cursor, METH_VARARGS },
-        { (char *)"OtkWidget_setCursor", _wrap_OtkWidget_setCursor, METH_VARARGS },
-        { (char *)"OtkWidget_bevelWidth", _wrap_OtkWidget_bevelWidth, METH_VARARGS },
-        { (char *)"OtkWidget_setBevelWidth", _wrap_OtkWidget_setBevelWidth, METH_VARARGS },
-        { (char *)"OtkWidget_direction", _wrap_OtkWidget_direction, METH_VARARGS },
-        { (char *)"OtkWidget_setDirection", _wrap_OtkWidget_setDirection, METH_VARARGS },
-        { (char *)"OtkWidget_style", _wrap_OtkWidget_style, METH_VARARGS },
-        { (char *)"OtkWidget_setStyle", _wrap_OtkWidget_setStyle, METH_VARARGS },
-        { (char *)"OtkWidget_eventDispatcher", _wrap_OtkWidget_eventDispatcher, METH_VARARGS },
-        { (char *)"OtkWidget_setEventDispatcher", _wrap_OtkWidget_setEventDispatcher, METH_VARARGS },
-        { (char *)"OtkWidget_swigregister", OtkWidget_swigregister, METH_VARARGS },
-        { (char *)"new_OtkFocusWidget", _wrap_new_OtkFocusWidget, METH_VARARGS },
-        { (char *)"delete_OtkFocusWidget", _wrap_delete_OtkFocusWidget, METH_VARARGS },
-        { (char *)"OtkFocusWidget_focus", _wrap_OtkFocusWidget_focus, METH_VARARGS },
-        { (char *)"OtkFocusWidget_unfocus", _wrap_OtkFocusWidget_unfocus, METH_VARARGS },
-        { (char *)"OtkFocusWidget_setTexture", _wrap_OtkFocusWidget_setTexture, METH_VARARGS },
-        { (char *)"OtkFocusWidget_setBorderColor", _wrap_OtkFocusWidget_setBorderColor, METH_VARARGS },
-        { (char *)"OtkFocusWidget_setUnfocusTexture", _wrap_OtkFocusWidget_setUnfocusTexture, METH_VARARGS },
-        { (char *)"OtkFocusWidget_getUnfocusTexture", _wrap_OtkFocusWidget_getUnfocusTexture, METH_VARARGS },
-        { (char *)"OtkFocusWidget_setUnfocusBorderColor", _wrap_OtkFocusWidget_setUnfocusBorderColor, METH_VARARGS },
-        { (char *)"OtkFocusWidget_getUnfocusBorderColor", _wrap_OtkFocusWidget_getUnfocusBorderColor, METH_VARARGS },
-        { (char *)"OtkFocusWidget_isFocused", _wrap_OtkFocusWidget_isFocused, METH_VARARGS },
-        { (char *)"OtkFocusWidget_isUnfocused", _wrap_OtkFocusWidget_isUnfocused, METH_VARARGS },
-        { (char *)"OtkFocusWidget_swigregister", OtkFocusWidget_swigregister, METH_VARARGS },
-        { (char *)"new_OtkFocusLabel", _wrap_new_OtkFocusLabel, METH_VARARGS },
-        { (char *)"delete_OtkFocusLabel", _wrap_delete_OtkFocusLabel, METH_VARARGS },
-        { (char *)"OtkFocusLabel_getText", _wrap_OtkFocusLabel_getText, METH_VARARGS },
-        { (char *)"OtkFocusLabel_setText", _wrap_OtkFocusLabel_setText, METH_VARARGS },
-        { (char *)"OtkFocusLabel_update", _wrap_OtkFocusLabel_update, METH_VARARGS },
-        { (char *)"OtkFocusLabel_setStyle", _wrap_OtkFocusLabel_setStyle, METH_VARARGS },
-        { (char *)"OtkFocusLabel_swigregister", OtkFocusLabel_swigregister, METH_VARARGS },
-        { (char *)"new_OtkAppWidget", _wrap_new_OtkAppWidget, METH_VARARGS },
-        { (char *)"delete_OtkAppWidget", _wrap_delete_OtkAppWidget, METH_VARARGS },
-        { (char *)"OtkAppWidget_show", _wrap_OtkAppWidget_show, METH_VARARGS },
-        { (char *)"OtkAppWidget_hide", _wrap_OtkAppWidget_hide, METH_VARARGS },
-        { (char *)"OtkAppWidget_clientMessageHandler", _wrap_OtkAppWidget_clientMessageHandler, METH_VARARGS },
-        { (char *)"OtkAppWidget_swigregister", OtkAppWidget_swigregister, METH_VARARGS },
-        { (char *)"new_OtkApplication", _wrap_new_OtkApplication, METH_VARARGS },
-        { (char *)"delete_OtkApplication", _wrap_delete_OtkApplication, METH_VARARGS },
-        { (char *)"OtkApplication_run", _wrap_OtkApplication_run, METH_VARARGS },
-        { (char *)"OtkApplication_setDockable", _wrap_OtkApplication_setDockable, METH_VARARGS },
-        { (char *)"OtkApplication_isDockable", _wrap_OtkApplication_isDockable, METH_VARARGS },
-        { (char *)"OtkApplication_getStyle", _wrap_OtkApplication_getStyle, METH_VARARGS },
-        { (char *)"OtkApplication_swigregister", OtkApplication_swigregister, METH_VARARGS },
-        { (char *)"new_PointerAssassin", _wrap_new_PointerAssassin, METH_VARARGS },
-        { (char *)"delete_PointerAssassin", _wrap_delete_PointerAssassin, METH_VARARGS },
-        { (char *)"PointerAssassin_swigregister", PointerAssassin_swigregister, METH_VARARGS },
-        { (char *)"new_OtkButton", _wrap_new_OtkButton, METH_VARARGS },
-        { (char *)"delete_OtkButton", _wrap_delete_OtkButton, METH_VARARGS },
-        { (char *)"OtkButton_getPressedFocusTexture", _wrap_OtkButton_getPressedFocusTexture, METH_VARARGS },
-        { (char *)"OtkButton_setPressedFocusTexture", _wrap_OtkButton_setPressedFocusTexture, METH_VARARGS },
-        { (char *)"OtkButton_getPressedUnfocusTexture", _wrap_OtkButton_getPressedUnfocusTexture, METH_VARARGS },
-        { (char *)"OtkButton_setPressedUnfocusTexture", _wrap_OtkButton_setPressedUnfocusTexture, METH_VARARGS },
-        { (char *)"OtkButton_setTexture", _wrap_OtkButton_setTexture, METH_VARARGS },
-        { (char *)"OtkButton_setUnfocusTexture", _wrap_OtkButton_setUnfocusTexture, METH_VARARGS },
-        { (char *)"OtkButton_isPressed", _wrap_OtkButton_isPressed, METH_VARARGS },
-        { (char *)"OtkButton_press", _wrap_OtkButton_press, METH_VARARGS },
-        { (char *)"OtkButton_release", _wrap_OtkButton_release, METH_VARARGS },
-        { (char *)"OtkButton_buttonPressHandler", _wrap_OtkButton_buttonPressHandler, METH_VARARGS },
-        { (char *)"OtkButton_buttonReleaseHandler", _wrap_OtkButton_buttonReleaseHandler, METH_VARARGS },
-        { (char *)"OtkButton_setStyle", _wrap_OtkButton_setStyle, METH_VARARGS },
-        { (char *)"OtkButton_swigregister", OtkButton_swigregister, METH_VARARGS },
-        { (char *)"new_BColor", _wrap_new_BColor, METH_VARARGS },
-        { (char *)"delete_BColor", _wrap_delete_BColor, METH_VARARGS },
-        { (char *)"BColor_name", _wrap_BColor_name, METH_VARARGS },
-        { (char *)"BColor_red", _wrap_BColor_red, METH_VARARGS },
-        { (char *)"BColor_green", _wrap_BColor_green, METH_VARARGS },
-        { (char *)"BColor_blue", _wrap_BColor_blue, METH_VARARGS },
-        { (char *)"BColor_setRGB", _wrap_BColor_setRGB, METH_VARARGS },
-        { (char *)"BColor_screen", _wrap_BColor_screen, METH_VARARGS },
-        { (char *)"BColor_setScreen", _wrap_BColor_setScreen, METH_VARARGS },
-        { (char *)"BColor_isAllocated", _wrap_BColor_isAllocated, METH_VARARGS },
-        { (char *)"BColor_isValid", _wrap_BColor_isValid, METH_VARARGS },
-        { (char *)"BColor_pixel", _wrap_BColor_pixel, METH_VARARGS },
-        { (char *)"BColor_equals", _wrap_BColor_equals, METH_VARARGS },
-        { (char *)"BColor_cleanupColorCache", _wrap_BColor_cleanupColorCache, METH_VARARGS },
-        { (char *)"BColor_swigregister", BColor_swigregister, METH_VARARGS },
-        { (char *)"new_Configuration", _wrap_new_Configuration, METH_VARARGS },
-        { (char *)"delete_Configuration", _wrap_delete_Configuration, METH_VARARGS },
-        { (char *)"Configuration_file", _wrap_Configuration_file, METH_VARARGS },
-        { (char *)"Configuration_setFile", _wrap_Configuration_setFile, METH_VARARGS },
-        { (char *)"Configuration_autoSave", _wrap_Configuration_autoSave, METH_VARARGS },
-        { (char *)"Configuration_setAutoSave", _wrap_Configuration_setAutoSave, METH_VARARGS },
-        { (char *)"Configuration_isModified", _wrap_Configuration_isModified, METH_VARARGS },
-        { (char *)"Configuration_save", _wrap_Configuration_save, METH_VARARGS },
-        { (char *)"Configuration_load", _wrap_Configuration_load, METH_VARARGS },
-        { (char *)"Configuration_merge", _wrap_Configuration_merge, METH_VARARGS },
-        { (char *)"Configuration_create", _wrap_Configuration_create, METH_VARARGS },
-        { (char *)"Configuration_setValue_bool", _wrap_Configuration_setValue_bool, METH_VARARGS },
-        { (char *)"Configuration_setValue", _wrap_Configuration_setValue, METH_VARARGS },
-        { (char *)"Configuration_setValue_unsigned", _wrap_Configuration_setValue_unsigned, METH_VARARGS },
-        { (char *)"Configuration_setValue_long", _wrap_Configuration_setValue_long, METH_VARARGS },
-        { (char *)"Configuration_setValue_unsignedlong", _wrap_Configuration_setValue_unsignedlong, METH_VARARGS },
-        { (char *)"Configuration_setValue_string", _wrap_Configuration_setValue_string, METH_VARARGS },
-        { (char *)"Configuration_setValue_charptr", _wrap_Configuration_setValue_charptr, METH_VARARGS },
-        { (char *)"Configuration_getValue", _wrap_Configuration_getValue, METH_VARARGS },
-        { (char *)"Configuration_swigregister", Configuration_swigregister, METH_VARARGS },
-        { (char *)"OBDisplay_initialize", _wrap_OBDisplay_initialize, METH_VARARGS },
-        { (char *)"OBDisplay_destroy", _wrap_OBDisplay_destroy, METH_VARARGS },
-        { (char *)"OBDisplay_gcCache", _wrap_OBDisplay_gcCache, METH_VARARGS },
-        { (char *)"OBDisplay_screenInfo", _wrap_OBDisplay_screenInfo, METH_VARARGS },
-        { (char *)"OBDisplay_findScreen", _wrap_OBDisplay_findScreen, METH_VARARGS },
-        { (char *)"OBDisplay_xkb", _wrap_OBDisplay_xkb, METH_VARARGS },
-        { (char *)"OBDisplay_xkbEventBase", _wrap_OBDisplay_xkbEventBase, METH_VARARGS },
-        { (char *)"OBDisplay_shape", _wrap_OBDisplay_shape, METH_VARARGS },
-        { (char *)"OBDisplay_shapeEventBase", _wrap_OBDisplay_shapeEventBase, METH_VARARGS },
-        { (char *)"OBDisplay_xinerama", _wrap_OBDisplay_xinerama, METH_VARARGS },
-        { (char *)"OBDisplay_numLockMask", _wrap_OBDisplay_numLockMask, METH_VARARGS },
-        { (char *)"OBDisplay_scrollLockMask", _wrap_OBDisplay_scrollLockMask, METH_VARARGS },
-        { (char *)"OBDisplay_grab", _wrap_OBDisplay_grab, METH_VARARGS },
-        { (char *)"OBDisplay_ungrab", _wrap_OBDisplay_ungrab, METH_VARARGS },
-        { (char *)"OBDisplay_grabButton", _wrap_OBDisplay_grabButton, METH_VARARGS },
-        { (char *)"OBDisplay_ungrabButton", _wrap_OBDisplay_ungrabButton, METH_VARARGS },
-        { (char *)"OBDisplay_grabKey", _wrap_OBDisplay_grabKey, METH_VARARGS },
-        { (char *)"OBDisplay_ungrabKey", _wrap_OBDisplay_ungrabKey, METH_VARARGS },
-        { (char *)"delete_OBDisplay", _wrap_delete_OBDisplay, METH_VARARGS },
-        { (char *)"OBDisplay_swigregister", OBDisplay_swigregister, METH_VARARGS },
-        { (char *)"BFont_fallbackFont", _wrap_BFont_fallbackFont, METH_VARARGS },
-        { (char *)"BFont_setFallbackFont", _wrap_BFont_setFallbackFont, METH_VARARGS },
-        { (char *)"new_BFont", _wrap_new_BFont, METH_VARARGS },
-        { (char *)"delete_BFont", _wrap_delete_BFont, METH_VARARGS },
-        { (char *)"BFont_fontstring", _wrap_BFont_fontstring, METH_VARARGS },
-        { (char *)"BFont_height", _wrap_BFont_height, METH_VARARGS },
-        { (char *)"BFont_maxCharWidth", _wrap_BFont_maxCharWidth, METH_VARARGS },
-        { (char *)"BFont_measureString", _wrap_BFont_measureString, METH_VARARGS },
-        { (char *)"BFont_drawString", _wrap_BFont_drawString, METH_VARARGS },
-        { (char *)"BFont_swigregister", BFont_swigregister, METH_VARARGS },
-        { (char *)"BGCCacheContext_set", _wrap_BGCCacheContext_set, METH_VARARGS },
-        { (char *)"delete_BGCCacheContext", _wrap_delete_BGCCacheContext, METH_VARARGS },
-        { (char *)"BGCCacheContext_swigregister", BGCCacheContext_swigregister, METH_VARARGS },
-        { (char *)"BGCCacheItem_gc", _wrap_BGCCacheItem_gc, METH_VARARGS },
-        { (char *)"delete_BGCCacheItem", _wrap_delete_BGCCacheItem, METH_VARARGS },
-        { (char *)"BGCCacheItem_swigregister", BGCCacheItem_swigregister, METH_VARARGS },
-        { (char *)"new_BGCCache", _wrap_new_BGCCache, METH_VARARGS },
-        { (char *)"delete_BGCCache", _wrap_delete_BGCCache, METH_VARARGS },
-        { (char *)"BGCCache_purge", _wrap_BGCCache_purge, METH_VARARGS },
-        { (char *)"BGCCache_find", _wrap_BGCCache_find, METH_VARARGS },
-        { (char *)"BGCCache_release", _wrap_BGCCache_release, METH_VARARGS },
-        { (char *)"BGCCache_swigregister", BGCCache_swigregister, METH_VARARGS },
-        { (char *)"new_BPen", _wrap_new_BPen, METH_VARARGS },
-        { (char *)"delete_BPen", _wrap_delete_BPen, METH_VARARGS },
-        { (char *)"BPen_gc", _wrap_BPen_gc, METH_VARARGS },
-        { (char *)"BPen_swigregister", BPen_swigregister, METH_VARARGS },
-        { (char *)"new_BImage", _wrap_new_BImage, METH_VARARGS },
-        { (char *)"delete_BImage", _wrap_delete_BImage, METH_VARARGS },
-        { (char *)"BImage_render", _wrap_BImage_render, METH_VARARGS },
-        { (char *)"BImage_swigregister", BImage_swigregister, METH_VARARGS },
-        { (char *)"new_BImageControl", _wrap_new_BImageControl, METH_VARARGS },
-        { (char *)"delete_BImageControl", _wrap_delete_BImageControl, METH_VARARGS },
-        { (char *)"BImageControl_doDither", _wrap_BImageControl_doDither, METH_VARARGS },
-        { (char *)"BImageControl_getScreenInfo", _wrap_BImageControl_getScreenInfo, METH_VARARGS },
-        { (char *)"BImageControl_getDrawable", _wrap_BImageControl_getDrawable, METH_VARARGS },
-        { (char *)"BImageControl_getVisual", _wrap_BImageControl_getVisual, METH_VARARGS },
-        { (char *)"BImageControl_getBitsPerPixel", _wrap_BImageControl_getBitsPerPixel, METH_VARARGS },
-        { (char *)"BImageControl_getDepth", _wrap_BImageControl_getDepth, METH_VARARGS },
-        { (char *)"BImageControl_getColorsPerChannel", _wrap_BImageControl_getColorsPerChannel, METH_VARARGS },
-        { (char *)"BImageControl_getSqrt", _wrap_BImageControl_getSqrt, METH_VARARGS },
-        { (char *)"BImageControl_renderImage", _wrap_BImageControl_renderImage, METH_VARARGS },
-        { (char *)"BImageControl_installRootColormap", _wrap_BImageControl_installRootColormap, METH_VARARGS },
-        { (char *)"BImageControl_removeImage", _wrap_BImageControl_removeImage, METH_VARARGS },
-        { (char *)"BImageControl_getColorTables", _wrap_BImageControl_getColorTables, METH_VARARGS },
-        { (char *)"BImageControl_getXColorTable", _wrap_BImageControl_getXColorTable, METH_VARARGS },
-        { (char *)"BImageControl_getGradientBuffers", _wrap_BImageControl_getGradientBuffers, METH_VARARGS },
-        { (char *)"BImageControl_setDither", _wrap_BImageControl_setDither, METH_VARARGS },
-        { (char *)"BImageControl_setColorsPerChannel", _wrap_BImageControl_setColorsPerChannel, METH_VARARGS },
-        { (char *)"BImageControl_timeout", _wrap_BImageControl_timeout, METH_VARARGS },
-        { (char *)"BImageControl_swigregister", BImageControl_swigregister, METH_VARARGS },
-        { (char *)"new_Point", _wrap_new_Point, METH_VARARGS },
-        { (char *)"Point_setX", _wrap_Point_setX, METH_VARARGS },
-        { (char *)"Point_x", _wrap_Point_x, METH_VARARGS },
-        { (char *)"Point_setY", _wrap_Point_setY, METH_VARARGS },
-        { (char *)"Point_y", _wrap_Point_y, METH_VARARGS },
-        { (char *)"Point_setPoint", _wrap_Point_setPoint, METH_VARARGS },
-        { (char *)"delete_Point", _wrap_delete_Point, METH_VARARGS },
-        { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS },
-        { (char *)"new_OBProperty", _wrap_new_OBProperty, METH_VARARGS },
-        { (char *)"delete_OBProperty", _wrap_delete_OBProperty, METH_VARARGS },
-        { (char *)"OBProperty_set", _wrap_OBProperty_set, METH_VARARGS },
-        { (char *)"OBProperty_get", _wrap_OBProperty_get, METH_VARARGS },
-        { (char *)"OBProperty_erase", _wrap_OBProperty_erase, METH_VARARGS },
-        { (char *)"OBProperty_atom", _wrap_OBProperty_atom, METH_VARARGS },
-        { (char *)"OBProperty_swigregister", OBProperty_swigregister, METH_VARARGS },
-        { (char *)"new_Rect", _wrap_new_Rect, METH_VARARGS },
-        { (char *)"Rect_left", _wrap_Rect_left, METH_VARARGS },
-        { (char *)"Rect_top", _wrap_Rect_top, METH_VARARGS },
-        { (char *)"Rect_right", _wrap_Rect_right, METH_VARARGS },
-        { (char *)"Rect_bottom", _wrap_Rect_bottom, METH_VARARGS },
-        { (char *)"Rect_x", _wrap_Rect_x, METH_VARARGS },
-        { (char *)"Rect_y", _wrap_Rect_y, METH_VARARGS },
-        { (char *)"Rect_location", _wrap_Rect_location, METH_VARARGS },
-        { (char *)"Rect_setX", _wrap_Rect_setX, METH_VARARGS },
-        { (char *)"Rect_setY", _wrap_Rect_setY, METH_VARARGS },
-        { (char *)"Rect_setPos", _wrap_Rect_setPos, METH_VARARGS },
-        { (char *)"Rect_width", _wrap_Rect_width, METH_VARARGS },
-        { (char *)"Rect_height", _wrap_Rect_height, METH_VARARGS },
-        { (char *)"Rect_size", _wrap_Rect_size, METH_VARARGS },
-        { (char *)"Rect_setWidth", _wrap_Rect_setWidth, METH_VARARGS },
-        { (char *)"Rect_setHeight", _wrap_Rect_setHeight, METH_VARARGS },
-        { (char *)"Rect_setSize", _wrap_Rect_setSize, METH_VARARGS },
-        { (char *)"Rect_setRect", _wrap_Rect_setRect, METH_VARARGS },
-        { (char *)"Rect_setCoords", _wrap_Rect_setCoords, METH_VARARGS },
-        { (char *)"Rect_equals", _wrap_Rect_equals, METH_VARARGS },
-        { (char *)"Rect_valid", _wrap_Rect_valid, METH_VARARGS },
-        { (char *)"Rect_intersects", _wrap_Rect_intersects, METH_VARARGS },
-        { (char *)"Rect_contains", _wrap_Rect_contains, METH_VARARGS },
-        { (char *)"delete_Rect", _wrap_delete_Rect, METH_VARARGS },
-        { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS },
-        { (char *)"new_ScreenInfo", _wrap_new_ScreenInfo, METH_VARARGS },
-        { (char *)"ScreenInfo_visual", _wrap_ScreenInfo_visual, METH_VARARGS },
-        { (char *)"ScreenInfo_rootWindow", _wrap_ScreenInfo_rootWindow, METH_VARARGS },
-        { (char *)"ScreenInfo_colormap", _wrap_ScreenInfo_colormap, METH_VARARGS },
-        { (char *)"ScreenInfo_depth", _wrap_ScreenInfo_depth, METH_VARARGS },
-        { (char *)"ScreenInfo_screen", _wrap_ScreenInfo_screen, METH_VARARGS },
-        { (char *)"ScreenInfo_rect", _wrap_ScreenInfo_rect, METH_VARARGS },
-        { (char *)"ScreenInfo_width", _wrap_ScreenInfo_width, METH_VARARGS },
-        { (char *)"ScreenInfo_height", _wrap_ScreenInfo_height, METH_VARARGS },
-        { (char *)"ScreenInfo_displayString", _wrap_ScreenInfo_displayString, METH_VARARGS },
-        { (char *)"delete_ScreenInfo", _wrap_delete_ScreenInfo, METH_VARARGS },
-        { (char *)"ScreenInfo_swigregister", ScreenInfo_swigregister, METH_VARARGS },
-        { (char *)"Strut_top_set", _wrap_Strut_top_set, METH_VARARGS },
-        { (char *)"Strut_top_get", _wrap_Strut_top_get, METH_VARARGS },
-        { (char *)"Strut_bottom_set", _wrap_Strut_bottom_set, METH_VARARGS },
-        { (char *)"Strut_bottom_get", _wrap_Strut_bottom_get, METH_VARARGS },
-        { (char *)"Strut_left_set", _wrap_Strut_left_set, METH_VARARGS },
-        { (char *)"Strut_left_get", _wrap_Strut_left_get, METH_VARARGS },
-        { (char *)"Strut_right_set", _wrap_Strut_right_set, METH_VARARGS },
-        { (char *)"Strut_right_get", _wrap_Strut_right_get, METH_VARARGS },
-        { (char *)"new_Strut", _wrap_new_Strut, METH_VARARGS },
-        { (char *)"delete_Strut", _wrap_delete_Strut, METH_VARARGS },
-        { (char *)"Strut_swigregister", Strut_swigregister, METH_VARARGS },
-        { (char *)"PixmapMask_mask_set", _wrap_PixmapMask_mask_set, METH_VARARGS },
-        { (char *)"PixmapMask_mask_get", _wrap_PixmapMask_mask_get, METH_VARARGS },
-        { (char *)"PixmapMask_w_set", _wrap_PixmapMask_w_set, METH_VARARGS },
-        { (char *)"PixmapMask_w_get", _wrap_PixmapMask_w_get, METH_VARARGS },
-        { (char *)"PixmapMask_h_set", _wrap_PixmapMask_h_set, METH_VARARGS },
-        { (char *)"PixmapMask_h_get", _wrap_PixmapMask_h_get, METH_VARARGS },
-        { (char *)"new_PixmapMask", _wrap_new_PixmapMask, METH_VARARGS },
-        { (char *)"delete_PixmapMask", _wrap_delete_PixmapMask, METH_VARARGS },
-        { (char *)"PixmapMask_swigregister", PixmapMask_swigregister, METH_VARARGS },
-        { (char *)"Style_image_control_set", _wrap_Style_image_control_set, METH_VARARGS },
-        { (char *)"Style_image_control_get", _wrap_Style_image_control_get, METH_VARARGS },
-        { (char *)"Style_l_text_focus_set", _wrap_Style_l_text_focus_set, METH_VARARGS },
-        { (char *)"Style_l_text_focus_get", _wrap_Style_l_text_focus_get, METH_VARARGS },
-        { (char *)"Style_l_text_unfocus_set", _wrap_Style_l_text_unfocus_set, METH_VARARGS },
-        { (char *)"Style_l_text_unfocus_get", _wrap_Style_l_text_unfocus_get, METH_VARARGS },
-        { (char *)"Style_b_pic_focus_set", _wrap_Style_b_pic_focus_set, METH_VARARGS },
-        { (char *)"Style_b_pic_focus_get", _wrap_Style_b_pic_focus_get, METH_VARARGS },
-        { (char *)"Style_b_pic_unfocus_set", _wrap_Style_b_pic_unfocus_set, METH_VARARGS },
-        { (char *)"Style_b_pic_unfocus_get", _wrap_Style_b_pic_unfocus_get, METH_VARARGS },
-        { (char *)"Style_border_color_set", _wrap_Style_border_color_set, METH_VARARGS },
-        { (char *)"Style_border_color_get", _wrap_Style_border_color_get, METH_VARARGS },
-        { (char *)"Style_font_set", _wrap_Style_font_set, METH_VARARGS },
-        { (char *)"Style_font_get", _wrap_Style_font_get, METH_VARARGS },
-        { (char *)"Style_f_focus_set", _wrap_Style_f_focus_set, METH_VARARGS },
-        { (char *)"Style_f_focus_get", _wrap_Style_f_focus_get, METH_VARARGS },
-        { (char *)"Style_f_unfocus_set", _wrap_Style_f_unfocus_set, METH_VARARGS },
-        { (char *)"Style_f_unfocus_get", _wrap_Style_f_unfocus_get, METH_VARARGS },
-        { (char *)"Style_t_focus_set", _wrap_Style_t_focus_set, METH_VARARGS },
-        { (char *)"Style_t_focus_get", _wrap_Style_t_focus_get, METH_VARARGS },
-        { (char *)"Style_t_unfocus_set", _wrap_Style_t_unfocus_set, METH_VARARGS },
-        { (char *)"Style_t_unfocus_get", _wrap_Style_t_unfocus_get, METH_VARARGS },
-        { (char *)"Style_l_focus_set", _wrap_Style_l_focus_set, METH_VARARGS },
-        { (char *)"Style_l_focus_get", _wrap_Style_l_focus_get, METH_VARARGS },
-        { (char *)"Style_l_unfocus_set", _wrap_Style_l_unfocus_set, METH_VARARGS },
-        { (char *)"Style_l_unfocus_get", _wrap_Style_l_unfocus_get, METH_VARARGS },
-        { (char *)"Style_h_focus_set", _wrap_Style_h_focus_set, METH_VARARGS },
-        { (char *)"Style_h_focus_get", _wrap_Style_h_focus_get, METH_VARARGS },
-        { (char *)"Style_h_unfocus_set", _wrap_Style_h_unfocus_set, METH_VARARGS },
-        { (char *)"Style_h_unfocus_get", _wrap_Style_h_unfocus_get, METH_VARARGS },
-        { (char *)"Style_b_focus_set", _wrap_Style_b_focus_set, METH_VARARGS },
-        { (char *)"Style_b_focus_get", _wrap_Style_b_focus_get, METH_VARARGS },
-        { (char *)"Style_b_unfocus_set", _wrap_Style_b_unfocus_set, METH_VARARGS },
-        { (char *)"Style_b_unfocus_get", _wrap_Style_b_unfocus_get, METH_VARARGS },
-        { (char *)"Style_b_pressed_focus_set", _wrap_Style_b_pressed_focus_set, METH_VARARGS },
-        { (char *)"Style_b_pressed_focus_get", _wrap_Style_b_pressed_focus_get, METH_VARARGS },
-        { (char *)"Style_b_pressed_unfocus_set", _wrap_Style_b_pressed_unfocus_set, METH_VARARGS },
-        { (char *)"Style_b_pressed_unfocus_get", _wrap_Style_b_pressed_unfocus_get, METH_VARARGS },
-        { (char *)"Style_g_focus_set", _wrap_Style_g_focus_set, METH_VARARGS },
-        { (char *)"Style_g_focus_get", _wrap_Style_g_focus_get, METH_VARARGS },
-        { (char *)"Style_g_unfocus_set", _wrap_Style_g_unfocus_set, METH_VARARGS },
-        { (char *)"Style_g_unfocus_get", _wrap_Style_g_unfocus_get, METH_VARARGS },
-        { (char *)"Style_close_button_set", _wrap_Style_close_button_set, METH_VARARGS },
-        { (char *)"Style_close_button_get", _wrap_Style_close_button_get, METH_VARARGS },
-        { (char *)"Style_max_button_set", _wrap_Style_max_button_set, METH_VARARGS },
-        { (char *)"Style_max_button_get", _wrap_Style_max_button_get, METH_VARARGS },
-        { (char *)"Style_icon_button_set", _wrap_Style_icon_button_set, METH_VARARGS },
-        { (char *)"Style_icon_button_get", _wrap_Style_icon_button_get, METH_VARARGS },
-        { (char *)"Style_stick_button_set", _wrap_Style_stick_button_set, METH_VARARGS },
-        { (char *)"Style_stick_button_get", _wrap_Style_stick_button_get, METH_VARARGS },
-        { (char *)"Style_justify_set", _wrap_Style_justify_set, METH_VARARGS },
-        { (char *)"Style_justify_get", _wrap_Style_justify_get, METH_VARARGS },
-        { (char *)"Style_bullet_type_set", _wrap_Style_bullet_type_set, METH_VARARGS },
-        { (char *)"Style_bullet_type_get", _wrap_Style_bullet_type_get, METH_VARARGS },
-        { (char *)"Style_handle_width_set", _wrap_Style_handle_width_set, METH_VARARGS },
-        { (char *)"Style_handle_width_get", _wrap_Style_handle_width_get, METH_VARARGS },
-        { (char *)"Style_bevel_width_set", _wrap_Style_bevel_width_set, METH_VARARGS },
-        { (char *)"Style_bevel_width_get", _wrap_Style_bevel_width_get, METH_VARARGS },
-        { (char *)"Style_frame_width_set", _wrap_Style_frame_width_set, METH_VARARGS },
-        { (char *)"Style_frame_width_get", _wrap_Style_frame_width_get, METH_VARARGS },
-        { (char *)"Style_border_width_set", _wrap_Style_border_width_set, METH_VARARGS },
-        { (char *)"Style_border_width_get", _wrap_Style_border_width_get, METH_VARARGS },
-        { (char *)"Style_screen_number_set", _wrap_Style_screen_number_set, METH_VARARGS },
-        { (char *)"Style_screen_number_get", _wrap_Style_screen_number_get, METH_VARARGS },
-        { (char *)"Style_shadow_fonts_set", _wrap_Style_shadow_fonts_set, METH_VARARGS },
-        { (char *)"Style_shadow_fonts_get", _wrap_Style_shadow_fonts_get, METH_VARARGS },
-        { (char *)"Style_aa_fonts_set", _wrap_Style_aa_fonts_set, METH_VARARGS },
-        { (char *)"Style_aa_fonts_get", _wrap_Style_aa_fonts_get, METH_VARARGS },
-        { (char *)"new_Style", _wrap_new_Style, METH_VARARGS },
-        { (char *)"delete_Style", _wrap_delete_Style, METH_VARARGS },
-        { (char *)"Style_readDatabaseMask", _wrap_Style_readDatabaseMask, METH_VARARGS },
-        { (char *)"Style_readDatabaseTexture", _wrap_Style_readDatabaseTexture, METH_VARARGS },
-        { (char *)"Style_readDatabaseColor", _wrap_Style_readDatabaseColor, METH_VARARGS },
-        { (char *)"Style_readDatabaseFont", _wrap_Style_readDatabaseFont, METH_VARARGS },
-        { (char *)"Style_load", _wrap_Style_load, METH_VARARGS },
-        { (char *)"Style_getCloseButtonMask", _wrap_Style_getCloseButtonMask, METH_VARARGS },
-        { (char *)"Style_getMaximizeButtonMask", _wrap_Style_getMaximizeButtonMask, METH_VARARGS },
-        { (char *)"Style_getIconifyButtonMask", _wrap_Style_getIconifyButtonMask, METH_VARARGS },
-        { (char *)"Style_getStickyButtonMask", _wrap_Style_getStickyButtonMask, METH_VARARGS },
-        { (char *)"Style_getTextFocus", _wrap_Style_getTextFocus, METH_VARARGS },
-        { (char *)"Style_getTextUnfocus", _wrap_Style_getTextUnfocus, METH_VARARGS },
-        { (char *)"Style_getButtonPicFocus", _wrap_Style_getButtonPicFocus, METH_VARARGS },
-        { (char *)"Style_getButtonPicUnfocus", _wrap_Style_getButtonPicUnfocus, METH_VARARGS },
-        { (char *)"Style_getTitleFocus", _wrap_Style_getTitleFocus, METH_VARARGS },
-        { (char *)"Style_getTitleUnfocus", _wrap_Style_getTitleUnfocus, METH_VARARGS },
-        { (char *)"Style_getLabelFocus", _wrap_Style_getLabelFocus, METH_VARARGS },
-        { (char *)"Style_getLabelUnfocus", _wrap_Style_getLabelUnfocus, METH_VARARGS },
-        { (char *)"Style_getHandleFocus", _wrap_Style_getHandleFocus, METH_VARARGS },
-        { (char *)"Style_getHandleUnfocus", _wrap_Style_getHandleUnfocus, METH_VARARGS },
-        { (char *)"Style_getButtonFocus", _wrap_Style_getButtonFocus, METH_VARARGS },
-        { (char *)"Style_getButtonUnfocus", _wrap_Style_getButtonUnfocus, METH_VARARGS },
-        { (char *)"Style_getButtonPressedFocus", _wrap_Style_getButtonPressedFocus, METH_VARARGS },
-        { (char *)"Style_getButtonPressedUnfocus", _wrap_Style_getButtonPressedUnfocus, METH_VARARGS },
-        { (char *)"Style_getGripFocus", _wrap_Style_getGripFocus, METH_VARARGS },
-        { (char *)"Style_getGripUnfocus", _wrap_Style_getGripUnfocus, METH_VARARGS },
-        { (char *)"Style_getHandleWidth", _wrap_Style_getHandleWidth, METH_VARARGS },
-        { (char *)"Style_getBevelWidth", _wrap_Style_getBevelWidth, METH_VARARGS },
-        { (char *)"Style_getFrameWidth", _wrap_Style_getFrameWidth, METH_VARARGS },
-        { (char *)"Style_getBorderWidth", _wrap_Style_getBorderWidth, METH_VARARGS },
-        { (char *)"Style_getFont", _wrap_Style_getFont, METH_VARARGS },
-        { (char *)"Style_setShadowFonts", _wrap_Style_setShadowFonts, METH_VARARGS },
-        { (char *)"Style_hasShadowFonts", _wrap_Style_hasShadowFonts, METH_VARARGS },
-        { (char *)"Style_setAAFonts", _wrap_Style_setAAFonts, METH_VARARGS },
-        { (char *)"Style_hasAAFonts", _wrap_Style_hasAAFonts, METH_VARARGS },
-        { (char *)"Style_textJustify", _wrap_Style_textJustify, METH_VARARGS },
-        { (char *)"Style_bulletType", _wrap_Style_bulletType, METH_VARARGS },
-        { (char *)"Style_getBorderColor", _wrap_Style_getBorderColor, METH_VARARGS },
-        { (char *)"Style_getFrameFocus", _wrap_Style_getFrameFocus, METH_VARARGS },
-        { (char *)"Style_getFrameUnfocus", _wrap_Style_getFrameUnfocus, METH_VARARGS },
-        { (char *)"Style_setImageControl", _wrap_Style_setImageControl, METH_VARARGS },
-        { (char *)"Style_getScreen", _wrap_Style_getScreen, METH_VARARGS },
-        { (char *)"Style_swigregister", Style_swigregister, METH_VARARGS },
-        { (char *)"new_BTexture", _wrap_new_BTexture, METH_VARARGS },
-        { (char *)"BTexture_setColor", _wrap_BTexture_setColor, METH_VARARGS },
-        { (char *)"BTexture_setColorTo", _wrap_BTexture_setColorTo, METH_VARARGS },
-        { (char *)"BTexture_setBorderColor", _wrap_BTexture_setBorderColor, METH_VARARGS },
-        { (char *)"BTexture_color", _wrap_BTexture_color, METH_VARARGS },
-        { (char *)"BTexture_colorTo", _wrap_BTexture_colorTo, METH_VARARGS },
-        { (char *)"BTexture_lightColor", _wrap_BTexture_lightColor, METH_VARARGS },
-        { (char *)"BTexture_shadowColor", _wrap_BTexture_shadowColor, METH_VARARGS },
-        { (char *)"BTexture_borderColor", _wrap_BTexture_borderColor, METH_VARARGS },
-        { (char *)"BTexture_texture", _wrap_BTexture_texture, METH_VARARGS },
-        { (char *)"BTexture_setTexture", _wrap_BTexture_setTexture, METH_VARARGS },
-        { (char *)"BTexture_addTexture", _wrap_BTexture_addTexture, METH_VARARGS },
-        { (char *)"BTexture_equals", _wrap_BTexture_equals, METH_VARARGS },
-        { (char *)"BTexture_screen", _wrap_BTexture_screen, METH_VARARGS },
-        { (char *)"BTexture_setScreen", _wrap_BTexture_setScreen, METH_VARARGS },
-        { (char *)"BTexture_setImageControl", _wrap_BTexture_setImageControl, METH_VARARGS },
-        { (char *)"BTexture_description", _wrap_BTexture_description, METH_VARARGS },
-        { (char *)"BTexture_setDescription", _wrap_BTexture_setDescription, METH_VARARGS },
-        { (char *)"BTexture_render", _wrap_BTexture_render, METH_VARARGS },
-        { (char *)"delete_BTexture", _wrap_delete_BTexture, METH_VARARGS },
-        { (char *)"BTexture_swigregister", BTexture_swigregister, METH_VARARGS },
-        { (char *)"new_OBTimer", _wrap_new_OBTimer, METH_VARARGS },
-        { (char *)"delete_OBTimer", _wrap_delete_OBTimer, METH_VARARGS },
-        { (char *)"OBTimer_fire", _wrap_OBTimer_fire, METH_VARARGS },
-        { (char *)"OBTimer_timing", _wrap_OBTimer_timing, METH_VARARGS },
-        { (char *)"OBTimer_recurring", _wrap_OBTimer_recurring, METH_VARARGS },
-        { (char *)"OBTimer_timeout", _wrap_OBTimer_timeout, METH_VARARGS },
-        { (char *)"OBTimer_startTime", _wrap_OBTimer_startTime, METH_VARARGS },
-        { (char *)"OBTimer_remainingTime", _wrap_OBTimer_remainingTime, METH_VARARGS },
-        { (char *)"OBTimer_shouldFire", _wrap_OBTimer_shouldFire, METH_VARARGS },
-        { (char *)"OBTimer_endTime", _wrap_OBTimer_endTime, METH_VARARGS },
-        { (char *)"OBTimer_setRecurring", _wrap_OBTimer_setRecurring, METH_VARARGS },
-        { (char *)"OBTimer_setTimeout", _wrap_OBTimer_setTimeout, METH_VARARGS },
-        { (char *)"OBTimer_start", _wrap_OBTimer_start, METH_VARARGS },
-        { (char *)"OBTimer_stop", _wrap_OBTimer_stop, METH_VARARGS },
-        { (char *)"OBTimer_swigregister", OBTimer_swigregister, METH_VARARGS },
-        { (char *)"new_OBTimerQueueManager", _wrap_new_OBTimerQueueManager, METH_VARARGS },
-        { (char *)"delete_OBTimerQueueManager", _wrap_delete_OBTimerQueueManager, METH_VARARGS },
-        { (char *)"OBTimerQueueManager_fire", _wrap_OBTimerQueueManager_fire, METH_VARARGS },
-        { (char *)"OBTimerQueueManager_addTimer", _wrap_OBTimerQueueManager_addTimer, METH_VARARGS },
-        { (char *)"OBTimerQueueManager_removeTimer", _wrap_OBTimerQueueManager_removeTimer, METH_VARARGS },
-        { (char *)"OBTimerQueueManager_swigregister", OBTimerQueueManager_swigregister, METH_VARARGS },
-        { (char *)"expandTilde", _wrap_expandTilde, METH_VARARGS },
-        { (char *)"bexec", _wrap_bexec, METH_VARARGS },
-        { (char *)"textPropertyToString", _wrap_textPropertyToString, METH_VARARGS },
-        { (char *)"itostring_unsigned_long", _wrap_itostring_unsigned_long, METH_VARARGS },
-        { (char *)"itostring_long", _wrap_itostring_long, METH_VARARGS },
-        { (char *)"itostring_unsigned", _wrap_itostring_unsigned, METH_VARARGS },
-        { (char *)"itostring", _wrap_itostring, METH_VARARGS },
-        { (char *)"basename", _wrap_basename, METH_VARARGS },
-        { NULL, NULL }
-};
-
-
-/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
-
-static void *_p_otk__OtkButtonTo_p_otk__OtkFocusWidget(void *x) {
-    return (void *)((otk::OtkFocusWidget *) (otk::OtkFocusLabel *) ((otk::OtkButton *) x));
-}
-static void *_p_otk__OtkFocusLabelTo_p_otk__OtkFocusWidget(void *x) {
-    return (void *)((otk::OtkFocusWidget *)  ((otk::OtkFocusLabel *) x));
-}
-static void *_p_otk__OtkButtonTo_p_otk__OtkWidget(void *x) {
-    return (void *)((otk::OtkWidget *) (otk::OtkFocusWidget *)(otk::OtkFocusLabel *) ((otk::OtkButton *) x));
-}
-static void *_p_otk__OtkAppWidgetTo_p_otk__OtkWidget(void *x) {
-    return (void *)((otk::OtkWidget *)  ((otk::OtkAppWidget *) x));
-}
-static void *_p_otk__OtkFocusWidgetTo_p_otk__OtkWidget(void *x) {
-    return (void *)((otk::OtkWidget *)  ((otk::OtkFocusWidget *) x));
-}
-static void *_p_otk__OtkFocusLabelTo_p_otk__OtkWidget(void *x) {
-    return (void *)((otk::OtkWidget *) (otk::OtkFocusWidget *) ((otk::OtkFocusLabel *) x));
-}
-static void *_p_otk__OtkButtonTo_p_otk__OtkEventHandler(void *x) {
-    return (void *)((otk::OtkEventHandler *) (otk::OtkWidget *)(otk::OtkFocusWidget *)(otk::OtkFocusLabel *) ((otk::OtkButton *) x));
-}
-static void *_p_otk__OtkAppWidgetTo_p_otk__OtkEventHandler(void *x) {
-    return (void *)((otk::OtkEventHandler *) (otk::OtkWidget *) ((otk::OtkAppWidget *) x));
-}
-static void *_p_otk__OtkWidgetTo_p_otk__OtkEventHandler(void *x) {
-    return (void *)((otk::OtkEventHandler *)  ((otk::OtkWidget *) x));
-}
-static void *_p_otk__OtkFocusWidgetTo_p_otk__OtkEventHandler(void *x) {
-    return (void *)((otk::OtkEventHandler *) (otk::OtkWidget *) ((otk::OtkFocusWidget *) x));
-}
-static void *_p_otk__OtkFocusLabelTo_p_otk__OtkEventHandler(void *x) {
-    return (void *)((otk::OtkEventHandler *) (otk::OtkWidget *)(otk::OtkFocusWidget *) ((otk::OtkFocusLabel *) x));
-}
-static void *_p_otk__OtkButtonTo_p_otk__OtkFocusLabel(void *x) {
-    return (void *)((otk::OtkFocusLabel *)  ((otk::OtkButton *) x));
-}
-static void *_p_otk__OtkApplicationTo_p_otk__OtkEventDispatcher(void *x) {
-    return (void *)((otk::OtkEventDispatcher *)  ((otk::OtkApplication *) x));
-}
-static swig_type_info _swigt__p_otk__OBProperty__StringVect[] = {{"_p_otk__OBProperty__StringVect", 0, "otk::OBProperty::StringVect *", 0},{"_p_otk__OBProperty__StringVect"},{0}};
-static swig_type_info _swigt__p_otk__BGCCache[] = {{"_p_otk__BGCCache", 0, "otk::BGCCache *", 0},{"_p_otk__BGCCache"},{0}};
-static swig_type_info _swigt__p_otk__BColor[] = {{"_p_otk__BColor", 0, "otk::BColor *", 0},{"_p_otk__BColor"},{0}};
-static swig_type_info _swigt__p_XFontStruct[] = {{"_p_XFontStruct", 0, "XFontStruct *", 0},{"_p_XFontStruct"},{0}};
-static swig_type_info _swigt__p_otk__Configuration[] = {{"_p_otk__Configuration", 0, "otk::Configuration *", 0},{"_p_otk__Configuration"},{0}};
-static swig_type_info _swigt__p_otk__PixmapMask[] = {{"_p_otk__PixmapMask", 0, "otk::PixmapMask *", 0},{"_p_otk__PixmapMask"},{0}};
-static swig_type_info _swigt__p_otk__PointerAssassin[] = {{"_p_otk__PointerAssassin", 0, "otk::PointerAssassin *", 0},{"_p_otk__PointerAssassin"},{0}};
-static swig_type_info _swigt__p_otk__BImage[] = {{"_p_otk__BImage", 0, "otk::BImage *", 0},{"_p_otk__BImage"},{0}};
-static swig_type_info _swigt__p_otk__OBTimer[] = {{"_p_otk__OBTimer", 0, "otk::OBTimer *", 0},{"_p_otk__OBTimer"},{0}};
-static swig_type_info _swigt__p_otk__OtkWidget__OtkWidgetList[] = {{"_p_otk__OtkWidget__OtkWidgetList", 0, "otk::OtkWidget::OtkWidgetList const &", 0},{"_p_otk__OtkWidget__OtkWidgetList"},{0}};
-static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}};
-static swig_type_info _swigt__p_otk__OBDisplay[] = {{"_p_otk__OBDisplay", 0, "otk::OBDisplay *", 0},{"_p_otk__OBDisplay"},{0}};
-static swig_type_info _swigt__p_Display[] = {{"_p_Display", 0, "Display *", 0},{"_p_Display"},{0}};
-static swig_type_info _swigt__p_p_XColor[] = {{"_p_p_XColor", 0, "XColor **", 0},{"_p_p_XColor"},{0}};
-static swig_type_info _swigt__p_XReparentEvent[] = {{"_p_XReparentEvent", 0, "XReparentEvent *", 0},{"_p_XReparentEvent"},{0}};
-static swig_type_info _swigt__p_otk__BPen[] = {{"_p_otk__BPen", 0, "otk::BPen *", 0},{"_p_otk__BPen"},{0}};
-static swig_type_info _swigt__p_otk__BImageControl[] = {{"_p_otk__BImageControl", 0, "otk::BImageControl *", 0},{"_p_otk__BImageControl"},{0}};
-static swig_type_info _swigt__p_otk__OtkButton[] = {{"_p_otk__OtkButton", 0, "otk::OtkButton *", 0},{"_p_otk__OtkButton"},{0}};
-static swig_type_info _swigt__p_otk__Rect[] = {{"_p_otk__Rect", 0, "otk::Rect *", 0},{"_p_otk__Rect"},{0}};
-static swig_type_info _swigt__p_otk__Style[] = {{"_p_otk__Style", 0, "otk::Style *", 0},{"_p_otk__Style"},{0}};
-static swig_type_info _swigt__p_XSelectionClearEvent[] = {{"_p_XSelectionClearEvent", 0, "XSelectionClearEvent *", 0},{"_p_XSelectionClearEvent"},{0}};
-static swig_type_info _swigt__p_Visual[] = {{"_p_Visual", 0, "Visual *", 0},{"_p_Visual"},{0}};
-static swig_type_info _swigt__p_timeval[] = {{"_p_timeval", 0, "timeval *", 0},{"_p_timeval"},{0}};
-static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
-static swig_type_info _swigt__p_otk__Strut[] = {{"_p_otk__Strut", 0, "otk::Strut *", 0},{"_p_otk__Strut"},{0}};
-static swig_type_info _swigt__p_otk__OtkApplication[] = {{"_p_otk__OtkApplication", 0, "otk::OtkApplication *", 0},{"_p_otk__OtkApplication"},{0}};
-static swig_type_info _swigt__p_XRectangle[] = {{"_p_XRectangle", 0, "XRectangle *", 0},{"_p_XRectangle"},{0}};
-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}};
-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}};
-static swig_type_info _swigt__p_XGravityEvent[] = {{"_p_XGravityEvent", 0, "XGravityEvent *", 0},{"_p_XGravityEvent"},{0}};
-static swig_type_info _swigt__p_XVisibilityEvent[] = {{"_p_XVisibilityEvent", 0, "XVisibilityEvent *", 0},{"_p_XVisibilityEvent"},{0}};
-static swig_type_info _swigt__p_XPropertyEvent[] = {{"_p_XPropertyEvent", 0, "XPropertyEvent *", 0},{"_p_XPropertyEvent"},{0}};
-static swig_type_info _swigt__p_otk__BGCCacheContext[] = {{"_p_otk__BGCCacheContext", 0, "otk::BGCCacheContext *", 0},{"_p_otk__BGCCacheContext"},{0}};
-static swig_type_info _swigt__p_XCreateWindowEvent[] = {{"_p_XCreateWindowEvent", 0, "XCreateWindowEvent *", 0},{"_p_XCreateWindowEvent"},{0}};
-static swig_type_info _swigt__p_XDestroyWindowEvent[] = {{"_p_XDestroyWindowEvent", 0, "XDestroyWindowEvent *", 0},{"_p_XDestroyWindowEvent"},{0}};
-static swig_type_info _swigt__p_XCirculateEvent[] = {{"_p_XCirculateEvent", 0, "XCirculateEvent *", 0},{"_p_XCirculateEvent"},{0}};
-static swig_type_info _swigt__p_XConfigureEvent[] = {{"_p_XConfigureEvent", 0, "XConfigureEvent *", 0},{"_p_XConfigureEvent"},{0}};
-static swig_type_info _swigt__p_otk__OBProperty[] = {{"_p_otk__OBProperty", 0, "otk::OBProperty *", 0},{"_p_otk__OBProperty"},{0}};
-static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}};
-static swig_type_info _swigt__p_XTextProperty[] = {{"_p_XTextProperty", 0, "XTextProperty *", 0},{"_p_XTextProperty"},{0}};
-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}};
-static swig_type_info _swigt__p_XCirculateRequestEvent[] = {{"_p_XCirculateRequestEvent", 0, "XCirculateRequestEvent *", 0},{"_p_XCirculateRequestEvent"},{0}};
-static swig_type_info _swigt__p_XConfigureRequestEvent[] = {{"_p_XConfigureRequestEvent", 0, "XConfigureRequestEvent *", 0},{"_p_XConfigureRequestEvent"},{0}};
-static swig_type_info _swigt__p_XMapRequestEvent[] = {{"_p_XMapRequestEvent", 0, "XMapRequestEvent *", 0},{"_p_XMapRequestEvent"},{0}};
-static swig_type_info _swigt__p_XResizeRequestEvent[] = {{"_p_XResizeRequestEvent", 0, "XResizeRequestEvent *", 0},{"_p_XResizeRequestEvent"},{0}};
-static swig_type_info _swigt__p_XSelectionRequestEvent[] = {{"_p_XSelectionRequestEvent", 0, "XSelectionRequestEvent *", 0},{"_p_XSelectionRequestEvent"},{0}};
-static swig_type_info _swigt__otk__OBTimeoutHandler[] = {{"_otk__OBTimeoutHandler", 0, "otk::OBTimeoutHandler", 0},{"_otk__OBTimeoutHandler"},{0}};
-static swig_type_info _swigt__p_XftDraw[] = {{"_p_XftDraw", 0, "XftDraw *", 0},{"_p_XftDraw"},{0}};
-static swig_type_info _swigt__p_otk__ScreenInfo[] = {{"_p_otk__ScreenInfo", 0, "otk::ScreenInfo *", 0},{"_p_otk__ScreenInfo"},{0}};
-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}};
-static swig_type_info _swigt__p_otk__BTexture[] = {{"_p_otk__BTexture", 0, "otk::BTexture *", 0},{"_p_otk__BTexture"},{0}};
-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}};
-static swig_type_info _swigt__p_otk__BFont[] = {{"_p_otk__BFont", 0, "otk::BFont *", 0},{"_p_otk__BFont"},{0}};
-static swig_type_info _swigt__p_otk__Point[] = {{"_p_otk__Point", 0, "otk::Point *", 0},{"_p_otk__Point"},{0}};
-static swig_type_info _swigt__p_p_char[] = {{"_p_p_char", 0, "char **", 0},{"_p_p_char"},{0}};
-static swig_type_info _swigt__p_XMotionEvent[] = {{"_p_XMotionEvent", 0, "XMotionEvent *", 0},{"_p_XMotionEvent"},{0}};
-static swig_type_info _swigt__p_XButtonEvent[] = {{"_p_XButtonEvent", 0, "XButtonEvent *", 0},{"_p_XButtonEvent"},{0}};
-static swig_type_info _swigt__p_XSelectionEvent[] = {{"_p_XSelectionEvent", 0, "XSelectionEvent *", 0},{"_p_XSelectionEvent"},{0}};
-static swig_type_info _swigt__p_GC[] = {{"_p_GC", 0, "GC *", 0},{"_p_GC"},{0}};
-static swig_type_info _swigt__p_otk__OBTimerQueueManager[] = {{"_p_otk__OBTimerQueueManager", 0, "otk::OBTimerQueueManager *", 0},{"_p_otk__OBTimerQueueManager"},{0}};
-static swig_type_info _swigt__p_otk__OtkAppWidget[] = {{"_p_otk__OtkAppWidget", 0, "otk::OtkAppWidget *", 0},{"_p_otk__OtkAppWidget"},{0}};
-static swig_type_info _swigt__p_XKeyEvent[] = {{"_p_XKeyEvent", 0, "XKeyEvent *", 0},{"_p_XKeyEvent"},{0}};
-static swig_type_info _swigt__p_p_unsigned_long[] = {{"_p_p_unsigned_long", 0, "unsigned long **", 0},{"_p_p_unsigned_long"},{0}};
-static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *", 0},{"_p_unsigned_long"},{0}};
-static swig_type_info _swigt__p_XEvent[] = {{"_p_XEvent", 0, "XEvent *", 0},{"_p_XEvent"},{0}};
-static swig_type_info _swigt__p_std__string[] = {{"_p_std__string", 0, "std::string *", 0},{"_p_std__string"},{0}};
-static swig_type_info _swigt__p_XCrossingEvent[] = {{"_p_XCrossingEvent", 0, "XCrossingEvent *", 0},{"_p_XCrossingEvent"},{0}};
-static swig_type_info _swigt__p_XMappingEvent[] = {{"_p_XMappingEvent", 0, "XMappingEvent *", 0},{"_p_XMappingEvent"},{0}};
-static swig_type_info _swigt__p_otk__BGCCacheItem[] = {{"_p_otk__BGCCacheItem", 0, "otk::BGCCacheItem *", 0},{"_p_otk__BGCCacheItem"},{0}};
-static swig_type_info _swigt__p_p_unsigned_int[] = {{"_p_p_unsigned_int", 0, "unsigned int **", 0},{"_p_p_unsigned_int"},{0}};
-static swig_type_info _swigt__p_unsigned_int[] = {{"_p_unsigned_int", 0, "unsigned int *", 0},{"_p_unsigned_int"},{0}};
-static swig_type_info _swigt__p_p_unsigned_char[] = {{"_p_p_unsigned_char", 0, "unsigned char **", 0},{"_p_p_unsigned_char"},{0}};
-static swig_type_info _swigt__p_XClientMessageEvent[] = {{"_p_XClientMessageEvent", 0, "XClientMessageEvent *", 0},{"_p_XClientMessageEvent"},{0}};
-static swig_type_info _swigt__p_XGraphicsExposeEvent[] = {{"_p_XGraphicsExposeEvent", 0, "XGraphicsExposeEvent *", 0},{"_p_XGraphicsExposeEvent"},{0}};
-static swig_type_info _swigt__p_XExposeEvent[] = {{"_p_XExposeEvent", 0, "XExposeEvent *", 0},{"_p_XExposeEvent"},{0}};
-static swig_type_info _swigt__p_XFocusChangeEvent[] = {{"_p_XFocusChangeEvent", 0, "XFocusChangeEvent *", 0},{"_p_XFocusChangeEvent"},{0}};
-static swig_type_info _swigt__p_XNoExposeEvent[] = {{"_p_XNoExposeEvent", 0, "XNoExposeEvent *", 0},{"_p_XNoExposeEvent"},{0}};
-static swig_type_info _swigt__p_XMapEvent[] = {{"_p_XMapEvent", 0, "XMapEvent *", 0},{"_p_XMapEvent"},{0}};
-static swig_type_info _swigt__p_XUnmapEvent[] = {{"_p_XUnmapEvent", 0, "XUnmapEvent *", 0},{"_p_XUnmapEvent"},{0}};
-static swig_type_info _swigt__p_XColormapEvent[] = {{"_p_XColormapEvent", 0, "XColormapEvent *", 0},{"_p_XColormapEvent"},{0}};
-
-static swig_type_info *swig_types_initial[] = {
-_swigt__p_otk__OBProperty__StringVect, 
-_swigt__p_otk__BGCCache, 
-_swigt__p_otk__BColor, 
-_swigt__p_XFontStruct, 
-_swigt__p_otk__Configuration, 
-_swigt__p_otk__PixmapMask, 
-_swigt__p_otk__PointerAssassin, 
-_swigt__p_otk__BImage, 
-_swigt__p_otk__OBTimer, 
-_swigt__p_otk__OtkWidget__OtkWidgetList, 
-_swigt__p_bool, 
-_swigt__p_otk__OBDisplay, 
-_swigt__p_Display, 
-_swigt__p_p_XColor, 
-_swigt__p_XReparentEvent, 
-_swigt__p_otk__BPen, 
-_swigt__p_otk__BImageControl, 
-_swigt__p_otk__OtkButton, 
-_swigt__p_otk__Rect, 
-_swigt__p_otk__Style, 
-_swigt__p_XSelectionClearEvent, 
-_swigt__p_Visual, 
-_swigt__p_timeval, 
-_swigt__p_int, 
-_swigt__p_otk__Strut, 
-_swigt__p_otk__OtkApplication, 
-_swigt__p_XRectangle, 
-_swigt__p_otk__OtkFocusWidget, 
-_swigt__p_otk__OtkWidget, 
-_swigt__p_XGravityEvent, 
-_swigt__p_XVisibilityEvent, 
-_swigt__p_XPropertyEvent, 
-_swigt__p_otk__BGCCacheContext, 
-_swigt__p_XCreateWindowEvent, 
-_swigt__p_XDestroyWindowEvent, 
-_swigt__p_XCirculateEvent, 
-_swigt__p_XConfigureEvent, 
-_swigt__p_otk__OBProperty, 
-_swigt__p_long, 
-_swigt__p_XTextProperty, 
-_swigt__p_otk__OtkEventHandler, 
-_swigt__p_XCirculateRequestEvent, 
-_swigt__p_XConfigureRequestEvent, 
-_swigt__p_XMapRequestEvent, 
-_swigt__p_XResizeRequestEvent, 
-_swigt__p_XSelectionRequestEvent, 
-_swigt__otk__OBTimeoutHandler, 
-_swigt__p_XftDraw, 
-_swigt__p_otk__ScreenInfo, 
-_swigt__p_otk__OtkFocusLabel, 
-_swigt__p_otk__BTexture, 
-_swigt__p_otk__OtkEventDispatcher, 
-_swigt__p_otk__BFont, 
-_swigt__p_otk__Point, 
-_swigt__p_p_char, 
-_swigt__p_XMotionEvent, 
-_swigt__p_XButtonEvent, 
-_swigt__p_XSelectionEvent, 
-_swigt__p_GC, 
-_swigt__p_otk__OBTimerQueueManager, 
-_swigt__p_otk__OtkAppWidget, 
-_swigt__p_XKeyEvent, 
-_swigt__p_p_unsigned_long, 
-_swigt__p_unsigned_long, 
-_swigt__p_XEvent, 
-_swigt__p_std__string, 
-_swigt__p_XCrossingEvent, 
-_swigt__p_XMappingEvent, 
-_swigt__p_otk__BGCCacheItem, 
-_swigt__p_p_unsigned_int, 
-_swigt__p_unsigned_int, 
-_swigt__p_p_unsigned_char, 
-_swigt__p_XClientMessageEvent, 
-_swigt__p_XGraphicsExposeEvent, 
-_swigt__p_XExposeEvent, 
-_swigt__p_XFocusChangeEvent, 
-_swigt__p_XNoExposeEvent, 
-_swigt__p_XMapEvent, 
-_swigt__p_XUnmapEvent, 
-_swigt__p_XColormapEvent, 
-0
-};
-
-
-/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
-
-static swig_const_info swig_const_table[] = {
-{ SWIG_PY_INT,     (char *)"OtkWidget_Horizontal", (long) otk::OtkWidget::Horizontal, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OtkWidget_Vertical", (long) otk::OtkWidget::Vertical, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_Atom_Cardinal", (long) otk::OBProperty::Atom_Cardinal, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_Atom_Window", (long) otk::OBProperty::Atom_Window, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_Atom_Pixmap", (long) otk::OBProperty::Atom_Pixmap, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_Atom_Atom", (long) otk::OBProperty::Atom_Atom, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_Atom_String", (long) otk::OBProperty::Atom_String, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_Atom_Utf8", (long) otk::OBProperty::Atom_Utf8, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_openbox_pid", (long) otk::OBProperty::openbox_pid, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_wm_colormap_windows", (long) otk::OBProperty::wm_colormap_windows, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_wm_protocols", (long) otk::OBProperty::wm_protocols, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_wm_state", (long) otk::OBProperty::wm_state, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_wm_delete_window", (long) otk::OBProperty::wm_delete_window, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_wm_take_focus", (long) otk::OBProperty::wm_take_focus, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_wm_change_state", (long) otk::OBProperty::wm_change_state, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_wm_name", (long) otk::OBProperty::wm_name, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_wm_icon_name", (long) otk::OBProperty::wm_icon_name, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_wm_class", (long) otk::OBProperty::wm_class, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_wm_window_role", (long) otk::OBProperty::wm_window_role, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_motif_wm_hints", (long) otk::OBProperty::motif_wm_hints, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_blackbox_attributes", (long) otk::OBProperty::blackbox_attributes, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_blackbox_change_attributes", (long) otk::OBProperty::blackbox_change_attributes, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_blackbox_hints", (long) otk::OBProperty::blackbox_hints, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_blackbox_structure_messages", (long) otk::OBProperty::blackbox_structure_messages, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_blackbox_notify_startup", (long) otk::OBProperty::blackbox_notify_startup, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_blackbox_notify_window_add", (long) otk::OBProperty::blackbox_notify_window_add, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_blackbox_notify_window_del", (long) otk::OBProperty::blackbox_notify_window_del, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_blackbox_notify_window_focus", (long) otk::OBProperty::blackbox_notify_window_focus, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_blackbox_notify_current_workspace", (long) otk::OBProperty::blackbox_notify_current_workspace, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_blackbox_notify_workspace_count", (long) otk::OBProperty::blackbox_notify_workspace_count, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_blackbox_notify_window_raise", (long) otk::OBProperty::blackbox_notify_window_raise, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_blackbox_notify_window_lower", (long) otk::OBProperty::blackbox_notify_window_lower, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_blackbox_change_workspace", (long) otk::OBProperty::blackbox_change_workspace, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_blackbox_change_window_focus", (long) otk::OBProperty::blackbox_change_window_focus, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_blackbox_cycle_window_focus", (long) otk::OBProperty::blackbox_cycle_window_focus, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_openbox_show_root_menu", (long) otk::OBProperty::openbox_show_root_menu, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_openbox_show_workspace_menu", (long) otk::OBProperty::openbox_show_workspace_menu, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_supported", (long) otk::OBProperty::net_supported, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_client_list", (long) otk::OBProperty::net_client_list, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_client_list_stacking", (long) otk::OBProperty::net_client_list_stacking, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_number_of_desktops", (long) otk::OBProperty::net_number_of_desktops, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_desktop_geometry", (long) otk::OBProperty::net_desktop_geometry, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_desktop_viewport", (long) otk::OBProperty::net_desktop_viewport, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_current_desktop", (long) otk::OBProperty::net_current_desktop, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_desktop_names", (long) otk::OBProperty::net_desktop_names, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_active_window", (long) otk::OBProperty::net_active_window, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_workarea", (long) otk::OBProperty::net_workarea, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_supporting_wm_check", (long) otk::OBProperty::net_supporting_wm_check, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_close_window", (long) otk::OBProperty::net_close_window, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_moveresize", (long) otk::OBProperty::net_wm_moveresize, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_name", (long) otk::OBProperty::net_wm_name, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_visible_name", (long) otk::OBProperty::net_wm_visible_name, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_icon_name", (long) otk::OBProperty::net_wm_icon_name, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_visible_icon_name", (long) otk::OBProperty::net_wm_visible_icon_name, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_desktop", (long) otk::OBProperty::net_wm_desktop, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type", (long) otk::OBProperty::net_wm_window_type, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_state", (long) otk::OBProperty::net_wm_state, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_strut", (long) otk::OBProperty::net_wm_strut, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_allowed_actions", (long) otk::OBProperty::net_wm_allowed_actions, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type_desktop", (long) otk::OBProperty::net_wm_window_type_desktop, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type_dock", (long) otk::OBProperty::net_wm_window_type_dock, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type_toolbar", (long) otk::OBProperty::net_wm_window_type_toolbar, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type_menu", (long) otk::OBProperty::net_wm_window_type_menu, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type_utility", (long) otk::OBProperty::net_wm_window_type_utility, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type_splash", (long) otk::OBProperty::net_wm_window_type_splash, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type_dialog", (long) otk::OBProperty::net_wm_window_type_dialog, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_window_type_normal", (long) otk::OBProperty::net_wm_window_type_normal, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_moveresize_size_topleft", (long) otk::OBProperty::net_wm_moveresize_size_topleft, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_moveresize_size_topright", (long) otk::OBProperty::net_wm_moveresize_size_topright, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_moveresize_size_bottomleft", (long) otk::OBProperty::net_wm_moveresize_size_bottomleft, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_moveresize_size_bottomright", (long) otk::OBProperty::net_wm_moveresize_size_bottomright, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_moveresize_move", (long) otk::OBProperty::net_wm_moveresize_move, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_action_move", (long) otk::OBProperty::net_wm_action_move, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_action_resize", (long) otk::OBProperty::net_wm_action_resize, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_action_shade", (long) otk::OBProperty::net_wm_action_shade, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_action_maximize_horz", (long) otk::OBProperty::net_wm_action_maximize_horz, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_action_maximize_vert", (long) otk::OBProperty::net_wm_action_maximize_vert, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_action_change_desktop", (long) otk::OBProperty::net_wm_action_change_desktop, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_action_close", (long) otk::OBProperty::net_wm_action_close, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_modal", (long) otk::OBProperty::net_wm_state_modal, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_sticky", (long) otk::OBProperty::net_wm_state_sticky, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_maximized_vert", (long) otk::OBProperty::net_wm_state_maximized_vert, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_maximized_horz", (long) otk::OBProperty::net_wm_state_maximized_horz, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_shaded", (long) otk::OBProperty::net_wm_state_shaded, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_skip_taskbar", (long) otk::OBProperty::net_wm_state_skip_taskbar, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_skip_pager", (long) otk::OBProperty::net_wm_state_skip_pager, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_hidden", (long) otk::OBProperty::net_wm_state_hidden, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_fullscreen", (long) otk::OBProperty::net_wm_state_fullscreen, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_above", (long) otk::OBProperty::net_wm_state_above, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_net_wm_state_below", (long) otk::OBProperty::net_wm_state_below, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_kde_net_system_tray_windows", (long) otk::OBProperty::kde_net_system_tray_windows, 0, 0, 0},
-{ 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},
-{ SWIG_PY_INT,     (char *)"OBProperty_kde_net_wm_window_type_override", (long) otk::OBProperty::kde_net_wm_window_type_override, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_NUM_ATOMS", (long) otk::OBProperty::NUM_ATOMS, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_ascii", (long) otk::OBProperty::ascii, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_utf8", (long) otk::OBProperty::utf8, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OBProperty_NUM_STRING_TYPE", (long) otk::OBProperty::NUM_STRING_TYPE, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_ButtonFocus", (long) otk::Style::ButtonFocus, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_ButtonUnfocus", (long) otk::Style::ButtonUnfocus, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_TitleFocus", (long) otk::Style::TitleFocus, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_TitleUnfocus", (long) otk::Style::TitleUnfocus, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_LabelFocus", (long) otk::Style::LabelFocus, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_LabelUnfocus", (long) otk::Style::LabelUnfocus, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_HandleFocus", (long) otk::Style::HandleFocus, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_HandleUnfocus", (long) otk::Style::HandleUnfocus, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_GripFocus", (long) otk::Style::GripFocus, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_GripUnfocus", (long) otk::Style::GripUnfocus, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_LeftJustify", (long) otk::Style::LeftJustify, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_RightJustify", (long) otk::Style::RightJustify, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_CenterJustify", (long) otk::Style::CenterJustify, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_RoundBullet", (long) otk::Style::RoundBullet, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_TriangleBullet", (long) otk::Style::TriangleBullet, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_SquareBullet", (long) otk::Style::SquareBullet, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Style_NoBullet", (long) otk::Style::NoBullet, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_NoTexture", (long) otk::BTexture::NoTexture, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Flat", (long) otk::BTexture::Flat, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Sunken", (long) otk::BTexture::Sunken, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Raised", (long) otk::BTexture::Raised, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Solid", (long) otk::BTexture::Solid, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Gradient", (long) otk::BTexture::Gradient, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Horizontal", (long) otk::BTexture::Horizontal, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Vertical", (long) otk::BTexture::Vertical, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Diagonal", (long) otk::BTexture::Diagonal, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_CrossDiagonal", (long) otk::BTexture::CrossDiagonal, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Rectangle", (long) otk::BTexture::Rectangle, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Pyramid", (long) otk::BTexture::Pyramid, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_PipeCross", (long) otk::BTexture::PipeCross, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Elliptic", (long) otk::BTexture::Elliptic, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Bevel1", (long) otk::BTexture::Bevel1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Bevel2", (long) otk::BTexture::Bevel2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Border", (long) otk::BTexture::Border, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Invert", (long) otk::BTexture::Invert, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Parent_Relative", (long) otk::BTexture::Parent_Relative, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BTexture_Interlaced", (long) otk::BTexture::Interlaced, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"X_PROTOCOL", (long) 11, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"X_PROTOCOL_REVISION", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"None", (long) 0L, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ParentRelative", (long) 1L, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CopyFromParent", (long) 0L, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"PointerWindow", (long) 0L, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"InputFocus", (long) 1L, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"PointerRoot", (long) 1L, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"AnyPropertyType", (long) 0L, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"AnyKey", (long) 0L, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"AnyButton", (long) 0L, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"AllTemporary", (long) 0L, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CurrentTime", (long) 0L, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NoSymbol", (long) 0L, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NoEventMask", (long) 0L, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"KeyPressMask", (long) (1L<<0), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"KeyReleaseMask", (long) (1L<<1), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ButtonPressMask", (long) (1L<<2), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ButtonReleaseMask", (long) (1L<<3), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"EnterWindowMask", (long) (1L<<4), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"LeaveWindowMask", (long) (1L<<5), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"PointerMotionMask", (long) (1L<<6), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"PointerMotionHintMask", (long) (1L<<7), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Button1MotionMask", (long) (1L<<8), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Button2MotionMask", (long) (1L<<9), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Button3MotionMask", (long) (1L<<10), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Button4MotionMask", (long) (1L<<11), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Button5MotionMask", (long) (1L<<12), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ButtonMotionMask", (long) (1L<<13), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"KeymapStateMask", (long) (1L<<14), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ExposureMask", (long) (1L<<15), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"VisibilityChangeMask", (long) (1L<<16), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"StructureNotifyMask", (long) (1L<<17), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ResizeRedirectMask", (long) (1L<<18), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"SubstructureNotifyMask", (long) (1L<<19), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"SubstructureRedirectMask", (long) (1L<<20), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"FocusChangeMask", (long) (1L<<21), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"PropertyChangeMask", (long) (1L<<22), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ColormapChangeMask", (long) (1L<<23), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"OwnerGrabButtonMask", (long) (1L<<24), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"KeyPress", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"KeyRelease", (long) 3, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ButtonPress", (long) 4, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ButtonRelease", (long) 5, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"MotionNotify", (long) 6, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"EnterNotify", (long) 7, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"LeaveNotify", (long) 8, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"FocusIn", (long) 9, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"FocusOut", (long) 10, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"KeymapNotify", (long) 11, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Expose", (long) 12, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GraphicsExpose", (long) 13, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NoExpose", (long) 14, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"VisibilityNotify", (long) 15, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CreateNotify", (long) 16, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"DestroyNotify", (long) 17, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"UnmapNotify", (long) 18, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"MapNotify", (long) 19, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"MapRequest", (long) 20, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ReparentNotify", (long) 21, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ConfigureNotify", (long) 22, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ConfigureRequest", (long) 23, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GravityNotify", (long) 24, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ResizeRequest", (long) 25, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CirculateNotify", (long) 26, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CirculateRequest", (long) 27, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"PropertyNotify", (long) 28, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"SelectionClear", (long) 29, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"SelectionRequest", (long) 30, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"SelectionNotify", (long) 31, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ColormapNotify", (long) 32, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ClientMessage", (long) 33, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"MappingNotify", (long) 34, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"LASTEvent", (long) 35, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ShiftMask", (long) (1<<0), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"LockMask", (long) (1<<1), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ControlMask", (long) (1<<2), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Mod1Mask", (long) (1<<3), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Mod2Mask", (long) (1<<4), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Mod3Mask", (long) (1<<5), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Mod4Mask", (long) (1<<6), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Mod5Mask", (long) (1<<7), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ShiftMapIndex", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"LockMapIndex", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ControlMapIndex", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Mod1MapIndex", (long) 3, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Mod2MapIndex", (long) 4, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Mod3MapIndex", (long) 5, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Mod4MapIndex", (long) 6, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Mod5MapIndex", (long) 7, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Button1Mask", (long) (1<<8), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Button2Mask", (long) (1<<9), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Button3Mask", (long) (1<<10), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Button4Mask", (long) (1<<11), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Button5Mask", (long) (1<<12), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"AnyModifier", (long) (1<<15), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Button1", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Button2", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Button3", (long) 3, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Button4", (long) 4, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Button5", (long) 5, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NotifyNormal", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NotifyGrab", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NotifyUngrab", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NotifyWhileGrabbed", (long) 3, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NotifyHint", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NotifyAncestor", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NotifyVirtual", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NotifyInferior", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NotifyNonlinear", (long) 3, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NotifyNonlinearVirtual", (long) 4, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NotifyPointer", (long) 5, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NotifyPointerRoot", (long) 6, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NotifyDetailNone", (long) 7, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"VisibilityUnobscured", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"VisibilityPartiallyObscured", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"VisibilityFullyObscured", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"PlaceOnTop", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"PlaceOnBottom", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"FamilyInternet", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"FamilyDECnet", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"FamilyChaos", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"PropertyNewValue", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"PropertyDelete", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ColormapUninstalled", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ColormapInstalled", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GrabModeSync", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GrabModeAsync", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GrabSuccess", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"AlreadyGrabbed", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GrabInvalidTime", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GrabNotViewable", (long) 3, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GrabFrozen", (long) 4, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"AsyncPointer", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"SyncPointer", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ReplayPointer", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"AsyncKeyboard", (long) 3, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"SyncKeyboard", (long) 4, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ReplayKeyboard", (long) 5, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"AsyncBoth", (long) 6, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"SyncBoth", (long) 7, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"RevertToParent", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Success", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadRequest", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadValue", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadWindow", (long) 3, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadPixmap", (long) 4, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadAtom", (long) 5, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadCursor", (long) 6, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadFont", (long) 7, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadMatch", (long) 8, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadDrawable", (long) 9, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadAccess", (long) 10, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadAlloc", (long) 11, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadColor", (long) 12, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadGC", (long) 13, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadIDChoice", (long) 14, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadName", (long) 15, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadLength", (long) 16, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BadImplementation", (long) 17, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"FirstExtensionError", (long) 128, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"LastExtensionError", (long) 255, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"InputOutput", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"InputOnly", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWBackPixmap", (long) (1L<<0), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWBackPixel", (long) (1L<<1), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWBorderPixmap", (long) (1L<<2), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWBorderPixel", (long) (1L<<3), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWBitGravity", (long) (1L<<4), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWWinGravity", (long) (1L<<5), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWBackingStore", (long) (1L<<6), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWBackingPlanes", (long) (1L<<7), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWBackingPixel", (long) (1L<<8), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWOverrideRedirect", (long) (1L<<9), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWSaveUnder", (long) (1L<<10), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWEventMask", (long) (1L<<11), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWDontPropagate", (long) (1L<<12), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWColormap", (long) (1L<<13), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWCursor", (long) (1L<<14), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWX", (long) (1<<0), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWY", (long) (1<<1), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWWidth", (long) (1<<2), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWHeight", (long) (1<<3), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWBorderWidth", (long) (1<<4), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWSibling", (long) (1<<5), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CWStackMode", (long) (1<<6), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ForgetGravity", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NorthWestGravity", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NorthGravity", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NorthEastGravity", (long) 3, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"WestGravity", (long) 4, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CenterGravity", (long) 5, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"EastGravity", (long) 6, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"SouthWestGravity", (long) 7, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"SouthGravity", (long) 8, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"SouthEastGravity", (long) 9, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"StaticGravity", (long) 10, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"UnmapGravity", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"NotUseful", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"WhenMapped", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Always", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"IsUnmapped", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"IsUnviewable", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"IsViewable", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"SetModeInsert", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"SetModeDelete", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"DestroyAll", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"RetainPermanent", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"RetainTemporary", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Above", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Below", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"TopIf", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"BottomIf", (long) 3, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Opposite", (long) 4, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"RaiseLowest", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"LowerHighest", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"PropModeReplace", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"PropModePrepend", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"PropModeAppend", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GXclear", (long) 0x0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GXand", (long) 0x1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GXandReverse", (long) 0x2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GXcopy", (long) 0x3, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GXandInverted", (long) 0x4, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GXnoop", (long) 0x5, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GXxor", (long) 0x6, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GXor", (long) 0x7, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GXnor", (long) 0x8, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GXequiv", (long) 0x9, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GXinvert", (long) 0xa, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GXorReverse", (long) 0xb, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GXcopyInverted", (long) 0xc, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GXorInverted", (long) 0xd, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GXnand", (long) 0xe, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GXset", (long) 0xf, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"LineSolid", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"LineOnOffDash", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"LineDoubleDash", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CapNotLast", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CapButt", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CapRound", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CapProjecting", (long) 3, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"JoinMiter", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"JoinRound", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"JoinBevel", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"FillSolid", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"FillTiled", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"FillStippled", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"FillOpaqueStippled", (long) 3, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"EvenOddRule", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"WindingRule", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ClipByChildren", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"IncludeInferiors", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Unsorted", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"YSorted", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"YXSorted", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"YXBanded", (long) 3, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CoordModeOrigin", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CoordModePrevious", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Complex", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Nonconvex", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"Convex", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ArcChord", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ArcPieSlice", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCFunction", (long) (1L<<0), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCPlaneMask", (long) (1L<<1), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCForeground", (long) (1L<<2), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCBackground", (long) (1L<<3), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCLineWidth", (long) (1L<<4), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCLineStyle", (long) (1L<<5), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCCapStyle", (long) (1L<<6), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCJoinStyle", (long) (1L<<7), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCFillStyle", (long) (1L<<8), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCFillRule", (long) (1L<<9), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCTile", (long) (1L<<10), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCStipple", (long) (1L<<11), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCTileStipXOrigin", (long) (1L<<12), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCTileStipYOrigin", (long) (1L<<13), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCFont", (long) (1L<<14), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCSubwindowMode", (long) (1L<<15), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCGraphicsExposures", (long) (1L<<16), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCClipXOrigin", (long) (1L<<17), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCClipYOrigin", (long) (1L<<18), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCClipMask", (long) (1L<<19), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCDashOffset", (long) (1L<<20), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCDashList", (long) (1L<<21), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCArcMode", (long) (1L<<22), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GCLastBit", (long) 22, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"FontLeftToRight", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"FontRightToLeft", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"FontChange", (long) 255, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"XYBitmap", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"XYPixmap", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ZPixmap", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"AllocNone", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"AllocAll", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"DoRed", (long) (1<<0), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"DoGreen", (long) (1<<1), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"DoBlue", (long) (1<<2), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"CursorShape", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"TileShape", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"StippleShape", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"AutoRepeatModeOff", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"AutoRepeatModeOn", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"AutoRepeatModeDefault", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"LedModeOff", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"LedModeOn", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"KBKeyClickPercent", (long) (1L<<0), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"KBBellPercent", (long) (1L<<1), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"KBBellPitch", (long) (1L<<2), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"KBBellDuration", (long) (1L<<3), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"KBLed", (long) (1L<<4), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"KBLedMode", (long) (1L<<5), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"KBKey", (long) (1L<<6), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"KBAutoRepeatMode", (long) (1L<<7), 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"MappingSuccess", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"MappingBusy", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"MappingFailed", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"MappingModifier", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"MappingKeyboard", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"MappingPointer", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"DontPreferBlanking", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"PreferBlanking", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"DefaultBlanking", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"DisableScreenSaver", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"DisableScreenInterval", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"DontAllowExposures", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"AllowExposures", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"DefaultExposures", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ScreenSaverReset", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"ScreenSaverActive", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"HostInsert", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"HostDelete", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"EnableAccess", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"DisableAccess", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"StaticGray", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"GrayScale", (long) 1, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"StaticColor", (long) 2, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"PseudoColor", (long) 3, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"TrueColor", (long) 4, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"DirectColor", (long) 5, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"LSBFirst", (long) 0, 0, 0, 0},
-{ SWIG_PY_INT,     (char *)"MSBFirst", (long) 1, 0, 0, 0},
-{0}};
-
-#ifdef __cplusplus
-}
-#endif
-
-#ifdef __cplusplus
-extern "C"
-#endif
-SWIGEXPORT(void) SWIG_init(void) {
-    static PyObject *SWIG_globals = 0; 
-    static int       typeinit = 0;
-    PyObject *m, *d;
-    int       i;
-    if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
-    m = Py_InitModule((char *) SWIG_name, SwigMethods);
-    d = PyModule_GetDict(m);
-    
-    if (!typeinit) {
-        for (i = 0; swig_types_initial[i]; i++) {
-            swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
-        }
-        typeinit = 1;
-    }
-    SWIG_InstallConstants(d,swig_const_table);
-    
-    PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
-    SWIG_addvarlink(SWIG_globals,(char*)"BSENTINEL",_wrap_BSENTINEL_get, _wrap_BSENTINEL_set);
-}
-
index f26795e4dd2d1792e576654759721f49e65586e2..ad9eacc90736ce6a7ec1cb96c2f6676f5f79562e 100644 (file)
@@ -15,9 +15,9 @@ extern "C" {
 
 namespace otk {
 
-OBProperty::OBProperty()
+Property::Property()
 {
-  assert(OBDisplay::display);
+  assert(Display::display);
 
   // make sure asserts fire if there is a problem
   memset(_atoms, 0, sizeof(_atoms));
@@ -153,7 +153,7 @@ OBProperty::OBProperty()
 /*
  * clean up the class' members
  */
-OBProperty::~OBProperty()
+Property::~Property()
 {
 }
 
@@ -161,9 +161,9 @@ OBProperty::~OBProperty()
 /*
  * Returns an atom from the Xserver, creating it if necessary.
  */
-Atom OBProperty::create(const char *name) const
+Atom Property::create(const char *name) const
 {
-  Atom a = XInternAtom(OBDisplay::display, name, False);
+  Atom a = XInternAtom(Display::display, name, False);
   assert(a);
   return a;
 }
@@ -174,14 +174,14 @@ Atom OBProperty::create(const char *name) const
  * Sets a window property on a window, optionally appending to the existing
  * value.
  */
-void OBProperty::set(Window win, Atom atom, Atom type,
+void Property::set(Window win, Atom atom, Atom type,
                           unsigned char* data, int size, int nelements,
                           bool append) const
 {
   assert(win != None); assert(atom != None); assert(type != None);
   assert(nelements == 0 || (nelements > 0 && data != (unsigned char *) 0));
   assert(size == 8 || size == 16 || size == 32);
-  XChangeProperty(OBDisplay::display, win, atom, type, size,
+  XChangeProperty(Display::display, win, atom, type, size,
                   (append ? PropModeAppend : PropModeReplace),
                   data, nelements);
 }
@@ -190,7 +190,7 @@ void OBProperty::set(Window win, Atom atom, Atom type,
 /*
  * Set a 32-bit property value on a window.
  */
-void OBProperty::set(Window win, Atoms atom, Atoms type,
+void Property::set(Window win, Atoms atom, Atoms type,
                           unsigned long value) const
 {
   assert(atom >= 0 && atom < NUM_ATOMS);
@@ -203,7 +203,7 @@ void OBProperty::set(Window win, Atoms atom, Atoms type,
 /*
  * Set an array of 32-bit properties value on a window.
  */
-void OBProperty::set(Window win, Atoms atom, Atoms type,
+void Property::set(Window win, Atoms atom, Atoms type,
                           unsigned long value[], int elements) const
 {
   assert(atom >= 0 && atom < NUM_ATOMS);
@@ -216,7 +216,7 @@ void OBProperty::set(Window win, Atoms atom, Atoms type,
 /*
  * Set an string property value on a window.
  */
-void OBProperty::set(Window win, Atoms atom, StringType type,
+void Property::set(Window win, Atoms atom, StringType type,
                           const std::string &value) const
 {
   assert(atom >= 0 && atom < NUM_ATOMS);
@@ -237,7 +237,7 @@ void OBProperty::set(Window win, Atoms atom, StringType type,
 /*
  * Set an array of string property values on a window.
  */
-void OBProperty::set(Window win, Atoms atom, StringType type,
+void Property::set(Window win, Atoms atom, StringType type,
                      const StringVect &strings) const
 {
   assert(atom >= 0 && atom < NUM_ATOMS);
@@ -270,7 +270,7 @@ void OBProperty::set(Window win, Atoms atom, StringType type,
  * property did not exist on the window, or has a different type/size format
  * than the user tried to retrieve.
  */
-bool OBProperty::get(Window win, Atom atom, Atom type,
+bool Property::get(Window win, Atom atom, Atom type,
                           unsigned long *nelements, unsigned char **value,
                           int size) const
 {
@@ -286,7 +286,7 @@ bool OBProperty::get(Window win, Atom atom, Atom type,
   bool ret = False;
 
   // try get the first element
-  result = XGetWindowProperty(OBDisplay::display, win, atom, 0l, 1l,
+  result = XGetWindowProperty(Display::display, win, atom, 0l, 1l,
                               False, AnyPropertyType, &ret_type, &ret_size,
                               nelements, &ret_bytes, &c_val);
   ret = (result == Success && ret_type == type && ret_size == size &&
@@ -304,7 +304,7 @@ bool OBProperty::get(Window win, Atom atom, Atom type,
       int remain = (ret_bytes - 1)/sizeof(long) + 1 + 1;
       if (remain > size/8 * (signed)maxread) // dont get more than the max
         remain = size/8 * (signed)maxread;
-      result = XGetWindowProperty(OBDisplay::display, win, atom, 0l,
+      result = XGetWindowProperty(Display::display, win, atom, 0l,
                                   remain, False, type, &ret_type, &ret_size,
                                   nelements, &ret_bytes, &c_val);
       ret = (result == Success && ret_type == type && ret_size == size &&
@@ -329,7 +329,7 @@ bool OBProperty::get(Window win, Atom atom, Atom type,
 /*
  * Gets a 32-bit property's value from a window.
  */
-bool OBProperty::get(Window win, Atoms atom, Atoms type,
+bool Property::get(Window win, Atoms atom, Atoms type,
                           unsigned long *nelements,
                           unsigned long **value) const
 {
@@ -343,7 +343,7 @@ bool OBProperty::get(Window win, Atoms atom, Atoms type,
 /*
  * Gets a single 32-bit property's value from a window.
  */
-bool OBProperty::get(Window win, Atoms atom, Atoms type,
+bool Property::get(Window win, Atoms atom, Atoms type,
                      unsigned long *value) const
 {
   assert(atom >= 0 && atom < NUM_ATOMS);
@@ -362,7 +362,7 @@ bool OBProperty::get(Window win, Atoms atom, Atoms type,
 /*
  * Gets an string property's value from a window.
  */
-bool OBProperty::get(Window win, Atoms atom, StringType type,
+bool Property::get(Window win, Atoms atom, StringType type,
                      std::string *value) const
 {
   unsigned long n = 1;
@@ -375,7 +375,7 @@ bool OBProperty::get(Window win, Atoms atom, StringType type,
 }
 
 
-bool OBProperty::get(Window win, Atoms atom, StringType type,
+bool Property::get(Window win, Atoms atom, StringType type,
                      unsigned long *nelements, StringVect *strings) const
 {
   assert(atom >= 0 && atom < NUM_ATOMS);
@@ -419,10 +419,10 @@ bool OBProperty::get(Window win, Atoms atom, StringType type,
 /*
  * Removes a property entirely from a window.
  */
-void OBProperty::erase(Window win, Atoms atom) const
+void Property::erase(Window win, Atoms atom) const
 {
   assert(atom >= 0 && atom < NUM_ATOMS);
-  XDeleteProperty(OBDisplay::display, win, _atoms[atom]);
+  XDeleteProperty(Display::display, win, _atoms[atom]);
 }
 
 }
index e3588c043effc8aef8e99eb0796395e689055fbb..7f4ae266f9691b2834ccc01d331d1d00297e17bf 100644 (file)
@@ -1,4 +1,4 @@
-// -*- mode: C++; indent-tabs-mode: nil; -*-
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef   __atom_hh
 #define   __atom_hh
 
@@ -21,7 +21,7 @@ extern "C" {
 namespace otk {
 
 //! Provides easy access to window properties.
-class OBProperty {
+class Property {
 public:
   //! The atoms on the X server which this class will cache
   enum Atoms {
@@ -160,7 +160,7 @@ public:
 
 private:
   //! The value of all atoms on the X server that exist in the
-  //! OBProperty::Atoms enum
+  //! Property::Atoms enum
   Atom _atoms[NUM_ATOMS];
 
   //! Gets the value of an Atom from the X server, creating it if nessesary
@@ -178,21 +178,21 @@ public:
   //! A list of strings
   typedef std::vector<std::string> StringVect;
 
-  //! Constructs a new OBAtom object
+  //! Constructs a new Atom object
   /*!
-    CAUTION: This constructor uses OBDisplay::display, so ensure that it is
+    CAUTION: This constructor uses Display::display, so ensure that it is
     initialized before initializing this class!
   */
-  OBProperty();
-  //! Destroys the OBAtom object
-  virtual ~OBProperty();
+  Property();
+  //! Destroys the Atom object
+  virtual ~Property();
 
   //! Sets a single-value property on a window to a new value
   /*!
     @param win The window id of the window on which to set the property's value
-    @param atom A member of the OBProperty::Atoms enum that specifies which
+    @param atom A member of the Property::Atoms enum that specifies which
                 property to set
-    @param type A member of the OBProperty::Atoms enum that specifies the type
+    @param type A member of the Property::Atoms enum that specifies the type
                 of the property to set
     @param value The value to set the property to
   */
@@ -200,9 +200,9 @@ public:
   //! Sets an multiple-value property on a window to a new value
   /*!
     @param win The window id of the window on which to set the property's value
-    @param atom A member of the OBProperty::Atoms enum that specifies which
+    @param atom A member of the Property::Atoms enum that specifies which
                 property to set
-    @param type A member of the OBProperty::Atoms enum that specifies the type
+    @param type A member of the Property::Atoms enum that specifies the type
                 of the property to set
     @param value Any array of values to set the property to. The array must
                  contain <i>elements</i> number of elements
@@ -213,9 +213,9 @@ public:
   //! Sets a string property on a window to a new value
   /*!
     @param win The window id of the window on which to set the property's value
-    @param atom A member of the OBProperty::Atoms enum that specifies which
+    @param atom A member of the Property::Atoms enum that specifies which
                 property to set
-    @param type A member of the OBProperty::StringType enum that specifies the
+    @param type A member of the Property::StringType enum that specifies the
                 type of the string the property is being set to
     @param value The string to set the property to
   */
@@ -224,9 +224,9 @@ public:
   //! Sets a string-array property on a window to a new value
   /*!
     @param win The window id of the window on which to set the property's value
-    @param atom A member of the OBProperty::Atoms enum that specifies which
+    @param atom A member of the Property::Atoms enum that specifies which
                 property to set
-    @param type A member of the OBProperty::StringType enum that specifies the
+    @param type A member of the Property::StringType enum that specifies the
                 type of the string the property is being set to
     @param strings A list of strings to set the property to
   */
@@ -236,9 +236,9 @@ public:
   //! Gets the value of a property on a window
   /*!
     @param win The window id of the window to get the property value from
-    @param atom A member of the OBProperty::Atoms enum that specifies which
+    @param atom A member of the Property::Atoms enum that specifies which
                 property to retrieve
-    @param type A member of the OBProperty::Atoms enum that specifies the type
+    @param type A member of the Property::Atoms enum that specifies the type
                 of the property to retrieve
     @param nelements The maximum number of elements to retrieve from the
                      property (assuming it has more than 1 value in it). To
@@ -260,9 +260,9 @@ public:
   //! Gets a single element from the value of a property on a window
   /*!
     @param win The window id of the window to get the property value from
-    @param atom A member of the OBProperty::Atoms enum that specifies which
+    @param atom A member of the Property::Atoms enum that specifies which
                 property to retrieve
-    @param type A member of the OBProperty::Atoms enum that specifies the type
+    @param type A member of the Property::Atoms enum that specifies the type
                 of the property to retrieve
     @param value If the function returns true, then this contains the first
                  (and possibly only) element in the value of the specified
@@ -274,9 +274,9 @@ public:
   //! Gets a single string from the value of a property on a window
   /*!
     @param win The window id of the window to get the property value from
-    @param atom A member of the OBProperty::Atoms enum that specifies which
+    @param atom A member of the Property::Atoms enum that specifies which
                 property to retrieve
-    @param type A member of the OBProperty::StringType enum that specifies the
+    @param type A member of the Property::StringType enum that specifies the
                 type of the string property to retrieve
     @param value If the function returns true, then this contains the first
                  (and possibly only) string in the value of the specified
@@ -288,9 +288,9 @@ public:
   //! Gets strings from the value of a property on a window
   /*!
     @param win The window id of the window to get the property value from
-    @param atom A member of the OBProperty::Atoms enum that specifies which
+    @param atom A member of the Property::Atoms enum that specifies which
                 property to retrieve
-    @param type A member of the OBProperty::StringType enum that specifies the
+    @param type A member of the Property::StringType enum that specifies the
                 type of the string property to retrieve
     @param nelements The maximum number of strings to retrieve from the
                      property (assuming it has more than 1 string in it). To
@@ -308,14 +308,14 @@ public:
   //! Removes a property from a window
   /*!
     @param win The window id of the window to remove the property from
-    @param atom A member of the OBProperty::Atoms enum that specifies which
+    @param atom A member of the Property::Atoms enum that specifies which
                 property to remove from the window
   */
   void erase(Window win, Atoms atom) const;
 
   //! Gets the value of an atom on the X server
   /*!
-    @param a A member of the OBProperty::Atoms enum that specifies which Atom's
+    @param a A member of the Property::Atoms enum that specifies which Atom's
              value to return
     @return The value of the specified Atom
   */
index 65a679c74240440864df691885145a95f5e907ca..de4f5e0397174700c5b83fb0a7fcd56fc866decb 100644 (file)
@@ -1,4 +1,4 @@
-// -*- mode: C++; indent-tabs-mode: nil; -*-
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef   __rect_hh
 #define   __rect_hh
 
index 08d8517bce0537974f7330c49e49633943761512..568b46b2c6b58f3b8a23fb37d2067357b1e5fa17 100644 (file)
@@ -1,4 +1,5 @@
 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 
 #ifdef    HAVE_CONFIG_H
 #  include "../config.h"
@@ -20,11 +21,11 @@ namespace otk {
 ScreenInfo::ScreenInfo(unsigned int num) {
   _screen = num;
 
-  _root_window = RootWindow(OBDisplay::display, _screen);
+  _root_window = RootWindow(Display::display, _screen);
 
-  _rect.setSize(WidthOfScreen(ScreenOfDisplay(OBDisplay::display,
+  _rect.setSize(WidthOfScreen(ScreenOfDisplay(Display::display,
                                               _screen)),
-               HeightOfScreen(ScreenOfDisplay(OBDisplay::display,
+               HeightOfScreen(ScreenOfDisplay(Display::display,
                                               _screen)));
   /*
     If the default depth is at least 8 we will use that,
@@ -32,9 +33,9 @@ ScreenInfo::ScreenInfo(unsigned int num) {
     Preference is given to 24 bit over larger depths if 24 bit is an option.
   */
 
-  _depth = DefaultDepth(OBDisplay::display, _screen);
-  _visual = DefaultVisual(OBDisplay::display, _screen);
-  _colormap = DefaultColormap(OBDisplay::display, _screen);
+  _depth = DefaultDepth(Display::display, _screen);
+  _visual = DefaultVisual(Display::display, _screen);
+  _colormap = DefaultColormap(Display::display, _screen);
   
   if (_depth < 8) {
     // search for a TrueColor Visual... if we can't find one...
@@ -46,7 +47,7 @@ ScreenInfo::ScreenInfo(unsigned int num) {
     vinfo_template.screen = _screen;
     vinfo_template.c_class = TrueColor;
 
-    vinfo_return = XGetVisualInfo(OBDisplay::display,
+    vinfo_return = XGetVisualInfo(Display::display,
                                   VisualScreenMask | VisualClassMask,
                                   &vinfo_template, &vinfo_nitems);
     if (vinfo_return) {
@@ -65,7 +66,7 @@ ScreenInfo::ScreenInfo(unsigned int num) {
     if (best != -1) {
       _depth = vinfo_return[best].depth;
       _visual = vinfo_return[best].visual;
-      _colormap = XCreateColormap(OBDisplay::display, _root_window, _visual,
+      _colormap = XCreateColormap(Display::display, _root_window, _visual,
                                   AllocNone);
     }
 
@@ -73,13 +74,13 @@ ScreenInfo::ScreenInfo(unsigned int num) {
   }
 
   // get the default display string and strip the screen number
-  string default_string = DisplayString(OBDisplay::display);
+  string default_string = DisplayString(Display::display);
   const string::size_type pos = default_string.rfind(".");
   if (pos != string::npos)
     default_string.resize(pos);
 
   _display_string = string("DISPLAY=") + default_string + '.' +
-    otk::itostring(static_cast<unsigned long>(_screen));
+    itostring(static_cast<unsigned long>(_screen));
   
 #if 0 //def    XINERAMA
   _xinerama_active = False;
@@ -93,7 +94,7 @@ ScreenInfo::ScreenInfo(unsigned int num) {
         in future versions we should be able, so the 'activeness' is checked
         on a pre-screen basis anyways.
       */
-      if (XineramaIsActive(OBDisplay::display)) {
+      if (XineramaIsActive(Display::display)) {
         /*
           If Xinerama is being used, there there is only going to be one screen
           present. We still, of course, want to use the screen class, but that
@@ -101,7 +102,7 @@ ScreenInfo::ScreenInfo(unsigned int num) {
           never be more than one screen present with Xinerama active.
         */
         int num;
-        XineramaScreenInfo *info = XineramaQueryScreens(OBDisplay::display,
+        XineramaScreenInfo *info = XineramaQueryScreens(Display::display,
                                                         &num);
         if (num > 0 && info) {
           _xinerama_areas.reserve(num);
index 314527ab92aa03a45047fcefc0fbfd8a09094ded..f523d23be64ef9ff5306f009cbe4fd5d1c4e0f7d 100644 (file)
@@ -1,4 +1,4 @@
-// -*- mode: C++; indent-tabs-mode: nil; -*-
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef   __screeninfo_hh
 #define   __screeninfo_hh
 
index f0aeddabc9d08cc57ac7e7115fc20fdbc4062571..ad9cf13921aa2ff969462b8ebc4e15c86b037500 100644 (file)
@@ -17,7 +17,7 @@ Style::Style() : font(NULL)
 {
 }
 
-Style::Style(BImageControl *ctrl)
+Style::Style(ImageControl *ctrl)
   : image_control(ctrl), font(0),
     screen_number(ctrl->getScreenInfo()->screen())
 {
@@ -28,13 +28,13 @@ Style::~Style() {
     delete font;
 
   if (close_button.mask != None)
-    XFreePixmap(OBDisplay::display, close_button.mask);
+    XFreePixmap(Display::display, close_button.mask);
   if (max_button.mask != None)
-    XFreePixmap(OBDisplay::display, max_button.mask);
+    XFreePixmap(Display::display, max_button.mask);
   if (icon_button.mask != None)
-    XFreePixmap(OBDisplay::display, icon_button.mask);
+    XFreePixmap(Display::display, icon_button.mask);
   if (stick_button.mask != None)
-    XFreePixmap(OBDisplay::display, stick_button.mask);
+    XFreePixmap(Display::display, stick_button.mask);
 
   max_button.mask = None;
   close_button.mask = None;
@@ -70,26 +70,26 @@ void Style::load(const Configuration &style) {
   //if neither of these can be found, we will use the previous resource
   b_pressed_focus = readDatabaseTexture("window.button.pressed.focus",
                                         "black", style, true);
-  if (b_pressed_focus.texture() == BTexture::NoTexture) {
+  if (b_pressed_focus.texture() == Texture::NoTexture) {
     b_pressed_focus = readDatabaseTexture("window.button.pressed", "black",
                                           style);
   }
     
   b_pressed_unfocus = readDatabaseTexture("window.button.pressed.unfocus",
                                           "black", style, true);
-  if (b_pressed_unfocus.texture() == BTexture::NoTexture) {
+  if (b_pressed_unfocus.texture() == Texture::NoTexture) {
     b_pressed_unfocus = readDatabaseTexture("window.button.pressed", "black",
                                             style);
   }
 
   if (close_button.mask != None)
-    XFreePixmap(OBDisplay::display, close_button.mask);
+    XFreePixmap(Display::display, close_button.mask);
   if (max_button.mask != None)
-    XFreePixmap(OBDisplay::display, max_button.mask);
+    XFreePixmap(Display::display, max_button.mask);
   if (icon_button.mask != None)
-    XFreePixmap(OBDisplay::display, icon_button.mask);
+    XFreePixmap(Display::display, icon_button.mask);
   if (stick_button.mask != None)
-    XFreePixmap(OBDisplay::display, stick_button.mask);
+    XFreePixmap(Display::display, stick_button.mask);
 
   close_button.mask = max_button.mask = icon_button.mask
                     = icon_button.mask = None;
@@ -101,13 +101,13 @@ void Style::load(const Configuration &style) {
 
   // we create the window.frame texture by hand because it exists only to
   // make the code cleaner and is not actually used for display
-  BColor color = readDatabaseColor("window.frame.focusColor", "white",
+  Color color = readDatabaseColor("window.frame.focusColor", "white",
                                         style);
-  f_focus = BTexture("solid flat", screen_number, image_control);
+  f_focus = Texture("solid flat", screen_number, image_control);
   f_focus.setColor(color);
 
   color = readDatabaseColor("window.frame.unfocusColor", "white", style);
-  f_unfocus = BTexture("solid flat", screen_number, image_control);
+  f_unfocus = Texture("solid flat", screen_number, image_control);
   f_unfocus.setColor(color);
 
   l_text_focus = readDatabaseColor("window.label.focus.textColor",
@@ -130,20 +130,20 @@ void Style::load(const Configuration &style) {
   }
 
   // sanity checks
-  if (t_focus.texture() == BTexture::Parent_Relative)
+  if (t_focus.texture() == Texture::Parent_Relative)
     t_focus = f_focus;
-  if (t_unfocus.texture() == BTexture::Parent_Relative)
+  if (t_unfocus.texture() == Texture::Parent_Relative)
     t_unfocus = f_unfocus;
-  if (h_focus.texture() == BTexture::Parent_Relative)
+  if (h_focus.texture() == Texture::Parent_Relative)
     h_focus = f_focus;
-  if (h_unfocus.texture() == BTexture::Parent_Relative)
+  if (h_unfocus.texture() == Texture::Parent_Relative)
     h_unfocus = f_unfocus;
 
   border_color = readDatabaseColor("borderColor", "black", style);
 
   // load bevel, border and handle widths
 
-  const ScreenInfo *s_info = OBDisplay::screenInfo(screen_number);
+  const ScreenInfo *s_info = Display::screenInfo(screen_number);
   unsigned int width = s_info->rect().width();
 
   if (! style.getValue("handleWidth", handle_width) ||
@@ -168,7 +168,7 @@ void Style::load(const Configuration &style) {
 
 void Style::readDatabaseMask(const std::string &rname, PixmapMask &pixmapMask,
                              const Configuration &style) {
-  Window root_window = OBDisplay::screenInfo(screen_number)->rootWindow();
+  Window root_window = Display::screenInfo(screen_number)->rootWindow();
   std::string s;
   int hx, hy; //ignored
   int ret = BitmapOpenFailed; //default to failure.
@@ -176,17 +176,17 @@ void Style::readDatabaseMask(const std::string &rname, PixmapMask &pixmapMask,
   if (style.getValue(rname, s)) {
     if (s[0] != '/' && s[0] != '~') {
       std::string xbmFile = std::string("~/.openbox/buttons/") + s;
-      ret = XReadBitmapFile(OBDisplay::display, root_window,
+      ret = XReadBitmapFile(Display::display, root_window,
                             expandTilde(xbmFile).c_str(), &pixmapMask.w,
                             &pixmapMask.h, &pixmapMask.mask, &hx, &hy);
       if (ret != BitmapSuccess) {
         xbmFile = std::string(BUTTONSDIR) + "/" + s;
-        ret = XReadBitmapFile(OBDisplay::display, root_window,
+        ret = XReadBitmapFile(Display::display, root_window,
                               xbmFile.c_str(), &pixmapMask.w,
                               &pixmapMask.h, &pixmapMask.mask, &hx, &hy);
       }
     } else
-      ret = XReadBitmapFile(OBDisplay::display, root_window,
+      ret = XReadBitmapFile(Display::display, root_window,
                             expandTilde(s).c_str(), &pixmapMask.w,
                             &pixmapMask.h, &pixmapMask.mask, &hx, &hy);
     
@@ -199,26 +199,26 @@ void Style::readDatabaseMask(const std::string &rname, PixmapMask &pixmapMask,
 }
 
 
-BTexture Style::readDatabaseTexture(const std::string &rname,
-                                         const std::string &default_color,
-                                         const Configuration &style, 
-                                         bool allowNoTexture)
+Texture Style::readDatabaseTexture(const std::string &rname,
+                                   const std::string &default_color,
+                                   const Configuration &style, 
+                                   bool allowNoTexture)
 {
-  BTexture texture;
+  Texture texture;
   std::string s;
 
   if (style.getValue(rname, s))
-    texture = BTexture(s);
+    texture = Texture(s);
   else if (allowNoTexture) //no default
-    texture.setTexture(BTexture::NoTexture);
+    texture.setTexture(Texture::NoTexture);
   else
-    texture.setTexture(BTexture::Solid | BTexture::Flat);
+    texture.setTexture(Texture::Solid | Texture::Flat);
 
   // associate this texture with this screen
   texture.setScreen(screen_number);
   texture.setImageControl(image_control);
 
-  if (texture.texture() != BTexture::NoTexture) {
+  if (texture.texture() != Texture::NoTexture) {
     texture.setColor(readDatabaseColor(rname + ".color", default_color,
                                        style));
     texture.setColorTo(readDatabaseColor(rname + ".colorTo", default_color,
@@ -231,21 +231,21 @@ BTexture Style::readDatabaseTexture(const std::string &rname,
 }
 
 
-BColor Style::readDatabaseColor(const std::string &rname,
-                                     const std::string &default_color,
-                                     const Configuration &style) {
-  BColor color;
+Color Style::readDatabaseColor(const std::string &rname,
+                               const std::string &default_color,
+                               const Configuration &style) {
+  Color color;
   std::string s;
   if (style.getValue(rname, s))
-    color = BColor(s, screen_number);
+    color = Color(s, screen_number);
   else
-    color = BColor(default_color, screen_number);
+    color = Color(default_color, screen_number);
   return color;
 }
 
 
-BFont *Style::readDatabaseFont(const std::string &rbasename,
-                               const Configuration &style) {
+Font *Style::readDatabaseFont(const std::string &rbasename,
+                              const Configuration &style) {
   std::string fontstring, s;
 
   // XXX: load all this font stuff from the style...
@@ -267,7 +267,7 @@ BFont *Style::readDatabaseFont(const std::string &rbasename,
   fontstring = "Arial,Sans-9:bold";
 
   // if this fails, it ::exit()'s
-  return new BFont(screen_number, fontstring, dropShadow, offset, tint);
+  return new Font(screen_number, fontstring, dropShadow, offset, tint);
 }
 
 }
index 2944339dddcd4cdc11f74f79d369e0ec7447e652..d5d8ee40a31958f5687d2994943d3c42be79c3b8 100644 (file)
@@ -1,3 +1,4 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef __style_hh
 #define __style_hh
 
@@ -31,17 +32,17 @@ public:
 
 // private:
 
-  BImageControl *image_control;
+  ImageControl *image_control;
 
-  BColor
+  Color
     l_text_focus, l_text_unfocus,
     b_pic_focus, b_pic_unfocus;
   
-  BColor border_color;
+  Color border_color;
 
-  BFont *font;
+  Font *font;
 
-  BTexture
+  Texture
     f_focus, f_unfocus,
     t_focus, t_unfocus,
     l_focus, l_unfocus,
@@ -63,23 +64,23 @@ public:
 public:
 
   Style();
-  Style(BImageControl *);
+  Style(ImageControl *);
   ~Style();
 
   void readDatabaseMask(const std::string &rname,
                         PixmapMask &pixmapMask,
                         const Configuration &style);
   
-  BTexture readDatabaseTexture(const std::string &rname,
+  Texture readDatabaseTexture(const std::string &rname,
                                const std::string &default_color,
                                const Configuration &style, 
                                bool allowNoTexture = false);
 
-  BColor readDatabaseColor(const std::string &rname,
+  Color readDatabaseColor(const std::string &rname,
                            const std::string &default_color,
                            const Configuration &style);
 
-  BFont *readDatabaseFont(const std::string &rbasename,
+  Font *readDatabaseFont(const std::string &rbasename,
                           const Configuration &style);
 
   void load(const Configuration &style);
@@ -89,38 +90,38 @@ public:
   inline PixmapMask *getIconifyButtonMask(void) { return &icon_button; }
   inline PixmapMask *getStickyButtonMask(void) { return &stick_button; }
 
-  inline BColor *getTextFocus(void) { return &l_text_focus; }
-  inline BColor *getTextUnfocus(void) { return &l_text_unfocus; }
+  inline Color *getTextFocus(void) { return &l_text_focus; }
+  inline Color *getTextUnfocus(void) { return &l_text_unfocus; }
 
-  inline BColor *getButtonPicFocus(void) { return &b_pic_focus; }
-  inline BColor *getButtonPicUnfocus(void) { return &b_pic_unfocus; }
+  inline Color *getButtonPicFocus(void) { return &b_pic_focus; }
+  inline Color *getButtonPicUnfocus(void) { return &b_pic_unfocus; }
 
-  inline BTexture *getTitleFocus(void) { return &t_focus; }
-  inline BTexture *getTitleUnfocus(void) { return &t_unfocus; }
+  inline Texture *getTitleFocus(void) { return &t_focus; }
+  inline Texture *getTitleUnfocus(void) { return &t_unfocus; }
 
-  inline BTexture *getLabelFocus(void) { return &l_focus; }
-  inline BTexture *getLabelUnfocus(void) { return &l_unfocus; }
+  inline Texture *getLabelFocus(void) { return &l_focus; }
+  inline Texture *getLabelUnfocus(void) { return &l_unfocus; }
 
-  inline BTexture *getHandleFocus(void) { return &h_focus; }
-  inline BTexture *getHandleUnfocus(void) { return &h_unfocus; }
+  inline Texture *getHandleFocus(void) { return &h_focus; }
+  inline Texture *getHandleUnfocus(void) { return &h_unfocus; }
 
-  inline BTexture *getButtonFocus(void) { return &b_focus; }
-  inline BTexture *getButtonUnfocus(void) { return &b_unfocus; }
+  inline Texture *getButtonFocus(void) { return &b_focus; }
+  inline Texture *getButtonUnfocus(void) { return &b_unfocus; }
 
-  inline BTexture *getButtonPressedFocus(void)
+  inline Texture *getButtonPressedFocus(void)
   { return &b_pressed_focus; }
-  inline BTexture *getButtonPressedUnfocus(void)
+  inline Texture *getButtonPressedUnfocus(void)
   { return &b_pressed_unfocus; }
 
-  inline BTexture *getGripFocus(void) { return &g_focus; }
-  inline BTexture *getGripUnfocus(void) { return &g_unfocus; }
+  inline Texture *getGripFocus(void) { return &g_focus; }
+  inline Texture *getGripUnfocus(void) { return &g_unfocus; }
 
   inline unsigned int getHandleWidth(void) const { return handle_width; }
   inline unsigned int getBevelWidth(void) const { return bevel_width; }
   inline unsigned int getFrameWidth(void) const { return frame_width; }
   inline unsigned int getBorderWidth(void) const { return border_width; }
 
-  inline const BFont *getFont() const { return font; }
+  inline const Font *getFont() const { return font; }
 
   inline void setShadowFonts(bool fonts) { shadow_fonts = fonts; }
   inline bool hasShadowFonts(void) const { return shadow_fonts; }
@@ -131,12 +132,12 @@ public:
   inline TextJustify textJustify(void) { return justify; }
   inline BulletType bulletType(void) { return bullet_type; }
 
-  inline const BColor *getBorderColor() const { return &border_color; }
+  inline const Color *getBorderColor() const { return &border_color; }
 
-  inline const BTexture *getFrameFocus() const { return &f_focus; }
-  inline const BTexture *getFrameUnfocus() const { return &f_unfocus; }
+  inline const Texture *getFrameFocus() const { return &f_focus; }
+  inline const Texture *getFrameUnfocus() const { return &f_unfocus; }
 
-  inline void setImageControl(BImageControl *c) {
+  inline void setImageControl(ImageControl *c) {
     image_control = c;
     screen_number = c->getScreenInfo()->screen();
   }
index 967878b7edc3cd474ff2f775566bf1acc0edf08f..77a7192bae033b6aef8a9e6586677aa2c06d2a0d 100644 (file)
@@ -21,13 +21,13 @@ using std::string;
 
 namespace otk {
 
-BTexture::BTexture(unsigned int _screen, BImageControl* _ctrl)
+Texture::Texture(unsigned int _screen, ImageControl* _ctrl)
   : c(_screen), ct(_screen),
     lc(_screen), sc(_screen), bc(_screen), t(0),
     ctrl(_ctrl), scrn(_screen) { }
 
 
-BTexture::BTexture(const string &d,unsigned int _screen, BImageControl* _ctrl)
+Texture::Texture(const string &d,unsigned int _screen, ImageControl* _ctrl)
   : c(_screen), ct(_screen),
     lc(_screen), sc(_screen), bc(_screen), t(0),
     ctrl(_ctrl), scrn(_screen) {
@@ -35,7 +35,7 @@ BTexture::BTexture(const string &d,unsigned int _screen, BImageControl* _ctrl)
 }
 
 
-void BTexture::setColor(const BColor &cc) {
+void Texture::setColor(const Color &cc) {
   c = cc;
   c.setScreen(screen());
 
@@ -51,7 +51,7 @@ void BTexture::setColor(const BColor &cc) {
   if (rr < r) rr = ~0;
   if (gg < g) gg = ~0;
   if (bb < b) bb = ~0;
-  lc = BColor(rr, gg, bb, screen());
+  lc = Color(rr, gg, bb, screen());
 
   // calculate the shadow color
   r = c.red();
@@ -63,11 +63,11 @@ void BTexture::setColor(const BColor &cc) {
   if (rr > r) rr = 0;
   if (gg > g) gg = 0;
   if (bb > b) bb = 0;
-  sc = BColor(rr, gg, bb, screen());
+  sc = Color(rr, gg, bb, screen());
 }
 
 
-void BTexture::setDescription(const string &d) {
+void Texture::setDescription(const string &d) {
   descr.erase();
   descr.reserve(d.length());
 
@@ -76,55 +76,55 @@ void BTexture::setDescription(const string &d) {
     descr += tolower(*it);
 
   if (descr.find("parentrelative") != string::npos) {
-    setTexture(BTexture::Parent_Relative);
+    setTexture(Texture::Parent_Relative);
   } else {
     setTexture(0);
 
     if (descr.find("gradient") != string::npos) {
-      addTexture(BTexture::Gradient);
+      addTexture(Texture::Gradient);
       if (descr.find("crossdiagonal") != string::npos)
-        addTexture(BTexture::CrossDiagonal);
+        addTexture(Texture::CrossDiagonal);
       else if (descr.find("rectangle") != string::npos)
-        addTexture(BTexture::Rectangle);
+        addTexture(Texture::Rectangle);
       else if (descr.find("pyramid") != string::npos)
-        addTexture(BTexture::Pyramid);
+        addTexture(Texture::Pyramid);
       else if (descr.find("pipecross") != string::npos)
-        addTexture(BTexture::PipeCross);
+        addTexture(Texture::PipeCross);
       else if (descr.find("elliptic") != string::npos)
-        addTexture(BTexture::Elliptic);
+        addTexture(Texture::Elliptic);
       else if (descr.find("horizontal") != string::npos)
-        addTexture(BTexture::Horizontal);
+        addTexture(Texture::Horizontal);
       else if (descr.find("vertical") != string::npos)
-        addTexture(BTexture::Vertical);
+        addTexture(Texture::Vertical);
       else
-        addTexture(BTexture::Diagonal);
+        addTexture(Texture::Diagonal);
     } else {
-      addTexture(BTexture::Solid);
+      addTexture(Texture::Solid);
     }
 
     if (descr.find("sunken") != string::npos)
-      addTexture(BTexture::Sunken);
+      addTexture(Texture::Sunken);
     else if (descr.find("flat") != string::npos)
-      addTexture(BTexture::Flat);
+      addTexture(Texture::Flat);
     else
-      addTexture(BTexture::Raised);
+      addTexture(Texture::Raised);
 
-    if (texture() & BTexture::Flat) {
+    if (texture() & Texture::Flat) {
       if (descr.find("border") != string::npos)
-        addTexture(BTexture::Border);
+        addTexture(Texture::Border);
     } else {
       if (descr.find("bevel2") != string::npos)
-        addTexture(BTexture::Bevel2);
+        addTexture(Texture::Bevel2);
       else
-        addTexture(BTexture::Bevel1);
+        addTexture(Texture::Bevel1);
     }
 
     if (descr.find("interlaced") != string::npos)
-      addTexture(BTexture::Interlaced);
+      addTexture(Texture::Interlaced);
   }
 }
 
-void BTexture::setScreen(const unsigned int _screen) {
+void Texture::setScreen(const unsigned int _screen) {
   if (_screen == screen()) {
     // nothing to do
     return;
@@ -139,7 +139,7 @@ void BTexture::setScreen(const unsigned int _screen) {
 }
 
 
-BTexture& BTexture::operator=(const BTexture &tt) {
+Texture& Texture::operator=(const Texture &tt) {
   c  = tt.c;
   ct = tt.ct;
   lc = tt.lc;
@@ -154,17 +154,17 @@ BTexture& BTexture::operator=(const BTexture &tt) {
 }
 
 
-Pixmap BTexture::render(const unsigned int width, const unsigned int height,
+Pixmap Texture::render(const unsigned int width, const unsigned int height,
                         const Pixmap old) {
-  assert(texture() != BTexture::NoTexture);
+  assert(texture() != Texture::NoTexture);
 
-//  if (texture() == (BTexture::Flat | BTexture::Solid))
+//  if (texture() == (Texture::Flat | Texture::Solid))
 //    return None;
-  if (texture() == BTexture::Parent_Relative)
+  if (texture() == Texture::Parent_Relative)
     return ParentRelative;
 
   if (screen() == ~(0u))
-    scrn = DefaultScreen(OBDisplay::display);
+    scrn = DefaultScreen(Display::display);
 
   assert(ctrl != 0);
   Pixmap ret = ctrl->renderImage(width, height, *this);
index f487f449216cad3f582b278839538b5a47c53bf3..84763da4e3420bbdf9a3e1fc04d05a554162ab0b 100644 (file)
@@ -9,9 +9,9 @@
 
 namespace otk {
 
-class BImageControl;
+class ImageControl;
 
-class BTexture {
+class Texture {
 public:
   enum Type {
     // No texture
@@ -45,36 +45,36 @@ public:
     Interlaced          = (1l<<18)
   };
 
-  BTexture(unsigned int _screen = ~(0u), BImageControl* _ctrl = 0);
-  BTexture(const std::string &_description,
-           unsigned int _screen = ~(0u), BImageControl* _ctrl = 0);
+  Texture(unsigned int _screen = ~(0u), ImageControl* _ctrl = 0);
+  Texture(const std::string &_description,
+           unsigned int _screen = ~(0u), ImageControl* _ctrl = 0);
 
-  void setColor(const BColor &_color);
-  void setColorTo(const BColor &_colorTo) { ct = _colorTo; }
-  void setBorderColor(const BColor &_borderColor) { bc = _borderColor; }
+  void setColor(const Color &_color);
+  void setColorTo(const Color &_colorTo) { ct = _colorTo; }
+  void setBorderColor(const Color &_borderColor) { bc = _borderColor; }
 
-  const BColor &color(void) const { return c; }
-  const BColor &colorTo(void) const { return ct; }
-  const BColor &lightColor(void) const { return lc; }
-  const BColor &shadowColor(void) const { return sc; }
-  const BColor &borderColor(void) const { return bc; }
+  const Color &color(void) const { return c; }
+  const Color &colorTo(void) const { return ct; }
+  const Color &lightColor(void) const { return lc; }
+  const Color &shadowColor(void) const { return sc; }
+  const Color &borderColor(void) const { return bc; }
 
   unsigned long texture(void) const { return t; }
   void setTexture(const unsigned long _texture) { t  = _texture; }
   void addTexture(const unsigned long _texture) { t |= _texture; }
 
 #ifndef SWIG
-  BTexture &operator=(const BTexture &tt);
+  Texture &operator=(const Texture &tt);
 #endif
-  inline bool operator==(const BTexture &tt)
+  inline bool operator==(const Texture &tt)
   { return (c == tt.c && ct == tt.ct && lc == tt.lc &&
             sc == tt.sc && t == tt.t); }
-  inline bool operator!=(const BTexture &tt)
+  inline bool operator!=(const Texture &tt)
   { return (! operator==(tt)); }
 
   unsigned int screen(void) const { return scrn; }
   void setScreen(const unsigned int _screen);
-  void setImageControl(BImageControl* _ctrl) { ctrl = _ctrl; }
+  void setImageControl(ImageControl* _ctrl) { ctrl = _ctrl; }
   const std::string &description(void) const { return descr; }
   void setDescription(const std::string &d);
 
@@ -82,10 +82,10 @@ public:
                 const Pixmap old = 0);
 
 private:
-  BColor c, ct, lc, sc, bc;
+  Color c, ct, lc, sc, bc;
   std::string descr;
   unsigned long t;
-  BImageControl *ctrl;
+  ImageControl *ctrl;
   unsigned int scrn;
 };
 
index 2e2205f78fa0d960f58675fadb7fe1ed2e59a2eb..3fe8c7035196229ef77a12a4a6bf67565c84cb2a 100644 (file)
@@ -33,7 +33,7 @@ static timeval normalizeTimeval(const timeval &tm)
 }
 
 
-OBTimer::OBTimer(OBTimerQueueManager *m, OBTimeoutHandler h, OBTimeoutData d)
+Timer::Timer(TimerQueueManager *m, TimeoutHandler h, TimeoutData d)
 {
   _manager = m;
   _handler = h;
@@ -43,13 +43,13 @@ OBTimer::OBTimer(OBTimerQueueManager *m, OBTimeoutHandler h, OBTimeoutData d)
 }
 
 
-OBTimer::~OBTimer(void)
+Timer::~Timer(void)
 {
   if (_timing) stop();
 }
 
 
-void OBTimer::setTimeout(long t)
+void Timer::setTimeout(long t)
 {
   _timeout.tv_sec = t / 1000;
   _timeout.tv_usec = t % 1000;
@@ -57,14 +57,14 @@ void OBTimer::setTimeout(long t)
 }
 
 
-void OBTimer::setTimeout(const timeval &t)
+void Timer::setTimeout(const timeval &t)
 {
   _timeout.tv_sec = t.tv_sec;
   _timeout.tv_usec = t.tv_usec;
 }
 
 
-void OBTimer::start(void)
+void Timer::start(void)
 {
   gettimeofday(&_start, 0);
 
@@ -75,7 +75,7 @@ void OBTimer::start(void)
 }
 
 
-void OBTimer::stop(void)
+void Timer::stop(void)
 {
   if (_timing) {
     _timing = false;
@@ -85,14 +85,14 @@ void OBTimer::stop(void)
 }
 
 
-void OBTimer::fire(void)
+void Timer::fire(void)
 {
   if (_handler)
     _handler(_data);
 }
 
 
-timeval OBTimer::remainingTime(const timeval &tm) const
+timeval Timer::remainingTime(const timeval &tm) const
 {
   timeval ret = endTime();
 
@@ -103,7 +103,7 @@ timeval OBTimer::remainingTime(const timeval &tm) const
 }
 
 
-timeval OBTimer::endTime(void) const
+timeval Timer::endTime(void) const
 {
   timeval ret;
 
@@ -114,7 +114,7 @@ timeval OBTimer::endTime(void) const
 }
 
 
-bool OBTimer::shouldFire(const timeval &tm) const
+bool Timer::shouldFire(const timeval &tm) const
 {
   timeval end = endTime();
 
index d518dc5a9abfec6187d365eb97e02f758d6e5c13..7d3e726d224c464e0be69668d9d352dcd7e3a600 100644 (file)
@@ -1,4 +1,4 @@
-// -*- mode: C++; indent-tabs-mode: nil; -*-
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef   __timer_hh
 #define   __timer_hh
 
@@ -17,26 +17,26 @@ extern "C" {
 
 namespace otk {
 
-class OBTimerQueueManager;
+class TimerQueueManager;
 
-//! The data passed to the OBTimeoutHandler function.
+//! The data passed to the TimeoutHandler function.
 /*!
   Note: this is a very useful place to put an object instance, and set the
   event handler to a static function in the same class.
 */
-typedef void *OBTimeoutData;
-//! The type of function which can be set as the callback for an OBTimer firing
-typedef void (*OBTimeoutHandler)(OBTimeoutData);
+typedef void *TimeoutData;
+//! The type of function which can be set as the callback for a Timer firing
+typedef void (*TimeoutHandler)(TimeoutData);
 
 //! A Timer class which will fire a function when its time elapses
-class OBTimer {
+class Timer {
 private:
   //! The manager which to add ourself to and remove ourself after we are done
-  OBTimerQueueManager *_manager;
+  TimerQueueManager *_manager;
   //! The function to call when the time elapses
-  OBTimeoutHandler _handler;
-  //! The data which gets passed along to the OBTimeoutHandler
-  OBTimeoutData _data;
+  TimeoutHandler _handler;
+  //! The data which gets passed along to the TimeoutHandler
+  TimeoutData _data;
   //! Determines if the timer is currently started
   bool _timing;
   //! When this is true, the timer will reset itself to fire again every time
@@ -47,57 +47,57 @@ private:
   //! The time at which the timer is going to fire
   timeval _timeout;
 
-  //! Disallows copying of OBTimer objects
-  OBTimer(const OBTimer&);
-  //! Disallows copying of OBTimer objects
-  OBTimer& operator=(const OBTimer&);
+  //! Disallows copying of Timer objects
+  Timer(const Timer&);
+  //! Disallows copying of Timer objects
+  Timer& operator=(const Timer&);
 
 public:
-  //! Constructs a new OBTimer object
+  //! Constructs a new Timer object
   /*!
-    @param m The OBTimerQueueManager with which to associate. The manager
+    @param m The TimerQueueManager with which to associate. The manager
              specified will be resposible for making this timer fire.
     @param h The function to call when the timer fires
     @param d The data to pass along to the function call when the timer fires
   */
-  OBTimer(OBTimerQueueManager *m, OBTimeoutHandler h, OBTimeoutData d);
-  //! Destroys the OBTimer object
-  virtual ~OBTimer();
+  Timer(TimerQueueManager *m, TimeoutHandler h, TimeoutData d);
+  //! Destroys the Timer object
+  virtual ~Timer();
 
-  //! Fires the timer, calling its OBTimeoutHandler
+  //! Fires the timer, calling its TimeoutHandler
   void fire();
 
-  //! Returns if the OBTimer is started and timing
+  //! Returns if the Timer is started and timing
   inline bool timing() const { return _timing; }
-  //! Returns if the OBTimer is going to repeat
+  //! Returns if the Timer is going to repeat
   inline bool recurring() const { return _recur; }
 
-  //! Gets the amount of time the OBTimer should last before firing
+  //! Gets the amount of time the Timer should last before firing
   inline const timeval &timeout() const { return _timeout; }
-  //! Gets the time at which the OBTimer started
+  //! Gets the time at which the Timer started
   inline const timeval &startTime() const { return _start; }
 
-  //! Gets the amount of time left before the OBTimer fires
+  //! Gets the amount of time left before the Timer fires
   timeval remainingTime(const timeval &tm) const;
-  //! Returns if the OBTimer is past its timeout time, and should fire
+  //! Returns if the Timer is past its timeout time, and should fire
   bool shouldFire(const timeval &tm) const;
 
-  //! Gets the time at which the OBTimer will fire
+  //! Gets the time at which the Timer will fire
   timeval endTime() const;
 
-  //! Sets the OBTimer to repeat or not
+  //! Sets the Timer to repeat or not
   /*!
     @param b If true, the timer is set to repeat; otherwise, it will fire only
              once
   */
   inline void setRecurring(bool b) { _recur = b; }
 
-  //! Sets the amount of time for the OBTimer to last in milliseconds
+  //! Sets the amount of time for the Timer to last in milliseconds
   /*!
     @param t The number of milliseconds the timer should last
   */
   void setTimeout(long t);
-  //! Sets the amount of time the OBTimer should last before firing
+  //! Sets the amount of time the Timer should last before firing
   /*!
     @param t The amount of time the timer should last
   */
@@ -105,7 +105,7 @@ public:
 
   //! Causes the timer to begin
   /*!
-    The timer fires after the time in OBTimer::getTimeout has passed since this
+    The timer fires after the time in Timer::getTimeout has passed since this
     function was called.
     Calling this function while the timer is already started will cause it to
     restart its countdown.
@@ -118,12 +118,12 @@ public:
   */
   void stop();   // manager releases timer
 
-  //! Determines if this OBTimer will fire before a second OBTimer object
+  //! Determines if this Timer will fire before a second Timer object
   /*!
-    @param other The second OBTimer with which to compare
-    @return true if this OBTimer will fire before 'other'; otherwise, false
+    @param other The second Timer with which to compare
+    @return true if this Timer will fire before 'other'; otherwise, false
   */
-  bool operator<(const OBTimer& other) const
+  bool operator<(const Timer& other) const
   { return shouldFire(other.endTime()); }
 };
 
index f9237a674960cf78f5db73cebc630b69a2f59b38..5a531ebe0723601af5dd5861950a39a88d068c57 100644 (file)
@@ -1,4 +1,4 @@
-// -*- mode: C++; indent-tabs-mode: nil; -*-
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef __timerqueue_hh
 #define __timerqueue_hh
 
@@ -37,13 +37,12 @@ private:
 };
 
 struct TimerLessThan {
-  bool operator()(const OBTimer* const l, const OBTimer* const r) const {
+  bool operator()(const Timer* const l, const Timer* const r) const {
     return *r < *l;
   }
 };
 
-typedef _timer_queue<OBTimer*,
-                     std::vector<OBTimer*>, TimerLessThan> TimerQueue;
+typedef _timer_queue<Timer*, std::vector<Timer*>, TimerLessThan> TimerQueue;
 
 }
 
index 793351543d8e33a4e2c9775be19c0993ab187cd3..1d6b50ce8ece5e9d86b8ea5943fe0adc256b70c0 100644 (file)
@@ -9,19 +9,19 @@
 
 namespace otk {
 
-void OBTimerQueueManager::fire(bool wait)
+void TimerQueueManager::fire(bool wait)
 {
   fd_set rfds;
   timeval now, tm, *timeout = (timeval *) 0;
 
-  const int xfd = ConnectionNumber(otk::OBDisplay::display);
+  const int xfd = ConnectionNumber(Display::display);
   
   FD_ZERO(&rfds);
   FD_SET(xfd, &rfds); // break on any x events
 
   if (wait) {
     if (! timerList.empty()) {
-      const OBTimer* const timer = timerList.top();
+      const Timer* const timer = timerList.top();
       
       gettimeofday(&now, 0);
       tm = timer->remainingTime(now);
@@ -40,7 +40,7 @@ void OBTimerQueueManager::fire(bool wait)
   // timer->start() and timer->shouldFire() is within the timer's period
   // then the timer will keep firing.  This should be VERY near impossible.
   while (! timerList.empty()) {
-    OBTimer *timer = timerList.top();
+    Timer *timer = timerList.top();
     if (! timer->shouldFire(now))
       break;
 
@@ -53,13 +53,13 @@ void OBTimerQueueManager::fire(bool wait)
 }
 
 
-void OBTimerQueueManager::addTimer(OBTimer *timer)
+void TimerQueueManager::addTimer(Timer *timer)
 {
   assert(timer);
   timerList.push(timer);
 }
 
-void OBTimerQueueManager::removeTimer(OBTimer* timer)
+void TimerQueueManager::removeTimer(Timer* timer)
 {
   assert(timer);
   timerList.release(timer);
index af81ecfe0d6c82220405c452cce74c1c73bd8ce7..042ede4c6c2ff035b67f007b3a4851adfb081c6b 100644 (file)
@@ -1,4 +1,4 @@
-// -*- mode: C++; indent-tabs-mode: nil; -*-
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef __timerqueuemanager_hh
 #define __timerqueuemanager_hh
 
@@ -6,21 +6,21 @@
 
 namespace otk {
 
-//! Manages a queue of OBTimer objects
+//! Manages a queue of Timer objects
 /*!
-  All OBTimer objects add themself to an OBTimerQueueManager. The manager is
+  All Timer objects add themself to a TimerQueueManager. The manager is
   what fires the timers when their time has elapsed. This is done by having the
-  application call the OBTimerQueueManager::fire class in its main event loop.
+  application call the TimerQueueManager::fire class in its main event loop.
 */
-class OBTimerQueueManager {
+class TimerQueueManager {
 private:
   //! A priority queue of all timers being managed by this class.
   TimerQueue timerList;
 public:
-  //! Constructs a new OBTimerQueueManager
-  OBTimerQueueManager() {}
-  //! Destroys the OBTimerQueueManager
-  virtual ~OBTimerQueueManager() {}
+  //! Constructs a new TimerQueueManager
+  TimerQueueManager() {}
+  //! Destroys the TimerQueueManager
+  virtual ~TimerQueueManager() {}
 
   //! Fire the next timer in the queue.
   /*!
@@ -31,14 +31,14 @@ public:
 
   //! Adds a new timer to the queue
   /*!
-    @param timer An OBTimer to add to the queue
+    @param timer An Timer to add to the queue
   */
-  virtual void addTimer(OBTimer* timer);
+  virtual void addTimer(Timer* timer);
   //! Removes a timer from the queue
   /*!
-    @param timer An OBTimer already in the queue to remove
+    @param timer An Timer already in the queue to remove
   */
-  virtual void removeTimer(OBTimer* timer);
+  virtual void removeTimer(Timer* timer);
 };
 
 }
index 2325ebf0b813ff0b38ae5a0bceb48caac82bd5c9..91c247a684a7d8b6abbdf3aebce6947a6db6bebf 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
-#ifndef _BLACKBOX_UTIL_HH
-#define _BLACKBOX_UTIL_HH
+#ifndef __util_hh
+#define __util_hh
 
 extern "C" {
 #include <X11/Xlib.h>
@@ -18,7 +18,6 @@ extern "C" {
 #endif // TIME_WITH_SYS_TIME
 }
 
-
 #include <string>
 #include <vector>
 
@@ -46,4 +45,4 @@ std::string basename(const std::string& path);
 
 }
 
-#endif
+#endif // __util_hh
index 5dd1bce9976e82a643bace905b438c501e36418d..604992fd1f1fbaf48de13a7651e8b56a5b1fef12 100644 (file)
@@ -14,8 +14,8 @@
 
 namespace otk {
 
-OtkWidget::OtkWidget(OtkWidget *parent, Direction direction)
-  : OtkEventHandler(),
+Widget::Widget(Widget *parent, Direction direction)
+  : EventHandler(),
     _dirty(false), _focused(false),
     _parent(parent), _style(parent->style()), _direction(direction),
     _cursor(parent->cursor()), _bevel_width(parent->bevelWidth()),
@@ -33,10 +33,10 @@ OtkWidget::OtkWidget(OtkWidget *parent, Direction direction)
   setStyle(_style); // let the widget initialize stuff
 }
 
-OtkWidget::OtkWidget(OtkEventDispatcher *event_dispatcher, Style *style,
+Widget::Widget(EventDispatcher *event_dispatcher, Style *style,
                      Direction direction, Cursor cursor, int bevel_width,
                      bool override_redirect)
-  : OtkEventHandler(),
+  : EventHandler(),
     _dirty(false),_focused(false),
     _parent(0), _style(style), _direction(direction), _cursor(cursor),
     _bevel_width(bevel_width), _ignore_config(0), _visible(false),
@@ -53,7 +53,7 @@ OtkWidget::OtkWidget(OtkEventDispatcher *event_dispatcher, Style *style,
   setStyle(_style); // let the widget initialize stuff
 }
 
-OtkWidget::~OtkWidget()
+Widget::~Widget()
 {
   if (_visible)
     hide();
@@ -65,12 +65,12 @@ OtkWidget::~OtkWidget()
   if (_parent)
     _parent->removeChild(this);
 
-  XDestroyWindow(otk::OBDisplay::display, _window);
+  XDestroyWindow(Display::display, _window);
 }
 
-void OtkWidget::create(bool override_redirect)
+void Widget::create(bool override_redirect)
 {
-  const ScreenInfo *scr_info = otk::OBDisplay::screenInfo(_screen);
+  const ScreenInfo *scr_info = Display::screenInfo(_screen);
   Window p_window = _parent ? _parent->window() : scr_info->rootWindow();
 
   _rect.setRect(0, 0, 1, 1); // just some initial values
@@ -93,71 +93,71 @@ void OtkWidget::create(bool override_redirect)
     attrib_create.cursor = _cursor;
   }
 
-  _window = XCreateWindow(otk::OBDisplay::display, p_window, _rect.x(),
+  _window = XCreateWindow(Display::display, p_window, _rect.x(),
                           _rect.y(), _rect.width(), _rect.height(), 0,
                           scr_info->depth(), InputOutput,
                           scr_info->visual(), create_mask, &attrib_create);
   _ignore_config++;
 }
 
-void OtkWidget::setWidth(int w)
+void Widget::setWidth(int w)
 {
   assert(w > 0);
   _fixed_width = true;  
   setGeometry(_rect.x(), _rect.y(), w, _rect.height());
 }
 
-void OtkWidget::setHeight(int h)
+void Widget::setHeight(int h)
 {
   assert(h > 0);
   _fixed_height = true;
   setGeometry(_rect.x(), _rect.y(), _rect.width(), h);
 }
 
-void OtkWidget::move(const Point &to)
+void Widget::move(const Point &to)
 {
   move(to.x(), to.y());
 }
 
-void OtkWidget::move(int x, int y)
+void Widget::move(int x, int y)
 {
   _rect.setPos(x, y);
-  XMoveWindow(otk::OBDisplay::display, _window, x, y);
+  XMoveWindow(Display::display, _window, x, y);
   _ignore_config++;
 }
 
-void OtkWidget::resize(const Point &to)
+void Widget::resize(const Point &to)
 {
   resize(to.x(), to.y());
 }
 
-void OtkWidget::resize(int w, int h)
+void Widget::resize(int w, int h)
 {
   assert(w > 0 && h > 0);
   _fixed_width = _fixed_height = true;
   setGeometry(_rect.x(), _rect.y(), w, h);
 }
 
-void OtkWidget::setGeometry(const Rect &new_geom)
+void Widget::setGeometry(const Rect &new_geom)
 {
   setGeometry(new_geom.x(), new_geom.y(), new_geom.width(), new_geom.height());
 }
  
-void OtkWidget::setGeometry(const Point &topleft, int width, int height)
+void Widget::setGeometry(const Point &topleft, int width, int height)
 {
   setGeometry(topleft.x(), topleft.y(), width, height);
 }
 
-void OtkWidget::setGeometry(int x, int y, int width, int height)
+void Widget::setGeometry(int x, int y, int width, int height)
 {
   _rect = Rect(x, y, width, height);
   _dirty = true;
 
-  XMoveResizeWindow(otk::OBDisplay::display, _window, x, y, width, height);
+  XMoveResizeWindow(Display::display, _window, x, y, width, height);
   _ignore_config++;
 }
 
-void OtkWidget::show(bool recursive)
+void Widget::show(bool recursive)
 {
   if (_visible)
     return;
@@ -167,53 +167,53 @@ void OtkWidget::show(bool recursive)
     update();
 
   if (recursive) {
-    OtkWidgetList::iterator it = _children.begin(), end = _children.end();
+    WidgetList::iterator it = _children.begin(), end = _children.end();
     for (; it != end; ++it)
       (*it)->show();
   }
 
-  XMapWindow(otk::OBDisplay::display, _window);
+  XMapWindow(Display::display, _window);
   _visible = true;
 }
 
-void OtkWidget::hide(bool recursive)
+void Widget::hide(bool recursive)
 {
   if (! _visible)
     return;
 
   if (recursive) {
-    OtkWidgetList::iterator it = _children.begin(), end = _children.end();
+    WidgetList::iterator it = _children.begin(), end = _children.end();
     for (; it != end; ++it)
       (*it)->hide();
   }
   
-  XUnmapWindow(otk::OBDisplay::display, _window);
+  XUnmapWindow(Display::display, _window);
   _visible = false;
 }
 
-void OtkWidget::focus(void)
+void Widget::focus(void)
 {
   _focused = true;
   
-  OtkWidget::OtkWidgetList::iterator it = _children.begin(),
+  Widget::WidgetList::iterator it = _children.begin(),
     end = _children.end();
   for (; it != end; ++it)
     (*it)->focus();
 }
 
-void OtkWidget::unfocus(void)
+void Widget::unfocus(void)
 {
   _focused = false;
   
-  OtkWidget::OtkWidgetList::iterator it = _children.begin(),
+  Widget::WidgetList::iterator it = _children.begin(),
     end = _children.end();
   for (; it != end; ++it)
     (*it)->unfocus();
 }
 
-bool OtkWidget::grabMouse(void)
+bool Widget::grabMouse(void)
 {
-  Status ret = XGrabPointer(otk::OBDisplay::display, _window, True,
+  Status ret = XGrabPointer(Display::display, _window, True,
                             (ButtonPressMask | ButtonReleaseMask |
                              ButtonMotionMask | EnterWindowMask |
                              LeaveWindowMask | PointerMotionMask),
@@ -223,52 +223,52 @@ bool OtkWidget::grabMouse(void)
   return _grabbed_mouse;
 }
 
-void OtkWidget::ungrabMouse(void)
+void Widget::ungrabMouse(void)
 {
   if (! _grabbed_mouse)
     return;
 
-  XUngrabPointer(otk::OBDisplay::display, CurrentTime);
+  XUngrabPointer(Display::display, CurrentTime);
   _grabbed_mouse = false;
 }
 
-bool OtkWidget::grabKeyboard(void)
+bool Widget::grabKeyboard(void)
 {
-  Status ret = XGrabKeyboard(otk::OBDisplay::display, _window, True,
+  Status ret = XGrabKeyboard(Display::display, _window, True,
                              GrabModeSync, GrabModeAsync, CurrentTime);
   _grabbed_keyboard = (ret == GrabSuccess);
   return _grabbed_keyboard;
 
 }
 
-void OtkWidget::ungrabKeyboard(void)
+void Widget::ungrabKeyboard(void)
 {
   if (! _grabbed_keyboard)
     return;
 
-  XUngrabKeyboard(otk::OBDisplay::display, CurrentTime);
+  XUngrabKeyboard(Display::display, CurrentTime);
   _grabbed_keyboard = false;
 }
 
-void OtkWidget::render(void)
+void Widget::render(void)
 {
   if (!_texture) return;
 
   _bg_pixmap = _texture->render(_rect.width(), _rect.height(), _bg_pixmap);
 
   if (_bg_pixmap) {
-    XSetWindowBackgroundPixmap(otk::OBDisplay::display, _window, _bg_pixmap);
+    XSetWindowBackgroundPixmap(Display::display, _window, _bg_pixmap);
     _bg_pixel = None;
   } else {
     unsigned int pix = _texture->color().pixel();
     if (pix != _bg_pixel) {
       _bg_pixel = pix;
-      XSetWindowBackground(otk::OBDisplay::display, _window, pix);
+      XSetWindowBackground(Display::display, _window, pix);
     }
   }
 }
 
-void OtkWidget::adjust(void)
+void Widget::adjust(void)
 {
   if (_direction == Horizontal)
     adjustHorz();
@@ -276,17 +276,17 @@ void OtkWidget::adjust(void)
     adjustVert();
 }
 
-void OtkWidget::adjustHorz(void)
+void Widget::adjustHorz(void)
 {
   if (_children.size() == 0)
     return;
 
-  OtkWidget *tmp;
-  OtkWidgetList::iterator it, end = _children.end();
+  Widget *tmp;
+  WidgetList::iterator it, end = _children.end();
 
   int tallest = 0;
   int width = _bevel_width;
-  OtkWidgetList stretchable;
+  WidgetList stretchable;
 
   for (it = _children.begin(); it != end; ++it) {
     tmp = *it;
@@ -303,7 +303,7 @@ void OtkWidget::adjustHorz(void)
   }
 
   if (stretchable.size() > 0) {
-    OtkWidgetList::iterator str_it = stretchable.begin(),
+    WidgetList::iterator str_it = stretchable.begin(),
       str_end = stretchable.end();
 
     int str_width = _rect.width() - width / stretchable.size();
@@ -313,7 +313,7 @@ void OtkWidget::adjustHorz(void)
                           : _bevel_width);
   }
 
-  OtkWidget *prev_widget = 0;
+  Widget *prev_widget = 0;
 
   for (it = _children.begin(); it != end; ++it) {
     tmp = *it;
@@ -333,17 +333,17 @@ void OtkWidget::adjustHorz(void)
   internalResize(width, tallest + _bevel_width * 2);
 }
 
-void OtkWidget::adjustVert(void)
+void Widget::adjustVert(void)
 {
   if (_children.size() == 0)
     return;
 
-  OtkWidget *tmp;
-  OtkWidgetList::iterator it, end = _children.end();
+  Widget *tmp;
+  WidgetList::iterator it, end = _children.end();
 
   int widest = 0;
   int height = _bevel_width;
-  OtkWidgetList stretchable;
+  WidgetList stretchable;
 
   for (it = _children.begin(); it != end; ++it) {
     tmp = *it;
@@ -360,7 +360,7 @@ void OtkWidget::adjustVert(void)
   }
 
   if (stretchable.size() > 0) {
-    OtkWidgetList::iterator str_it = stretchable.begin(),
+    WidgetList::iterator str_it = stretchable.begin(),
       str_end = stretchable.end();
 
     int str_height = _rect.height() - height / stretchable.size();
@@ -370,7 +370,7 @@ void OtkWidget::adjustVert(void)
                            str_height - _bevel_width : _bevel_width);
   }
 
-  OtkWidget *prev_widget = 0;
+  Widget *prev_widget = 0;
 
   for (it = _children.begin(); it != end; ++it) {
     tmp = *it;
@@ -390,22 +390,22 @@ void OtkWidget::adjustVert(void)
   internalResize(widest + _bevel_width * 2, height);
 }
 
-void OtkWidget::update(void)
+void Widget::update(void)
 {
   if (_dirty) {
     adjust();
     render();
-    XClearWindow(OBDisplay::display, _window);
+    XClearWindow(Display::display, _window);
   }
 
-  OtkWidgetList::iterator it = _children.begin(), end = _children.end();
+  WidgetList::iterator it = _children.begin(), end = _children.end();
   for (; it != end; ++it)
     (*it)->update();
 
   _dirty = false;
 }
 
-void OtkWidget::internalResize(int w, int h)
+void Widget::internalResize(int w, int h)
 {
   assert(w > 0 && h > 0);
 
@@ -417,7 +417,7 @@ void OtkWidget::internalResize(int w, int h)
     resize(_rect.width(), h);
 }
 
-void OtkWidget::addChild(OtkWidget *child, bool front)
+void Widget::addChild(Widget *child, bool front)
 {
   assert(child);
   if (front)
@@ -426,10 +426,10 @@ void OtkWidget::addChild(OtkWidget *child, bool front)
     _children.push_back(child);
 }
 
-void OtkWidget::removeChild(OtkWidget *child)
+void Widget::removeChild(Widget *child)
 {
   assert(child);
-  OtkWidgetList::iterator it, end = _children.end();
+  WidgetList::iterator it, end = _children.end();
   for (it = _children.begin(); it != end; ++it) {
     if ((*it) == child)
       break;
@@ -439,19 +439,19 @@ void OtkWidget::removeChild(OtkWidget *child)
     _children.erase(it);
 }
 
-void OtkWidget::setStyle(Style *style)
+void Widget::setStyle(Style *style)
 {
   assert(style);
   _style = style;
   _dirty = true;
 
-  OtkWidgetList::iterator it, end = _children.end();
+  WidgetList::iterator it, end = _children.end();
   for (it = _children.begin(); it != end; ++it)
     (*it)->setStyle(style);
 }
 
 
-void OtkWidget::setEventDispatcher(OtkEventDispatcher *disp)
+void Widget::setEventDispatcher(EventDispatcher *disp)
 {
   if (_event_dispatcher)
     _event_dispatcher->clearHandler(_window);
@@ -459,16 +459,16 @@ void OtkWidget::setEventDispatcher(OtkEventDispatcher *disp)
   _event_dispatcher->registerHandler(_window, this);
 }
 
-void OtkWidget::exposeHandler(const XExposeEvent &e)
+void Widget::exposeHandler(const XExposeEvent &e)
 {
-  OtkEventHandler::exposeHandler(e);
+  EventHandler::exposeHandler(e);
   _dirty = true;
   update();
 }
 
-void OtkWidget::configureHandler(const XConfigureEvent &e)
+void Widget::configureHandler(const XConfigureEvent &e)
 {
-  OtkEventHandler::configureHandler(e);
+  EventHandler::configureHandler(e);
   if (_ignore_config) {
     _ignore_config--;
   } else {
index 337bbf14a493a1002e09820cccd9d186c2c48c56..5583faca87717338c3a0e9b9e9cb63236ebebd02 100644 (file)
@@ -1,3 +1,4 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef __widget_hh
 #define __widget_hh
 
@@ -17,20 +18,20 @@ extern "C" {
 
 namespace otk {
 
-class OtkWidget : public OtkEventHandler {
+class Widget : public EventHandler {
 
 public:
 
   enum Direction { Horizontal, Vertical };
 
-  typedef std::list<OtkWidget *> OtkWidgetList;
+  typedef std::list<Widget *> WidgetList;
 
-  OtkWidget(otk::OtkWidget *parent, Direction = Horizontal);
-  OtkWidget(otk::OtkEventDispatcher *event_dispatcher, otk::Style *style,
-            Direction direction = Horizontal, Cursor cursor = 0,
-            int bevel_width = 1, bool override_redirect = false);
+  Widget(Widget *parent, Direction = Horizontal);
+  Widget(EventDispatcher *event_dispatcher, Style *style,
+         Direction direction = Horizontal, Cursor cursor = 0,
+         int bevel_width = 1, bool override_redirect = false);
 
-  virtual ~OtkWidget();
+  virtual ~Widget();
 
   virtual void update(void);
 
@@ -38,12 +39,12 @@ public:
   void configureHandler(const XConfigureEvent &e);
 
   inline Window window(void) const { return _window; }
-  inline const otk::OtkWidget *parent(void) const { return _parent; }
-  inline const OtkWidgetList &children(void) const { return _children; }
+  inline const Widget *parent(void) const { return _parent; }
+  inline const WidgetList &children(void) const { return _children; }
   inline unsigned int screen(void) const { return _screen; }
-  inline const otk::Rect &rect(void) const { return _rect; }
+  inline const Rect &rect(void) const { return _rect; }
 
-  void move(const otk::Point &to);
+  void move(const Point &to);
   void move(int x, int y);
 
   virtual void setWidth(int);
@@ -52,11 +53,11 @@ public:
   virtual int width() const { return _rect.width(); }
   virtual int height() const { return _rect.height(); }
 
-  virtual void resize(const otk::Point &to);
+  virtual void resize(const Point &to);
   virtual void resize(int x, int y);
 
-  virtual void setGeometry(const otk::Rect &new_geom);
-  virtual void setGeometry(const otk::Point &topleft, int width, int height);
+  virtual void setGeometry(const Rect &new_geom);
+  virtual void setGeometry(const Point &topleft, int width, int height);
   virtual void setGeometry(int x, int y, int width, int height);
 
   inline bool isVisible(void) const { return _visible; };
@@ -75,24 +76,24 @@ public:
   bool grabKeyboard(void);
   void ungrabKeyboard(void);
 
-  inline otk::BTexture *texture(void) const { return _texture; }
-  virtual void setTexture(otk::BTexture *texture)
+  inline Texture *texture(void) const { return _texture; }
+  virtual void setTexture(Texture *texture)
     { _texture = texture; _dirty = true; }
 
-  inline const otk::BColor *borderColor(void) const { return _bcolor; }
-  virtual void setBorderColor(const otk::BColor *color) {
+  inline const Color *borderColor(void) const { return _bcolor; }
+  virtual void setBorderColor(const Color *color) {
     assert(color); _bcolor = color;
-    XSetWindowBorder(OBDisplay::display, _window, color->pixel());
+    XSetWindowBorder(Display::display, _window, color->pixel());
   }
 
   inline int borderWidth(void) const { return _bwidth; }
   void setBorderWidth(int width) {
     _bwidth = width;
-    XSetWindowBorderWidth(otk::OBDisplay::display, _window, width);
+    XSetWindowBorderWidth(Display::display, _window, width);
   }
 
-  virtual void addChild(OtkWidget *child, bool front = false);
-  virtual void removeChild(OtkWidget *child);
+  virtual void addChild(Widget *child, bool front = false);
+  virtual void removeChild(Widget *child);
 
   inline bool isStretchableHorz(void) const { return _stretchable_horz; }
   void setStretchableHorz(bool s_horz = true) { _stretchable_horz = s_horz; }
@@ -103,22 +104,22 @@ public:
   inline Cursor cursor(void) const { return _cursor; }
   void setCursor(Cursor cursor) {
     _cursor = cursor;
-    XDefineCursor(OBDisplay::display, _window, _cursor);
+    XDefineCursor(Display::display, _window, _cursor);
   }
 
   inline int bevelWidth(void) const { return _bevel_width; }
   void setBevelWidth(int bevel_width)
-  { assert(bevel_width > 0); _bevel_width = bevel_width; }
+    { assert(bevel_width > 0); _bevel_width = bevel_width; }
 
   inline Direction direction(void) const { return _direction; }
   void setDirection(Direction dir) { _direction = dir; }
 
-  inline otk::Style *style(void) const { return _style; }
-  virtual void setStyle(otk::Style *style);
+  inline Style *style(void) const { return _style; }
+  virtual void setStyle(Style *style);
 
-  inline otk::OtkEventDispatcher *eventDispatcher(void)
-  { return _event_dispatcher; }
-  void setEventDispatcher(otk::OtkEventDispatcher *disp);
+  inline EventDispatcher *eventDispatcher(void)
+    { return _event_dispatcher; }
+  void setEventDispatcher(EventDispatcher *disp);
 
 protected:
   
@@ -134,8 +135,8 @@ protected:
 
   Window _window;
 
-  OtkWidget *_parent;
-  OtkWidgetList _children;
+  Widget *_parent;
+  WidgetList _children;
 
   Style *_style;
   Direction _direction;
@@ -151,11 +152,11 @@ protected:
   bool _stretchable_vert;
   bool _stretchable_horz;
 
-  BTexture *_texture;
+  Texture *_texture;
   Pixmap _bg_pixmap;
   unsigned int _bg_pixel;
 
-  const BColor *_bcolor;
+  const Color *_bcolor;
   unsigned int _bwidth;
 
   Rect _rect;
@@ -164,7 +165,7 @@ protected:
   bool _fixed_width;
   bool _fixed_height;
 
-  OtkEventDispatcher *_event_dispatcher;
+  EventDispatcher *_event_dispatcher;
 };
 
 }
This page took 0.434928 seconds and 4 git commands to generate.