X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fotk.i;h=39a79d952bb9445de05f1f9bb1d8e11c3cc05a80;hb=d11291df3e9ef0173139a97bf6c77471ab3a4119;hp=399d89e028d1988407c452bfcd91d311192d196c;hpb=4c768d5d63154e416e1282396dc48492d0585d42;p=chaz%2Fopenbox diff --git a/otk/otk.i b/otk/otk.i index 399d89e0..39a79d95 100644 --- a/otk/otk.i +++ b/otk/otk.i @@ -7,67 +7,47 @@ # include "../config.h" #endif -#include "application.hh" -#include "appwidget.hh" -#include "assassin.hh" -#include "button.hh" -#include "color.hh" -#include "configuration.hh" -#include "display.hh" -#include "eventdispatcher.hh" -#include "eventhandler.hh" -#include "focuslabel.hh" -#include "focuswidget.hh" -#include "font.hh" -#include "gccache.hh" -#include "image.hh" -#include "label.hh" -#include "point.hh" -#include "property.hh" -#include "rect.hh" -#include "screeninfo.hh" -#include "strut.hh" -#include "style.hh" -#include "texture.hh" -#include "timer.hh" -#include "timerqueue.hh" -#include "timerqueuemanager.hh" -#include "util.hh" -#include "widget.hh" +#include "otk.hh" %} %include "stl.i" //%include std_list.i +%include "ustring.i" -%ignore otk::OBDisplay::display; +%ignore otk::display; %inline %{ - Display *OBDisplay_display() { return otk::OBDisplay::display; } + otk::Display *Display_instance() { return otk::display; } +%}; + +%ignore otk::Property::atoms; +%inline %{ + const otk::Atoms& Property_atoms() { return otk::Property::atoms; } %}; namespace otk { -%rename(setValue_bool) Configuration::setValue(std::string const &,bool); +/*%rename(setValue_bool) Configuration::setValue(std::string const &,bool); %rename(setValue_unsigned) Configuration::setValue(const std::string &, unsigned int); %rename(setValue_long) Configuration::setValue(const std::string &, long); %rename(setValue_unsignedlong) Configuration::setValue(const std::string &, unsigned long); %rename(setValue_string) Configuration::setValue(const std::string &, const std::string &); -%rename(setValue_charptr) Configuration::setValue(const std::string &, const char *); +%rename(setValue_charptr) Configuration::setValue(const std::string &, const char *);*/ %rename(itostring_unsigned) itostring(unsigned int); %rename(itostring_long) itostring(long); %rename(itostring_unsigned_long) itostring(unsigned long); // these are needed for guile, but not needed for python! -%rename(equals) BColor::operator==; -%rename(equals) Rect::operator==; -%rename(equals) BTexture::operator==; -%ignore BColor::operator!=; -%ignore BTexture::operator!=; +//%rename(equals) BColor::operator==; +//%rename(equals) Rect::operator==; +//%rename(equals) BTexture::operator==; +//%ignore BColor::operator!=; +//%ignore BTexture::operator!=; %ignore Rect::operator!=; %ignore Rect::operator|; %ignore Rect::operator|=; %ignore Rect::operator&; %ignore Rect::operator&=; -%ignore OBTimer::operator<; +//%ignore OBTimer::operator<; %ignore TimerLessThan; /* @@ -77,32 +57,29 @@ namespace otk { */ } -%include "eventdispatcher.hh" %include "eventhandler.hh" +%include "eventdispatcher.hh" +%include "point.hh" +%include "rect.hh" +%include "rendercolor.hh" +%include "rendertexture.hh" +%include "font.hh" +%include "renderstyle.hh" %include "widget.hh" +%include "label.hh" %include "focuswidget.hh" %include "focuslabel.hh" %include "appwidget.hh" %include "application.hh" %include "assassin.hh" %include "button.hh" -%include "color.hh" -%include "configuration.hh" +//%include "configuration.hh" %include "display.hh" -%include "font.hh" -%include "gccache.hh" -%include "image.hh" -%include "label.hh" -%include "point.hh" +%include "rendercontrol.hh" %include "property.hh" -%include "rect.hh" %include "screeninfo.hh" %include "strut.hh" -%include "style.hh" -%include "texture.hh" %include "timer.hh" -%include "timerqueue.hh" -%include "timerqueuemanager.hh" %include "util.hh" // for Mod1Mask etc