|
|
|||
Location:
QikListBoxLayout.h
class MQikListBoxLayoutOrnament;
Interface implemented by List Box item ornaments.
An ornament gives an application the chance to give List Box Items ornaments, i.e. draw before and after the item has been drawn to specialize it. Common uses are adding DRM keys on top of images and making lines in the background of the item.
Defined in MQikListBoxLayoutOrnament:
DrawBehind(), DrawOnTop()
virtual void DrawBehind(TInt aIndex, CWindowGc &aGc, const TRect &aItemRect, const MQikListBoxLayoutRects &aRects, TBool aHighlighted) const=0;
This callback gives the ornament a chance to draw anything on the item rect before the item itself is drawn.
Be careful to not access other servers or do something computationally intensive inside this callback as this then will slow down your listbox considerably. It's preferable to precalculate any data needed so you only do draw operations.
|
virtual void DrawOnTop(TInt aIndex, CWindowGc &aGc, const TRect &aItemRect, const MQikListBoxLayoutRects &aRects, TBool aHighlighted) const=0;
This callback gives the ornament a chance to draw anything on top of the item rect after the item itself has been drawn.
Be careful to not access other servers or do something computationally intensive inside this callback as this then will slow down your listbox considerably. It's preferable to precalculate any data needed so you only do draw operations.
|