ultimatepp/uppdev/PainterTest/main.cpp
cxl 9c5d8dd0c9 .uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@5886 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-03-06 17:48:59 +00:00

22 lines
409 B
C++

#include <CtrlLib/CtrlLib.h>
#include <Painter/Painter.h>
using namespace Upp;
struct PainterTest : public TopWindow {
virtual void Paint(Draw& w) {
DrawPainter p(w, GetSize()/*, MODE_NOAA*/);
p.Clear(White());
p.Move(100, 100);
p.Line(200, 100);
p.Line(300, 300);
p.Fill(Pointf(100, 100), Blue(), Pointf(300, 300), Red());
}
};
GUI_APP_MAIN
{
PainterTest().Run();
}