#include <mw/eiklbv.h>
class CSnakingListBoxView : public CListBoxView |
Protected Attributes | |
---|---|
TInt | iColumnWidth |
Protected Member Functions | |
---|---|
IMPORT_C void | ClearUnusedItemSpace(TInt, TInt) |
IMPORT_C void | DrawColumnRange(TInt, TInt) |
virtual IMPORT_C void | DrawItemRange(TInt, TInt) |
IMPORT_C void | MoveToNextColumnL(TSelectionMode) |
IMPORT_C void | MoveToPreviousColumnL(TSelectionMode) |
IMPORT_C void | UpdateHScrollOffsetBasedOnTopItemIndex() |
Inherited Enumerations | |
---|---|
CListBoxView:TCursorMovement | |
CListBoxView:TFlags | |
CListBoxView:TSelectionMode |
Inherited Type Definitions | |
---|---|
CListBoxView::CSelectionIndexArray |
IMPORT_C void | CalcBottomItemIndex | ( | ) | [virtual] |
Reimplemented from CListBoxView::CalcBottomItemIndex()
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] |
Reimplemented from CListBoxView::CalcDataWidth()
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.
Reimplemented from CListBoxView::CalcNewTopItemIndexSoItemIsVisible(TInt)const
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.
Parameter | Description |
---|---|
aItemIndex | The index of the new top item. |
Returns: The item to be selected.
IMPORT_C void | Draw | ( | const TRect * | aClipRect = NULL | ) | const [virtual] |
Reimplemented from CListBoxView::Draw(const TRect *)const
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().
Parameter | Description |
---|---|
aClipRect | The rectangle to draw into, this is ignored. Default value is NULL. |
IMPORT_C void | HScroll | ( | TInt | aHScrollAmount | ) | [virtual] |
Reimplemented from CListBoxView::HScroll(TInt)
Scrolls horizontally by the specified number of pixels.
Parameter | Description |
---|---|
aHScrollAmount | The distance to scroll by in pixels. A negative value scrolls to the left, a positive value scrolls to the right. |
Reimplemented from CListBoxView::ItemPos(TInt)const
Gets the on-screen position of an item.
Parameter | Description |
---|---|
aItemIndex | Index of an item. |
Returns: Position of the item.
Reimplemented from CListBoxView::ItemSize(TInt)const
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.
Parameter | Description |
---|---|
aItemIndex | Index of an item. Default value is 0. |
Returns: Size of the item.
IMPORT_C void | MoveCursorL | ( | TCursorMovement | aCursorMovement, |
TSelectionMode | aSelectionMode | |||
) | [virtual] |
Reimplemented from CListBoxView::MoveCursorL(TCursorMovement,TSelectionMode)
Moves the current item cursor in the specified direction. This function is called by CEikListBox in response to user input.
Parameter | Description |
---|---|
aCursorMovement | The cursor movement to apply. |
aSelectionMode | The selection mode of the calling list box. |
IMPORT_C void | MoveToNextColumnL | ( | TSelectionMode | aSelectionMode | ) | [protected] |
IMPORT_C void | MoveToPreviousColumnL | ( | TSelectionMode | aSelectionMode | ) | [protected] |
Reimplemented from CListBoxView::NumberOfItemsThatFitInRect(const TRect &)const
Gets the number of items that will fit into a given rectangle.
Parameter | Description |
---|---|
aRect | The rectangle. |
Returns: The number of items that will fit into the given rectangle.
Reimplemented from CListBoxView::ScrollToMakeItemVisible(TInt)
Scrolls vertically to make a particular item visible.
Parameter | Description |
---|---|
aItemIndex | The item to make visible. |
Returns: ETrue if any scrolling was done, EFalse if no scrolling was necessary.
IMPORT_C void | SetItemHeight | ( | TInt | aItemHeight | ) | [virtual] |
Reimplemented from CListBoxView::SetItemHeight(TInt)
Sets the item height.
Parameter | Description |
---|---|
aItemHeight | New item height. |
IMPORT_C void | SetTopItemIndex | ( | TInt | aItemIndex | ) | [virtual] |
Reimplemented from CListBoxView::SetTopItemIndex(TInt)
Sets the item at the top of the view by its index in the list of all items. This function also invokes CalcBottomItemIndex().
Parameter | Description |
---|---|
aItemIndex | Index of the item to start the view at. |
IMPORT_C void | UpdateHScrollOffsetBasedOnTopItemIndex | ( | ) | [protected] |
Reimplemented from CListBoxView::VisibleWidth(const TRect &)const
Gets the visible width of the specified rectangle in pixels. This function is called by CListBoxView itself on its own viewing rectangle.
Parameter | Description |
---|---|
aRect | The rectangle to get the visible width for. |
Returns: Visible width of aRect.
Reimplemented from CListBoxView::XYPosToItemIndex(TPoint,TInt &)const
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.
Parameter | Description |
---|---|
aPosition | A position relative to the origin of the list box control. |
aItemIndex | Is set to the item at that position. |
Returns: ETrue if there was an item at aPosition.