uifw/AvKon/src/eikfrlb.cpp
branchRCL_3
changeset 15 08e69e956a8c
parent 10 9f56a4e1b8ab
child 16 71dd06cfe933
equal deleted inserted replaced
10:9f56a4e1b8ab 15:08e69e956a8c
   813         {
   813         {
   814 		TBool drawingInitiated = ETrue;
   814 		TBool drawingInitiated = ETrue;
   815 		
   815 		
   816 #ifdef RD_UI_TRANSITION_EFFECTS_LIST
   816 #ifdef RD_UI_TRANSITION_EFFECTS_LIST
   817         MAknListBoxTfxInternal* transApi =
   817         MAknListBoxTfxInternal* transApi =
   818             CAknListLoader::TfxApiInternal( iGc );
   818             CAknListLoader::TfxApiInternal( itemDrawer->Gc() );
   819 #endif // RD_UI_TRANSITION_EFFECTS_LIST
   819 #endif // RD_UI_TRANSITION_EFFECTS_LIST
   820 		
   820 		
   821 		if ( CAknEnv::Static()->TransparencyEnabled() )
   821 		if ( CAknEnv::Static()->TransparencyEnabled() )
   822 		    {
   822 		    {
   823     		if ( iWin && iWin->GetDrawRect() == TRect::EUninitialized )
   823     		if ( iWin && iWin->GetDrawRect() == TRect::EUninitialized )
   845                 {
   845                 {
   846                 transApi->StartDrawing( MAknListBoxTfxInternal::EListNotSpecified );
   846                 transApi->StartDrawing( MAknListBoxTfxInternal::EListNotSpecified );
   847                 }
   847                 }
   848 #endif // RD_UI_TRANSITION_EFFECTS_LIST
   848 #endif // RD_UI_TRANSITION_EFFECTS_LIST
   849 
   849 
   850             iGc->SetClippingRect( iViewRect );
   850             itemDrawer->Gc()->SetClippingRect( iViewRect );
   851             
   851             
   852 #ifdef RD_UI_TRANSITION_EFFECTS_LIST
   852 #ifdef RD_UI_TRANSITION_EFFECTS_LIST
   853             if ( transApi )
   853             if ( transApi )
   854                 {
   854                 {
   855                 transApi->StopDrawing();
   855                 transApi->StopDrawing();
   863                 {
   863                 {
   864                 transApi->StartDrawing( MAknListBoxTfxInternal::EListNotSpecified );
   864                 transApi->StartDrawing( MAknListBoxTfxInternal::EListNotSpecified );
   865                 }
   865                 }
   866 #endif // RD_UI_TRANSITION_EFFECTS_LIST
   866 #endif // RD_UI_TRANSITION_EFFECTS_LIST
   867 
   867 
   868             iGc->CancelClippingRect();
   868             itemDrawer->Gc()->CancelClippingRect();
   869             
   869             
   870 #ifdef RD_UI_TRANSITION_EFFECTS_LIST
   870 #ifdef RD_UI_TRANSITION_EFFECTS_LIST
   871             if ( transApi )
   871             if ( transApi )
   872                 {
   872                 {
   873                 transApi->StopDrawing();
   873                 transApi->StopDrawing();
   936                 if ( !control->FindBackground() )
   936                 if ( !control->FindBackground() )
   937                     {
   937                     {
   938                     AknsDrawUtils::BackgroundBetweenRects( skin, 
   938                     AknsDrawUtils::BackgroundBetweenRects( skin, 
   939                                                        cc, 
   939                                                        cc, 
   940                                                        control, 
   940                                                        control, 
   941                                                        *iGc, 
   941                                                        *itemDrawer->Gc(), 
   942                                                        iViewRect, 
   942                                                        iViewRect, 
   943                                                        usedPortionOfViewRect );
   943                                                        usedPortionOfViewRect );
   944 
   944 
   945                     AknsDrawUtils::Background( skin, cc, control, *iGc, sbbg );
   945                     AknsDrawUtils::Background( skin, cc, control, *itemDrawer->Gc(), sbbg );
   946                 
   946                 
   947                     if ( AknLayoutUtils::LayoutMirrored() )
   947                     if ( AknLayoutUtils::LayoutMirrored() )
   948                         {
   948                         {
   949                         AknsDrawUtils::Background( skin, cc, control, *iGc, margin );
   949                         AknsDrawUtils::Background( skin, cc, control, *itemDrawer->Gc(), margin );
   950                         }
   950                         }
   951                     }
   951                     }
   952                 }
   952                 }
   953             else
   953             else
   954                 {
   954                 {
   955                 iGc->SetBrushColor( BackColor() );
   955                 itemDrawer->Gc()->SetBrushColor( BackColor() );
   956                 DrawUtils::ClearBetweenRects( *iGc, iViewRect, usedPortionOfViewRect );
   956                 DrawUtils::ClearBetweenRects( *itemDrawer->Gc(), iViewRect, usedPortionOfViewRect );
   957                 iGc->Clear( sbbg );
   957                 itemDrawer->Gc()->Clear( sbbg );
   958                 
   958                 
   959                 if ( AknLayoutUtils::LayoutMirrored() )
   959                 if ( AknLayoutUtils::LayoutMirrored() )
   960                     {
   960                     {
   961                     iGc->Clear( margin );
   961                     itemDrawer->Gc()->Clear( margin );
   962                     }
   962                     }
   963                 }
   963                 }
   964             }
   964             }
   965 
   965 
   966 #ifdef RD_UI_TRANSITION_EFFECTS_LIST  
   966 #ifdef RD_UI_TRANSITION_EFFECTS_LIST  
  1415             {
  1415             {
  1416             transApi->StopDrawing();
  1416             transApi->StopDrawing();
  1417             }
  1417             }
  1418 #endif // RD_UI_TRANSITION_EFFECTS_LIST
  1418 #endif // RD_UI_TRANSITION_EFFECTS_LIST
  1419 
  1419 
  1420         if ( aDrawSeparator && 
  1420         if ( aDrawSeparator && control && 
  1421             static_cast<CEikListBox*>( control )->ItemsInSingleLine() == 1 )
  1421             static_cast<CEikListBox*>( control )->ItemsInSingleLine() == 1 )
  1422             {
  1422             {
  1423             AknListUtils::DrawSeparator( *iGc, aItemTextRect, iTextColor, skin );
  1423             AknListUtils::DrawSeparator( *iGc, aItemTextRect, iTextColor, skin );
  1424             }
  1424             }
  1425         }
  1425         }