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