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) ob::python_bind;
60 %rename(unbind) ob::python_unbind;
61 %rename(unbind_all) ob::python_unbind_all;
63 %ignore ob::OBScreen::clients;
67 %extend ob::OBScreen {
68 OBClient *client(int i) {
69 if (i >= (int)self->clients.size())
71 ob::OBScreen::ClientList::iterator it = self->clients.begin();
75 int clientCount() const {
76 return (int) self->clients.size();
80 %import "../otk/eventdispatcher.hh"
81 %import "../otk/eventhandler.hh"