Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <CoeColorUse.h>
Link against: cone.lib

Class TCoeColorUse

class TCoeColorUse;

Description

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.

Members

Defined in TCoeColorUse:


Construction and destruction


TCoeColorUse()

IMPORT_C TCoeColorUse();

Description

Constructor.

[Top]


Member functions


SetUse(TInt)

IMPORT_C void SetUse(TInt aUse);

Description

Sets the use of the logical colour.

Parameters

TInt aUse

The use of the logical colour. A valid value describing a colour use consists of choices of one value from each of the enums TGround, TAreas, TFocus, TState and TTones ORed together.


SetLogicalColor(TInt)

IMPORT_C void SetLogicalColor(TInt aLogicalColor);

Description

Sets the logical colour which has its use described by this object.

Parameters

TInt aLogicalColor

The logical colour.


LogicalColor()const

IMPORT_C TInt LogicalColor() const;

Description

Gets the logical colour which has its use described by this TCoeColourUse.

Return value

TInt

The logical colour.


Use()const

IMPORT_C TInt Use() const;

Description

Gets the value describing the use of the logical colour.

Return value

TInt

The use of the logical colour. This is the logical OR of one value from each of the enums TGround, TAreas, TFocus, TState and TTones.


IsForeground()const

IMPORT_C TBool IsForeground() const;

Description

Tests whether the logical colour is used as a foreground colour.

Return value

TBool

ETrue if the logical colour is used as a foreground colour, otherwise EFalse.


IsBackground()const

IMPORT_C TBool IsBackground() const;

Description

Tests whether the logical colour is used as a background colour.

Return value

TBool

ETrue if the logical colour is used as a background colour, otherwise EFalse.


IsContents()const

IMPORT_C TBool IsContents() const;

Description

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.

Return value

TBool

ETrue if the logical colour is used to draw a control's contents, otherwise EFalse.


IsHighlights()const

IMPORT_C TBool IsHighlights() const;

Description

Tests whether the logical colour is used to draw a control's highlighted contents.

Return value

TBool

ETrue if the logical colour is used to draw a control's highlighted contents, otherwise EFalse.


IsSurrounds()const

IMPORT_C TBool IsSurrounds() const;

Description

Tests whether the logical colour is used to draw a control's surrounds.

Return value

TBool

ETrue if the logical colour is used to draw a control's surrounds, otherwise EFalse.


IsBorders()const

IMPORT_C TBool IsBorders() const;

Description

Tests whether the logical colour is used to draw a control's borders.

Return value

TBool

ETrue if the logical colour is used to draw a control's borders, otherwise EFalse.


IsActive()const

IMPORT_C TBool IsActive() const;

Description

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.

Return value

TBool

ETrue if the logical colour is active, otherwise EFalse.


IsDimmed()const

IMPORT_C TBool IsDimmed() const;

Description

Tests whether the logical colour is used to draw the control when dimmed and either focused or unfocused.

Return value

TBool

ETrue if the logical colour is used to draw the control when dimmed and either focused or unfocused, otherwise EFalse.


IsPressed()const

IMPORT_C TBool IsPressed() const;

Description

Tests whether the logical colour is used to draw the control when focused and pressed.

Return value

TBool

ETrue if the logical colour is used to draw the control when focused and pressed, otherwise EFalse.


IsNormal()const

IMPORT_C TBool IsNormal() const;

Description

Tests whether the logical colour is used to draw the control in a normal state.

Return value

TBool

ETrue if the logical colour is used to draw the control in a normal state, otherwise EFalse.


IsSet()const

IMPORT_C TBool IsSet() const;

Description

Tests whether the logical colour is used to draw the control in a set state.

Return value

TBool

ETrue if the logical colour is used to draw the control in a set state, otherwise EFalse.

[Top]


Member enumerations


Enum TGround

TGround

Description

Foreground and background category flags

EFore

The logical colour is used to draw the control when it is in the foreground.

EBack

The logical colour is used to draw the control when it is in the background.


Enum TAreas

TAreas

Description

Flags that control the area in which colour is used.

EContents

The logical colour is used to draw a control's contents.

EHighlights

The logical colour is used to draw a control's highlighted contents.

ESurrounds

The logical colour is used to draw a control's surrounds.

EBorders

The logical colour is used to draw a control's borders.


Enum TFocus

TFocus

Description

Focus category flags

EActive

The logical colour is used to draw the control when active and either focused or unfocused.

EDimmed

The logical colour is used to draw the control when dimmed and either focused or unfocused.

EShadowed

The logical colour is used to draw the control when it is shadowed.

EPressed

The logical colour is used to draw the control when focused and pressed.


Enum TState

TState

Description

State category flags

ENormal

The logical colour is used to draw the control in the normal state.

ESet

The logical colour is used to draw the control in the set state.

EChecked

The logical colour is used to draw the control in the checked state.


Enum TTones

TTones

Description

Tone flags

ENeutral

The logical colour is used to draw the control in neutral tones.

ELight

The logical colour is used to draw the control in light tones.

EMidLight

The logical colour is used to draw the control in midlight tones.

EMid

The logical colour is used to draw the control in mid tones.

EDark

The logical colour is used to draw the control in dark tones.