ultimatepp/uppdev/PainterTest/main.cpp
cxl c635cd80d2 .developing preprocesor
git-svn-id: svn://ultimatepp.org/upp/trunk@8155 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2015-02-08 18:06:59 +00:00

22 lines
455 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());
p.Clear(White());
p.RoundedRectangle(0, 0, 300, 300, 40, 15);
p.Fill(Pointf(0.5, 0.3), Blue(), Red(),
Xform2D::Scale(150, 100) * Xform2D::Translation(150, 150),
GRADIENT_PAD);
}
};
GUI_APP_MAIN
{
PainterTest().Run();
}