mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
23 lines
450 B
C++
23 lines
450 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
#include <SDraw/SDraw.h>
|
|
|
|
using namespace Upp;
|
|
|
|
struct App : TopWindow {
|
|
virtual void Paint(Draw& w) {
|
|
Size sz = GetSize();
|
|
SDraw agd(sz.cx, sz.cy);
|
|
agd.SetBackground(agg::rgba(0, 1.0, 1.0, false));
|
|
agd.DrawLine(0,0,100,100,10);
|
|
agd.SetBrushColor(agg::rgba(0, 0, 0));
|
|
agd.DrawEllipse(0, 0, sz.cx, sz.cy, 3);
|
|
|
|
w.DrawImage(0, 0, agd.Render());
|
|
}
|
|
};
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
App().Run();
|
|
}
|
|
|