openbox/otk/rendertest.cc

46 lines
800 B
C++
Raw Normal View History

2003-02-09 23:07:54 +00:00
#include "config.h"
2003-01-18 00:33:48 +00:00
#include "otk.hh"
#include "rendercontrol.hh"
2003-01-18 04:31:16 +00:00
#include "rendertexture.hh"
2003-01-18 00:33:48 +00:00
2003-02-09 23:07:54 +00:00
extern "C" {
2003-01-18 04:10:17 +00:00
#include <X11/Xlib.h>
2003-02-09 23:07:54 +00:00
}
#include <cstdio>
2003-01-18 00:33:48 +00:00
int main(int argc, char **argv)
{
printf("\n");
otk::Application app(argc, argv);
otk::AppWidget foo(&app);
foo.resize(600, 500);
2003-01-22 02:50:29 +00:00
otk::RenderColor color(0, 0x96, 0xba, 0x86);
otk::RenderColor color2(0, 0x5a, 0x72, 0x4c);
2003-01-20 20:20:06 +00:00
otk::RenderColor colord(0, 0, 0, 0);
otk::RenderColor colorl(0, 0xff, 0xff, 0xff);
otk::RenderTexture tex(false,
2003-01-20 20:20:06 +00:00
otk::RenderTexture::Raised,
otk::RenderTexture::Bevel1,
false,
2003-01-22 02:50:29 +00:00
otk::RenderTexture::Vertical,
false,
&color,
2003-01-22 02:50:29 +00:00
&color2,
2003-01-20 20:20:06 +00:00
&colord,
&colorl,
0,
0);
2003-01-20 06:11:12 +00:00
foo.setTexture(&tex);
foo.show();
2003-01-18 04:10:17 +00:00
2003-01-18 00:33:48 +00:00
app.run();
printf("\n");
return 0;
}