mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -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,4 +1,4 @@
|
|||
description "Antialiased renderer class, Painter, examples, version 2.0";
|
||||
description "Antialiased renderer class, Painter, examples, version 2.0\377";
|
||||
|
||||
uses
|
||||
CtrlLib,
|
||||
|
|
@ -17,7 +17,7 @@ file
|
|||
ColorStops.cpp,
|
||||
Radial.cpp,
|
||||
RadialFocus.cpp,
|
||||
TextFillSolid.cpp,
|
||||
TextFillSolid.cpp charset "UTF-8",
|
||||
TextFillGradient.cpp,
|
||||
TextStrokeGradient.cpp,
|
||||
Div.cpp,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
0
uppdev/empty/empty.upp
Normal file
0
uppdev/empty/empty.upp
Normal file
Loading…
Add table
Add a link
Reference in a new issue