Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: COECNTRL.H
Link against: cone.lib

Class MCoeControlBackground

class MCoeControlBackground;

Description

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

Members

Defined in MCoeControlBackground:
Draw(), GetTextDrawer(), MCoeControlBackground(), MCoeControlBackground_Reserved1(), MCoeControlBackground_Reserved2(), MCoeControlBackground_Reserved3(), MCoeControlBackground_Reserved4(), MCoeControlBackground_Reserved5()


Construction and destruction


MCoeControlBackground()

protected: IMPORT_C MCoeControlBackground();

Description

[Top]


Member functions


Draw()

virtual void Draw(CWindowGc &aGc, const CCoeControl &aControl, const TRect &aRect) const=0;

Description

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()

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

Description

This function retrieves the text drawer associated with the background.

Parameters

CCoeTextDrawerBase *&aTextDrawer

The text drawer associated with the background. This may be null. The default implementation always sets this to 0.

const CCoeControl *aDrawingControl

The control that is requesting the text drawer.


MCoeControlBackground_Reserved1()

private: virtual IMPORT_C void MCoeControlBackground_Reserved1();

Description


MCoeControlBackground_Reserved2()

private: virtual IMPORT_C void MCoeControlBackground_Reserved2();

Description


MCoeControlBackground_Reserved3()

private: virtual IMPORT_C void MCoeControlBackground_Reserved3();

Description


MCoeControlBackground_Reserved4()

private: virtual IMPORT_C void MCoeControlBackground_Reserved4();

Description


MCoeControlBackground_Reserved5()

private: virtual IMPORT_C void MCoeControlBackground_Reserved5();

Description