]> icculus.org git repositories - mikachu/openbox.git/blob - otk/otk.i
bind the exec properly
[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
16 %ignore otk::OBDisplay::display;
17 %inline %{
18   Display *OBDisplay_display() { return otk::OBDisplay::display; }
19 %};
20
21 namespace otk {
22 %rename(setValue_bool) Configuration::setValue(std::string const &,bool);
23 %rename(setValue_unsigned) Configuration::setValue(const std::string &, unsigned int);
24 %rename(setValue_long) Configuration::setValue(const std::string &, long);
25 %rename(setValue_unsignedlong) Configuration::setValue(const std::string &, unsigned long);
26 %rename(setValue_string) Configuration::setValue(const std::string &, const std::string &);
27 %rename(setValue_charptr) Configuration::setValue(const std::string &, const char *);
28
29 %rename(itostring_unsigned) itostring(unsigned int);
30 %rename(itostring_long) itostring(long);
31 %rename(itostring_unsigned_long) itostring(unsigned long);
32
33 // these are needed for guile, but not needed for python!
34 %rename(equals) BColor::operator==;
35 %rename(equals) Rect::operator==;
36 %rename(equals) BTexture::operator==;
37 %ignore BColor::operator!=;
38 %ignore BTexture::operator!=;
39 %ignore Rect::operator!=;
40 %ignore Rect::operator|;
41 %ignore Rect::operator|=;
42 %ignore Rect::operator&;
43 %ignore Rect::operator&=;
44 %ignore OBTimer::operator<;
45 %ignore TimerLessThan;
46
47 /*
48 %rename(set_multi) OtkProperty::set(Window, Atoms, Atoms, unsigned long[], int);
49 %rename(set_string) OtkProperty::set(Window, Atoms, StringType, const std::string &);
50 %rename(set_string_multi) OtkProperty::set(Window, Atoms, StringType, const StringVect &);
51 */
52 }
53
54 %include "eventdispatcher.hh"
55 %include "eventhandler.hh"
56 %include "widget.hh"
57 %include "focuswidget.hh"
58 %include "focuslabel.hh"
59 %include "appwidget.hh"
60 %include "application.hh"
61 %include "assassin.hh"
62 %include "button.hh"
63 %include "color.hh"
64 %include "configuration.hh"
65 %include "display.hh"
66 %include "font.hh"
67 %include "gccache.hh"
68 %include "image.hh"
69 %include "label.hh"
70 %include "point.hh"
71 %include "property.hh"
72 %include "rect.hh"
73 %include "screeninfo.hh"
74 %include "strut.hh"
75 %include "style.hh"
76 %include "texture.hh"
77 %include "timer.hh"
78 %include "timerqueue.hh"
79 %include "timerqueuemanager.hh"
80 %include "util.hh"
81 %include "widget.hh"
82
83 // for Mod1Mask etc
84 %include "X11/X.h"