3 #include "configuration.hh"
4 #include "timerqueuemanager.hh"
11 otk::OBDisplay::initialize(NULL);
12 otk::Configuration style_conf(False);
13 otk::OBTimerQueueManager *tm = new otk::OBTimerQueueManager();
14 const otk::ScreenInfo *s_info = otk::OBDisplay::screenInfo(0);
15 otk::BImageControl *ctrl = new otk::BImageControl(tm, s_info, True, 4, 5, 200);
17 otk::Style *my_style = new otk::Style(0ul, ctrl);
19 const char *sfile = "/usr/local/share/openbox/styles/artwiz";
21 style_conf.setFile(sfile);
24 my_style->load(style_conf);
26 otk::OtkWidget foo(my_style);
27 otk::OtkWidget bar(&foo);
28 otk::OtkWidget baz(&foo);
29 otk::OtkWidget blef(&bar);
31 foo.setTexture(my_style->getButtonFocus());
32 foo.setGeometry(0, 0, 100, 110);
34 bar.setTexture(my_style->getLabelFocus());
35 bar.setGeometry(10, 10, 80, 40);
37 baz.setTexture(my_style->getLabelFocus());
38 baz.setGeometry(10, 60, 80, 40);
40 blef.setTexture(my_style->getHandleFocus());
41 blef.setGeometry(10, 10, 60, 20);
46 if (XPending(otk::OBDisplay::display)) {
48 XNextEvent(otk::OBDisplay::display, &e);