uifw/ganes/src/HgVgLetterPopup.cpp
branchRCL_3
changeset 10 9f56a4e1b8ab
parent 4 8ca85d2f0db7
child 16 71dd06cfe933
equal deleted inserted replaced
9:aabf2c525e0f 10:9f56a4e1b8ab
   185         }
   185         }
   186 
   186 
   187     // draw background     
   187     // draw background     
   188     vgSeti(VG_MATRIX_MODE, VG_MATRIX_PATH_USER_TO_SURFACE);
   188     vgSeti(VG_MATRIX_MODE, VG_MATRIX_PATH_USER_TO_SURFACE);
   189     vgLoadIdentity();
   189     vgLoadIdentity();
       
   190     if (iLandscape)
       
   191     {
       
   192         vgTranslate(0.0f, 640.0f); 
       
   193         vgRotate(-90.0f);        
       
   194     }
   190     
   195     
   191     vgTranslate(iRect.iTl.iX, (aWindowRect.Height() - iRect.iBr.iY));
   196     vgTranslate(iRect.iTl.iX, (aWindowRect.Height() - iRect.iBr.iY));
   192 
   197 
   193     VGfloat bgv[4];
   198     VGfloat bgv[4];
   194     bgv[0] = (VGfloat)bgColor.Red() / 255.0f;
   199     bgv[0] = (VGfloat)bgColor.Red() / 255.0f;
   201     vgDrawPath(iLetterBgPath, VG_FILL_PATH);
   206     vgDrawPath(iLetterBgPath, VG_FILL_PATH);
   202 
   207 
   203     // draw letter
   208     // draw letter
   204     color.SetAlpha(aAlpha * 255.0f);
   209     color.SetAlpha(aAlpha * 255.0f);
   205     HgVgHelper::DrawImageColorized(iLetterImage, 
   210     HgVgHelper::DrawImageColorized(iLetterImage, 
   206             color, iRect.iTl, aWindowRect, EFalse);
   211             color, iRect.iTl, aWindowRect, EFalse, iLandscape);
   207     }
   212     }
   208 
   213 
   209 void CHgVgPopup::SetLayouts(const TAknWindowComponentLayout& aPopupLayout, 
   214 void CHgVgPopup::SetLayouts(const TAknWindowComponentLayout& aPopupLayout, 
   210         const TAknTextComponentLayout& aTextLayout, const TRect& aParentRect)
   215         const TAknTextComponentLayout& aTextLayout, const TRect& aParentRect)
   211     {
   216     {
   214     iTextLayout.Setl(0);
   219     iTextLayout.Setl(0);
   215     iTextLayout.Sett(0);
   220     iTextLayout.Sett(0);
   216     iParentRect = aParentRect;
   221     iParentRect = aParentRect;
   217     }
   222     }
   218 
   223 
       
   224 void CHgVgPopup::EnableLanscapeRendering(TBool enabled)
       
   225 {
       
   226     iLandscape = enabled;
       
   227 }
       
   228 
   219 
   229 
   220 // End of File
   230 // End of File