]> icculus.org git repositories - mikachu/openbox.git/blob - otk/otk.i
sending windows to workspaces works. focus messes up on fast switching
[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 "application.hh"
11 #include "appwidget.hh"
12 #include "assassin.hh"
13 #include "button.hh"
14 #include "color.hh"
15 #include "configuration.hh"
16 #include "display.hh"
17 #include "eventdispatcher.hh"
18 #include "eventhandler.hh"
19 #include "focuslabel.hh"
20 #include "focuswidget.hh"
21 #include "font.hh"
22 #include "gccache.hh"
23 #include "image.hh"
24 #include "label.hh"
25 #include "point.hh"
26 #include "property.hh"
27 #include "rect.hh"
28 #include "screeninfo.hh"
29 #include "strut.hh"
30 #include "style.hh"
31 #include "texture.hh"
32 #include "timer.hh"
33 #include "timerqueue.hh"
34 #include "timerqueuemanager.hh"
35 #include "util.hh"
36 #include "widget.hh"
37 %}
38
39 %include "stl.i"
40 //%include std_list.i
41
42 %ignore otk::OBDisplay::display;
43 %inline %{
44   Display *OBDisplay_display() { return otk::OBDisplay::display; }
45 %};
46
47 namespace otk {
48 %rename(setValue_bool) Configuration::setValue(std::string const &,bool);
49 %rename(setValue_unsigned) Configuration::setValue(const std::string &, unsigned int);
50 %rename(setValue_long) Configuration::setValue(const std::string &, long);
51 %rename(setValue_unsignedlong) Configuration::setValue(const std::string &, unsigned long);
52 %rename(setValue_string) Configuration::setValue(const std::string &, const std::string &);
53 %rename(setValue_charptr) Configuration::setValue(const std::string &, const char *);
54
55 %rename(itostring_unsigned) itostring(unsigned int);
56 %rename(itostring_long) itostring(long);
57 %rename(itostring_unsigned_long) itostring(unsigned long);
58
59 // these are needed for guile, but not needed for python!
60 %rename(equals) BColor::operator==;
61 %rename(equals) Rect::operator==;
62 %rename(equals) BTexture::operator==;
63 %ignore BColor::operator!=;
64 %ignore BTexture::operator!=;
65 %ignore Rect::operator!=;
66 %ignore Rect::operator|;
67 %ignore Rect::operator|=;
68 %ignore Rect::operator&;
69 %ignore Rect::operator&=;
70 %ignore OBTimer::operator<;
71 %ignore TimerLessThan;
72
73 /*
74 %rename(set_multi) OtkProperty::set(Window, Atoms, Atoms, unsigned long[], int);
75 %rename(set_string) OtkProperty::set(Window, Atoms, StringType, const std::string &);
76 %rename(set_string_multi) OtkProperty::set(Window, Atoms, StringType, const StringVect &);
77 */
78 }
79
80 %include "eventdispatcher.hh"
81 %include "eventhandler.hh"
82 %include "widget.hh"
83 %include "focuswidget.hh"
84 %include "focuslabel.hh"
85 %include "appwidget.hh"
86 %include "application.hh"
87 %include "assassin.hh"
88 %include "button.hh"
89 %include "color.hh"
90 %include "configuration.hh"
91 %include "display.hh"
92 %include "font.hh"
93 %include "gccache.hh"
94 %include "image.hh"
95 %include "label.hh"
96 %include "point.hh"
97 %include "property.hh"
98 %include "rect.hh"
99 %include "screeninfo.hh"
100 %include "strut.hh"
101 %include "style.hh"
102 %include "texture.hh"
103 %include "timer.hh"
104 %include "timerqueue.hh"
105 %include "timerqueuemanager.hh"
106 %include "util.hh"
107
108 // for Mod1Mask etc
109 %include "X11/X.h"