class CSnakingListBoxView : public CListBoxView |
Public Member Functions | |
---|---|
CSnakingListBoxView() | |
~CSnakingListBoxView() | |
IMPORT_C void | CalcBottomItemIndex() |
IMPORT_C void | CalcDataWidth() |
IMPORT_C void | CalcItemIndexFromRowAndColIndexes(TInt &, TInt, TInt) |
IMPORT_C TInt | CalcNewTopItemIndexSoItemIsVisible(TInt) |
IMPORT_C void | CalcRowAndColIndexesFromItemIndex(TInt, TInt &, TInt &) |
IMPORT_C TInt | CalculateHScrollOffsetSoItemIsVisible(TInt) |
TInt | ColumnWidth() |
IMPORT_C void | Draw(const TRect *) |
IMPORT_C void | HScroll(TInt) |
IMPORT_C TPoint | ItemPos(TInt) |
IMPORT_C TSize | ItemSize(TInt) |
IMPORT_C void | MoveCursorL(TCursorMovement, TSelectionMode) |
IMPORT_C TInt | NumberOfItemsPerColumn() |
IMPORT_C TInt | NumberOfItemsThatFitInRect(const TRect &) |
IMPORT_C TBool | ScrollToMakeItemVisible(TInt) |
IMPORT_C void | SetColumnWidth(TInt) |
IMPORT_C void | SetItemHeight(TInt) |
IMPORT_C void | SetTopItemIndex(TInt) |
IMPORT_C TInt | VisibleWidth(const TRect &) |
IMPORT_C TBool | XYPosToItemIndex(TPoint, TInt &) |
Protected Member Functions | |
---|---|
IMPORT_C void | ClearUnusedItemSpace(TInt, TInt) |
IMPORT_C void | DrawColumnRange(TInt, TInt) |
IMPORT_C void | DrawItemRange(TInt, TInt) |
IMPORT_C void | MoveToNextColumnL(TSelectionMode) |
IMPORT_C void | MoveToPreviousColumnL(TSelectionMode) |
IMPORT_C void | UpdateHScrollOffsetBasedOnTopItemIndex() |
Private Member Functions | |
---|---|
IMPORT_C TAny * | Reserved_1() |
Inherited Enumerations | |
---|---|
CListBoxView:TCursorMovement | |
CListBoxView:TFlags | |
CListBoxView:TSelectionMode |
Protected Attributes | |
---|---|
TInt | iColumnWidth |
IMPORT_C void | CalcBottomItemIndex | ( | ) | [virtual] |
Recalculates the index of the bottom item in the list by using the top item index and the size of the display.
This function is called by the owning list box control when either the size of the list box or the number of items in its model changes.
IMPORT_C void | CalcDataWidth | ( | ) | [virtual] |
Recalculates the data width of this list box view from the item width of its list item drawer. This method is called directly by CEikListBox when the list box s size changes or when data is added.
IMPORT_C void | CalcItemIndexFromRowAndColIndexes | ( | TInt & | aItemIndex, |
TInt | aRowIndex, | |||
TInt | aColIndex | |||
) | const |
IMPORT_C TInt | CalcNewTopItemIndexSoItemIsVisible | ( | TInt | aItemIndex | ) | const [virtual] |
Calculates which item should be selected in order to make a particular item visible. Calling VScrollTo(CalcNewTopItemIndexSoItemIsVisible(idx)), for example, would make the item whose index is idx visible.
The item to be selected.
TInt aItemIndex | The index of the new top item. |
IMPORT_C void | CalcRowAndColIndexesFromItemIndex | ( | TInt | aItemIndex, |
TInt & | aRowIndex, | |||
TInt & | aColIndex | |||
) | const |
IMPORT_C TInt | CalculateHScrollOffsetSoItemIsVisible | ( | TInt | aItemIndex | ) | [virtual] |
TInt aItemIndex |
IMPORT_C void | ClearUnusedItemSpace | ( | TInt | aStartItemIndex, |
TInt | aEndItemIndex | |||
) | const [protected] |
IMPORT_C void | Draw | ( | const TRect * | aClipRect = NULL | ) | const [virtual] |
Draws every visible item into the specified rectangle.
As implemented in CListBoxView, this function's argument is ignored and the internal viewing rectangle is used. See SetViewRect().
panic
EEikPanicListBoxNoModel Panics if the list box model for this class has not been defined.
const TRect * aClipRect = NULL | The rectangle to draw into, this is ignored. Default value is NULL. |
IMPORT_C void | DrawColumnRange | ( | TInt | aStartColIndex, |
TInt | aEndColIndex | |||
) | const [protected] |
IMPORT_C void | DrawItemRange | ( | TInt | aStartItemIndex, |
TInt | aEndItemIndex | |||
) | const [protected, virtual] |
IMPORT_C void | HScroll | ( | TInt | aHScrollAmount | ) | [virtual] |
Scrolls horizontally by the specified number of pixels.
TInt aHScrollAmount | The distance to scroll by in pixels. A negative value scrolls to the left, a positive value scrolls to the right. |
IMPORT_C TPoint | ItemPos | ( | TInt | aItemIndex | ) | const [virtual] |
Gets the on-screen position of an item.
Position of the item.
TInt aItemIndex | Index of an item. |
IMPORT_C TSize | ItemSize | ( | TInt | aItemIndex = 0 | ) | const [virtual] |
Gets the on-screen size of an item.
As implemented in CListBoxView, all items report the same size. The size returned may be larger than the width of the list box view, but will not be smaller.
Size of the item.
TInt aItemIndex = 0 | Index of an item. Default value is 0. |
IMPORT_C void | MoveCursorL | ( | TCursorMovement | aCursorMovement, |
TSelectionMode | aSelectionMode | |||
) | [virtual] |
Moves the current item cursor in the specified direction. This function is called by CEikListBox in response to user input.
TCursorMovement aCursorMovement | The cursor movement to apply. |
TSelectionMode aSelectionMode | The selection mode of the calling list box. |
IMPORT_C void | MoveToNextColumnL | ( | TSelectionMode | aSelectionMode | ) | [protected] |
TSelectionMode aSelectionMode |
IMPORT_C void | MoveToPreviousColumnL | ( | TSelectionMode | aSelectionMode | ) | [protected] |
TSelectionMode aSelectionMode |
IMPORT_C TInt | NumberOfItemsThatFitInRect | ( | const TRect & | aRect | ) | const [virtual] |
Gets the number of items that will fit into a given rectangle.
The number of items that will fit into the given rectangle.
const TRect & aRect | The rectangle. |
IMPORT_C TBool | ScrollToMakeItemVisible | ( | TInt | aItemIndex | ) | [virtual] |
Scrolls vertically to make a particular item visible.
ETrue if any scrolling was done, EFalse if no scrolling was necessary.
TInt aItemIndex | The item to make visible. |
IMPORT_C void | SetItemHeight | ( | TInt | aItemHeight | ) | [virtual] |
Sets the item height.
TInt aItemHeight | New item height. |
IMPORT_C void | SetTopItemIndex | ( | TInt | aItemIndex | ) | [virtual] |
Sets the item at the top of the view by its index in the list of all items. This function also invokes CalcBottomItemIndex().
panic
EEikPanicListBoxInvalidTopItemIndexSpecified Panics if the given index is not valid.
TInt aItemIndex | Index of the item to start the view at. |
IMPORT_C void | UpdateHScrollOffsetBasedOnTopItemIndex | ( | ) | [protected] |
IMPORT_C TInt | VisibleWidth | ( | const TRect & | aRect | ) | const [virtual] |
Gets the visible width of the specified rectangle in pixels. This function is called by CListBoxView itself on its own viewing rectangle.
Visible width of aRect.
const TRect & aRect | The rectangle to get the visible width for. |
IMPORT_C TBool | XYPosToItemIndex | ( | TPoint | aPosition, |
TInt & | aItemIndex | |||
) | const [virtual] |
Converts a pixel position into an item index.
The function returns ETrue and sets aItemIndex to the index of the item whose bounding box contains aPosition. Returns EFalse if no such item exists.
ETrue if there was an item at aPosition.