equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #undef SYMBIAN_GRAPHICS_GCE |
|
17 |
|
18 #include "wsgraphicdrawercontext.h" |
|
19 #include <graphics/wsgraphicdrawerinterface.h> |
|
20 #include <bitstd.h> |
|
21 |
|
22 MWsGraphicDrawerContext* CWsGraphicDrawerNonNgaContext::NewL() |
|
23 { |
|
24 return new(ELeave) CWsGraphicDrawerNonNgaContext(); |
|
25 } |
|
26 |
|
27 void CWsGraphicDrawerNonNgaContext::Destroy() |
|
28 { |
|
29 delete this; |
|
30 } |
|
31 |
|
32 void CWsGraphicDrawerNonNgaContext::DrawEllipse(MWsGc& aGc, const TRect& aRect, const TRgb& aColor) const |
|
33 { |
|
34 aGc.PushBitGcSettings(); |
|
35 CFbsBitGc& bitGc = aGc.BitGc(); |
|
36 bitGc.SetBrushStyle(CGraphicsContext::ESolidBrush); |
|
37 bitGc.SetBrushColor(aColor); |
|
38 bitGc.DrawEllipse(aRect); |
|
39 aGc.PopBitGcSettings(); |
|
40 } |