uifw/ganes/src/HgVgScrollBar.cpp
branchRCL_3
changeset 10 9f56a4e1b8ab
parent 9 aabf2c525e0f
equal deleted inserted replaced
9:aabf2c525e0f 10:9f56a4e1b8ab
   167 
   167 
   168 void CHgVgScrollBar::DrawImage(const TPoint& aPosition, VGImage aImage, 
   168 void CHgVgScrollBar::DrawImage(const TPoint& aPosition, VGImage aImage, 
   169         const TSize& /*aSize*/, const TRect& aWindowRect, TReal aAlpha) const
   169         const TSize& /*aSize*/, const TRect& aWindowRect, TReal aAlpha) const
   170     {
   170     {
   171     TRgb color(255, 255, 255, aAlpha * 255.0f);
   171     TRgb color(255, 255, 255, aAlpha * 255.0f);
   172     HgVgHelper::DrawImageColorized(aImage, color, aPosition, aWindowRect, EFalse);
   172     HgVgHelper::DrawImageColorized(aImage, color, aPosition, aWindowRect, EFalse, iLandscape);
   173     }
   173     }
   174 
   174 
   175 TBool CHgVgScrollBar::IsEnabled() const
   175 TBool CHgVgScrollBar::IsEnabled() const
   176     {
   176     {
   177     return iEnabled;
   177     return iEnabled;
   193     iScrollbar = CHgScrollbar::NewL(aObserver);
   193     iScrollbar = CHgScrollbar::NewL(aObserver);
   194 
   194 
   195     iScrollbar->InitScrollBarL(aScrollbarRect, aTotalSize, aViewSize, aLandscapeScrolling);    
   195     iScrollbar->InitScrollBarL(aScrollbarRect, aTotalSize, aViewSize, aLandscapeScrolling);    
   196     }
   196     }
   197 
   197 
       
   198 void CHgVgScrollBar::EnableLandscapeRendering(TBool aEnabled)
       
   199 {
       
   200     iLandscape = aEnabled;
       
   201 }
   198 
   202 
   199 
   203 
   200 // End of File
   204 // End of File