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