mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
29 lines
462 B
C++
29 lines
462 B
C++
#include "aggtest.h"
|
|
|
|
aggtest::aggtest()
|
|
{
|
|
CtrlLayout(*this, "Window title");
|
|
Sizeable();
|
|
}
|
|
|
|
void aggtest::Paint(Draw& draw)
|
|
{
|
|
if (this->GetSize().cx == 0 || this->GetSize().cy == 0)
|
|
return;
|
|
|
|
ImageDraw d(GetSize());
|
|
d.DrawRect(GetSize(), White);
|
|
d.DrawLine(x,y,150,150,50,Blue);
|
|
|
|
draw.DrawImage(0,0,this->GetSize().cx,this->GetSize().cy,d);
|
|
}
|
|
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
aggtest m;
|
|
//m.BackPaint();
|
|
m.Maximize(true);
|
|
m.Run();
|
|
}
|
|
|