Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

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

Class MGridTable

class MGridTable;

Description

An interface that can be implemented to provide row and column information.

Note that for grids that have indefinite row boundaries, an implementation is mandatory.

A concrete implementation is passed to a CGridLay object through its CGridLay::ConstructL(CGridLay *,CGridImg *) functions or its CGridLay::SetGridTable(const MGridTable *) function.

Members

Defined in MGridTable:


Member functions


RequestRow(TInt,TInt &)const

IMPORT_C virtual TBool RequestRow(TInt aRow, TInt &aReturnRow) const;

Description

Translates a requested row.

Typically, the function is called by grid before it attempts a redraw in order to determine how many rows can be drawn. For example, if a request for row 16 were to be translated as row 11, then it would imply that there are only 11 rows in this rowset, and cause grid to draw accordingly.

An implementation must be provided for grids that have indefinite row boundaries.

The default implementation raises a panic.

Parameters

TInt aRow

The row to be translated.

TInt &aReturnRow

On return, the row that corresponds to the requested row.

Return value

TBool

True, if a row is returned; false, if no rows can be returned.

Panic codes

GRIDIMG

8 Always raised by the default implementation.


RowExtent()const

IMPORT_C virtual TInt RowExtent() const;

Description

Gets the number of rows in the grid.

Return value

TInt

The number of rows in the grid. The default implementation returns the value EDefaultRowExtent.


ColumnExtent()const

IMPORT_C virtual TInt ColumnExtent() const;

Description

Gets the number of columns in the grid.

Return value

TInt

The number of columns in the grid. The default implementation returns the value EDefaultColumnExtent.

[Top]


Member enumerations


Enum anonymous

n/a

Description

EDefaultRowExtent

The number of rows returned by the default implementation of MGridTable::RowExtent()const.

EDefaultColumnExtent

The number of columns returned by the default implementation of MGridTable::ColumnExtent()const.