CHuiImageLoaderUtil Class Reference
class CHuiImageLoaderUtil : public CBase |
CHuiImageLoaderUtil is a utility class to create image loader with the system skin applied. CHuiImageLoaderUtil holds all MHuiBitmapProvider instance created through CreateImageLoaderL() so that appplication/control does not need to keep it by itself.
Typically, an application or a control needs to hold instance of CHuiImageLoaderUtil during entire its object life time, because bitmap provision callback from texture manager may be called even after instanciation of texture. For instance, image re-loading happens when application coming back to foreground and resource was released.
Constructor & Destructor Documentation
CHuiImageLoaderUtil()
IMPORT_C | CHuiImageLoaderUtil | ( | ) | |
~CHuiImageLoaderUtil()
IMPORT_C | ~CHuiImageLoaderUtil | ( | ) | |
Member Functions Documentation
CreateImageLoaderL(const TAknsItemID &, const TDesC &, TInt, TInt)
Create MHuiBitmapProvider instance to load image with Avkon skin item ID with fallback. The fallback is used when the current skin does not contain the image with skin item ID. If either fails, this leaves. Use CHuiTextureManager::CreateTextureL() with return value of this method as a bitmap provider to create a HUI texture.
Parameters
const TAknsItemID & aID | An Akvon skin item ID of the graphical item (e.g. an icon) to load. |
const TDesC & aFileName | File name of graphics file e.g. mif file) when sepcified item is not found in the current skin. |
TInt aBitmapId | ID of the bitmap when fallback is used. |
TInt aMaskId | ID of the mask bitmap when fallback is used. |
CreateImageLoaderL(TUid, TAknsAppIconType)
Parameters
TUid aAppUid | Application UID of the icon to be created. |
TAknsAppIconType aType | Type of the application icon. Likely EAknsAppIconTypeContext is used... |
ImageLoaderExtension(const TUid &, TAny **)
IMPORT_C void | ImageLoaderExtension | ( | const TUid & | aExtensionUid, |
| TAny ** | aExtensionParamters |
| ) | [virtual] |
Parameters
const TUid & aExtensionUid | |
TAny ** aExtensionParamters | |
SetSize(TSize, TScaleMode)
Set size of the image to be loaded. This must be called before calling CreateImageLoaderL. This call only sets information and does *NOT* cause any scalable icon rasterization. Also Size setting does not affect any of image loaders already created.
Parameters
TSize aSize | Size in pixel. |
TScaleMode aMode = EAspectRatioPreserved | Scaling mode enumeration from Avkon. It takes either of following three. EAspectRatioPreserved EAspectRatioPreservedAndUnusedSpaceRemoved EAspectRatioNotPreserved |
SetSkinInstance(MAknsSkinInstance *)
Member Data Documentation
RPointerArray< CHuiImageLoader > iImageLoaderList
An array to hold all loader created.
TScaleMode
iScaleMode
Scale mode of image to be created
TSize
iSize
Size of image to be created
MAknsSkinInstance * iSkinInstance
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.