ultimatepp/uppdev/TestPainter/main.cpp
cxl 8723412b3a Syncing uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@1058 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-04-15 17:02:24 +00:00

20 lines
380 B
C++

#include <CtrlLib/CtrlLib.h>
#include <Painter/Painter.h>
using namespace Upp;
struct App : TopWindow {
void Paint(Draw& w) {
DUMP(w.GetPagePixels());
DUMP(GetSize());
DrawPainter sw(w, GetSize());
sw.Clear(White());
sw.Rectangle(0, 0, 100, 100).Stroke(2, Red());
sw.Text(0, 0, "", Arial(20)).Fill(Blue());
}
};
GUI_APP_MAIN
{
App().Run();
}