|
|
|
class TCoeColorUse;
Logical colour used when drawing in controls.
This class pairs a logical colour value with an explanation of how it is used when drawing a control. The explanation is in terms of categories of use, e.g. in the TGround category, the colour can used for either the foreground or background.
Defined in TCoeColorUse:
EActiveThe logical colour is used to draw the control when active and either focused or...EBackThe logical colour is used to draw the control when it is in the background. EBordersThe logical colour is used to draw a control's borders. ECheckedThe logical colour is used to draw the control in the checked state. EContentsThe logical colour is used to draw a control's contents. EDarkThe logical colour is used to draw the control in dark tones. EDimmedThe logical colour is used to draw the control when dimmed and either focused or...EForeThe logical colour is used to draw the control when it is in the foreground. EHighlightsThe logical colour is used to draw a control's highlighted contents. ELightThe logical colour is used to draw the control in light tones. EMidThe logical colour is used to draw the control in mid tones. EMidLightThe logical colour is used to draw the control in midlight tones. ENeutralThe logical colour is used to draw the control in neutral tones. ENormalThe logical colour is used to draw the control in the normal state. EPressedThe logical colour is used to draw the control when focused and pressed. ESetThe logical colour is used to draw the control in the set state. EShadowedThe logical colour is used to draw the control when it is shadowed. ESurroundsThe logical colour is used to draw a control's surrounds. IsActive()constTests whether the logical colour is active. i.e. whether or not it is used to dr...IsBackground()constTests whether the logical colour is used as a background colour.IsBorders()constTests whether the logical colour is used to draw a control's borders.IsContents()constTests whether the logical colour is used to draw a control's contents.IsDimmed()constTests whether the logical colour is used to draw the control when dimmed and eit...IsForeground()constTests whether the logical colour is used as a foreground colour.IsHighlights()constTests whether the logical colour is used to draw a control's highlighted content...IsNormal()constTests whether the logical colour is used to draw the control in a normal state.IsPressed()constTests whether the logical colour is used to draw the control when focused and pr...IsSet()constTests whether the logical colour is used to draw the control in a set state.IsSurrounds()constTests whether the logical colour is used to draw a control's surrounds.LogicalColor()constGets the logical colour which has its use described by this TCoeColourUse.SetLogicalColor(TInt)Sets the logical colour which has its use described by this object.SetUse(TInt)Sets the use of the logical colour.TAreasFlags that control the area in which colour is used. TCoeColorUse()Constructor. TFocusFocus category flags TGroundForeground and background category flags TStateState category flags TTonesTone flags Use()constGets the value describing the use of the logical colour.IMPORT_C void SetUse(TInt aUse);
Sets the use of the logical colour.
|
IMPORT_C void SetLogicalColor(TInt aLogicalColor);
Sets the logical colour which has its use described by this object.
|
IMPORT_C TInt LogicalColor() const;
Gets the logical colour which has its use described by this TCoeColourUse.
|
IMPORT_C TInt Use() const;
Gets the value describing the use of the logical colour.
|
IMPORT_C TBool IsForeground() const;
Tests whether the logical colour is used as a foreground colour.
|
IMPORT_C TBool IsBackground() const;
Tests whether the logical colour is used as a background colour.
|
IMPORT_C TBool IsContents() const;
Tests whether the logical colour is used to draw a control's contents.
The contents are the parts of the control that the user interacts with, e.g. an editor field, the contents of a list box, the page of a web browser. This is opposed to the fascia (or 'surrounds') which are the parts of controls which make up the illusion that the contents are set into some sort of solid frontage.
|
IMPORT_C TBool IsHighlights() const;
Tests whether the logical colour is used to draw a control's highlighted contents.
|
IMPORT_C TBool IsSurrounds() const;
Tests whether the logical colour is used to draw a control's surrounds.
|
IMPORT_C TBool IsBorders() const;
Tests whether the logical colour is used to draw a control's borders.
|
IMPORT_C TBool IsActive() const;
Tests whether the logical colour is active. i.e. whether or not it is used to draw the control when active and either focused or unfocused.
|
IMPORT_C TBool IsDimmed() const;
Tests whether the logical colour is used to draw the control when dimmed and either focused or unfocused.
|
IMPORT_C TBool IsPressed() const;
Tests whether the logical colour is used to draw the control when focused and pressed.
|
IMPORT_C TBool IsNormal() const;
Tests whether the logical colour is used to draw the control in a normal state.
|
IMPORT_C TBool IsSet() const;
Tests whether the logical colour is used to draw the control in a set state.
|
TGround
Foreground and background category flags
|
TAreas
Flags that control the area in which colour is used.
|
TFocus
Focus category flags
|
TState
State category flags
|
TTones
Tone flags
|