CLafEdwinCustomDrawBase Class Reference

class CLafEdwinCustomDrawBase : public CBase

LAF support for custom drawing of Edwins.

This class is used by CEikEdwin to draw lines in plain text editors. It does not work in rich text editors, as it assumes the line spacing is constant.

The custom drawing interface is defined by the MFormCustomDraw class.

Inherits from

Constructor & Destructor Documentation

CLafEdwinCustomDrawBase(const MLafEnv &, const CCoeControl &)

IMPORT_C CLafEdwinCustomDrawBase ( const MLafEnv & aEnv,
const CCoeControl & aControl
) [protected]

Constructor that initialises data members.

Parameters

const MLafEnv & aEnv LAF environment functions
const CCoeControl & aControl The Edwin control

Member Functions Documentation

DrawBackground(const TParam &, const TRgb &, TRect &)

IMPORT_C void DrawBackground ( const TParam & aParam,
const TRgb & aBackground,
TRect & aDrawn
) const

Implements MFormCustomDraw::DrawBackground() to draw the Edwin background.

See that function for a full description.

Parameters

const TParam & aParam Drawing parameters
const TRgb & aBackground Default background colour
TRect & aDrawn On return, the rectangle to which the function has drawn

LineSpacingChanged()

IMPORT_C void LineSpacingChanged ( ) [virtual]

Notifies the drawer that a MEikEdwinObserver::EEventFormatChanged event has occurred for the Edwin.

NewL(const MLafEnv &, const CCoeControl &)

IMPORT_C CLafEdwinCustomDrawBase * NewL ( const MLafEnv & aEnv,
const CCoeControl & aControl
) [static]

Allocates and constructs the custom drawer.

Parameters

const MLafEnv & aEnv LAF environment functions
const CCoeControl & aControl The Edwin control

SystemColor(TUint, TRgb)

IMPORT_C TRgb SystemColor ( TUint aColorIndex,
TRgb aDefaultColor
) const

Gets the physical colour that maps to a specified logical colour.

Parameters

TUint aColorIndex Logical colour
TRgb aDefaultColor The default physical colour. This is the colour to be used if no translation is performed. This allows translation to change certain indices but not others ( by passing the default colour back unchanged).

Member Data Documentation

const CCoeControl & iControl

const CCoeControl & iControl [protected]

The Edwin control.

This is initialised by the constructor.

const MLafEnv & iEnv

const MLafEnv & iEnv [protected]

LAF environment functions

This is initialised by the constructor.

TInt iSpare

TInt iSpare [private]

Unused.