MAknListBoxTfxInternal Class Reference
class MAknListBoxTfxInternal |
API used by the classes that implements the different types of listboxes. The API can be used to enable listbox effects.
Public Member Functions |
---|
void | AddNonDrawingRect(const TRect &) |
TBool
| BeginRedraw(TParticipantType, const TRect &, TInt) |
void | Draw(const TRect &) |
TBool
| EffectsDisabled() |
void | EndRedraw(TParticipantType, TInt) |
void | EndViewRedraw(const TRect &) |
TBool
| Exist(TParticipantType, TInt) |
void | HandleFocusChange(TBool) |
void | Invalidate(TParticipantType, TInt) |
void | JumpToStateAfter(TParticipantType) |
TBool
| NeedsUpdate(TParticipantType, TUint32, const TRect &) |
void | Remove(TParticipantType, TInt) |
void | ResetNonDrawingRects() |
void | SetGc(CWindowGc &) |
void | SetListType(TListBoxType) |
void | SetMoveType(MAknListBoxTfxInternal::TMovementType) |
TInt
| SetPosition(TParticipantType, const TPoint &, TInt) |
TBool
| StartDrawing(TParticipantType) |
void | StopDrawing() |
TInt
| VerifyKml() |
Public Member Enumerations |
---|
enum | TListBoxType { EListBoxTypeMainPane = 0, EListBoxTypeGrid, EListBoxTypeSettingPage, EListBoxTypePopup, EListBoxTypeMenuPane, EListBoxTypeTreeList, EListBoxTypeIdle } |
enum | TLongTapEvent { ELongTapStart, ELongTapFinish, ELongTapAbort } |
enum | TMovementType { EListNoMovement = 0, EListScrollDown, EListScrollUp, EListWrapDown, EListWrapUp, EListMoveDown, EListMoveUp, EListWrapLeft, EListWrapRight, EListMoveLeft, EListMoveRight, EListStartUnknownMove, EListStopUnknownMove, EListContinueMove, EListTap, EListFastScroll, EListHitBorder, EListDrag } |
enum | TParticipantType { EListView, EListItem, EListHighlight, EListZoomText, EListEverything = 100, EListNotSpecified, EListUpdateRect, EListTLMargin, EListBRMargin, EHighlightParticipant } |
Member Functions Documentation
AddNonDrawingRect(const TRect &)
void | AddNonDrawingRect | ( | const TRect & | aRect | ) | [pure virtual] |
Add an area that won't be drawn to.
BeginRedraw(TParticipantType, const TRect &, TInt)
Begin redrawing a listbox participant bitmap. It's important that EndRedraw is called when the redraw is finished. If more than one BeginRedraw is called, it is only the first that has any effect, but EndRedraw must be called as many times as EndRedraw.
Parameters
TParticipantType aType | The type of the list participant to be drawn. |
const TRect & aRect | The participant's rect. |
TInt aId = 0 | The index of the item. |
Draw(const TRect &)
void | Draw | ( | const TRect & | aRect | ) | [pure virtual] |
Parameters
const TRect & aRect | The rect to draw. |
EffectsDisabled()
TBool
| EffectsDisabled | ( | ) | const [pure virtual] |
EndRedraw(TParticipantType, TInt)
End redrawing a listbox participant bitmap.
Parameters
TParticipantType aType | The type of the list participant that was drawn. |
TInt aId = 0 | The index of the item. |
EndViewRedraw(const TRect &)
void | EndViewRedraw | ( | const TRect & | aRect | ) | [pure virtual] |
End redrawing a listbox view participant bitmap.
Parameters
const TRect & aRect | Clipping rectangle (The area that can be drawn). |
Exist(TParticipantType, TInt)
Checks if a participant exists.
HandleFocusChange(TBool)
void | HandleFocusChange | ( | TBool | aInFocus | ) | [pure virtual] |
Sets the focus of the listbox. Should be called when it gains or loses focus.
Parameters
TBool aInFocus | ETrue if the listbox has focus, EFalse if not. |
Invalidate(TParticipantType, TInt)
Invalidate a participant, forces the image to be updated next time it is drawn.
JumpToStateAfter(TParticipantType)
Tell the listbox to jump to state after a special participant has been drawn.
NeedsUpdate(TParticipantType, TUint32, const TRect &)
Check if a certain listbox participant needs to be redrawn.
Remove(TParticipantType, TInt)
Remove the following participant bitmap.
Parameters
TParticipantType aType | The type of the list participant to remove, ie. item, highlight, background, or zoomtext. |
TInt aId = 0 | The index of the item, only used for list items. |
ResetNonDrawingRects()
void | ResetNonDrawingRects | ( | ) | [pure virtual] |
Reset areas that won't be drawn to.
SetGc(CWindowGc &)
Parameters
CWindowGc & aGc | The new gc that shall be used. |
SetListType(TListBoxType)
SetMoveType(MAknListBoxTfxInternal::TMovementType)
Set the type of the current movement.
SetPosition(TParticipantType, const TPoint &, TInt)
Change position of a participant without redrawing it.
StartDrawing(TParticipantType)
Start actual drawing to the listbox participant. This should be called between BeginRedraw and EndRedraw. Everything that is drawn to the listbox gc must be drawn between StartDrawing and StopDrawing, otherwise effects are disabled.
StopDrawing()
void | StopDrawing | ( | ) | [pure virtual] |
Stop actual drawing to the listbox participant. This should be called between BeginRedraw and EndRedraw. Everything that is drawn to the listbox gc must be drawn between StartDrawing and StopDrawing, otherwise effects are disabled.
VerifyKml()
TInt
| VerifyKml | ( | ) | const [pure virtual] |
Verify that the server is running and KML is available.
Member Enumerations Documentation
Enum TListBoxType
Enumerators
EListBoxTypeMainPane = 0 |
All regular main pane lists, as well as settings lists.
|
EListBoxTypeGrid |
Grids.
|
EListBoxTypeSettingPage |
Lists in setting pages.
|
EListBoxTypePopup |
Lists in popups.
|
EListBoxTypeMenuPane |
Options menu.
|
EListBoxTypeTreeList |
Tree List
|
EListBoxTypeIdle | |
Enum TLongTapEvent
Enumerators
ELongTapStart | |
ELongTapFinish | |
ELongTapAbort | |
Enum TMovementType
The type of movement in a listbox.
Enumerators
EListNoMovement = 0 | |
EListScrollDown | |
EListScrollUp | |
EListWrapDown | |
EListWrapUp | |
EListMoveDown | |
EListMoveUp | |
EListWrapLeft | |
EListWrapRight | |
EListMoveLeft | |
EListMoveRight | |
EListStartUnknownMove | |
EListStopUnknownMove | |
EListContinueMove | |
EListTap | |
EListFastScroll | |
EListHitBorder | |
EListDrag | |
Enum TParticipantType
The type of a listbox participant: view, highlight or list item.
Enumerators
EListView |
View (background) of the list.
|
EListItem |
List items, ie. the entries in the list.
|
EListHighlight |
Highlight.
|
EListZoomText |
Zoomed text box.
|
EListEverything = 100 |
Can be used in Remove to remove all participants.
|
EListNotSpecified | |
EListUpdateRect | |
EListTLMargin | |
EListBRMargin | |
EHighlightParticipant | |
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.