mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@14533 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3cd4f0cd68
commit
8d9714ac3f
1 changed files with 1 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ struct OpenGLExample : GLCtrl {
|
|||
w.DrawLine(45, 45, 80, 120, 4, Blue);
|
||||
w.DrawLine(80, 90, 400, 0, PEN_DASHDOT);
|
||||
w.DrawImage(200, 10, CtrlImg::reporticon());
|
||||
w.DrawImage(280, 10, CtrlImg::reporticon(), Red());
|
||||
const char *text = "This text is centered";
|
||||
Size tsz = GetTextSize(text, Arial(25).Bold());
|
||||
w.DrawText((sz.cx - tsz.cx) / 2, (sz.cy - tsz.cy) / 2, text, Arial(27).Bold(), SBlue);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue