Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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(const MCoeControlBackground *) accepts the object and sets it as the background drawer

Members

Defined in MCoeControlBackground:


Construction and destruction


MCoeControlBackground()

protected: IMPORT_C MCoeControlBackground();

Description

[Top]


Member functions


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

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 MCoeControlBackground::GetTextDrawer(CCoeTextDrawerBase *&,const CCoeControl *)const 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 *)const

IMPORT_C virtual 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: IMPORT_C virtual void MCoeControlBackground_Reserved1();

Description


MCoeControlBackground_Reserved2()

private: IMPORT_C virtual void MCoeControlBackground_Reserved2();

Description


MCoeControlBackground_Reserved3()

private: IMPORT_C virtual void MCoeControlBackground_Reserved3();

Description


MCoeControlBackground_Reserved4()

private: IMPORT_C virtual void MCoeControlBackground_Reserved4();

Description


MCoeControlBackground_Reserved5()

private: IMPORT_C virtual void MCoeControlBackground_Reserved5();

Description