Draw, Doc: Draw tutorial modernized to new hilighting.

This commit is contained in:
Zbigniew Rębacz 2023-10-01 09:58:27 +02:00
parent e0bf5a0a35
commit b86d4aa9d9
5 changed files with 404 additions and 289 deletions

View file

@ -3,7 +3,7 @@
using namespace Upp;
struct MyApp : TopWindow {
virtual void Paint(Draw& w) override {
void Paint(Draw& w) override {
w.DrawRect(GetSize(), White());
w.DrawRect(10, 10, 60, 80, Green());

View file

@ -5,7 +5,7 @@ using namespace Upp;
struct MyApp : TopWindow {
DropList font_list;
virtual void Paint(Draw& w) override {
void Paint(Draw& w) override {
const String text = "Programming is fun";
Font fnt(~font_list, 60);

View file

@ -5,7 +5,7 @@ using namespace Upp;
struct MyApp : TopWindow {
Drawing drawing;
virtual void Paint(Draw& w) override {
void Paint(Draw& w) override {
w.DrawRect(GetSize(), White());
w.DrawDrawing(10, 10, 50, 60, drawing);
w.DrawDrawing(100, 10, 150, 100, drawing);

View file

@ -5,7 +5,7 @@ using namespace Upp;
struct MyApp : TopWindow {
Image image;
virtual void Paint(Draw& w) override {
void Paint(Draw& w) override {
w.DrawRect(GetSize(), Cyan());
w.DrawImage(10, 10, image);
}

File diff suppressed because one or more lines are too long