mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 06:06:00 -06:00
22 lines
409 B
C++
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();
|
|
}
|
|
|