ultimatepp/uppdev/TestPainter/main.cpp
cxl cb634ebefa .uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@3638 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-07-10 21:50:33 +00:00

25 lines
444 B
C++

#include <CtrlLib/CtrlLib.h>
#include <Painter/Painter.h>
using namespace Upp;
struct App : TopWindow {
void Paint(Draw& w) {
PaintingPainter sw(GetSize());
sw
.Move(0, 0)
.Line(0, 0).Line(0, 0).Line(0, 0).Line(0, 0)
.Line(0, 0)
.Arc(sqrt(-1.0), 0, 0, 0, 0)
// .Move(dInf, dInf * tInf)
.Line(0, 0)
.Fill(Black());
}
};
GUI_APP_MAIN
{
DDUMP(sqrt(-1.0));
DDUMP(IsNaN(sqrt(-1.0)));
App().Run();
}