]> Dogcows Code - chaz/openbox/blob - otk/rendertest.cc
offsets in planar surfaces
[chaz/openbox] / otk / rendertest.cc
1 #include "config.h"
2
3 #include "otk.hh"
4 #include "rendercontrol.hh"
5 #include "rendertexture.hh"
6
7 extern "C" {
8 #include <X11/Xlib.h>
9 }
10
11 #include <cstdio>
12
13 int main(int argc, char **argv)
14 {
15 printf("\n");
16
17 otk::Application app(argc, argv);
18 otk::AppWidget foo(&app);
19 foo.resize(600, 500);
20
21 otk::RenderColor color(0, 0x96, 0xba, 0x86);
22 otk::RenderColor color2(0, 0x5a, 0x72, 0x4c);
23 otk::RenderColor colord(0, 0, 0, 0);
24 otk::RenderColor colorl(0, 0xff, 0xff, 0xff);
25 otk::RenderTexture tex(false,
26 otk::RenderTexture::Raised,
27 otk::RenderTexture::Bevel1,
28 false,
29 otk::RenderTexture::Vertical,
30 false,
31 &color,
32 &color2,
33 &colord,
34 &colorl,
35 0,
36 0);
37 foo.setTexture(&tex);
38
39 foo.show();
40
41 app.run();
42
43 printf("\n");
44 return 0;
45 }
This page took 0.033573 seconds and 4 git commands to generate.