lafagnosticuifoundation/bmpanimation/inc/bmpansrv.h
branchRCL_3
changeset 29 a8834a2e9a96
parent 0 2f259fa3e83a
equal deleted inserted replaced
25:941195f2d488 29:a8834a2e9a96
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   270 inline TInt CBitmapAnim::Count() const
   270 inline TInt CBitmapAnim::Count() const
   271 	{ return iBitmapAnimFrameDataArray.Count(); }
   271 	{ return iBitmapAnimFrameDataArray.Count(); }
   272 
   272 
   273 // Returns ETrue every time the index frame is valid, otherwise it returns EFalse.
   273 // Returns ETrue every time the index frame is valid, otherwise it returns EFalse.
   274 inline TBool CBitmapAnim::IsFrameDisplayable() const
   274 inline TBool CBitmapAnim::IsFrameDisplayable() const
   275 	{ return ( (iIndex >= 0) && iBitmapAnimFrameDataArray[iIndex]->iBitmap ); }
   275 	{ return ( (iIndex >= 0) && (iIndex < Count()) && iBitmapAnimFrameDataArray[iIndex]->iBitmap ); }
   276 
   276 
   277 // Returns ETrue if the animation is running, otherwise it returns EFalse.
   277 // Returns ETrue if the animation is running, otherwise it returns EFalse.
   278 inline TBool CBitmapAnim::IsRunning() const
   278 inline TBool CBitmapAnim::IsRunning() const
   279 	{ return iFlags&ERunning; }
   279 	{ return iFlags&ERunning; }
   280 
   280