mulwidgets/alfscrollbarwidget/src/alfscrollbardefaultbaseelement.cpp
branchRCL_3
changeset 28 89fe593c1f8e
parent 0 e83bab7cf002
child 30 96b9ec297e56
equal deleted inserted replaced
26:0e9bb658ef58 28:89fe593c1f8e
  1321 // checks whether the visual is scrollbar track visual or not
  1321 // checks whether the visual is scrollbar track visual or not
  1322 // ---------------------------------------------------------------------------
  1322 // ---------------------------------------------------------------------------
  1323 // 
  1323 // 
  1324 bool AlfScrollBarDefaultBaseElement::isScrollbarTrackVisual(CAlfVisual *aVisual)
  1324 bool AlfScrollBarDefaultBaseElement::isScrollbarTrackVisual(CAlfVisual *aVisual)
  1325     {
  1325     {
  1326     if(aVisual == mData->mExtendedTrackLayout ||
  1326     if(aVisual)
  1327        aVisual == mData->mTrackTopImage ||
  1327         {
  1328        aVisual == mData->mTrackMiddleImage ||
  1328         if(aVisual == mData->mExtendedTrackLayout ||
  1329        aVisual == mData->mTrackEndImage)
  1329                 aVisual == mData->mTrackTopImage ||
  1330         {
  1330                 aVisual == mData->mTrackMiddleImage ||
  1331         return true;
  1331                 aVisual == mData->mTrackEndImage)
       
  1332                 {
       
  1333                 return true;
       
  1334                 }
  1332         }
  1335         }
  1333      return false;   
  1336      return false;   
  1334     }  
  1337     }  
  1335 
  1338 
  1336 // ---------------------------------------------------------------------------
  1339 // ---------------------------------------------------------------------------
  1338 // checks whether the visual is scrollbar thumb visual or not
  1341 // checks whether the visual is scrollbar thumb visual or not
  1339 // ---------------------------------------------------------------------------
  1342 // ---------------------------------------------------------------------------
  1340 // 
  1343 // 
  1341 bool AlfScrollBarDefaultBaseElement::isScrollbarThumbVisual(CAlfVisual *aVisual)
  1344 bool AlfScrollBarDefaultBaseElement::isScrollbarThumbVisual(CAlfVisual *aVisual)
  1342     {
  1345     {
  1343     if(aVisual == mData->mExtendedThumbLayout ||
  1346     if(aVisual)
  1344        aVisual == mData->mThumbTopImage ||
  1347         {
  1345        aVisual == mData->mThumbMiddleImage ||
  1348         if(aVisual == mData->mExtendedThumbLayout ||
  1346        aVisual == mData->mThumbEndImage)
  1349                 aVisual == mData->mThumbTopImage ||
  1347         {
  1350                 aVisual == mData->mThumbMiddleImage ||
  1348         return true;
  1351                 aVisual == mData->mThumbEndImage)
       
  1352                 {
       
  1353                 return true;
       
  1354                 }
  1349         }
  1355         }
  1350      return false;   
  1356      return false;   
  1351     }  
  1357     }  
  1352 
  1358 
  1353     }//namespace Alf
  1359     }//namespace Alf