1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#include "otk.hh"
#include "rendercontrol.hh"
#include "rendertexture.hh"
#include <stdio.h>
#include <X11/Xlib.h>
int main(int argc, char **argv)
{
printf("\n");
otk::Application app(argc, argv);
otk::AppWidget foo(&app);
foo.resize(600, 500);
otk::RenderColor color(0, 0x96, 0xba, 0x86);
otk::RenderColor color2(0, 0x5a, 0x72, 0x4c);
otk::RenderColor colord(0, 0, 0, 0);
otk::RenderColor colorl(0, 0xff, 0xff, 0xff);
otk::RenderTexture tex(false,
otk::RenderTexture::Raised,
otk::RenderTexture::Bevel1,
false,
otk::RenderTexture::Vertical,
false,
&color,
&color2,
&colord,
&colorl,
0,
0);
foo.setTexture(&tex);
foo.show();
app.run();
printf("\n");
return 0;
}
|