mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-29 06:06:54 -06:00
Syncing PainterExamples
git-svn-id: svn://ultimatepp.org/upp/trunk@1375 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6df29eb3bd
commit
45e27e33df
3 changed files with 9 additions and 2 deletions
|
|
@ -1,5 +1,11 @@
|
|||
#include "Examples.h"
|
||||
|
||||
void TextCoding(Painter& sw)
|
||||
{
|
||||
sw.Text(100, 100, "Hello world! ščřůúžýáíé Běifānghuà 北方話",
|
||||
Font().FaceName("Bitstream Vera Sans Mono").Height(20))
|
||||
.Fill(LtBlue());
|
||||
}
|
||||
void TextFillSolid(Painter& sw)
|
||||
{
|
||||
sw.Text(100, 100, "Hello world!", Roman(120).Italic().Bold())
|
||||
|
|
@ -33,4 +39,5 @@ void SomeTexts(Painter& sw)
|
|||
INITBLOCK {
|
||||
RegisterExample("Filling text with solid color", TextFillSolid);
|
||||
RegisterExample("Various fonts", SomeTexts);
|
||||
RegisterExample("Filling text with solid color, replacements & compositions", TextCoding);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue