emailuis/uicomponents/src/fscontrolbarmodel.cpp
changeset 1 12c456ceeff2
parent 0 8466d47a6819
child 2 5253a20d2a1e
equal deleted inserted replaced
0:8466d47a6819 1:12c456ceeff2
   494         {
   494         {
   495         iButtons[i]->RefreshButtonPosition( parentSize );
   495         iButtons[i]->RefreshButtonPosition( parentSize );
   496         }
   496         }
   497     }
   497     }
   498 
   498 
       
   499 // ---------------------------------------------------------------------------
       
   500 // Set new position and size
       
   501 // ---------------------------------------------------------------------------
       
   502 //
       
   503 void CFsControlBarModel::SetRect( const TRect& aRect )
       
   504     {
       
   505     iSize = aRect.Size();
       
   506     iWidthUseDefault = EFalse;
       
   507     iHeightUseDefault = EFalse;
       
   508     iTl = aRect.iTl;
       
   509     }
       
   510 
       
   511 // ---------------------------------------------------------------------------
       
   512 // Get top-left position of the bar
       
   513 // ---------------------------------------------------------------------------
       
   514 //
       
   515 TPoint CFsControlBarModel::Pos() const
       
   516     {
       
   517     return iTl;
       
   518     }
   499 
   519 
   500 // ---------------------------------------------------------------------------
   520 // ---------------------------------------------------------------------------
   501 // Sets width in pixels of controlbar and refreshes control.
   521 // Sets width in pixels of controlbar and refreshes control.
   502 // ---------------------------------------------------------------------------
   522 // ---------------------------------------------------------------------------
   503 //
   523 //