]> icculus.org git repositories - mikachu/openbox.git/blob - wrap/otk.i
remove unused apply
[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 "typemaps.i"
11 //%include std_list.i
12 %include "ustring.i"
13
14 %immutable otk::display;
15 %immutable otk::Property::atoms;
16
17 namespace otk {
18 /*%rename(setValue_bool) Configuration::setValue(std::string const &,bool);
19 %rename(setValue_unsigned) Configuration::setValue(const std::string &, unsigned int);
20 %rename(setValue_long) Configuration::setValue(const std::string &, long);
21 %rename(setValue_unsignedlong) Configuration::setValue(const std::string &, unsigned long);
22 %rename(setValue_string) Configuration::setValue(const std::string &, const std::string &);
23 %rename(setValue_charptr) Configuration::setValue(const std::string &, const char *);*/
24
25 %rename(itostring_unsigned) itostring(unsigned int);
26 %rename(itostring_long) itostring(long);
27 %rename(itostring_unsigned_long) itostring(unsigned long);
28
29 // these are needed for guile, but not needed for python!
30 //%rename(equals) BColor::operator==;
31 //%rename(equals) Rect::operator==;
32 //%rename(equals) BTexture::operator==;
33 //%ignore BColor::operator!=;
34 //%ignore BTexture::operator!=;
35 %ignore Rect::operator!=;
36 %ignore Rect::operator|;
37 %ignore Rect::operator|=;
38 %ignore Rect::operator&;
39 %ignore Rect::operator&=;
40 //%ignore OBTimer::operator<;
41 %ignore TimerLessThan;
42
43 /*
44 %rename(set_multi) OtkProperty::set(Window, Atoms, Atoms, unsigned long[], int);
45 %rename(set_string) OtkProperty::set(Window, Atoms, StringType, const std::string &);
46 %rename(set_string_multi) OtkProperty::set(Window, Atoms, StringType, const StringVect &);
47 */
48 }
49
50 %include "eventhandler.hh"
51 %include "eventdispatcher.hh"
52 %include "point.hh"
53 %include "size.hh"
54 %include "rect.hh"
55 %include "rendercolor.hh"
56 %include "rendertexture.hh"
57 %include "font.hh"
58 %include "renderstyle.hh"
59 %include "widget.hh"
60 %include "label.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 "screeninfo.hh"
68 %include "strut.hh"
69
70 %apply unsigned long *OUTPUT { unsigned long *value };
71 %include "property.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
81 def style(screen):
82     return RenderStyle_style(screen)
83
84 %}