CSnakingListBoxView Class Reference
class CSnakingListBoxView : public CListBoxView
|
Inherited Functions
|
|
CBase::CBase()
|
|
CBase::Delete(CBase *)
|
|
CBase::Extension_(TUint,TAny *&,TAny *)
|
|
CBase::operator new(TUint)
|
|
CBase::operator new(TUint,TAny *)
|
|
CBase::operator new(TUint,TLeave)
|
|
CBase::operator new(TUint,TLeave,TUint)
|
|
CBase::operator new(TUint,TUint)
|
|
CBase::~CBase()
|
|
CListBoxView::BackColor()const
|
|
CListBoxView::BottomItemIndex()const
|
|
CListBoxView::CListBoxView()
|
|
CListBoxView::ClearFlags(TInt)
|
|
CListBoxView::ClearSelection()
|
|
CListBoxView::ClearSelection(TBool)
|
|
CListBoxView::ClearSelectionAnchorAndActiveIndex()
|
|
CListBoxView::ConstructL(MListBoxModel *,CListItemDrawer *,CWsScreenDevice *,RWindowGroup *,RWindow *,const TRect &,TInt)
|
|
CListBoxView::CurrentItemIndex()const
|
|
CListBoxView::DataWidth()const
|
|
CListBoxView::DeselectItem(TInt)
|
|
CListBoxView::DeselectRangeL(TInt,TInt)
|
|
CListBoxView::DisableVerticalLineDrawing(TBool)
|
|
CListBoxView::DrawEmptyList(const TRect &)const
|
|
CListBoxView::DrawItem(TInt)const
|
|
CListBoxView::DrawMatcherCursor()
|
|
CListBoxView::EmptyListText()const
|
|
CListBoxView::Flags()const
|
|
CListBoxView::GetSelectionIndexesL(CSelectionIndexArray *)const
|
|
CListBoxView::HScrollOffset()const
|
|
CListBoxView::HideMatcherCursor()
|
|
CListBoxView::IsVisible()const
|
|
CListBoxView::ItemDrawer()const
|
|
CListBoxView::ItemHeight()const
|
|
CListBoxView::ItemIsPartiallyVisible(TInt)const
|
|
CListBoxView::ItemIsSelected(TInt)const
|
|
CListBoxView::ItemIsVisible(TInt)const
|
|
CListBoxView::ItemOffsetInPixels()const
|
|
CListBoxView::MatcherCursorPos()const
|
|
CListBoxView::RedrawDisabled()const
|
|
CListBoxView::SelectItemL(TInt)
|
|
CListBoxView::SelectRangeL(TInt,TInt)
|
|
CListBoxView::SelectionIndexes()const
|
|
CListBoxView::SetAnchor(TInt)
|
|
CListBoxView::SetBackColor(TRgb)
|
|
CListBoxView::SetCurrentItemIndex(TInt)
|
|
CListBoxView::SetDimmed(TBool)
|
|
CListBoxView::SetDisableRedraw(TBool)
|
|
CListBoxView::SetEmphasized(TBool)
|
|
CListBoxView::SetFlags(TInt)
|
|
CListBoxView::SetHScrollOffset(TInt)
|
|
CListBoxView::SetItemOffsetInPixels(TInt)
|
|
CListBoxView::SetListEmptyTextL(const TDesC &)
|
|
CListBoxView::SetMatcherCursor(TBool)
|
|
CListBoxView::SetMatcherCursorColor(TRgb)
|
|
CListBoxView::SetMatcherCursorPos(TInt)
|
|
CListBoxView::SetPaintedSelection(TBool)
|
|
CListBoxView::SetScrolling(TBool)
|
|
CListBoxView::SetSelectionIndexesL(const CSelectionIndexArray *)
|
|
CListBoxView::SetTextColor(TRgb)
|
|
CListBoxView::SetViewRect(const TRect &)
|
|
CListBoxView::SetVisibilityObserver(MListVisibilityObserver *)
|
|
CListBoxView::TextColor()const
|
|
CListBoxView::ToggleItemL(TInt)
|
|
CListBoxView::TopItemIndex()const
|
|
CListBoxView::UpdateSelectionL(TSelectionMode)
|
|
CListBoxView::VScrollTo(TInt)
|
|
CListBoxView::VScrollTo(TInt,TRect &)
|
|
CListBoxView::VerticalMoveToItemL(TInt,TSelectionMode)
|
|
CListBoxView::ViewRect()const
|
|
CListBoxView::~CListBoxView()
|
Constructor & Destructor Documentation
CSnakingListBoxView()
IMPORT_C
|
CSnakingListBoxView
|
(
|
)
|
|
~CSnakingListBoxView()
IMPORT_C
|
~CSnakingListBoxView
|
(
|
)
|
|
Member Functions Documentation
CalcBottomItemIndex()
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.
CalcDataWidth()
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.
CalcItemIndexFromRowAndColIndexes(TInt &, TInt, TInt)
IMPORT_C void
|
CalcItemIndexFromRowAndColIndexes
|
(
|
TInt
&
|
aItemIndex,
|
|
TInt
|
aRowIndex,
|
|
TInt
|
aColIndex
|
|
)
|
const
|
CalcNewTopItemIndexSoItemIsVisible(TInt)
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.
Parameters
TInt
aItemIndex
|
The index of the new top item.
|
CalcRowAndColIndexesFromItemIndex(TInt, TInt &, TInt &)
IMPORT_C void
|
CalcRowAndColIndexesFromItemIndex
|
(
|
TInt
|
aItemIndex,
|
|
TInt
&
|
aRowIndex,
|
|
TInt
&
|
aColIndex
|
|
)
|
const
|
CalculateHScrollOffsetSoItemIsVisible(TInt)
IMPORT_C
TInt
|
CalculateHScrollOffsetSoItemIsVisible
|
(
|
TInt
|
aItemIndex
|
)
|
[virtual]
|
ClearUnusedItemSpace(TInt, TInt)
IMPORT_C void
|
ClearUnusedItemSpace
|
(
|
TInt
|
aStartItemIndex,
|
|
TInt
|
aEndItemIndex
|
|
)
|
const [protected]
|
ColumnWidth()
TInt
|
ColumnWidth
|
(
|
)
|
const [inline]
|
Draw(const TRect *)
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.
Parameters
const
TRect
* aClipRect = NULL
|
The rectangle to draw into, this is ignored. Default value is NULL.
|
DrawColumnRange(TInt, TInt)
IMPORT_C void
|
DrawColumnRange
|
(
|
TInt
|
aStartColIndex,
|
|
TInt
|
aEndColIndex
|
|
)
|
const [protected]
|
DrawItemRange(TInt, TInt)
IMPORT_C void
|
DrawItemRange
|
(
|
TInt
|
aStartItemIndex,
|
|
TInt
|
aEndItemIndex
|
|
)
|
const [protected, virtual]
|
HScroll(TInt)
IMPORT_C void
|
HScroll
|
(
|
TInt
|
aHScrollAmount
|
)
|
[virtual]
|
Scrolls horizontally by the specified number of pixels.
Parameters
TInt
aHScrollAmount
|
The distance to scroll by in pixels. A negative value scrolls to the left, a positive value scrolls to the right.
|
ItemPos(TInt)
IMPORT_C
TPoint
|
ItemPos
|
(
|
TInt
|
aItemIndex
|
)
|
const [virtual]
|
Gets the on-screen position of an item.
Parameters
TInt
aItemIndex
|
Index of an item.
|
ItemSize(TInt)
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.
Parameters
TInt
aItemIndex = 0
|
Index of an item. Default value is 0.
|
MoveCursorL(TCursorMovement, TSelectionMode)
Moves the current item cursor in the specified direction. This function is called by
CEikListBox
in response to user input.
MoveToNextColumnL(TSelectionMode)
IMPORT_C void
|
MoveToNextColumnL
|
(
|
TSelectionMode
|
aSelectionMode
|
)
|
[protected]
|
MoveToPreviousColumnL(TSelectionMode)
IMPORT_C void
|
MoveToPreviousColumnL
|
(
|
TSelectionMode
|
aSelectionMode
|
)
|
[protected]
|
NumberOfItemsPerColumn()
IMPORT_C
TInt
|
NumberOfItemsPerColumn
|
(
|
)
|
const [virtual]
|
NumberOfItemsThatFitInRect(const TRect &)
IMPORT_C
TInt
|
NumberOfItemsThatFitInRect
|
(
|
const
TRect
&
|
aRect
|
)
|
const [virtual]
|
Gets the number of items that will fit into a given rectangle.
Parameters
const
TRect
& aRect
|
The rectangle.
|
Reserved_1()
IMPORT_C
TAny
*
|
Reserved_1
|
(
|
)
|
[private, virtual]
|
ScrollToMakeItemVisible(TInt)
IMPORT_C
TBool
|
ScrollToMakeItemVisible
|
(
|
TInt
|
aItemIndex
|
)
|
[virtual]
|
Scrolls vertically to make a particular item visible.
Parameters
TInt
aItemIndex
|
The item to make visible.
|
SetColumnWidth(TInt)
IMPORT_C void
|
SetColumnWidth
|
(
|
TInt
|
aColumnWidth
|
)
|
|
SetItemHeight(TInt)
IMPORT_C void
|
SetItemHeight
|
(
|
TInt
|
aItemHeight
|
)
|
[virtual]
|
Parameters
TInt
aItemHeight
|
New item height.
|
SetTopItemIndex(TInt)
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.
Parameters
TInt
aItemIndex
|
Index of the item to start the view at.
|
UpdateHScrollOffsetBasedOnTopItemIndex()
IMPORT_C void
|
UpdateHScrollOffsetBasedOnTopItemIndex
|
(
|
)
|
[protected]
|
VisibleWidth(const TRect &)
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.
Parameters
const
TRect
& aRect
|
The rectangle to get the visible width for.
|
XYPosToItemIndex(TPoint, TInt &)
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.
Parameters
TPoint
aPosition
|
A position relative to the origin of the list box control.
|
TInt
& aItemIndex
|
Is set to the item at that position.
|
Member Data Documentation
TInt
iColumnWidth
TInt
|
iColumnWidth
|
[protected]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.