mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@13891 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
dc1fe5bace
commit
bfcf78d36f
1 changed files with 5 additions and 2 deletions
|
|
@ -9,14 +9,17 @@ struct MyApp : TopWindow
|
|||
void Paint(Draw& w) override {
|
||||
w.DrawRect(GetSize(), LtGray());
|
||||
w.DrawImage(0, 0, img);
|
||||
w.DrawRect(DPI(400) - DPI(5), DPI(40) - DPI(5), DPI(210), DPI(90), Red());
|
||||
w.DrawRect(DPI(400), DPI(40), DPI(200), DPI(80), Red());
|
||||
w.DrawText(DPI(400), DPI(40), "Here", Arial(DPI(80)), Yellow());
|
||||
}
|
||||
|
||||
void LeftDown(Point, dword) override {
|
||||
static int ii;
|
||||
ViewDraw iw(this);
|
||||
iw.DrawRect(GetSize(), LtGray());
|
||||
iw.DrawRect(DPI(400), DPI(40), DPI(200), DPI(80), LtBlue());
|
||||
iw.DrawText(DPI(400), DPI(40), AsString(ii++), Arial(DPI(80)));
|
||||
iw.DrawEllipse(100, 100, 100, 100, Green());
|
||||
iw.DrawText(DPI(400), DPI(40), AsString(ii++), Arial(DPI(80)), Yellow());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue