mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Draw, Doc: Draw tutorial modernized to new hilighting.
This commit is contained in:
parent
e0bf5a0a35
commit
b86d4aa9d9
5 changed files with 404 additions and 289 deletions
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue