]> Dogcows Code - chaz/openbox/blob - src/openbox.i
new mouse button code is seeming to work. you can move windows
[chaz/openbox] / src / openbox.i
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2
3 %module openbox
4
5 %{
6 #ifdef HAVE_CONFIG_H
7 # include "../config.h"
8 #endif
9
10 #include "openbox.hh"
11 #include "screen.hh"
12 #include "client.hh"
13 #include "bindings.hh"
14 #include "actions.hh"
15 %}
16
17 %include "stl.i"
18 %include "exception.i"
19 //%include std_list.i
20 //%template(ClientList) std::list<OBClient*>;
21
22 %ignore ob::Openbox::instance;
23 %inline %{
24 ob::Openbox *Openbox_instance() { return ob::Openbox::instance; }
25 %};
26
27 %rename(register) python_register;
28
29 %ignore ob::OBScreen::clients;
30 %{
31 #include <iterator>
32 %}
33 %extend ob::OBScreen {
34 OBClient *client(int i) {
35 if (i >= (int)self->clients.size())
36 return NULL;
37 ob::OBScreen::ClientList::iterator it = self->clients.begin();
38 std::advance(it,i);
39 return *it;
40 }
41 int clientCount() const {
42 return (int) self->clients.size();
43 }
44 };
45
46 %import "../otk/eventdispatcher.hh"
47 %import "../otk/eventhandler.hh"
48 %import "widget.hh"
49 %import "actions.hh"
50
51 %include "openbox.hh"
52 %include "screen.hh"
53 %include "client.hh"
54 %include "python.hh"
55
56 // for Mod1Mask etc
57 %include "X11/X.h"
This page took 0.035911 seconds and 5 git commands to generate.