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 =
15 otk::OBDisplay::screenInfo(DefaultScreen(otk::OBDisplay::display));
16 otk::BImageControl *ctrl = new otk::BImageControl(tm, s_info, True, 4, 5, 200);
18 otk::Style *my_style = new otk::Style(0ul, ctrl);
20 const char *sfile = "/usr/local/share/openbox/styles/artwiz";
22 style_conf.setFile(sfile);
25 my_style->load(style_conf);
27 otk::OtkWidget foo(my_style);
28 otk::OtkWidget bar(&foo);
29 otk::OtkWidget baz(&foo);
30 otk::OtkWidget blef(&bar);
32 foo.setTexture(my_style->getButtonFocus());
33 foo.setGeometry(0, 0, 100, 110);
35 bar.setTexture(my_style->getLabelFocus());
36 bar.setGeometry(10, 10, 80, 40);
38 baz.setTexture(my_style->getLabelFocus());
39 baz.setGeometry(10, 60, 80, 40);
41 blef.setTexture(my_style->getHandleFocus());
42 blef.setGeometry(10, 10, 60, 20);
47 if (XPending(otk::OBDisplay::display)) {
49 XNextEvent(otk::OBDisplay::display, &e);
57 otk::OBDisplay::destroy();