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

  • CLafEdwinCustomDrawBase

Constructor & Destructor Documentation

CLafEdwinCustomDrawBase(const MLafEnv &, const CCoeControl &)

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

Constructor that initialises data members.

Parameters

const MLafEnv & aEnvLAF environment functions
const CCoeControl & aControlThe Edwin control

Member Functions Documentation

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

IMPORT_C voidDrawBackground(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 & aParamDrawing parameters
const TRgb & aBackgroundDefault background colour
TRect & aDrawnOn return, the rectangle to which the function has drawn

LineSpacingChanged()

IMPORT_C voidLineSpacingChanged()[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.

New custom drawer

Parameters

const MLafEnv & aEnvLAF environment functions
const CCoeControl & aControlThe Edwin control

SystemColor(TUint, TRgb)

IMPORT_C TRgbSystemColor(TUintaColorIndex,
TRgbaDefaultColor
)const

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

Physical colour

Parameters

TUint aColorIndexLogical colour
TRgb aDefaultColorThe 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.