Location:
eiklbv.h
Link against: eikcoctl.lib
CSnakingListBoxView
Supported from 6.0
List box view for snaking list boxes.
The view is responsible for drawing items and maintaining the selection status.
|
Defined in CSnakingListBoxView
:
CSnakingListBoxView()
, CalcBottomItemIndex()
, CalcDataWidth()
, CalcItemIndexFromRowAndColIndexes()
, CalcNewTopItemIndexSoItemIsVisible()
, CalcRowAndColIndexesFromItemIndex()
, CalculateHScrollOffsetSoItemIsVisible()
, ClearUnusedItemSpace()
, ColumnWidth()
, Draw()
, DrawColumnRange()
, DrawItemRange()
, HScroll()
, ItemPos()
, ItemSize()
, MoveCursorL()
, MoveToNextColumnL()
, MoveToPreviousColumnL()
, NumberOfItemsPerColumn()
, NumberOfItemsThatFitInRect()
, ScrollToMakeItemVisible()
, SetColumnWidth()
, SetItemHeight()
, SetTopItemIndex()
, UpdateHScrollOffsetBasedOnTopItemIndex()
, VisibleWidth()
, XYPosToItemIndex()
, iColumnWidth
, ~CSnakingListBoxView()
Inherited from CBase
:
operator new()
Inherited from CListBoxView
:
BackColor()
,
BottomItemIndex()
,
CSelectionIndexArray
,
ClearFlags()
,
ClearSelection()
,
ClearSelectionAnchorAndActiveIndex()
,
ConstructL()
,
CurrentItemIndex()
,
DataWidth()
,
DeselectItem()
,
DrawItem()
,
DrawMatcherCursor()
,
EAnchorExists
,
EContiguousSelection
,
ECursorFirstItem
,
ECursorLastItem
,
ECursorNextColumn
,
ECursorNextItem
,
ECursorNextPage
,
ECursorPreviousColumn
,
ECursorPreviousItem
,
ECursorPreviousPage
,
EDimmed
,
EDisableRedraw
,
EDisjointSelection
,
EEmphasized
,
EHasMatcherCursor
,
ENoSelection
,
ESingleSelection
,
Flags()
,
GetSelectionIndexesL()
,
HScrollOffset()
,
HideMatcherCursor()
,
IsVisible()
,
ItemDrawer()
,
ItemIsSelected()
,
ItemIsVisible()
,
MatcherCursorPos()
,
RedrawDisabled()
,
SelectItemL()
,
SelectRangeL()
,
SelectionIndexes()
,
SetAnchor()
,
SetBackColor()
,
SetCurrentItemIndex()
,
SetDimmed()
,
SetDisableRedraw()
,
SetEmphasized()
,
SetFlags()
,
SetHScrollOffset()
,
SetMatcherCursor()
,
SetMatcherCursorColor()
,
SetMatcherCursorPos()
,
SetPaintedSelection()
,
SetSelectionIndexesL()
,
SetTextColor()
,
SetViewRect()
,
SetVisibilityObserver()
,
TCursorMovement
,
TFlags
,
TSelectionMode
,
TextColor()
,
ToggleItemL()
,
TopItemIndex()
,
UpdateSelectionL()
,
VScrollTo()
,
VerticalMoveToItemL()
,
ViewRect()
,
iBottomItemIndex
,
iCurrentItemIndex
,
iDataWidth
,
iFlags
,
iGc
,
iGroupWin
,
iHScrollOffset
,
iItemDrawer
,
iItemHeight
,
iModel
,
iTopItemIndex
,
iViewRect
,
iWin
TInt ColumnWidth() const;
Gets the width of all columns in the view.
|
void SetColumnWidth(TInt aColumnWidth);
Sets the width of all columns in the view.
|
virtual void SetTopItemIndex(TInt aItemIndex);
Sets which item appears at the top left corner of the view. The function changes items displayed in the view appropriately.
|
virtual TBool ScrollToMakeItemVisible(TInt aItemIndex);
Makes the specified item visible by moving the view location and redrawing the control.
|
|
virtual void HScroll(TInt aHScrollAmount);
Scrolls horizontally by a number of columns.
|
virtual TInt CalculateHScrollOffsetSoItemIsVisible(TInt aItemIndex);
Gets the number of columns that this view would need to be scrolled by to make the specified item visible. The function returns 0 if no scrolling is needed.
ScrollToMakeItemVisible()
uses this
function.
|
|
virtual TInt CalcNewTopItemIndexSoItemIsVisible(TInt aItemIndex) const;
Gets the item the view would need to be moved to in order to make the specified item visible.
|
|
virtual void CalcBottomItemIndex();
Recalculates the bottom item’s index.
This function is called by the list box control when either the
size of the list box or the number of items in its model changes. In
CSnakingListBox
, this function calculates the bottom right
item’s index.
virtual void MoveCursorL(TCursorMovement aCursorMovement,TSelectionMode aSelectionMode);
Responds to cursor movement commands sent by the list box control, updating the selection appropriately if a selection mode has been set for the action.
|
virtual void Draw(const TRect* aClipRect = NULL) const;
Draws the portion of the view inside the specified rectangle
into iGc
. This function is called by the control’s own
Draw()
function.
|
virtual TSize ItemSize(TInt aItemIndex=0) const;
Gets the size of the specified item.
|
|
virtual void SetItemHeight(TInt aItemHeight);
Sets item height in pixels.
|
virtual TInt NumberOfItemsThatFitInRect(const TRect& aRect) const;
Gets the largest number of items that could fit inside the specified rectangle. This virtual function is used internally for layout of the view.
|
|
virtual void CalcDataWidth();
Calculates the data width in columns. iDataWidth
is calculated based on model and drawer information.
TInt VisibleWidth(const TRect& aRect) const;
Gets the visible width of the specified rectangle in pixels.
|
|
TInt NumberOfItemsPerColumn() const;
Gets the number of items that can fit in a column.
|
void CalcRowAndColIndexesFromItemIndex(TInt aItemIndex,TInt& aRowIndex,TInt& aColIndex) const;
Converts an item index into the (row, column) pair describing that item.
|
void CalcItemIndexFromRowAndColIndexes(TInt& aItemIndex,TInt aRowIndex,TInt aColIndex) const;
Converts a (row, column) pair into the item index for that item.
|
virtual TBool XYPosToItemIndex(TPoint aPosition,TInt& aItemIndex) const;
Converts an (x, y) pixel position to 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.
|
|
virtual TPoint ItemPos(TInt aItemIndex) const;
Gets the position of the top left corner of the specified item, in pixels.
|
|
protected: void DrawItemRange(TInt aStartItemIndex,TInt aEndItemIndex) const;
Draws every item between the start and end indices inclusively.
|
protected: void DrawColumnRange(TInt aStartColIndex,TInt aEndColIndex) const;
Draws every item in every column between the start and end columns inclusively.
|
protected:void MoveToPreviousColumnL(TSelectionMode aSelectionMode);
Move to previous column. Whether the selection is updated
depends on aSelectionMode
.
|
protected:void MoveToNextColumnL(TSelectionMode aSelectionMode);
Move to next column. Whether the selection is updated depends
on aSelectionMode
.
|
protected:void ClearUnusedItemSpace(TInt aStartItemIndex,TInt aEndItemIndex) const;
Clears each item’s rectangle between the specified start and finish item’s indexes.
|
protected: void UpdateHScrollOffsetBasedOnTopItemIndex();
Updates the horizontal scroll offset
(iHScrollOffset
) based on the top item’s index. This
function is called internally by CEikSnakingListBox
es when
needed.
TInt iColumnWidth
The width of a column in pixels.