]> Dogcows Code - chaz/openbox/blob - wrap/otk.i
change the default titlebar layout
[chaz/openbox] / 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 "button.hh"
64 %include "display.hh"
65 %include "rendercontrol.hh"
66 %include "screeninfo.hh"
67 %include "strut.hh"
68
69 %apply unsigned long *OUTPUT { unsigned long *value };
70 %include "property.hh"
71
72 // for Window etc
73 %import "X11/X.h"
74
75 // globals
76 %pythoncode %{
77 display = cvar.display;
78 atoms = cvar.Property_atoms;
79
80 def style(screen):
81 return RenderStyle_style(screen)
82
83 %}
This page took 0.042473 seconds and 4 git commands to generate.