First public contribution.
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #include "TAnimDraw.h"
18 GLREF_C void DoDraw(TInt aDraw,CBitmapContext& aGc,TRgb aColor,TRect aRect,CFbsFont *aFont,TInt aTextVal)
25 aGc.SetPenSize(TSize(15,15));
26 aGc.SetPenColor(aColor);
27 aGc.DrawLine(TPoint(aRect.iTl),TPoint(aRect.iBr));
33 buf.Format(_L("%d"), aTextVal);
35 aGc.SetDrawMode(CGraphicsContext::EDrawModePEN);
36 aGc.SetPenStyle(CGraphicsContext::ESolidPen);
37 aGc.SetPenSize(TSize(1,1));
38 aGc.SetPenColor(aColor);
40 TInt drawHeight=aFont->AscentInPixels();
41 aRect.iTl.iY=aRect.iBr.iY/3;
42 aGc.DrawText(buf,aRect,drawHeight,CGraphicsContext::ECenter);