MCoeControlBackground Class Reference

class MCoeControlBackground

Interface to be used if a control elects to be a background drawer.

Parent controls can elect to take responsibility for drawing the background for their child controls. To achieve this, they should aggregate an object that implements this interface. CCoeControl::SetBackground() accepts the object and sets it as the background drawer

CCoeControl::EnableWindowTransparency()

Public Member Functions
void Draw ( CWindowGc &, const CCoeControl &, const TRect &)
IMPORT_C void GetTextDrawer ( CCoeTextDrawerBase *&, const CCoeControl *)
Protected Member Functions
MCoeControlBackground ()
Private Member Functions
IMPORT_C void MCoeControlBackground_Reserved1 ()
IMPORT_C void MCoeControlBackground_Reserved2 ()
IMPORT_C void MCoeControlBackground_Reserved3 ()
IMPORT_C void MCoeControlBackground_Reserved4 ()
IMPORT_C void MCoeControlBackground_Reserved5 ()
TInt iMCoeControlBackground_Reserved1 ()

Constructor & Destructor Documentation

MCoeControlBackground()

IMPORT_C MCoeControlBackground ( ) [protected]

Member Functions Documentation

Draw(CWindowGc &, const CCoeControl &, const TRect &)

void Draw ( CWindowGc & aGc,
const CCoeControl & aControl,
const TRect & aRect
) const [pure virtual]

Draw the background for a given control. The text drawer that shall be used to draw text on the specific background can be fetched through the GetTextDrawer() method.

Parameters

CWindowGc & aGc Graphics context used for drawing
const CCoeControl & aControl The control being drawn (may be a child of the drawer)
const TRect & aRect The area to be redrawn

GetTextDrawer(CCoeTextDrawerBase *&, const CCoeControl *)

IMPORT_C void GetTextDrawer ( CCoeTextDrawerBase *& aTextDrawer,
const CCoeControl * aDrawingControl
) const [virtual]

This function retrieves the text drawer associated with the background. Default empty method.

Parameters

CCoeTextDrawerBase *& aTextDrawer Not used.
const CCoeControl * aDrawingControl Not used.

MCoeControlBackground_Reserved1()

IMPORT_C void MCoeControlBackground_Reserved1 ( ) [private, virtual]

MCoeControlBackground_Reserved2()

IMPORT_C void MCoeControlBackground_Reserved2 ( ) [private, virtual]

MCoeControlBackground_Reserved3()

IMPORT_C void MCoeControlBackground_Reserved3 ( ) [private, virtual]

MCoeControlBackground_Reserved4()

IMPORT_C void MCoeControlBackground_Reserved4 ( ) [private, virtual]

MCoeControlBackground_Reserved5()

IMPORT_C void MCoeControlBackground_Reserved5 ( ) [private, virtual]

iMCoeControlBackground_Reserved1()

TInt iMCoeControlBackground_Reserved1 ( ) [private]