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;
60 %ignore ob::OBScreen::clients;
64 %extend ob::OBScreen {
65 OBClient *client(int i) {
66 if (i >= (int)self->clients.size())
68 ob::OBScreen::ClientList::iterator it = self->clients.begin();
72 int clientCount() const {
73 return (int) self->clients.size();
77 %import "../otk/eventdispatcher.hh"
78 %import "../otk/eventhandler.hh"