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.
Public Member Functions | |
---|---|
IMPORT_C void | DrawBackground(const TParam &, const TRgb &, TRect &) |
IMPORT_C void | LineSpacingChanged() |
IMPORT_C CLafEdwinCustomDrawBase * | NewL(const MLafEnv &, const CCoeControl &) |
IMPORT_C TRgb | SystemColor(TUint, TRgb) |
Protected Member Functions | |
---|---|
CLafEdwinCustomDrawBase(const MLafEnv &, const CCoeControl &) |
Protected Attributes | |
---|---|
const CCoeControl & | iControl |
const MLafEnv & | iEnv |
Private Attributes | |
---|---|
TInt | iSpare |
IMPORT_C | CLafEdwinCustomDrawBase | ( | const MLafEnv & | aEnv, |
const CCoeControl & | aControl | |||
) | [protected] |
Constructor that initialises data members.
const MLafEnv & aEnv | LAF environment functions |
const CCoeControl & aControl | The Edwin control |
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.
IMPORT_C void | LineSpacingChanged | ( | ) | [virtual] |
Notifies the drawer that a MEikEdwinObserver::EEventFormatChanged event has occurred for the Edwin.
IMPORT_C CLafEdwinCustomDrawBase * | NewL | ( | const MLafEnv & | aEnv, |
const CCoeControl & | aControl | |||
) | [static] |
Allocates and constructs the custom drawer.
New custom drawer
const MLafEnv & aEnv | LAF environment functions |
const CCoeControl & aControl | The Edwin control |
IMPORT_C TRgb | SystemColor | ( | TUint | aColorIndex, |
TRgb | aDefaultColor | |||
) | const |
Gets the physical colour that maps to a specified logical colour.
Physical colour
const CCoeControl & | iControl | [protected] |
The Edwin control.
This is initialised by the constructor.
const MLafEnv & | iEnv | [protected] |
LAF environment functions
This is initialised by the constructor.