1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
7 # include "../config.h"
19 //%template(ClientList) std::list<OBClient*>;
21 %ignore ob::Openbox::instance;
23 ob::Openbox *Openbox_instance() { return ob::Openbox::instance; }
26 // stuff for scripting callbacks!
54 %ignore ob::python_callback;
55 %rename(register) ob::python_register;
56 %rename(preregister) ob::python_preregister;
57 %rename(unregister) ob::python_unregister;
58 %rename(unregister_all) ob::python_unregister_all;
59 %rename(bind_key) ob::python_bind_key;
60 %rename(unbind_key) ob::python_unbind_key;
61 %rename(bind_mouse) ob::python_bind_mouse;
62 %rename(unbind_mouse) ob::python_unbind_mouse;
63 %rename(unbind_all) ob::python_unbind_all;
65 %ignore ob::OBScreen::clients;
69 %extend ob::OBScreen {
70 OBClient *client(int i) {
71 if (i >= (int)self->clients.size())
73 ob::OBScreen::ClientList::iterator it = self->clients.begin();
77 int clientCount() const {
78 return (int) self->clients.size();
82 %import "../otk/eventdispatcher.hh"
83 %import "../otk/eventhandler.hh"