]> Dogcows Code - chaz/openbox/blob - otk/rendertest.cc
better historyplacement
[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, 0x96, 0xba, 0x86);
17 otk::RenderColor color2(0, 0x5a, 0x72, 0x4c);
18 otk::RenderColor colord(0, 0, 0, 0);
19 otk::RenderColor colorl(0, 0xff, 0xff, 0xff);
20 otk::RenderTexture tex(false,
21 otk::RenderTexture::Raised,
22 otk::RenderTexture::Bevel1,
23 false,
24 otk::RenderTexture::Vertical,
25 false,
26 &color,
27 &color2,
28 &colord,
29 &colorl,
30 0,
31 0);
32 foo.setTexture(&tex);
33
34 foo.show();
35
36 app.run();
37
38 printf("\n");
39 return 0;
40 }
This page took 0.033263 seconds and 4 git commands to generate.