Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <GRDSTD.H>
Link against: grid.lib

Class CGridCellImg

class CGridCellImg : public CBase;

Description

Draws a grid cell's contents.

Derivation

Members

Defined in CGridCellImg:

Inherited from CBase:


Construction and destruction


~CGridCellImg()

IMPORT_C virtual ~CGridCellImg();

Description

Destructor.


CGridCellImg()

protected: IMPORT_C CGridCellImg();

Description

Default constructor.

[Top]


Member functions


BurstColOffset()const

inline TInt BurstColOffset() const;

Description

Gets the bursting column offset.

Return value

TInt

The burst column offset


BurstLeft()const

inline TInt BurstLeft() const;

Description

Gets the left hand bursting value.

Return value

TInt

The burst value.


BurstRight()const

inline TInt BurstRight() const;

Description

Gets the right hand bursting value.

Return value

TInt

The burst value


IsHorizontalGridLines()const

inline TBool IsHorizontalGridLines() const;

Description

Tests whether horizontal grid lines are drawn.

This function is set by the CGridImg object and allows classes derived from CGridCellImg to modify or restrict the area into which they draw.

Return value

TBool

True, if horizontal grid lines are drawn; false, otherwise.


IsVerticalGridLines()const

inline TBool IsVerticalGridLines() const;

Description

Tests whether vertical grid lines are drawn.

This function is set by the CGridImg object and allows classes derived from CGridCellImg to modify or restrict the area into which they draw.

Return value

TBool

True, if vertical grid lines are drawn; false, otherwise.


SetGridColors(const TGridColors &)

inline void SetGridColors(const TGridColors &aGridColors);

Description

Sets the colours to be used when drawing.

Parameters

const TGridColors &aGridColors

The object containing the grid colours specification.


DrawL(CGraphicsContext *,const TCellRef &,const TRect &,const TRect &)const

private: virtual void DrawL(CGraphicsContext *aGc, const TCellRef &aCell, const TRect &aDrawRect, const TRect &aClipRect) const=0;

Description

Draws the contents of the specified cell.

Parameters

CGraphicsContext *aGc

The graphics context to be used.

const TCellRef &aCell

The cell whose contents are to be drawn.

const TRect &aDrawRect

The rectangle in which the cell is to be drawn.

const TRect &aClipRect

The rectangle to which drawing is clipped.


DataWidthInPixelsL(const TCellRef &)const

private: IMPORT_C virtual TInt DataWidthInPixelsL(const TCellRef &aCell) const;

Description

Gets the width of the data contained in the specified cell.

Parameters

const TCellRef &aCell

The cell to be tested.

Return value

TInt

The width of the data, in pixels. The default implementation returns zero.


DoesCellContainDataL(const TCellRef &)const

private: IMPORT_C virtual TBool DoesCellContainDataL(const TCellRef &aCell) const;

Description

Tests whether the specified cell contains data.

Parameters

const TCellRef &aCell

The cell to be tested.

Return value

TBool

True, if the cell contains data; false, otherwise. The default implementation returns true.


Reserved_1()

private: IMPORT_C virtual void Reserved_1();

Description

[Top]


Member data


iGridColors

protected: TGridColors iGridColors;

Description

The grid colour specification.