Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: 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() functions or its CGridLay::SetGridTable() function.

Members

Defined in MGridTable:
ColumnExtent(), EDefaultColumnExtent, EDefaultRowExtent, RequestRow(), RowExtent(), anonymous


Member functions


RequestRow()

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

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

virtual IMPORT_C 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 RowExtent().

EDefaultColumnExtent

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