]> Dogcows Code - chaz/openbox/blob - otk/rendertest.cc
drawSolidBackground seems to work :)
[chaz/openbox] / otk / rendertest.cc
1 #include "otk.hh"
2 #include "rendercontrol.hh"
3 #include "rendertexture.hh"
4
5 #include <stdio.h>
6 #include <X11/Xlib.h>
7
8 int main(int argc, char **argv)
9 {
10 printf("\n");
11
12 otk::Application app(argc, argv);
13 otk::AppWidget foo(&app);
14 foo.resize(600, 500);
15
16 otk::RenderColor color(0, 0, 0xff, 0xff);
17 otk::RenderColor colord(0, 0, 0, 0);
18 otk::RenderColor colorl(0, 0xff, 0xff, 0xff);
19 otk::RenderTexture tex(false,
20 otk::RenderTexture::Raised,
21 otk::RenderTexture::Bevel1,
22 false,
23 otk::RenderTexture::Solid,
24 false,
25 &color,
26 &colord,
27 &colorl,
28 0,
29 0);
30 foo.setTexture(&tex);
31
32 foo.show();
33
34 app.run();
35
36 printf("\n");
37 return 0;
38 }
This page took 0.040297 seconds and 5 git commands to generate.