ultimatepp/uppdev/RotateText/main.cpp
cxl 351994a6cc Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

17 lines
304 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
struct App : TopWindow {
virtual void Paint(Draw& w) {
Size sz = GetSize();
w.DrawRect(sz, White);
for(int i = 0; i < 3600; i += 300)
w.DrawText(sz.cx / 2, sz.cy / 2, i, "Rotated text");
}
};
GUI_APP_MAIN
{
App().Run();
}