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 } |
void | AddNonDrawingRect | ( | const TRect & | aRect | ) | [pure virtual] |
Add an area that won't be drawn to.
const TRect & aRect |
TBool | BeginRedraw | ( | TParticipantType | aType, |
const TRect & | aRect, | |||
TInt | aId = 0 | |||
) | [pure virtual] |
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.
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. |
void | Draw | ( | const TRect & | aRect | ) | [pure virtual] |
Draw the listbox.
const TRect & aRect | The rect to draw. |
void | EndRedraw | ( | TParticipantType | aType, |
TInt | aId = 0 | |||
) | [pure virtual] |
End redrawing a listbox participant bitmap.
TParticipantType aType | The type of the list participant that was drawn. |
TInt aId = 0 | The index of the item. |
void | EndViewRedraw | ( | const TRect & | aRect | ) | [pure virtual] |
End redrawing a listbox view participant bitmap.
const TRect & aRect | Clipping rectangle (The area that can be drawn). |
TBool | Exist | ( | TParticipantType | aType, |
TInt | aId = 0 | |||
) | const [pure virtual] |
Checks if a participant exists.
TParticipantType aType | The type of the participant (highlight, background or item). |
TInt aId = 0 |
void | HandleFocusChange | ( | TBool | aInFocus | ) | [pure virtual] |
Sets the focus of the listbox. Should be called when it gains or loses focus.
TBool aInFocus | ETrue if the listbox has focus, EFalse if not. |
void | Invalidate | ( | TParticipantType | aType, |
TInt | aId = 0 | |||
) | [pure virtual] |
Invalidate a participant, forces the image to be updated next time it is drawn.
TParticipantType aType | The type of the participant (highlight, background or item). |
TInt aId = 0 |
void | JumpToStateAfter | ( | TParticipantType | aType | ) | [pure virtual] |
Tell the listbox to jump to state after a special participant has been drawn.
TParticipantType aType | The type of the list participant that triggers the jump. |
TBool | NeedsUpdate | ( | TParticipantType | aType, |
TUint32 | aIndex, | |||
const TRect & | aRect | |||
) | [pure virtual] |
Check if a certain listbox participant needs to be redrawn.
TParticipantType aType | The type of the participant (highlight, background or item). |
TUint32 aIndex | |
const TRect & aRect |
void | Remove | ( | TParticipantType | aType, |
TInt | aId = 0 | |||
) | [pure virtual] |
Remove the following participant bitmap.
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. |
void | ResetNonDrawingRects | ( | ) | [pure virtual] |
Reset areas that won't be drawn to.
void | SetGc | ( | CWindowGc & | aGc | ) | [pure virtual] |
Set window gc.
CWindowGc & aGc | The new gc that shall be used. |
void | SetListType | ( | TListBoxType | aListBoxType | ) | [pure virtual] |
Set the type of listbox.
TListBoxType aListBoxType | The type of the listbox. |
void | SetMoveType | ( | MAknListBoxTfxInternal::TMovementType | aMoveType | ) | [pure virtual] |
Set the type of the current movement.
MAknListBoxTfxInternal::TMovementType aMoveType | The type of the current movement. |
TInt | SetPosition | ( | TParticipantType | aType, |
const TPoint & | aPoint, | |||
TInt | aId = 0 | |||
) | [pure virtual] |
Change position of a participant without redrawing it.
TParticipantType aType | |
const TPoint & aPoint | |
TInt aId = 0 |
TBool | StartDrawing | ( | TParticipantType | aType | ) | [pure virtual] |
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.
TParticipantType aType | The type of the list participant to be drawn. |
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.
TInt | VerifyKml | ( | ) | const [pure virtual] |
Verify that the server is running and KML is available.
Types of lists.
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 |
The type of movement in a listbox.
EListNoMovement = 0 | |
EListScrollDown | |
EListScrollUp | |
EListWrapDown | |
EListWrapUp | |
EListMoveDown | |
EListMoveUp | |
EListWrapLeft | |
EListWrapRight | |
EListMoveLeft | |
EListMoveRight | |
EListStartUnknownMove | |
EListStopUnknownMove | |
EListContinueMove | |
EListTap | |
EListFastScroll | |
EListHitBorder | |
EListDrag |
The type of a listbox participant: view, highlight or list item.
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.