]> icculus.org git repositories - mikachu/openbox.git/blob - wrap/otk.i
new swig build system. much better. yay.
[mikachu/openbox.git] / wrap / otk.i
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2
3 %module otk
4
5 %{
6 #include "otk.hh"
7 %}
8
9 %include "stl.i"
10 //%include std_list.i
11 %include "ustring.i"
12
13 %immutable otk::display;
14 %immutable otk::Property::atoms;
15
16 namespace otk {
17 /*%rename(setValue_bool) Configuration::setValue(std::string const &,bool);
18 %rename(setValue_unsigned) Configuration::setValue(const std::string &, unsigned int);
19 %rename(setValue_long) Configuration::setValue(const std::string &, long);
20 %rename(setValue_unsignedlong) Configuration::setValue(const std::string &, unsigned long);
21 %rename(setValue_string) Configuration::setValue(const std::string &, const std::string &);
22 %rename(setValue_charptr) Configuration::setValue(const std::string &, const char *);*/
23
24 %rename(itostring_unsigned) itostring(unsigned int);
25 %rename(itostring_long) itostring(long);
26 %rename(itostring_unsigned_long) itostring(unsigned long);
27
28 // these are needed for guile, but not needed for python!
29 //%rename(equals) BColor::operator==;
30 //%rename(equals) Rect::operator==;
31 //%rename(equals) BTexture::operator==;
32 //%ignore BColor::operator!=;
33 //%ignore BTexture::operator!=;
34 %ignore Rect::operator!=;
35 %ignore Rect::operator|;
36 %ignore Rect::operator|=;
37 %ignore Rect::operator&;
38 %ignore Rect::operator&=;
39 //%ignore OBTimer::operator<;
40 %ignore TimerLessThan;
41
42 /*
43 %rename(set_multi) OtkProperty::set(Window, Atoms, Atoms, unsigned long[], int);
44 %rename(set_string) OtkProperty::set(Window, Atoms, StringType, const std::string &);
45 %rename(set_string_multi) OtkProperty::set(Window, Atoms, StringType, const StringVect &);
46 */
47 }
48
49 %include "eventhandler.hh"
50 %include "eventdispatcher.hh"
51 %include "point.hh"
52 %include "rect.hh"
53 %include "rendercolor.hh"
54 %include "rendertexture.hh"
55 %include "font.hh"
56 %include "renderstyle.hh"
57 %include "widget.hh"
58 %include "label.hh"
59 %include "focuswidget.hh"
60 %include "focuslabel.hh"
61 %include "appwidget.hh"
62 %include "application.hh"
63 %include "assassin.hh"
64 %include "button.hh"
65 %include "display.hh"
66 %include "rendercontrol.hh"
67 %include "property.hh"
68 %include "screeninfo.hh"
69 %include "strut.hh"
70 %include "timer.hh"
71 %include "util.hh"
72
73 // for Window etc
74 %import "X11/X.h"
75
76 // globals
77 %pythoncode %{
78 display = cvar.display;
79 atoms = cvar.Property_atoms;
80 %}