00001 #include "otk.hh" 00002 #include "rendercontrol.hh" 00003 #include "rendertexture.hh" 00004 00005 #include <stdio.h> 00006 #include <X11/Xlib.h> 00007 00008 int main(int argc, char **argv) 00009 { 00010 printf("\n"); 00011 00012 otk::Application app(argc, argv); 00013 otk::AppWidget foo(&app); 00014 foo.resize(600, 500); 00015 00016 otk::RenderColor color(0, 0x96, 0xba, 0x86); 00017 otk::RenderColor color2(0, 0x5a, 0x72, 0x4c); 00018 otk::RenderColor colord(0, 0, 0, 0); 00019 otk::RenderColor colorl(0, 0xff, 0xff, 0xff); 00020 otk::RenderTexture tex(false, 00021 otk::RenderTexture::Raised, 00022 otk::RenderTexture::Bevel1, 00023 false, 00024 otk::RenderTexture::Vertical, 00025 false, 00026 &color, 00027 &color2, 00028 &colord, 00029 &colorl, 00030 0, 00031 0); 00032 foo.setTexture(&tex); 00033 00034 foo.show(); 00035 00036 app.run(); 00037 00038 printf("\n"); 00039 return 0; 00040 }