openbox/otk/rendertest.cc
2003-01-20 20:20:06 +00:00

38 lines
676 B
C++

#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, 0, 0xff, 0xff);
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::Solid,
false,
&color,
&colord,
&colorl,
0,
0);
foo.setTexture(&tex);
foo.show();
app.run();
printf("\n");
return 0;
}