Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: GRDSTD.H
Link against: grid.lib

Class CGridCellImg

class CGridCellImg : public CBase;

Description

Draws a grid cell's contents.

Derivation

Members

Defined in CGridCellImg:
BurstColOffset(), BurstLeft(), BurstRight(), CGridCellImg(), DataWidthInPixelsL(), DoesCellContainDataL(), DrawL(), IsHorizontalGridLines(), IsVerticalGridLines(), Reserved_1(), SetGridColors(), iGridColors, ~CGridCellImg()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


~CGridCellImg()

virtual IMPORT_C ~CGridCellImg();

Description

Destructor.


CGridCellImg()

protected: IMPORT_C CGridCellImg();

Description

Default constructor.

[Top]


Member functions


BurstColOffset()

inline TInt BurstColOffset() const;

Description

Gets the bursting column offset.

Return value

TInt

The burst column offset


BurstLeft()

inline TInt BurstLeft() const;

Description

Gets the left hand bursting value.

Return value

TInt

The burst value.


BurstRight()

inline TInt BurstRight() const;

Description

Gets the right hand bursting value.

Return value

TInt

The burst value


IsHorizontalGridLines()

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

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

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

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

private: virtual IMPORT_C 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()

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

Description

[Top]


Member data


iGridColors

protected: TGridColors iGridColors;

Description

The grid colour specification.