equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Header for private FORM stuff. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __FORMUTIL__ |
|
21 #define __FORMUTIL__ |
|
22 |
|
23 #include <frmtlay.h> |
|
24 |
|
25 /** |
|
26 @internalComponent |
|
27 */ |
|
28 class FormUtil |
|
29 |
|
30 { |
|
31 public: |
|
32 static void LogicalToActualColor(const MFormParam* aParam,TLogicalRgb& aColor) |
|
33 { |
|
34 if (aParam) |
|
35 { |
|
36 TUint index = aColor.SystemColorIndex(); |
|
37 if (index) |
|
38 { |
|
39 aColor &= 0xFFFFFF; |
|
40 aColor = aParam->SystemColor(index,aColor); |
|
41 } |
|
42 } |
|
43 } |
|
44 static void SetPenColor(const MFormParam* aParam,CGraphicsContext* aGc,TLogicalRgb aColor); |
|
45 static void SetBrushColor(const MFormParam* aParam,CGraphicsContext* aGc,TLogicalRgb aColor); |
|
46 }; |
|
47 |
|
48 #endif //__FORMUTIL__ |