1 // Copyright (c) 1997-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 #ifndef __COECOLORUSE_H__
17 #define __COECOLORUSE_H__
21 /** Logical colour used when drawing in controls.
23 This class pairs a logical colour value with an explanation of how it is used
24 when drawing a control. The explanation is in terms of categories of use, e.g.
25 in the TGround category, the colour can used for either the foreground or
33 /** Foreground and background category flags */
36 /** The logical colour is used to draw the control when it is in the foreground. */
38 /** The logical colour is used to draw the control when it is in the background. */
42 /** Flags that control the area in which colour is used. */
45 /** The logical colour is used to draw a control's contents. */
47 /** The logical colour is used to draw a control's highlighted contents. */
49 /** The logical colour is used to draw a control's surrounds. */
51 /** The logical colour is used to draw a control's borders. */
55 /** Focus category flags */
58 /** The logical colour is used to draw the control when active and either focused
61 /** The logical colour is used to draw the control when dimmed and either focused
64 /** The logical colour is used to draw the control when it is shadowed. */
66 /** The logical colour is used to draw the control when focused and pressed. */
70 /** State category flags */
73 /** The logical colour is used to draw the control in the normal state. */
75 /** The logical colour is used to draw the control in the set state. */
77 /** The logical colour is used to draw the control in the checked state. */
84 /** The logical colour is used to draw the control in neutral tones. */
86 /** The logical colour is used to draw the control in light tones. */
88 /** The logical colour is used to draw the control in midlight tones. */
90 /** The logical colour is used to draw the control in mid tones. */
92 /** The logical colour is used to draw the control in dark tones. */
96 IMPORT_C TCoeColorUse();
98 IMPORT_C void SetUse(TInt aUse);
99 IMPORT_C void SetLogicalColor(TInt aLogicalColor);
100 IMPORT_C TInt LogicalColor() const;
101 IMPORT_C TInt Use() const;
103 IMPORT_C TBool IsForeground() const;
104 IMPORT_C TBool IsBackground() const;
106 IMPORT_C TBool IsContents() const;
107 IMPORT_C TBool IsHighlights() const;
108 IMPORT_C TBool IsSurrounds() const;
109 IMPORT_C TBool IsBorders() const;
110 IMPORT_C TBool IsActive() const;
111 IMPORT_C TBool IsDimmed() const;
112 IMPORT_C TBool IsPressed() const;
113 IMPORT_C TBool IsNormal() const;
114 IMPORT_C TBool IsSet() const;
118 TInt iTCoeColorUse_Reserved1;
122 #endif // __COECOLORUSE_H__