Tutorial: Draw tutorial code modernization.

git-svn-id: svn://ultimatepp.org/upp/trunk@15464 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
klugier 2020-11-20 00:43:27 +00:00
parent 707ea0b196
commit 1ea99cbc68
5 changed files with 16 additions and 16 deletions

View file

@ -7,7 +7,8 @@ struct MyApp : TopWindow {
w.DrawEllipse(0, 0, 100, 30, WhiteGray(), 1, Cyan);
w.DrawText(0, 0, "Hello world", Roman(30).Bold());
}
virtual void Paint(Draw& w) {
virtual void Paint(Draw& w) override {
w.DrawRect(GetSize(), White());
DoPainting(w);
w.Offset(30, 50);