mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-26 06:12:34 -06:00
PainterExamles: OnPath
git-svn-id: svn://ultimatepp.org/upp/trunk@928 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
acf40cf6c3
commit
37b9997f7b
6 changed files with 133 additions and 66 deletions
|
|
@ -30,20 +30,7 @@ void SomeTexts(Painter& sw)
|
|||
}
|
||||
}
|
||||
|
||||
void ZBug(Painter& sw)
|
||||
{
|
||||
sw.Text(100, 100, "z", Roman(25).Italic()).Fill(Black());
|
||||
sw.Text(130, 100, "z", Roman(70).Italic()).Fill(Black());
|
||||
}
|
||||
|
||||
void WBug(Painter& sw)
|
||||
{
|
||||
sw.Text(100, 100, "w", Roman(20).Bold()).Fill(Black());
|
||||
}
|
||||
|
||||
INITBLOCK {
|
||||
RegisterExample("Filling text with solid color", TextFillSolid);
|
||||
RegisterExample("Various fonts", SomeTexts);
|
||||
RegisterExample("ZBug", ZBug);
|
||||
RegisterExample("WBug", WBug);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue