skins/AknSkins/src/AknsScalabilityUtils.cpp
branchRCL_3
changeset 54 08459e712984
parent 21 4ab28fdd25ad
child 106 e4e3998ddda2
equal deleted inserted replaced
45:6ef40bf8fd34 54:08459e712984
   108 // -----------------------------------------------------------------------------
   108 // -----------------------------------------------------------------------------
   109 // AknsScalabilityUtils::DrawPartialCachedImage
   109 // AknsScalabilityUtils::DrawPartialCachedImage
   110 // (commented in the header).
   110 // (commented in the header).
   111 // -----------------------------------------------------------------------------
   111 // -----------------------------------------------------------------------------
   112 //
   112 //
   113 TBool AknsScalabilityUtils::DrawPartialCachedImage(
   113 TBool AknsScalabilityUtils::DrawPartialCachedImageL(
   114     MAknsSkinInstance* /*aSkin*/, CBitmapContext& aGc, const TRect& aTrgLayoutRect,
   114     MAknsSkinInstance* /*aSkin*/, CBitmapContext& aGc, const TRect& aTrgLayoutRect,
   115     const TRect& aTrgDrawRect, CAknsImageItemData* aImgData,
   115     const TRect& aTrgDrawRect, CAknsImageItemData* aImgData,
   116     const TAknsItemID& /*aIID*/, const TAknsImageAttributeData* aAttr,
   116     const TAknsItemID& /*aIID*/, const TAknsImageAttributeData* aAttr,
   117     const TInt aDrawParam )
   117     const TInt aDrawParam )
   118     {
   118     {
   861     CAknsItemData *itemData = appSkinInstance->GetCachedItemData(id, EAknsITEffectQueue);
   861     CAknsItemData *itemData = appSkinInstance->GetCachedItemData(id, EAknsITEffectQueue);
   862     
   862     
   863     return static_cast<CAknsEffectQueueItemData *>(itemData);
   863     return static_cast<CAknsEffectQueueItemData *>(itemData);
   864     }
   864     }
   865 
   865 
   866 CFbsBitmap *AknsScalabilityUtils::LoadBitmapFromSkinId(MAknsSkinInstance* aInstance, const TAknsItemID &aID, const TSize &size)
   866 CFbsBitmap *AknsScalabilityUtils::LoadBitmapFromSkinIdL(MAknsSkinInstance* aInstance, const TAknsItemID &aID, const TSize &size)
   867     {
   867     {
   868     CAknsAppSkinInstance* appSkinInstance =
   868     CAknsAppSkinInstance* appSkinInstance =
   869         static_cast<CAknsAppSkinInstance*>(aInstance);
   869         static_cast<CAknsAppSkinInstance*>(aInstance);
   870         
   870         
   871     CAknsItemData* itemData = NULL;
   871     CAknsItemData* itemData = NULL;
  1048 
  1048 
  1049             TAknsImageAttributeData attributes;
  1049             TAknsImageAttributeData attributes;
  1050             attributes.iAttributes = EAknsImageAttributeNBC;
  1050             attributes.iAttributes = EAknsImageAttributeNBC;
  1051             data->SetAttributesL(attributes);
  1051             data->SetAttributesL(attributes);
  1052 
  1052 
  1053             CFbsBitmap *bmp = LoadBitmapFromSkinId(aSkin, thisIid, aLayoutSize);
  1053             CFbsBitmap *bmp = LoadBitmapFromSkinIdL(aSkin, thisIid, aLayoutSize);
  1054             data->SetBitmap( bmp );
  1054             data->SetBitmap( bmp );
  1055             data->SetMask(NULL);
  1055             data->SetMask(NULL);
  1056 
  1056 
  1057             aSkin->AddLayoutBitmapL(thisIid, data, aLayoutType,
  1057             aSkin->AddLayoutBitmapL(thisIid, data, aLayoutType,
  1058                     aLayoutSize, morphing, aLocalItem);
  1058                     aLayoutSize, morphing, aLocalItem);