mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-24 14:22:13 -06:00
27 lines
418 B
C++
27 lines
418 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
struct App : public TopWindow {
|
|
Drawing dw;
|
|
|
|
void Paint(Draw& w) {
|
|
Size sz = GetSize();
|
|
w.DrawRect(sz, SWhite);
|
|
w.DrawDrawing(sz, dw);
|
|
}
|
|
|
|
App()
|
|
{
|
|
Sizeable();
|
|
DrawingDraw w(1000, 1000);
|
|
for(int i = 0; i < 10; i++)
|
|
w.DrawText(500, 500, 300 * i, " Test", Arial(20));
|
|
dw = w;
|
|
}
|
|
};
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
App().Run();
|
|
}
|