all repos — openbox @ a52a6d96d701c993896f276e4198003317632aaf

openbox fork - make it a bit more like ryudo

wrap/otk.i (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-

%module otk

%import "eventhandler.hh"
%import "eventdispatcher.hh"

%include "otk_strut.i"
%include "otk_point.i"
%include "otk_size.i"
%include "otk_rect.i"
%include "otk_rendercolor.i"
%include "otk_rendertexture.i"
%include "otk_font.i"
%include "otk_ustring.i"
%include "otk_renderstyle.i"
%include "otk_widget.i"
%include "otk_label.i"
%include "otk_button.i"
%include "otk_application.i"
%include "otk_appwidget.i"
%include "otk_property.i"
%include "otk_timer.i"

// for Window etc
%import "X11/X.h"

// globals
%pythoncode %{
atoms = cvar.Property_atoms;

def style(screen):
    return RenderStyle_style(screen)

%}